:root {
  --navy: #0f4c66;
  --navy-deep: #082f3d;
  --navy-light: #17738f;
  --teal: #29a3dc;
  --teal-deep: #0b6f95;
  --teal-light: #8ad9f5;
  --orange: #e8790a;
  --orange-light: #f0aa00;
  --red: #c8123c;
  --ink: #2b2620;
  --gray-50: #f1e8d3;
  --gray-100: #e8dcbf;
  --gray-300: #ddcfa8;
  --gray-600: #6e6656;
  --white: #fffaf2;
  --cream: #faf3e6;
  --surface: #fffdf7;
  --shadow: 0 10px 30px rgba(50, 40, 20, 0.08);
  --shadow-lg: 0 24px 60px rgba(50, 40, 20, 0.16);
  --shadow-navy: 0 16px 40px rgba(15, 76, 102, 0.28);
  --radius: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@view-transition { navigation: auto; }

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  line-height: 1.7;
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--orange); color: var(--white); }

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--gray-50); }
::-webkit-scrollbar-thumb { background: var(--navy-light); border-radius: 10px; border: 3px solid var(--gray-50); }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', 'Georgia', serif;
  color: var(--navy);
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: 3rem; font-weight: 500; }
h2 { font-size: 2.15rem; font-weight: 500; }
h3 { font-size: 1.3rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--red));
  border-radius: 2px;
  flex-shrink: 0;
}
.eyebrow.on-dark { color: var(--orange-light); }

.section { padding: 110px 0; }
.section-gray { background: var(--gray-50); }

.section-head { max-width: 640px; margin-bottom: 54px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::before { display: none; }

.lede { color: var(--gray-600); font-size: 1.1rem; margin-top: 16px; }

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-group.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-group > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-group > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-group > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-group > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-group > *:nth-child(4) { transition-delay: 0.35s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-group > * { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
  overflow: hidden;
  isolation: isolate;
}
.btn-primary {
  background: linear-gradient(135deg, var(--orange) 0%, #d65f06 100%);
  color: var(--white);
  box-shadow: 0 10px 26px rgba(232, 121, 10, 0.32);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(232, 121, 10, 0.42); }

.btn-red {
  background: linear-gradient(135deg, var(--red) 0%, #970e2f 100%);
  color: var(--white);
  box-shadow: 0 10px 26px rgba(200, 18, 60, 0.34);
}
.btn-red:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(200, 18, 60, 0.44); }

.btn-outline {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.45);
  color: var(--white);
  backdrop-filter: blur(6px);
}
.btn-outline:hover { background: rgba(255,255,255,0.14); border-color: var(--white); transform: translateY(-3px); }

.btn-navy {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(15, 76, 102, 0.3);
}
.btn-navy:hover { background: var(--navy-light); transform: translateY(-3px); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(250,243,230,0.85);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(50,40,20,0.08);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: 0 8px 30px rgba(50,40,20,0.1); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: opacity 0.25s ease;
}
.brand:hover { opacity: 0.8; }
.brand img { height: 50px; width: auto; }
.brand-text {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.18;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}
.brand-text span { display: block; font-family: 'Inter', sans-serif; color: var(--teal-deep); font-size: 0.68rem; letter-spacing: 0.1em; font-weight: 600; margin-top: 2px; }

nav.main-nav ul { display: flex; gap: 36px; list-style: none; }
nav.main-nav a {
  font-weight: 500;
  font-size: 0.94rem;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
  transition: color 0.25s ease;
}
nav.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--teal));
  border-radius: 2px;
  transition: width 0.3s var(--ease);
}
nav.main-nav a:hover { color: var(--teal-deep); }
nav.main-nav a:hover::after, nav.main-nav a.active::after { width: 100%; }
nav.main-nav a.active { color: var(--navy); font-weight: 600; }

.header-cta { display: flex; align-items: center; gap: 22px; }
.header-phone {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--navy); font-size: 0.92rem;
  transition: color 0.25s ease;
}
.header-phone:hover { color: var(--teal-deep); }
.header-phone svg { width: 18px; height: 18px; stroke: var(--teal); }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px;
}
.nav-toggle span { width: 26px; height: 2.5px; background: var(--navy); border-radius: 2px; }

/* Hero */
.hero {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
  color: var(--white);
  background-size: cover;
  background-position: center;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(80% 100% at 15% 15%, rgba(41, 163, 220, 0.5) 0%, rgba(41,163,220,0) 55%),
    linear-gradient(105deg, rgba(8,47,61,0.94) 0%, rgba(8,47,61,0.84) 42%, rgba(11,111,149,0.55) 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: 680px; }
.hero h1 { color: var(--white); font-size: 3.2rem; margin-bottom: 22px; }
.hero p.lede { color: rgba(255,255,255,0.86); font-size: 1.18rem; max-width: 560px; }
.hero-actions { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }

.hero-inner > * { opacity: 0; transform: translateY(24px); animation: heroUp 0.9s var(--ease) forwards; }
.hero-inner > *:nth-child(1) { animation-delay: 0.1s; }
.hero-inner > *:nth-child(2) { animation-delay: 0.22s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.34s; }
.hero-inner > *:nth-child(4) { animation-delay: 0.46s; }
@keyframes heroUp { to { opacity: 1; transform: translateY(0); } }

.page-hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  color: var(--white);
  background-size: cover;
  background-position: center;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(8,47,61,0.94) 0%, rgba(11,111,149,0.62) 100%);
}
.page-hero-inner { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); font-size: 2.5rem; }
.breadcrumb { color: rgba(255,255,255,0.7); font-size: 0.88rem; margin-top: 12px; letter-spacing: 0.02em; }

/* Floating stat card */
.stat-float-wrap { position: relative; z-index: 3; }
.stat-strip {
  background: var(--navy);
  background-image: radial-gradient(60% 120% at 90% 0%, rgba(41,163,220,0.4) 0%, rgba(41,163,220,0) 60%);
  color: var(--white);
  padding: 44px 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-navy);
  margin-top: -86px;
}
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-grid div:not(:last-child) { border-right: 1px solid rgba(255,255,255,0.15); }
.stat-grid .num {
  font-family: 'Fraunces', serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--orange-light);
}
.stat-grid .label { font-size: 0.84rem; color: rgba(255,255,255,0.8); margin-top: 6px; letter-spacing: 0.02em; }

/* Service cards */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }

.card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(50,40,20,0.06);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card-img { height: 175px; overflow: hidden; }
.card-img img { height: 100%; width: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.card:hover .card-img img { transform: scale(1.08); }
.card-body { padding: 26px; }
.card-body h3 { margin-bottom: 10px; font-size: 1.14rem; }
.card-body p { color: var(--gray-600); font-size: 0.94rem; }
.card-icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px; font-weight: 600; font-size: 0.88rem; color: var(--teal-deep);
  transition: gap 0.25s ease, color 0.25s ease;
}
.card-link:hover { gap: 10px; color: var(--orange); }

.badge-teal { background: rgba(41,163,220,0.15); }
.badge-orange { background: rgba(232,121,10,0.12); }
.badge-red { background: rgba(200,18,60,0.1); }
.badge-navy { background: rgba(15,76,102,0.1); }

/* About split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.check-list { list-style: none; margin-top: 22px; }
.check-list li {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 15px; font-size: 0.98rem; color: var(--gray-600);
}
.check-list li svg {
  flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; padding: 3px;
  stroke: var(--teal-deep); background: rgba(41,163,220,0.14); border-radius: 50%;
}

/* Info table */
.info-table {
  width: 100%; border-collapse: collapse; background: var(--surface);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid rgba(50,40,20,0.06);
}
.info-table tr:not(:last-child) td { border-bottom: 1px solid var(--gray-100); }
.info-table td { padding: 20px 26px; font-size: 0.95rem; }
.info-table td:first-child { font-weight: 600; color: var(--navy); width: 42%; background: var(--gray-50); }
.info-table td:last-child { color: var(--gray-600); }

/* Services detail rows */
.service-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: center; padding: 70px 0;
}
.service-row:not(:last-child) { border-bottom: 1px solid var(--gray-100); }
.service-row.reverse .service-media { order: 2; }
.service-row.reverse .service-text { order: 1; }
.service-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; height: 320px; object-fit: cover; transition: transform 0.6s var(--ease); }
.service-media { overflow: hidden; border-radius: var(--radius); }
.service-media:hover img { transform: scale(1.04); }
.service-num {
  font-family: 'Fraunces', serif; font-size: 0.95rem; font-weight: 600;
  background: linear-gradient(135deg, var(--orange-light), var(--orange));
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px; color: var(--white);
}
.service-num.red { background: linear-gradient(135deg, #e0446a, var(--red)); }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; counter-reset: step; }
.step { position: relative; padding-top: 12px; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: 'Fraunces', serif;
  font-size: 2.6rem;
  font-weight: 500;
  background: linear-gradient(135deg, var(--teal), var(--navy-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 12px;
}
.step:nth-child(2)::before, .step:nth-child(4)::before {
  background: linear-gradient(135deg, #e0446a, var(--red));
  -webkit-background-clip: text;
  background-clip: text;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--gray-600); font-size: 0.92rem; }

/* CTA band */
.cta-band {
  position: relative;
  background: var(--navy);
  background-image:
    radial-gradient(60% 140% at 100% 0%, rgba(41,163,220,0.42) 0%, rgba(41,163,220,0) 60%),
    radial-gradient(50% 100% at 0% 100%, rgba(232,121,10,0.24) 0%, rgba(232,121,10,0) 60%);
  color: var(--white);
  padding: 84px 0;
  text-align: center;
  overflow: hidden;
}
.cta-band h2 { color: var(--white); }
.cta-band .lede { color: rgba(255,255,255,0.85); max-width: 600px; margin: 16px auto 0; }
.cta-band .hero-actions { justify-content: center; margin-top: 32px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; }
.contact-card {
  display: flex; gap: 18px; background: var(--surface); padding: 26px;
  border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid rgba(50,40,20,0.06);
  margin-bottom: 18px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.contact-card .icon {
  width: 46px; height: 46px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; background: rgba(41,163,220,0.15);
}
.contact-card .icon svg { width: 22px; height: 22px; stroke: var(--teal-deep); }
.contact-card .icon.icon-red { background: rgba(200,18,60,0.14); }
.contact-card .icon.icon-red svg { stroke: var(--red); }
.contact-card .icon.icon-orange { background: rgba(232,121,10,0.15); }
.contact-card .icon.icon-orange svg { stroke: var(--orange); }
.contact-card h3 { font-size: 1rem; margin-bottom: 5px; }
.contact-card p, .contact-card a { color: var(--gray-600); font-size: 0.94rem; }
.contact-card a:hover { color: var(--teal-deep); }
.map-frame {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid rgba(50,40,20,0.06);
  width: 100%; height: 100%; min-height: 460px;
}

/* Footer */
.site-footer {
  position: relative;
  background: var(--navy-deep);
  color: rgba(255,255,255,0.85);
  padding: 64px 0 26px;
}
.site-footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--orange), var(--red));
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand img { height: 40px; }
.footer-brand span { font-family: 'Fraunces', serif; font-weight: 600; color: var(--white); font-size: 0.95rem; }
.site-footer h4 { color: var(--white); font-size: 0.92rem; margin-bottom: 18px; letter-spacing: 0.04em; font-weight: 600; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 11px; }
.footer-links a { font-size: 0.9rem; color: rgba(255,255,255,0.68); transition: color 0.25s ease, padding-left 0.25s ease; }
.footer-links a:hover { color: var(--orange-light); padding-left: 4px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; font-size: 0.82rem; color: rgba(255,255,255,0.5);
  flex-wrap: wrap; gap: 10px;
}

/* View Transitions (native cross-document, Chromium/WebKit) */
::view-transition-old(root) {
  animation: viewFadeOut 0.45s var(--ease) forwards;
}
::view-transition-new(root) {
  animation: viewFadeIn 0.55s var(--ease) forwards;
}
@keyframes viewFadeOut {
  to { opacity: 0; transform: translateY(-10px) scale(0.99); }
}
@keyframes viewFadeIn {
  from { opacity: 0; transform: translateY(10px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Responsive */
@media (max-width: 900px) {
  h1 { font-size: 2.1rem; }
  .hero h1 { font-size: 2.2rem; }
  nav.main-nav { position: fixed; top: 76px; left: 0; right: 0; background: rgba(250,243,230,0.98);
    backdrop-filter: blur(14px);
    flex-direction: column; padding: 20px 24px; box-shadow: var(--shadow-lg);
    transform: translateY(-150%); transition: transform 0.35s var(--ease); }
  nav.main-nav.open { transform: translateY(0); }
  nav.main-nav ul { flex-direction: column; gap: 18px; }
  .nav-toggle { display: flex; }
  .header-phone { display: none; }
  .header-cta .btn-navy { display: none; }
  .brand img { height: 40px; }
  .brand-text { font-size: 0.72rem; }
  .brand-text span { font-size: 0.6rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; gap: 24px; padding: 44px 0; }
  .service-row.reverse .service-media { order: 1; }
  .service-row.reverse .service-text { order: 2; }
  .stat-strip { margin-top: -50px; padding: 30px 20px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 10px; }
  .stat-grid div:nth-child(2) { border-right: none; }
  .stat-grid div { border-right: none !important; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}
