:root{
    /* fallback manual accent (override auto-extractor if it runs) */
    --accent: #e63946;          /* pick a color you like */
    --accent-strong: #b91c1c;
    --accent-contrast: #ffffff;
  
    --header-height: 64px;
    --container-max: 1200px;
  }
  
  /* Reset & base */
  * { box-sizing: border-box; }
  html,body { height:100%; }
  body {
    margin:0;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    color:#222;
    background:#fafafa;
    line-height:1.45;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
  }
  
  .container { max-width:var(--container-max); margin:0 auto; padding:0 18px; }
  
  /* Header (fixed & readable) */
  .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: linear-gradient(90deg, rgba(0,0,0,0.06), rgba(0,0,0,0.02)), linear-gradient(90deg, var(--accent), var(--accent-strong));
    color: var(--accent-contrast);
    z-index: 99999;
    display:flex;
    align-items:center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
  .header-row { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; padding:8px 0; height:100%; }
  
  /* Logo */
  .logo { display:flex; align-items:center; gap:10px; }
  .logo-img { width:44px; height:44px; border-radius:8px; object-fit:cover; background:#fff; padding:4px; }
  .brand-wrap { display:flex; flex-direction:column; line-height:1; }
  .brand { font-weight:800; letter-spacing:0.5px; }
  .brand-sub { font-size:0.85rem; opacity:0.95; font-weight:700; }
  
  /* Nav */
  .nav { display:flex; gap:12px; align-items:center; }
  .nav a { color:var(--accent-contrast); text-decoration:none; padding:8px 10px; border-radius:8px; font-weight:600; }
  .nav a.active, .nav a:hover { background: rgba(255,255,255,0.08); }
  
  /* Header CTA */
  .header-cta { display:flex; align-items:center; gap:10px; }
  .tel { background: rgba(255,255,255,0.12); padding:8px 10px; border-radius:8px; font-weight:700; color:var(--accent-contrast); text-decoration:none; }
  .book-btn { background:var(--accent-contrast); color:var(--accent); border:0; padding:8px 12px; border-radius:8px; font-weight:800; cursor:pointer; }
  
  /* Hamburger */
  .hamburger { display:none; background:transparent; border:0; padding:6px; cursor:pointer; }
  .hamburger-box { display:inline-block; width:28px; height:18px; position:relative; }
  .hamburger-inner { position:absolute; top:50%; left:0; right:0; height:2px; background:var(--accent-contrast); border-radius:2px; transform:translateY(-50%); transition:transform .25s; }
  .hamburger-inner::before, .hamburger-inner::after { content:""; position:absolute; left:0; right:0; height:2px; background:var(--accent-contrast); border-radius:2px; transition:transform .25s, opacity .2s; }
  .hamburger-inner::before { top:-8px; }
  .hamburger-inner::after { bottom:-8px; }
  
  /* Page nav removed? If present, style fallback */
  .page-nav { display:none; }
  
  /* Buttons */
  .btn { display:inline-block; text-decoration:none; padding:10px 14px; border-radius:8px; font-weight:700; cursor:pointer; box-sizing:border-box; }
  .btn.primary { background:var(--accent); color:var(--accent-contrast); border:0; box-shadow:0 8px 30px rgba(0,0,0,0.12); }
  .btn.outline { background:transparent; color:var(--accent-contrast); border:2px solid rgba(255,255,255,0.45); padding:8px 12px; }
  .btn.link { background:transparent; color:#fff; text-decoration:underline; border:0; padding:8px 10px; }
  
  /* HERO full-bleed */
  .hero-bleed { position:relative; overflow:hidden; margin-top:0; }
  .hero-img { width:100%; height:auto; display:block; object-fit:cover; min-height:360px; }
  .hero-overlay {
    position:absolute; left:0; right:0; top:0; bottom:0;
    display:flex; flex-direction:column; justify-content:center; gap:8px;
    padding: calc(var(--header-height) + 18px) 18px 48px; color:#fff;
    background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.35) 40%, rgba(0,0,0,0.06) 100%);
  }
  .hero-overlay h1 { font-size:2.2rem; margin:0 0 6px 0; max-width:900px; }
  .hero-sub { margin:0; max-width:720px; color:#fff; opacity:0.95; }
  .hero-ctas { margin-top:12px; display:flex; gap:12px; flex-wrap:wrap; align-items:center; }
  .hero-features-inline { list-style:none; display:flex; gap:12px; padding:0; margin:10px 0 0 0; font-weight:700; flex-wrap:wrap; }
  .hero-features-inline li { background: rgba(255,255,255,0.06); padding:6px 10px; border-radius:6px; font-size:0.92rem; }
  
  /* Sections */
  .section { padding:36px 0; }
  .section-title { text-align:center; color:var(--accent); font-size:1.6rem; margin-bottom:6px; }
  .section-sub { text-align:center; max-width:860px; margin:0 auto 18px; color:#374151; }
  
  /* Services */
  .services-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap:18px; }
  .service-card { display:flex; gap:14px; background:#fff; padding:18px; border-radius:12px; box-shadow:0 10px 30px rgba(0,0,0,0.06); align-items:flex-start; }
  .svc-icon { width:56px; height:56px; display:flex; align-items:center; justify-content:center; border-radius:10px; background:linear-gradient(180deg,#fff,#fff); border:1px solid #ffecec; }
  .svc-body h3 { margin:0 0 6px 0; }
  .svc-body p { margin:0; color:#555; }
  
  /* Products */
  .products-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap:16px; }
  .product-card { background:#fff; border-radius:10px; overflow:hidden; box-shadow:0 8px 20px rgba(0,0,0,0.06); }
  .product-card img { width:100%; height:150px; object-fit:cover; display:block; }
  .product-body { padding:12px; }
  .product-price { color:var(--accent); font-weight:800; margin-top:8px; }
  
  /* Blog */
  .blog-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap:16px; }
  
  /* Testimonials */
  .testimonials { display:flex; align-items:center; gap:12px; margin-top:12px; position:relative; }
  .t-viewport { overflow:hidden; flex:1; width:100%; }
  .t-track { display:flex; transition: transform .45s ease; width:100%; will-change: transform; }
  .testimonial { min-width:100%; flex:0 0 100%; background:#fff; padding:18px; border-radius:8px; box-shadow:0 8px 24px rgba(0,0,0,0.06); box-sizing:border-box; margin:0 8px; }
  .t-btn { background:var(--accent); color:var(--accent-contrast); border:0; padding:8px 12px; border-radius:6px; cursor:pointer; position:relative; z-index:2; }
  
  /* Contact */
  .contact-wrap { display:grid; grid-template-columns: 1fr 420px; gap:18px; align-items:start; }
  .contact-card { background:#fff; padding:18px; border-radius:10px; box-shadow:0 10px 30px rgba(0,0,0,0.06); }
  .contact-form input, .contact-form textarea { width:100%; padding:10px; border-radius:8px; border:1px solid #e6e6e6; margin-bottom:10px; }
  .contact-form button { width:auto; }
  
  /* Footer */
  .footer { background:#0f1724; color:#fff; padding:20px 0; text-align:center; margin-top:28px; }
  
  /* Reveal animation */
  .reveal { opacity:0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; will-change: opacity, transform; }
  .reveal.visible { opacity:1; transform:none; }
  
  /* Responsive tweaks */
  @media (max-width: 980px) {
    .nav { display:none; }
    .hamburger { display:inline-block; }
    .hero-overlay { padding: calc(var(--header-height) + 12px) 16px 36px; }
    .hero-overlay h1 { font-size:1.6rem; line-height:1.12; }
    .hero-ctas { flex-direction: column; align-items: stretch; width:100%; gap:10px; }
    .btn.primary, .btn.outline { width:100%; text-align:center; }
    .contact-wrap { grid-template-columns: 1fr; }
    .testimonial { margin-bottom:12px; }
  }
  
  /* Smaller phones */
  @media (max-width: 480px) {
    :root { --header-height: 56px; }
    .hero-overlay h1 { font-size:1.35rem; }
    .hero-sub { font-size:0.95rem; }
    .svc-icon { width:48px; height:48px; }
    .testimonial { padding:14px; }
  }
  /* === MOBILE NAV OPEN STATE (CRITICAL FIX) === */
@media (max-width: 980px) {
  .nav.open {
    display: flex;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    flex-direction: column;
    background: linear-gradient(
      180deg,
      var(--accent),
      var(--accent-strong)
    );
    padding: 12px 0;
    z-index: 999999;
  }

  .nav.open a {
    padding: 14px 20px;
    border-radius: 0;
  }
}

  /* === Mobile: place hero CTAs side-by-side and avoid hero text cutoff === */
@media (max-width: 768px) {
    /* Ensure header height is respected and hero text not hidden */
    :root { --header-height: 56px; } /* adjust if your header is taller */
    .hero-overlay { 
      padding-top: calc(var(--header-height) + 12px); /* ensures hero content sits below header */
      padding-bottom: 24px;
    }
  
    /* Make the CTA container a two-column layout on mobile */
    .hero-ctas {
      display: flex !important;
      flex-direction: row !important;
      gap: 10px;
      justify-content: center;
      align-items: center;
      width: 100%;
    }
  
    /* Buttons share row: each about half width with consistent height */
    .hero-ctas .btn {
      flex: 0 0 48%;
      max-width: 48%;
      box-sizing: border-box;
      padding: 10px 12px;
      font-size: 0.95rem;
      border-radius: 10px;
    }
  
    /* Give outline button a visible style on top of hero */
    .hero-ctas .btn.outline {
      background: transparent;
      border: 2px solid rgba(255,255,255,0.85);
      color: #fff;
    }
    .hero-ctas .btn.primary {
      background: var(--accent);
      color: var(--accent-contrast);
    }
  
    /* If screen is very narrow, allow wrapping but keep them visually balanced */
    @media (max-width: 360px) {
      .hero-ctas .btn { flex: 0 0 100%; max-width: 100%; }
      .hero-ctas { flex-direction: column; gap: 8px; }
    }
  }
  
  /* Small tweak to avoid the header hiding the top of page on some devices */
  body { padding-top: var(--header-height); }
  
  /* Blog cards grid */
.blog-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 12px;
  }
  
  /* Single blog card */
  .blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    transition: transform .18s ease, box-shadow .18s ease;
  }
  
  /* Image area — maintain aspect, cover */
  .blog-card .card-media {
    display: block;
    width: 100%;
    aspect-ratio: 16/9; /* modern browsers */
    overflow: hidden;
    background:#f6f6f6;
  }
  .blog-card .card-media img {
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition: transform .45s ease;
  }
  
  /* Card body */
  .card-body { padding: 14px 16px 18px; display:flex; flex-direction:column; gap:10px; flex:1; }
  .card-title { margin: 0; font-size: 1.05rem; line-height:1.2; color:#1f2937; }
  .card-title a { color: inherit; text-decoration:none; font-weight:700; }
  .card-excerpt { margin:0; color:#4b5563; font-size:0.95rem; flex:1; }
  
  /* meta row */
  .card-meta { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:8px; }
  .card-meta time { color:#6b7280; font-size:0.88rem; }
  .read-more { color: var(--accent); font-weight:700;}
  
  /* Phone link: look like regular text (no blue, no underline) */
.contact-card a[href^="tel"],
.footer a[href^="tel"],
.header-cta .tel {
  color: #fb3838f1;            /* use surrounding text color */
  text-decoration: none;
  font-weight: 700;
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
  display: inline-block;
}

/* If you want a subtle pill look for header tel CTA */
.header-cta .tel {
  background: rgba(0,0,0,0.06);
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--accent-contrast);
}

/* Make any plain anchor inside contact-card inherit styles (remove default blue) */
.contact-card a {
  color: inherit;
  text-decoration: none;
}
/* Product card image area: use aspect-ratio so images are consistent */
.product-card {
    border-radius: 12px;
    overflow: hidden;        /* ensures rounded corners for image + body */
    display: flex;
    flex-direction: column;
    background: #fff;
  }
  
  /* Preferred: card-media wrapper with aspect-ratio for modern browsers */
  .product-card .card-media,
  .product-card picture,
  .product-card img {
    width: 100%;
    display: block;
  }
  
  /* Force consistent height and cropping using object-fit */
  .product-card img {
    height: 220px;           /* adjust to taste (200-260 px good on desktop) */
    object-fit: contain;       /* fill and crop without stretching */
    object-position: center; /* center the focal point */
    display: block;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
  }
  
  /* If you prefer an aspect-ratio container instead:
  .product-card .card-media { aspect-ratio: 4 / 3; overflow:hidden; }
  .product-card .card-media img { width:100%; height:100%; object-fit:cover; }
  */
  
  /* Keep product body spacing unchanged */
  .product-body { padding:14px; }
  
  /* Responsive: slightly smaller image height on phones */
  @media (max-width: 760px) {
    .product-card img { height:160px; }
  }

  /* Blog cards — show full image (no cropping) */
.blog-card .card-media {
  aspect-ratio: 16 / 9;      /* keep uniform area for the card */
  display:block;
  background: #f6f2ee;       /* neutral fill for letterbox */
  overflow: hidden;
}

.blog-card .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;       /* IMPORTANT: show whole image */
  object-position: center;   /* center the image */
  display: block;
  background: #f6f2ee;
}

/* Testimonial slider — avoid cutting on mobile */
.testimonials {
  position: relative;
  padding: 6px 0; /* keep small breathing room for arrows */
}

.t-viewport {
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

/* Use gap on track but don't create external margins on slides */
.t-track {
  display: flex;
  gap: 12px;                 /* internal spacing between slides */
  transition: transform .45s ease;
  will-change: transform;
  padding: 8px 6px;          /* small inner padding so slides don't touch edges */
}

/* Make each slide perfectly match the viewport width (so translateX math is stable) */
.testimonial {
  flex: 0 0 100%;
  min-width: 100%;
  box-sizing: border-box;
  padding: 16px;             /* internal padding inside card (keeps visual spacing) */
  margin: 0;                 /* IMPORTANT: remove external margins that break slide math */
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

/* reduce padding on small phones so more content fits */
@media (max-width: 420px) {
  .testimonial { padding: 12px; font-size: 0.95rem; }
  .t-track { gap: 8px; padding: 6px 4px; }
}

/* Make arrows sit over the edges but not overlay content heavily */
.t-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: var(--accent);
  color: var(--accent-contrast);
  border-radius: 8px;
  padding: 8px 10px;
  border: none;
}
.t-btn.prev { left: 8px; }
.t-btn.next { right: 8px; }

/* ---------- Testimonial arrows: nicer placement (not overlapping content) ---------- */
/* Tweak these to your taste */
:root {
  --testimonial-arrow-offset: 8px;  /* how far outside the card the arrow sits (increase to move further out) */
  --testimonial-arrow-size: 36px;   /* size of the arrow button */
}

/* keep testimonials layout stable */
.testimonials { position: relative; }

/* give the viewport some horizontal breathing room so arrows don't cover content */
.t-viewport {
  padding: 0 calc(var(--testimonial-arrow-size) + var(--testimonial-arrow-offset) + 6px);
  box-sizing: border-box;
}

/* Arrows: smaller, round, slightly transparent, outside the viewport */
.t-btn {
  width: var(--testimonial-arrow-size);
  height: var(--testimonial-arrow-size);
  min-width: var(--testimonial-arrow-size);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background: rgba(0,0,0,0.08);
  color: var(--accent);
  border: none;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: transform .12s ease, background .12s;
}

/* left arrow sits outside the left edge */
.t-btn.prev {
  left: calc(-1 * (var(--testimonial-arrow-size) / 2) - var(--testimonial-arrow-offset));
}

/* right arrow sits outside the right edge */
.t-btn.next {
  right: calc(-1 * (var(--testimonial-arrow-size) / 2) - var(--testimonial-arrow-offset));
}

/* subtle hover/tap feedback */
.t-btn:hover, .t-btn:active {
  transform: translateY(-50%) scale(1.06);
  background: rgba(0,0,0,0.12);
}

/* On very small screens, move arrows just inside but smaller so they remain reachable */
@media (max-width: 420px) {
  :root { --testimonial-arrow-offset: 6px; --testimonial-arrow-size: 32px; }
  .t-viewport { padding: 0 calc(var(--testimonial-arrow-size) + var(--testimonial-arrow-offset) + 6px); }
  .t-btn.prev { left: 6px; }       /* keep a little inset on tiny screens */
  .t-btn.next { right: 6px; }
}

/* make sure the testimonial cards still align perfectly with translateX math */
.t-track { gap: 12px; padding: 8px 0; }
.testimonial { margin: 0; }



