:root{
  --brand:#c11f1f;
  --brand-ink:#ffffff;

  --ink:#0f172a;
  --muted:#64748b;

  --bg:#ffffff;
  --page:#ffffff;

  --card:#ffffff;
  --line:rgba(15, 23, 42, 0.08);

  --shadow:0 10px 22px rgba(15, 23, 42, 0.10);
  --shadow-soft:0 8px 18px rgba(15, 23, 42, 0.08);

  --radius:14px;
  --radius-lg:18px;

  --container:1180px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--ink);
  background:var(--page);
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
p{ margin:0; }

.container{
  width:min(var(--container), calc(100% - 56px));
  margin:0 auto;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 18px;
  border-radius:10px;
  font-weight:700;
  font-size:13px;
  border:0;
  cursor:pointer;
  white-space:nowrap;
  transition:transform .06s ease, filter .2s ease, background .2s ease, border-color .2s ease;
}
.btn:active{ transform:translateY(1px); }
.btn-primary{
  background:var(--brand);
  color:var(--brand-ink);
  box-shadow:0 10px 18px rgba(193, 31, 31, 0.35);
}
.btn-primary:hover{ filter:brightness(1.05); }

.btn-outline{
  background:transparent;
  color:#fff;
  border:2px solid rgba(255,255,255,0.55);
}
.btn-outline:hover{
  border-color:rgba(255,255,255,0.85);
  background:rgba(255,255,255,0.06);
}

/* HERO */
.hero{
  position:relative;
  min-height:720px;
  overflow:hidden;
}
.hero-bg{
  position:absolute;
  inset:0;
  background: url("./assets/hero.jpg") center/cover no-repeat;
  transform:scale(1.02);
}
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0); /* opacity set to zero */
  pointer-events:none;
}
.hero-content{
  position:absolute;
  inset:0;
  z-index:2;
}
.hero-content h1{
  margin:0 auto;
  max-width: 980px;
  font-size: clamp(34px, 4.4vw, 60px);
  line-height:1.08;
  letter-spacing:-0.02em;
  text-shadow:0 16px 30px rgba(0,0,0,0.35);
}
.hero-content p{
  margin:18px auto 0;
  max-width: 740px;
  color: rgba(255,255,255,0.86);
  font-size: 15px;
  line-height:1.6;
  text-shadow:0 12px 22px rgba(0,0,0,0.22);
}
.hero-actions{
  position:absolute;
  left:50%;
  top: 62%;
  transform: translate(-50%, -50%);
  display:flex;
  justify-content:center;
  gap:14px;
  flex-wrap:wrap;
  opacity: 0; /* invisible overlay; aligns to baked-in buttons */
}
.hero-actions .btn{
  pointer-events:auto;
}

/* NAV */
.nav-wrap{
  position:absolute;
  left:0; right:0; top:0;
  z-index:10;
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding: 18px 0;
}
.brand img{
  height:34px;
  width:auto;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.25));
}
.nav-links{
  display:flex;
  align-items:center;
  gap:22px;
  margin-left:auto; /* push menu items right */
  font-size:13px;
  font-weight:600;
  color: rgba(15,23,42,0.72);
}
.nav-links a{ padding:6px 2px; }
.nav-links a:hover{ color: rgba(15,23,42,0.95); }

.menu-btn{
  display:none;
  border:1px solid rgba(15,23,42,0.16);
  background:#fff;
  border-radius:10px;
  padding:10px 12px;
  cursor:pointer;
  font-weight:800;
}
.nav-actions{
  display:flex;
  align-items:center;
  gap:12px;
}

/* When over hero (default) we want dark text? Your screenshot shows dark nav text on hero.
   We'll keep it dark; if you prefer white, set .nav-wrap.on-hero .nav-links color to white. */

.mobile-menu{
  display:none;
  padding: 10px 0 14px;
}
.mobile-menu a{
  display:block;
  padding:10px 0;
  font-weight:700;
  color: rgba(15,23,42,0.78);
}

/* Sticky white bar on scroll (matches screenshot 2) */
.nav-wrap.scrolled{
  position:fixed;
  background:#fff;
  box-shadow: 0 3px 10px rgba(15,23,42,0.12);
}
.nav-wrap.scrolled .brand img{
  filter:none;
}
.nav-wrap.scrolled .nav-links{ color: rgba(15,23,42,0.72); }

/* Sections */
.section{
  padding: 64px 0 76px;
  background:#fff;
}
.section-head{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.section-head.center{
  text-align:center;
  align-items:center;
}
.section-head h2{
  margin:0;
  font-size: 34px;
  letter-spacing:-0.02em;
}
.section-head p{
  color: var(--muted);
  font-size: 14px;
}

/* Services overview cards (flex wrap centers last row) */
.cards{
  margin-top: 40px;
  display:flex;
  flex-wrap:wrap;
  gap: 26px;
  justify-content:center;
}
.service-card{
  width: 345px;
  background:var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  transition: transform .12s ease, box-shadow .2s ease;
}
.service-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(15,23,42,0.12);
}
.service-img{
  position:relative;
  height: 165px;
  background:#111827;
}
.service-img img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.icon-badge{
  position:absolute;
  left: 14px;
  top: 86px;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--brand);
  display:grid;
  place-items:center;
  box-shadow: 0 10px 18px rgba(193,31,31,0.25);
}
.icon-badge svg{
  width:18px;
  height:18px;
  fill:none;
  stroke:#fff;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.service-body{
  padding: 18px 18px 20px;
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.service-body h3{
  margin:0;
  font-size: 15px;
}
.service-body p{
  color: var(--muted);
  font-size: 12.5px;
  line-height:1.6;
}
.learn{
  margin-top: 6px;
  color: var(--brand);
  font-weight: 700;
  font-size: 12px;
}
.arrow{ margin-left: 6px; }

/* Detail sections */
.detail{
  background:#fff;
  padding: 44px 0 44px;
  border-top: 1px solid rgba(15,23,42,0.05);
}
.detail-top{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items:center;
  padding-top: 16px;
}

/* Ensure title + image stay in their own cells (prevents overlap) */
.detail-top.left-img{
  grid-template-areas: "media title";
}
.detail-top.right-img{
  grid-template-areas: "title media";
}
.detail-title{ grid-area:title; display:flex; align-items:center; gap:14px; }
.detail-media{ grid-area:media; }
.detail-title{ grid-area:title; display:flex; align-items:center; gap:14px; }
.detail-media{ grid-area:media; }
.detail-media img{
  width:100%;
  height: 240px;
  object-fit:cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.detail-icon{
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--brand);
  display:grid;
  place-items:center;
}
.detail-icon svg{
  width: 18px;
  height: 18px;
  fill:none;
  stroke:#fff;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.detail-title h2{
  margin:0;
  font-size: 30px;
  letter-spacing:-0.02em;
}

.detail-body{
  padding: 30px 0 0;
}
.detail-body h3{
  margin: 34px 0 12px;
  font-size: 20px;
  letter-spacing:-0.01em;
}
.detail-body p{
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
  max-width: 980px;
}
.detail-body .muted{ color: var(--muted); }
.note{
  margin-top: 18px;
  color: #64748b;
  font-size: 12.5px;
  line-height: 1.7;
}
.mt-56{ margin-top:56px; }

.why-grid{
  margin-top: 18px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.why-card{
  background: #fff7f7;
  border: 1px solid rgba(193,31,31,0.18);
  border-radius: 10px;
  padding: 18px;
}
.why-card h4{
  margin:0 0 10px;
  font-size: 13px;
}
.why-card p{
  margin:0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}

/* Steps list */
.steps{
  margin: 18px 0 0;
  padding:0;
  list-style:none;
  display:grid;
  gap: 18px;
  max-width: 980px;
}
.steps li{
  display:grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items:start;
}
.step-n{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--brand);
  color:#fff;
  display:grid;
  place-items:center;
  font-weight:800;
  font-size: 12px;
}
.steps h4{
  margin: 0;
  font-size: 13px;
}
.steps p{
  margin-top: 6px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

/* ABOUT (pink band) */
.about{
  background: #fff5f5;
  padding: 84px 0;
}
.about-inner{
  text-align:center;
}
.about-inner h2{
  margin:0;
  font-size: 34px;
  letter-spacing:-0.02em;
}
.about-inner p{
  margin: 12px auto 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

/* Testimonials */
.testimonials{
  margin-top: 40px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.t-card{
  background:#fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.t-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
}
.t-person{
  display:flex;
  align-items:center;
  gap: 12px;
}
.avatar{
  width:42px;
  height:42px;
  border-radius:999px;
  object-fit:cover;
  border: 1px solid rgba(15,23,42,0.10);
}
.t-name{
  font-weight:800;
  font-size: 12.5px;
}
.t-role{
  font-size: 11px;
  color: var(--muted);
  font-weight:700;
}
.t-company{
  font-size: 11px;
  color: var(--brand);
  font-weight:700;
}
.quote{
  color: rgba(193,31,31,0.25);
  font-size: 44px;
  line-height: 1;
  font-weight: 900;
  transform: translateY(-4px);
}
.stars{
  margin-top: 12px;
  color: var(--brand);
  letter-spacing: 2px;
  font-size: 12px;
}
.t-card p{
  margin-top: 10px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

/* Team */
.team{
  margin-top: 40px;
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.team-card{
  background:#fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
}
.team-card img{
  width:100%;
  height: 200px;
  object-fit:cover;
}
.team-body{
  padding: 16px 16px 18px;
}
.team-body h3{
  margin:0;
  font-size: 13px;
}
.team-role{
  margin-top: 8px;
  color: var(--brand);
  font-weight:700;
  font-size: 11.5px;
}
.team-body p{
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

/* Contact */
.contact{
  background: #4b5563;
  padding: 72px 0;
  color:#fff;
}
.contact-inner{
  text-align:center;
}
.contact-inner h2{
  margin:0;
  font-size: 34px;
}
.contact-inner p{
  margin: 10px auto 0;
  max-width: 760px;
  color: rgba(255,255,255,0.82);
  font-size: 13.5px;
  line-height: 1.6;
}
.contact-grid{
  margin: 34px auto 0;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 860px;
}
.contact-item{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 10px;
}
.contact-icon{
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: var(--brand);
  display:grid;
  place-items:center;
  box-shadow: 0 14px 26px rgba(0,0,0,0.18);
}
.contact-icon svg{
  width: 22px;
  height: 22px;
  fill:none;
  stroke:#fff;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.contact-label{
  font-weight:800;
  margin-top: 2px;
}
.contact-value{
  color: rgba(255,255,255,0.88);
  font-size: 12.5px;
}
.contact-value a{ text-decoration:none; }
.contact-cta{
  margin-top: 28px;
  padding: 12px 22px;
}

/* Footer */
.footer{
  background:#0b1220;
  color: rgba(255,255,255,0.78);
  padding: 26px 0;
}
.footer-inner{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 14px;
  text-align:center;
}
.footer-logo{
  height: 34px;
  width:auto;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.25));
}

/* Responsive */
@media (max-width: 980px){
  .nav-links{ display:none; }
  .menu-btn{ display:inline-flex; }
  .mobile-menu{ display:none; }
  .testimonials{ grid-template-columns: 1fr; }
  .team{ grid-template-columns: repeat(2, 1fr); }
  .detail-top{ grid-template-columns: 1fr; }
  .detail-top.left-img, .detail-top.right-img{ grid-template-areas: "title" "media"; }
  .why-grid{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .hero-content{
  position:absolute;
  inset:0;
  z-index:2;
}
}

@media (max-width: 560px){
  .container{ width: min(var(--container), calc(100% - 34px)); }
  .hero{ min-height: 660px; }
  .hero-content h1{ font-size: 34px; }
}


/* Active nav link (scrollspy) */
.nav-links a.active,
.mobile-menu a.active{
  color: var(--brand) !important;
  font-weight: 800;
}
.nav-links a.active{
  position:relative;
}
.nav-links a.active::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-8px;
  height:2px;
  background: var(--brand);
  border-radius:999px;
}

/* Accordion (service detail sections) */
.detail .detail-top{
  position:relative;
}
.acc-toggle{
  justify-self:end;
  align-self:center;
  width:38px;
  height:38px;
  border-radius:10px;
  border:1px solid rgba(15,23,42,0.10);
  background:#fff;
  box-shadow: 0 6px 14px rgba(15,23,42,0.08);
  display:grid;
  place-items:center;
  cursor:pointer;
  transition: transform .12s ease, background .2s ease, border-color .2s ease;
}
.acc-toggle:hover{
  border-color: rgba(193,31,31,0.30);
}
.acc-toggle svg{
  width:18px;
  height:18px;
  fill:none;
  stroke: rgba(15,23,42,0.70);
  stroke-width: 2.5;
  stroke-linecap:round;
  stroke-linejoin:round;
  transition: transform .18s ease;
}
.detail.open .acc-toggle svg{
  transform: rotate(180deg);
}

/* Make header row clickable feel */
.detail-top{
  cursor:pointer;
}
.detail-top a, .detail-top button { cursor:pointer; }

/* Collapsible content */
.detail .acc-content{
  max-height: 0px;
  overflow: hidden;
  transition: max-height .28s ease;
  padding-top: 0 !important;
}
.detail.open .acc-content{
  /* JS sets max-height; keep padding via inner flow */
  padding-top: 30px !important;
}

/* Team placeholders (for staff without images yet) */
.team-photo.placeholder{
  background: linear-gradient(135deg, rgba(15,23,42,0.06), rgba(193,31,31,0.10));
  border: 1px solid rgba(15,23,42,0.06);
}
.team-bio{ display:none; }


/* Uniform team image sizing & crop */
.team-photo{
  width:100%;
  aspect-ratio: 1 / 1;
  overflow:hidden;
  border-radius:14px;
  background:#f4f4f4;
}

.team-photo img{
  width:100%;
  height:100%;
  object-fit: cover;
  object-position: center;
  display:block;
}

/* Hide sections tagged as hidden */
section[data-hidden="true"]{ display:none !important; }
