:root {
  --orange: #e87722;
  --orange-dark: #c25e15;
  --navy: #0d3c55;
  --navy-dark: #08283a;
  --navy-soft: #1c5273;
  --text: #1a2332;
  --muted: #5a6473;
  --cream: #fffaf3;
  --bg-soft: #f6f7f9;
  --border: #e3e7ec;
  --shadow: 0 4px 18px rgba(13, 60, 85, .08);
  --shadow-lg: 0 18px 42px rgba(13, 60, 85, .16);
  --radius: 10px;
  --radius-lg: 18px;
  --max: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--orange-dark); }

h1, h2, h3, h4, h5 {
  font-family: 'Cabin', system-ui, sans-serif;
  color: var(--navy);
  margin: 0 0 .5em;
  font-weight: 600;
  line-height: 1.2;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1rem; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.muted { color: var(--muted); }

/* ---------- Nav ---------- */
.site-nav {
  position: fixed; inset: 0 0 auto 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: padding .25s ease, background-color .25s ease, box-shadow .25s ease, transform .3s ease;
}
.site-nav .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-nav .brand { display: inline-flex; align-items: center; }
.site-nav .brand img { height: 52px; width: auto; transition: height .25s ease; filter: drop-shadow(0 2px 6px rgba(0,0,0,.25)); }
.site-nav .nav-links {
  display: flex; gap: 2rem; align-items: center;
  list-style: none; margin: 0; padding: 0;
}
.site-nav .nav-links a {
  color: #fff; font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  padding: .25rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav .nav-links a:hover { color: var(--orange); border-bottom-color: var(--orange); }

.site-nav.scrolled {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  padding: .6rem 0;
}
.site-nav.scrolled .brand img { height: 40px; filter: none; }
.site-nav.scrolled .nav-links a { color: var(--navy); }
.site-nav.scrolled .nav-links a:hover { color: var(--orange); }

.site-nav.nav-hidden {
  transform: translateY(-100%);
  pointer-events: none;
}

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px;
  color: #fff;
}
.site-nav.scrolled .nav-toggle { color: var(--navy); }
.nav-toggle svg { width: 24px; height: 24px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 8rem 1.5rem 5rem;
  color: #fff; text-align: center;
  background:
    radial-gradient(circle at 80% 20%, rgba(232,119,34,.28), transparent 55%),
    radial-gradient(circle at 15% 80%, rgba(28,82,115,.45), transparent 55%),
    linear-gradient(135deg, var(--navy), var(--navy-dark));
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: url('../images/logo.png') center/min(560px, 60vw) no-repeat;
  opacity: .07;
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 820px; }
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero .lead {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  opacity: .9;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}
.hero .cta-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .95rem 1.85rem;
  border-radius: 999px;
  font-family: 'Cabin', sans-serif;
  font-weight: 600; font-size: .95rem;
  letter-spacing: .04em; text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); color: #fff; }

/* ---------- Sections ---------- */
section { padding: 5rem 0; }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 3.5rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-header h2::after {
  content: ""; display: block;
  width: 56px; height: 4px;
  background: var(--orange);
  border-radius: 2px;
  margin: 1rem auto 0;
}
.section-header .lead { color: var(--muted); font-size: 1.1rem; margin: 0; }

/* Story */
.story { background: var(--cream); }
.story .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}
.story .copy h2 { text-align: left; }
.story .copy h2::after { margin-left: 0; }
.story .copy .lead { color: var(--muted); margin: 0 0 1.25rem; }
.story .copy p { margin: 0 0 1rem; }
.story .copy p:last-child { margin-bottom: 0; }
.story .visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(232,119,34,.92), rgba(194,94,21,.92));
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.story .visual img {
  width: min(78%, 360px);
  filter: brightness(0) invert(1);
}
.story .visual::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.18), transparent 55%);
  pointer-events: none;
}

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.service-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 4px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-top-color: var(--orange); }
.service-card .icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 78px; height: 78px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(232,119,34,.16), rgba(232,119,34,.05));
  color: var(--orange);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}
.service-card h3 { color: var(--navy); margin-bottom: .75rem; }
.service-card p { color: var(--muted); margin: 0; }

/* Team */
.team { background: var(--bg-soft); }
.team-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: 920px; margin: 0 auto;
}
.team-card { text-align: center; }
.team-card .portrait {
  width: 200px; height: 200px;
  margin: 0 auto 1.5rem;
  border-radius: 50%; overflow: hidden;
  background: #fff;
  border: 4px solid #fff;
  box-shadow: var(--shadow);
  position: relative;
  transition: transform .2s ease;
}
.team-card:hover .portrait { transform: translateY(-4px); }
.team-card .portrait::after {
  content: ""; position: absolute; inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(232,119,34,.25);
  transition: box-shadow .25s ease;
}
.team-card:hover .portrait::after { box-shadow: inset 0 0 0 4px var(--orange); }
.team-card .portrait img { width: 100%; height: 100%; object-fit: cover; }
.team-card h4 { font-size: 1.2rem; color: var(--navy); margin: 0 0 .25rem; }
.team-card .role { color: var(--orange); font-weight: 600; font-size: .95rem; }

/* Testimonials */
.testi { background: #fff; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.testi-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem 2rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--orange);
}
.testi-card .quote {
  position: absolute; top: -18px; right: 24px;
  width: 40px; height: 40px;
  background: var(--orange); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: Georgia, serif; font-size: 1.5rem; font-weight: 700;
  box-shadow: var(--shadow);
}
.testi-card p {
  color: var(--text); font-style: italic;
  margin: 0 0 1.5rem;
}
.testi-card .author { display: flex; align-items: center; gap: 1rem; }
.testi-card .author img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.testi-card .author .name { font-weight: 700; color: var(--navy); }
.testi-card .author .org { font-size: .85rem; color: var(--muted); }

/* Contact */
.contact {
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  color: #fff;
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 30%, rgba(232,119,34,.18), transparent 55%);
  pointer-events: none;
}
.contact .container { position: relative; }
.contact .section-header h2 { color: #fff; }
.contact .section-header .lead { color: rgba(255,255,255,.85); }
.contact .contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 300px));
  gap: 1.5rem;
  justify-content: center;
  max-width: 960px;
  margin: 0 auto;
}
.contact .contact-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: transform .2s ease, background-color .2s ease;
}
.contact .contact-card:hover { background: rgba(255,255,255,.1); transform: translateY(-3px); }
.contact .contact-card .icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(232,119,34,.15);
  color: var(--orange);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.contact .contact-card h3 { color: #fff; font-size: 1.05rem; margin: 0 0 .35rem; }
.contact .contact-card a, .contact .contact-card span { color: rgba(255,255,255,.88); font-size: .95rem; }
.contact .contact-card a:hover { color: var(--orange); }

/* Footer */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,.7); padding: 3rem 0 2rem; }
.site-footer .container {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.5rem;
}
.site-footer .footer-brand { display: flex; align-items: center; gap: .9rem; }
.site-footer .footer-brand img { height: 36px; }
.site-footer .footer-brand .name { font-family: 'Cabin', sans-serif; color: #fff; font-weight: 600; }
.site-footer nav ul {
  display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0;
}
.site-footer nav a { color: rgba(255,255,255,.7); font-weight: 500; }
.site-footer nav a:hover { color: var(--orange); }
.site-footer .copyright { font-size: .9rem; }
.site-footer .social { display: flex; gap: .5rem; }
.site-footer .social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.85);
}
.site-footer .social a:hover { background: var(--orange); color: #fff; }

/* Subtle fade on scroll-into-view (kept opt-in via .observe-only) */
@media (prefers-reduced-motion: no-preference) {
  html.js-on .reveal.observe-only { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
  html.js-on .reveal.visible { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 900px) {
  .hero { min-height: auto; padding-top: 7rem; padding-bottom: 4rem; }
  .story .grid,
  .services-grid,
  .team-grid,
  .testi-grid,
  .contact .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .team-grid { max-width: 360px; }

  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav .nav-links { display: none; }
  .site-nav.open .nav-links {
    display: flex; flex-direction: column; gap: 1rem;
    position: absolute; top: 100%; right: 1rem; left: 1rem;
    background: #fff; padding: 1.25rem; border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
  }
  .site-nav.open .nav-links a { color: var(--navy); border-bottom: 0; }
  .site-footer .container { justify-content: center; text-align: center; }
  .site-footer nav ul { justify-content: center; }
}
