/* ====================================
   Asphera Floors — Simple Neutral Theme
   ==================================== */

/* ---------- Theme Tokens ---------- */
:root{
  --bg:#f7fafc;           /* soft page background */
  --text:#1f2937;         /* slate-800 */
  --muted:#64748b;        /* slate-500 */

  --brand:#4a83c1;        /* calm single brand color */
  --card:#ffffff;
  --ring:rgba(74,131,193,.28);

  --radius:14px;
  --shadow:0 10px 24px -16px rgba(15,23,42,.20);

  /* Shared background image for hero + footer */
  --hero-bg-img:url('background.jpg');
}

/* ---------- Base ---------- */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
}
img{max-width:100%;display:block}
a{color:var(--brand);text-decoration:none}
.container{width:min(100%,1200px);margin:0 auto;padding:0 20px}
.muted{color:var(--muted);font-size:14px}
.small{font-size:.9rem}
.center{text-align:center}
.hidden{display:none}
.bullets{padding-left:18px;margin-top:8px}

/* Skip link */
.skip-link{
  position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden;
}
.skip-link:focus{
  position:fixed;left:16px;top:12px;width:auto;height:auto;padding:8px 12px;background:#fff;border:1px solid #e2e8f0;border-radius:10px;z-index:9999;
}

/* ---------- Header ---------- */
header{
  position:sticky;top:0;z-index:50;
  background:#ffffffcc;
  border-bottom:1px solid #e2e8f0;
  backdrop-filter:saturate(160%) blur(8px);
}
.nav{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0}
.brand{display:flex;align-items:center;gap:10px}
.brand .logo{width:40px;height:40px;border-radius:8px;box-shadow:var(--shadow)}
.brand h1{font-size:20px;margin:0;color:var(--brand)}
nav ul{display:flex;gap:8px;list-style:none;margin:0;padding:0}
nav a{display:inline-flex;padding:8px 14px;border-radius:999px;color:var(--text);transition:background .2s}
nav a:hover{background:#eef2f7;color:var(--brand)}
.menu-toggle{display:none;background:transparent;border:1px solid #cbd5e1;border-radius:10px;padding:6px 10px;color:var(--text)}

/* ---------- Hero (simple, with photo bg) ---------- */
.hero{
  position:relative;
  padding:88px 0 52px;
  background:var(--hero-bg-img) center / cover no-repeat;
  color:#fff;
}
.hero::before{
  content:"";position:absolute;inset:0;
  background:linear-gradient(90deg, rgba(15,23,42,.70) 0%, rgba(15,23,42,.40) 55%, rgba(15,23,42,0) 80%);
  pointer-events:none;
}
.hero .wrap{position:relative;z-index:1;display:grid;grid-template-columns:1fr;gap:18px}
.hero-copy{max-width:760px}
.hero h2{font-size:clamp(30px,5vw,52px);line-height:1.05;margin:0 0 10px;color:#ffffff}
.hero p{color:#f1f5f9;margin:0 0 18px}
.trust-points{display:flex;gap:10px;flex-wrap:wrap;color:#e2e8f0;font-size:14px;margin-top:8px}
.cta-row{display:flex;gap:10px;flex-wrap:wrap;margin:8px 0 4px}



/* Hero stats */
.hero-stats{
  position:relative;z-index:1;margin-top:16px;
  display:flex;gap:12px;justify-content:center;flex-wrap:wrap;
}
.hero-stats .stat{
  background:#ffffff;
  border:1px solid #e2e8f0;border-radius:12px;padding:10px 14px;text-align:center;
  min-width:160px;box-shadow:0 10px 22px -16px rgba(15,23,42,.22)
}
.hero-stats .stat strong{display:block;font-size:1.12rem;color:#0f172a}
.hero-stats .stat span{font-size:.9rem;color:#475569}

/* ---------- Sections ---------- */
.section{padding:48px 0}
.section h2{margin:0 0 18px;text-align:center;color:#0f172a}

/* ---------- Services ---------- */
/* ---------- Services (new style) ---------- */
#services {
  background:#f8fafc; /* light section background */
}

#services h2 {
  letter-spacing:0.03em;
  text-transform:uppercase;
  font-size:0.9rem;
  color:#64748b;
  margin-bottom:4px;
}

#services .container > h2 + .services-grid {
  margin-top:16px;
}

/* Responsive grid */
.services-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));
  gap:20px;
}

/* Card layout: image left, text right */
.service-item{
  position:relative;
  display:grid;
  grid-template-columns: 120px 1fr;
  background:var(--card);
  border-radius:18px;
  border:1px solid #e2e8f0;
  overflow:hidden;
  box-shadow:var(--shadow);
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

/* Soft highlight on hover */
.service-item::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(135deg, rgba(74,131,193,.10), transparent 55%);
  opacity:0;
  pointer-events:none;
  transition:opacity .25s ease;
}

.service-item:hover{
  transform:translateY(-4px);
  box-shadow:0 18px 32px -18px rgba(15,23,42,.25);
  border-color:rgba(74,131,193,.35);
}
.service-item:hover::before{opacity:1}

/* Image column */
.service-item img{
  width:100%;
  height:100%;
  object-fit:cover;
  margin:0;
}

/* Text column */
.service-item .info{
  padding:14px 16px 16px;
  position:relative;
  z-index:1;
}

.service-item h3{
  margin:0 0 4px;
  font-size:1.05rem;
  color:#0f172a;
}

.service-item p{
  margin:0 0 6px;
  color:var(--muted);
  font-size:0.92rem;
}

/* Make the bullets tighter + cleaner */
.service-item .bullets{
  margin-top:6px;
  padding-left:16px;
  font-size:0.9rem;
}

/* Mobile: stack image above text */
@media (max-width: 640px){
  .service-item{
    grid-template-columns:1fr;
  }
  .service-item img{
    height:180px;
  }
}


/* ---------- About ---------- */
.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.about-card{
  background:var(--card);border:1px solid #e2e8f0;border-radius:var(--radius);
  padding:18px;box-shadow:var(--shadow)
}
.checklist{list-style:none;margin:12px 0 0;padding:0}
.checklist li{padding-left:22px;position:relative;margin:6px 0;color:#334155}
.checklist li::before{content:"✔";position:absolute;left:0;top:0;color:var(--brand);font-weight:700}

.process-card h3{margin:0 0 8px}
.process-list{
  margin:0;padding:0;list-style:none;display:grid;gap:10px
}
.process-list li{
  background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;
  padding:10px 12px;color:#334155;
}

/* ---------- Our Work — Flowing Gallery ---------- */
.works{background:#ffffff}
.flow-scroller{
  --speed: 20s;
  display:grid;gap:14px;margin-top:8px;padding:6px 0 2px;
}
.flow-row{position:relative;overflow:hidden;mask-image:linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%)}
.flow-track{display:flex;gap:12px;animation:scroll-x var(--speed) linear infinite;will-change:transform}
.flow-row.right .flow-track{animation-direction:reverse}
.flow-scroller:hover .flow-track{animation-play-state:paused}

@keyframes scroll-x{
  from{transform:translateX(0)} to{transform:translateX(-50%)}
}

.shot{
  position:relative;overflow:hidden;border-radius:12px;border:1px solid #e2e8f0;
  background:#fff;box-shadow:0 10px 22px -16px rgba(15,23,42,.16);
  width:clamp(220px,28vw,340px);aspect-ratio:4/3;flex:0 0 auto;
}
.shot img{width:100%;height:100%;object-fit:cover;transform:scale(1.02);transition:transform .35s ease, filter .35s ease}
.shot:hover img{transform:scale(1.05)}
.shot figcaption{
  position:absolute;left:10px;bottom:10px;
  background:#ffffff;border:1px solid #e2e8f0;border-radius:10px;
  padding:6px 10px;font-size:.92rem;color:#0f172a;
  box-shadow:0 8px 18px -12px rgba(15,23,42,.18);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .flow-track{animation:none}
  .flow-row{overflow-x:auto;scroll-snap-type:x proximity}
  .shot{scroll-snap-align:start}
}

/* ---------- Contact (clean) ---------- */
.section.contact-section{background:#ffffff}
.section-intro{text-align:center;margin-bottom:20px}
.section-intro h2{font-size:clamp(1.6rem,1.2rem + 1.4vw,2.1rem);margin:0 0 6px}

.contact-grid{
  display:grid;gap:20px;
  grid-template-columns:1fr 1fr;
  align-items:stretch;
}
.contact-card,.form-card{
  background:var(--card);
  border:1px solid #e2e8f0;
  border-radius:14px;
  padding:18px;
  box-shadow:var(--shadow);
  display:flex;flex-direction:column;min-height:100%;
}
.contact-card::before,.form-card::before{
  content:"";display:block;height:3px;width:48px;border-radius:999px;
  background:var(--brand);
  margin-bottom:12px;
}
.card-title{font-size:1.1rem;font-weight:700;margin:0 0 8px}

.contact-actions{display:flex;gap:10px;margin-bottom:10px;flex-wrap:wrap}
.availability{display:flex;align-items:center;gap:10px;margin:4px 0 10px}
.pill{
  background:#f1f5f9;border:1px solid #e2e8f0;color:#334155;
  padding:6px 10px;border-radius:999px;font-size:.85rem
}
.pill-live{background:#e6f0fb;border-color:#cfe0f5;color:#274766}
.contact-list{list-style:none;padding:0;margin:0 0 10px;display:grid;gap:8px}
.contact-list a{color:#0f172a}
.ci-icon{margin-right:8px}

.mini-title{margin:12px 0 6px;font-size:1rem}
.usp-grid{display:grid;gap:8px;margin-bottom:6px;grid-template-columns:1fr 1fr}
.usp-item{
  display:flex;gap:10px;align-items:flex-start;
  background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:8px 10px;
}
.usp-emoji{font-size:1.05rem}

/* Compact FAQ */
.faq-compact details{
  background:#ffffff;border:1px solid #e2e8f0;border-radius:10px;
  padding:8px 10px;margin-top:8px;
}
.faq-compact summary{cursor:pointer;font-weight:600;color:#0f172a;list-style:none}
.faq-compact summary::-webkit-details-marker{display:none}

/* ---------- Form ---------- */
form{display:flex;flex-direction:column;gap:12px}
.grid-two{display:grid;gap:10px;grid-template-columns:1fr 1fr}
.field label{display:block;font-weight:600;margin:0 0 6px;color:#334155}
.req{color:#dc2626;margin-left:2px}
.field input,.field select,.field textarea{
  width:100%;border:1px solid #e2e8f0;border-radius:10px;
  padding:12px 12px;font-size:1rem;background:#fff;color:#0f172a;
  outline:none;transition:border .2s, box-shadow .2s, transform .05s
}
.field textarea{resize:vertical;min-height:120px}
.field input:focus,.field select:focus,.field textarea:focus{
  border-color:var(--brand);box-shadow:0 0 0 4px var(--ring)
}
.field input:active,.field select:active,.field textarea:active{transform:translateY(.5px)}
.field-hint{min-height:18px;margin-top:6px;color:#dc2626;font-size:.84rem}
.file-field p{margin:6px 0 0}
.form-note{margin-top:6px}

/* Centered CTA */
.form-actions{display:flex;justify-content:center;margin-top:4px}
.btn-cta{
  padding:12px 20px;border-radius:12px;font-size:1.02rem;
  background:var(--brand);color:#fff;border:1px solid transparent;
  box-shadow:0 16px 28px -16px rgba(74,131,193,.35), 0 1px 6px -2px rgba(15,23,42,.12);
}


/* Honeypot */
.hp{position:absolute !important;left:-10000px !important;width:1px !important;height:1px !important;overflow:hidden !important}

/* ---------- Testimonials ---------- */
#testimonials{background:#f8fafc;padding:56px 20px;text-align:center}
#testimonials h2{margin-bottom:26px;font-size:2rem;color:#0f172a}
.testimonials-grid{
  display:grid;gap:20px;
  grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));
}
.testimonial-card{
  background:#fff;padding:18px;border-radius:12px;
  box-shadow:0 2px 8px rgba(15,23,42,0.10);border:1px solid #e2e8f0
}
.testimonial-card .quote{font-style:italic;margin-bottom:10px;color:#334155}
.testimonial-card .author{font-weight:600;color:#475569}

/* ---------- Footer (same background as hero) ---------- */
footer{
  border-top:1px solid #e2e8f0;
  padding:26px 0 40px;margin-top:32px;text-align:center;background:#ffffff;color:var(--muted)
}
footer.footer-photo{
  position:relative;color:#ffffff;border-top:none;
  background:var(--hero-bg-img) center / cover no-repeat;
  padding:42px 0 60px;
}
footer.footer-photo::before{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg, rgba(15,23,42,.75) 0%, rgba(15,23,42,.55) 50%, rgba(15,23,42,.55) 100%);
  pointer-events:none;
}
footer.footer-photo .container{position:relative;z-index:1}
footer.footer-photo p{color:#e5eef7}

/* ---------- Animations (reveal on scroll) ---------- */
.reveal{opacity:0;transform:translateY(14px);transition:opacity .45s ease, transform .45s ease}
.reveal.in{opacity:1;transform:none}
.reveal.delay-1{transition-delay:.08s}
.reveal.delay-2{transition-delay:.16s}

/* ---------- Responsive ---------- */
@media (max-width: 1024px){
  .services-grid{grid-template-columns:1fr 1fr}
  .about-grid{grid-template-columns:1fr}
}
@media (max-width: 960px){
  .menu-toggle{display:inline-block}
  nav ul{
    display:none;position:absolute;right:20px;top:62px;background:#ffffff;
    border:1px solid #e2e8f0;border-radius:14px;padding:8px;box-shadow:var(--shadow)
  }
  nav ul.open{display:flex;flex-direction:column;gap:6px}
  nav a{color:#0f172a}
  nav a:hover{background:#eef2f7}
  .hero::before{
    background:linear-gradient(0deg, rgba(15,23,42,.70) 0%, rgba(15,23,42,.35) 60%, rgba(15,23,42,0) 100%);
  }
}
@media (max-width: 640px){
  .services-grid{grid-template-columns:1fr}
  .grid-two{grid-template-columns:1fr}
}


/* --- Mobile fix: stack Contact + Request a Quote --- */
@media (max-width: 960px){
  .contact-grid{ grid-template-columns: 1fr; }
}

/* --- Quick Actions (floating buttons) --- */
.quick-actions{
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Button look matches your current neutral theme */
.qa-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 12px 26px -18px rgba(15,23,42,.28), 0 2px 6px -2px rgba(15,23,42,.14);
  border: 1px solid transparent;
}



/* Respect iOS safe area + keep tidy on very small screens */
@supports (padding: max(0px)){
  .quick-actions{ bottom: max(12px, env(safe-area-inset-bottom)); }
}

/* Optional: slightly smaller + horizontal on very narrow phones */
@media (max-width: 420px){
  .quick-actions{
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    gap: 6px;
  }
  
}

.hover-highlight {
  position: relative;
  isolation: isolate;
  border-radius: 8px;
  padding: 2px 6px;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

/* Simple smooth highlight on hover/focus */
.hover-highlight:hover,
.hover-highlight:focus-visible {
  background: rgba(59,130,246,.12);           /* light blue */
  box-shadow: 0 0 0 2px rgba(59,130,246,.35); /* soft outline ring */
  text-decoration: underline;
  outline: none;
}

/* remove the dark pointer shadow completely */
.hover-highlight::before {
  display: none;
}
/* ============================= */
/* Unified Button Styling        */
/* ============================= */

/* General button style (all .btn elements) */
.btn,
.qa-btn {
  display: inline-block;
  background-color: #3b82f6;      /* brand blue */
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 8px;             /* uniform rounded corners */
  padding: 10px 18px;
  text-decoration: none;
  text-align: center;
  transition: background-color .25s ease, transform .2s ease, box-shadow .2s ease;
}

/* Hover & focus */
.btn:hover,
.qa-btn:hover,
.btn:focus-visible,
.qa-btn:focus-visible {
  background-color: #2563eb;     /* darker blue on hover */
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  color: #fff;                   /* keep text white */
}

/* Active (click) */
.btn:active,
.qa-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* ============================= */
/* Quick Actions bottom-right    */
/* ============================= */
.quick-actions {
  position: fixed;
  bottom: 18px;
  right: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.quick-actions .qa-btn {
  border-radius: 8px;             /* same as .btn */
  background-color: #3b82f6;
  font-size: 15px;
  padding: 10px 18px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.quick-actions .qa-btn:hover {
  background-color: #2563eb;
}

/* Hover Preview Overlay */
#hoverPreview {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
#hoverPreview img {
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
#hoverPreview.show { display: flex; }

/* Stop page from scrolling while preview is open */
body.no-scroll { overflow: hidden; }
#hoverPreview { display:none; }
#hoverPreview.show { display:flex; } /* not strictly needed with inline display=flex */
body.no-scroll { overflow: hidden; }

.success {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background-color: #e0f7e9;
  color: #166534;
  border: 1px solid #22c55e;
  font-size: 0.95rem;
}

.error {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background-color: #fee2e2;
  color: #b91c1c;
  border: 1px solid #f87171;
  font-size: 0.95rem;
}
/* Popup background */
.popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

/* Hidden state */
.hidden {
  display: none !important;
}

/* Popup box */
.popup-content {
  background: #fff;
  padding: 20px 32px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
  font-size: 1.1rem;
}

.popup-content button {
  margin-top: 12px;
  padding: 8px 20px;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

nav {
  position: relative;
  z-index: 1000;
}

@media (max-width: 960px){
  nav ul{
    display:none;
    position:absolute;
    top:100%;
    right:0;
    background:#fff;
    padding:10px;
    border-radius:14px;
    border:1px solid #e2e8f0;
    box-shadow:0 10px 25px rgba(0,0,0,0.15);
    flex-direction:column;
    gap:10px;
    z-index:9999;
  }

  nav ul.open{
    display:flex;
  }
}

/* Logo + header styles for transparent PNG */

/* Header base */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffffcc; /* translucent white */
  border-bottom: 1px solid #e2e8f0;
  backdrop-filter: saturate(160%) blur(8px);
}

/* Brand container */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

/* Truly transparent logo image */
.brand .logo {
  width: 40px;
  height: 40px;
  display: block;
  /* no background color, let PNG transparency show */
  background: transparent;
  border-radius: 8px;          /* optional rounded corners */
  box-shadow: 0 10px 24px -16px rgba(15, 23, 42, 0.20); /* soft shadow */
}

/* Brand title text */
.brand h1 {
  font-size: 20px;
  margin: 0;
  color: #4a83c1; /* your brand color */
}
