@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --primary: #D49A2A; --secondary: #E58A17; --accent: #B3131B;
  --bg: #FAF7F2; --white: #ffffff; --text-dark: #222222;
  --text-mid: #3D3328; --text-light: #7A6A58; --border: #EDE5D8;
  --grad1: linear-gradient(135deg, #7A4A00 0%, #D49A2A 55%, #E58A17 100%);
  --shadow: 0 10px 40px rgba(212,154,42,0.14);
  --shadow-hover: 0 20px 60px rgba(212,154,42,0.26);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text-dark); overflow-x: hidden; }

/* NAV — mobile first */
:root { --nav-h: 64px; --pad-x: clamp(1rem, 5vw, 5%); }
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255,255,255,0.96); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--border); padding: 0 var(--pad-x); display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); transition: box-shadow .3s, background .3s; }
nav.scrolled { box-shadow: 0 4px 24px rgba(212,154,42,0.18); background: rgba(255,255,255,0.99); }
.nav-logo { display: flex; align-items: center; gap: clamp(6px,1.5vw,10px); text-decoration: none; flex-shrink: 0; min-width: 0; max-width: calc(100% - 80px); }
.nav-logo .logo-img {
  height: clamp(30px, 5vw, 42px);
  width: auto; max-width: clamp(90px,15vw,120px);
  object-fit: contain; border-radius: 6px; display: block; flex-shrink: 0;
}
.logo-img-footer { filter: brightness(0) invert(1); opacity: .9; }
.nav-logo span { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: clamp(.75rem,2vw,1.05rem); color: var(--text-dark); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-logo span small { display: block; font-size: clamp(.55rem,1vw,.65rem); font-weight: 400; color: var(--text-light); }
.nav-links { display: none; align-items: center; gap: clamp(14px,2vw,32px); list-style: none; }
.nav-links a { text-decoration: none; font-size: clamp(.78rem,1.2vw,.9rem); font-weight: 500; color: var(--text-mid); transition: color .25s; position: relative; white-space: nowrap; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 2px; background: var(--primary); transform: scaleX(0); transition: transform .25s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta { display: none; background: var(--grad1); color: #fff; border: none; border-radius: 8px; padding: clamp(8px,1.2vw,10px) clamp(14px,2vw,22px); font-size: clamp(.78rem,1.1vw,.88rem); font-weight: 600; cursor: pointer; transition: transform .2s, box-shadow .2s; text-decoration: none; white-space: nowrap; flex-shrink: 0; align-items: center; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212,154,42,.40); }
.hamburger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; margin-right: -8px; background: none; border: none; border-radius: 8px; transition: background .2s; flex-shrink: 0; outline: none; }
.hamburger:hover { background: rgba(212,154,42,0.08); }
.hamburger span { width: 22px; height: 2px; background: var(--text-dark); transition: all .3s ease; border-radius: 2px; display: block; }
nav.open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
nav.open .hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
nav.open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile-drawer { display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 10px var(--pad-x) 18px; flex-direction: column; gap: 3px; box-shadow: 0 12px 40px rgba(0,0,0,.10); z-index: 998; max-height: calc(100vh - var(--nav-h)); overflow-y: auto; }
nav.open .nav-mobile-drawer { display: flex; }
.nav-mobile-drawer li { list-style: none; }
.nav-mobile-drawer a { display: flex; align-items: center; padding: 12px 14px; border-radius: 10px; text-decoration: none; font-size: clamp(.88rem,2.5vw,.95rem); font-weight: 500; color: var(--text-mid); transition: all .2s; min-height: 48px; }
.nav-mobile-drawer a:hover, .nav-mobile-drawer a.active { background: #FFF8EC; color: var(--primary); }
.nav-mobile-drawer .drawer-cta { margin-top: 10px; display: flex; align-items: center; justify-content: center; background: var(--grad1); color: #fff; padding: 14px; border-radius: 10px; font-weight: 600; text-decoration: none; font-size: clamp(.88rem,2.5vw,.92rem); min-height: 52px; }

/* PAGE HERO */
.page-hero { min-height: clamp(40vh,52vh,60vh); background: var(--grad1); display: flex; align-items: center; justify-content: center; text-align: center; padding: clamp(5rem,12vw,7rem) var(--pad-x) clamp(2.5rem,6vw,4rem); position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/svg%3E"); }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .2; pointer-events: none; }
.blob-1 { width: 400px; height: 400px; background: #B3131B; top: -80px; right: 5%; }
.blob-2 { width: 300px; height: 300px; background: #E58A17; bottom: -60px; left: 5%; }
.page-hero-content { position: relative; z-index: 2; }
.page-hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25); border-radius: 50px; padding: 6px 18px; margin-bottom: 20px; color: #FFD97A; font-size: .8rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.page-hero h1 { font-family: 'Outfit', sans-serif; font-size: clamp(2rem,4.5vw,3.2rem); font-weight: 800; color: #fff; margin-bottom: 18px; }
.page-hero p { color: rgba(255,255,255,.85); font-size: 1.05rem; max-width: 580px; margin: 0 auto; line-height: 1.75; }

/* BREADCRUMB */
.breadcrumb { background: #fff; padding: 14px 5%; border-bottom: 1px solid var(--border); }
.breadcrumb ul { display: flex; align-items: center; gap: 8px; list-style: none; font-size: .82rem; color: var(--text-light); }
.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb li::after { content: '›'; margin-left: 8px; }
.breadcrumb li:last-child::after { display: none; }

/* SECTIONS */
section { padding: clamp(3.5rem,8vw,5.5rem) var(--pad-x); }
.section-label { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font-size: clamp(.68rem,1.5vw,.8rem); font-weight: 600; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px; }
.section-label::before { content: ''; width: 20px; height: 2px; background: var(--primary); flex-shrink: 0; }
h2.section-title { font-family: 'Outfit', sans-serif; font-size: clamp(1.5rem,4.5vw,2.6rem); font-weight: 800; color: var(--text-dark); line-height: 1.2; margin-bottom: 16px; }
h2.section-title span { color: var(--primary); }
.section-sub { font-size: clamp(.85rem,2vw,1rem); color: var(--text-light); line-height: 1.75; max-width: 580px; }
.section-head { margin-bottom: clamp(2rem,5vw,3.5rem); }
.section-head.center { text-align: center; }
.section-head.center .section-label { justify-content: center; }
.section-head.center .section-label::before { display: none; }
.section-head.center .section-sub { margin: 0 auto; }

/* SERVICES GRID */
.services-main { background: #fff; }
.services-cat-grid { display: grid; grid-template-columns: 1fr; gap: clamp(16px,3vw,28px); }
.svc-cat-card {
  background: var(--bg); border-radius: 20px; padding: 32px 28px;
  border: 1.5px solid var(--border); transition: all .35s;
  position: relative; overflow: hidden;
}
.svc-cat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--grad1); transform: scaleX(0); transition: transform .35s; transform-origin: left;
}
.svc-cat-card:hover { background: #fff; transform: translateY(-8px); box-shadow: var(--shadow-hover); border-color: transparent; }
.svc-cat-card:hover::before { transform: scaleX(1); }
.svc-cat-header { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.svc-cat-icon { width: 60px; height: 60px; border-radius: 14px; background: var(--grad1); display: flex; align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0; }
.svc-cat-card h3 { font-family: 'Outfit', sans-serif; font-size: 1.15rem; font-weight: 800; margin-bottom: 4px; }
.svc-cat-card > p { font-size: .88rem; color: var(--text-light); line-height: 1.6; margin-bottom: 18px; }
.svc-tests { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.svc-tests li { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--text-mid); }
.svc-tests li::before { content: '✓'; width: 20px; height: 20px; border-radius: 50%; background: #DCFCE7; color: #16A34A; display: flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 700; flex-shrink: 0; }

/* ── 4-CATEGORY TEST SECTIONS ── */
.all-tests { background: var(--bg); }

.cat-sections {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Each category block */
.cat-block {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  border: 1.5px solid var(--border);
  display: grid;
  grid-template-columns: 380px 1fr;
  min-height: 300px;
  box-shadow: 0 4px 20px rgba(212,154,42,.06);
  transition: box-shadow .3s;
}
.cat-block:hover {
  box-shadow: 0 16px 48px rgba(212,154,42,.18);
}
/* Odd: image left. Even: image right */
.cat-block--alt {
  grid-template-columns: 1fr 380px;
}
.cat-block--alt .cat-banner { order: 2; }
.cat-block--alt .cat-tests-grid { order: 1; }

/* Banner (image side) */
.cat-banner {
  position: relative;
  overflow: hidden;
}
.cat-banner img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.cat-block:hover .cat-banner img {
  transform: scale(1.05);
}
.cat-banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.08) 0%,
    rgba(212,154,42,0.18) 50%,
    rgba(13,8,4,0.62) 100%);
  display: flex;
  align-items: flex-end;
  padding: 28px 32px;
  gap: 16px;
}
.cat-num {
  font-family: 'Outfit', sans-serif;
  font-size: 3.5rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  position: absolute;
  top: 20px; right: 24px;
  letter-spacing: -2px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.cat-banner-text h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}
.cat-banner-text p {
  font-size: .82rem;
  color: rgba(255,255,255,.8);
  font-weight: 500;
}

/* Test tags grid (content side) */
.cat-tests-grid {
  padding: 32px 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-content: start;
}
.cat-test-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .84rem;
  font-weight: 500;
  color: var(--text-mid);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  transition: all .25s;
}
.cat-test-item::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--grad1);
  flex-shrink: 0;
}
.cat-test-item:hover {
  background: #FFF8EC;
  border-color: var(--primary);
  color: var(--primary);
  transform: translateX(4px);
}



/* HOME COLLECTION */
.home-collection { background: #fff; }
.hc-grid { display: grid; grid-template-columns: 1fr; gap: clamp(2rem,5vw,3.75rem); align-items: center; }
.hc-text p { font-size: .95rem; color: var(--text-light); line-height: 1.8; margin-bottom: 28px; }
.hc-steps { 
  display: flex; 
  flex-direction: column; 
  position: relative;
  margin-top: 10px;
}
.hc-steps::before {
  content: '';
  position: absolute;
  top: 12px; bottom: 42px; left: 23px;
  width: 2px;
  background: rgba(212,154,42,0.20);
  z-index: 0;
}
.hc-step { 
  display: flex; 
  align-items: flex-start; 
  gap: 24px; 
  position: relative;
  z-index: 1;
  padding-bottom: 32px;
  transition: transform .3s ease;
}
.hc-step:last-child { padding-bottom: 0; }
.hc-step:hover { transform: translateX(5px); }

.hc-num { 
  width: 48px; height: 48px; 
  border-radius: 50%; 
  background: #fff; 
  color: var(--primary); 
  display: flex; align-items: center; justify-content: center; 
  font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.1rem; 
  flex-shrink: 0; 
  border: 2px solid var(--primary);
  box-shadow: 0 4px 10px rgba(212,154,42,0.14);
  transition: all .3s;
}
.hc-step:hover .hc-num {
  background: var(--grad1);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(212,154,42,0.35);
  transform: scale(1.05);
}

.hc-step-text { padding-top: 5px; }
.hc-step h4 { font-family: 'Outfit', sans-serif; font-size: 1.1rem; font-weight: 800; margin-bottom: 6px; color: var(--text-dark); transition: color .3s; }
.hc-step:hover h4 { color: var(--primary); }
.hc-step p { font-size: .9rem; color: var(--text-light); margin: 0; line-height: 1.6; }
.hc-image { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); position: relative; height: 100%; min-height: 380px; max-height: 480px; }
.hc-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.hc-image:hover img { transform: scale(1.05); }

/* CTA SECTION */
.cta-section { background: var(--grad1); padding: 90px 5%; text-align: center; position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='20' cy='20' r='3'/%3E%3C/g%3E%3C/svg%3E"); }
.cta-section h2 { font-family: 'Outfit', sans-serif; font-size: clamp(1.8rem,3.5vw,2.6rem); font-weight: 800; color: #fff; margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,.85); font-size: 1.05rem; margin-bottom: 32px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }
.btn-primary { background: #fff; color: var(--primary); border: none; padding: 14px 28px; border-radius: 10px; font-size: .95rem; font-weight: 700; cursor: pointer; transition: all .25s; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.btn-primary:hover { background: #FFF8EC; transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.15); }
.btn-outline-white { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5); padding: 14px 28px; border-radius: 10px; font-size: .95rem; font-weight: 600; cursor: pointer; transition: all .25s; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.btn-outline-white:hover { background: rgba(255,255,255,.1); border-color: #fff; transform: translateY(-3px); }
.btn-blue { background: var(--grad1); color: #fff; border: none; padding: 14px 28px; border-radius: 10px; font-size: .95rem; font-weight: 600; cursor: pointer; transition: all .25s; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.btn-blue:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(212,154,42,.45); }

/* FOOTER */
footer { background: #0D0D0D; color: rgba(255,255,255,.75); padding: clamp(2rem,5vw,2.5rem) var(--pad-x) clamp(1rem,3vw,1.5rem); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: clamp(1.5rem,4vw,2rem); margin-bottom: clamp(1.75rem,4vw,3rem); }
.footer-brand p { font-size: clamp(.78rem,1.5vw,.88rem); line-height: 1.75; margin-top: 14px; max-width: 360px; }
.footer-col h4 { color: #fff; font-family: 'Outfit', sans-serif; font-weight: 700; font-size: clamp(.82rem,1.5vw,.95rem); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { color: rgba(255,255,255,.65); text-decoration: none; font-size: clamp(.76rem,1.3vw,.85rem); transition: color .2s; }
.footer-col ul a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: clamp(1rem,2.5vw,1.75rem); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; font-size: clamp(.7rem,1.2vw,.82rem); }

/* ANIMATIONS */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-50px); transition: opacity .7s ease, transform .7s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(50px); transition: opacity .7s ease, transform .7s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ══════════════════════════════════════
   SERVICES PAGE — RESPONSIVE BREAKPOINTS
   ══════════════════════════════════════ */

/* ── 480px: 2-col services grid ── */
@media (min-width: 480px) {
  .services-cat-grid { grid-template-columns: 1fr 1fr; }
}

/* ── 768px: tablet ── */
@media (min-width: 768px) {
  :root { --nav-h: 72px; }
  .nav-logo .logo-img { height: 42px; }
  .nav-links { display: flex; }
  .nav-cta   { display: flex; }
  .hamburger { display: none; }
  .nav-mobile-drawer { display: none !important; }

  .hc-grid     { grid-template-columns: 1fr 1fr; gap: clamp(3rem,5vw,3.75rem); }
  .cat-block, .cat-block--alt { grid-template-columns: 300px 1fr; }
  .cat-block--alt   { grid-template-columns: 1fr 300px; }
  .cat-banner       { min-height: 280px; }
  .cat-tests-grid   { grid-template-columns: 1fr 1fr; padding: 24px 28px; }

  .footer-grid   { grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ── 1024px: laptop ── */
@media (min-width: 1024px) {
  .cat-block        { grid-template-columns: 380px 1fr; }
  .cat-block--alt   { grid-template-columns: 1fr 380px; }
  .cat-banner       { min-height: 300px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: clamp(2rem,3vw,3rem); }
}

/* ── 1440px ── */
@media (min-width: 1440px) {
  :root { --pad-x: clamp(4%,6vw,7%); }
}

/* ── 1920px ── */
@media (min-width: 1920px) {
  :root { --pad-x: clamp(6%,10vw,10%); }
}

/* ── 2560px ── */
@media (min-width: 2560px) {
  :root { --nav-h: 80px; --pad-x: clamp(10%,15vw,15%); }
  .nav-logo .logo-img { height: 52px; }
}
