@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/montserrat-latin.woff2') format('woff2');
}

:root {
  --purple-900: #211a38;
  --purple-700: #3b2d63;
  --purple-600: #4d3a7c;
  --plum-500: #7b4a7c;
  --orange-500: #ec7f1f;
  --orange-400: #f39a4a;
  --orange-700: #a4520b;
  --gray-900: #1f2024;
  --gray-700: #4f5157;
  --gray-500: #7a7c83;
  --gray-200: #e6e4ec;
  --surface: #ffffff;
  --surface-soft: #f6f4f9;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 8px rgba(33, 26, 56, 0.06);
  --shadow: 0 12px 32px rgba(33, 26, 56, 0.1);
  --shadow-lg: 0 24px 60px rgba(33, 26, 56, 0.16);
  --gradient-brand: linear-gradient(135deg, var(--purple-700) 0%, var(--plum-500) 60%, var(--orange-500) 130%);
  --container: 1180px;
  --header-height: 84px;
  --font: 'Montserrat', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--gray-700);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--purple-600);
}

h1,
h2,
h3 {
  margin: 0 0 0.6em;
  color: var(--purple-900);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem);
}

h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1em;
}

address {
  font-style: normal;
}

:focus-visible {
  outline: 3px solid var(--orange-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--purple-700);
  color: #fff;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--purple-700);
  color: #fff;
  box-shadow: 0 8px 20px rgba(59, 45, 99, 0.28);
}

.btn-primary:hover {
  background: var(--purple-600);
}

.btn-accent {
  background: var(--orange-500);
  color: var(--purple-900);
  box-shadow: 0 8px 20px rgba(236, 127, 31, 0.3);
}

.btn-accent:hover {
  background: var(--orange-400);
}

.btn-outline {
  border-color: var(--purple-700);
  color: var(--purple-700);
  background: transparent;
}

.btn-outline:hover {
  background: var(--purple-700);
  color: #fff;
}

.btn-lg {
  min-height: 56px;
  padding-inline: 2rem;
  font-size: 1.05rem;
}

.text-link {
  display: inline-flex;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--purple-700);
  text-decoration: none;
}

.text-link:hover {
  color: var(--orange-700);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
  border-color: var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-height);
}

.brand img {
  width: auto;
  height: 58px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-list {
  display: flex;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  display: block;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  color: var(--gray-900);
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-list a:hover {
  background: var(--surface-soft);
  color: var(--purple-700);
}

.nav-list a[aria-current='page'] {
  color: var(--purple-700);
  font-weight: 700;
  background: var(--surface-soft);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: var(--surface-soft);
  cursor: pointer;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute;
  left: 50%;
  width: 22px;
  height: 2px;
  margin-left: -11px;
  background: var(--purple-700);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle-bar {
  top: 50%;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: '';
  left: 0;
  margin-left: 0;
}

.nav-toggle-bar::before {
  transform: translateY(-7px);
}

.nav-toggle-bar::after {
  transform: translateY(7px);
}

.nav-toggle[aria-expanded='true'] .nav-toggle-bar {
  background: transparent;
}

.nav-toggle[aria-expanded='true'] .nav-toggle-bar::before {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded='true'] .nav-toggle-bar::after {
  transform: rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(2.5rem, 5vw, 5rem) 0 clamp(3rem, 5vw, 4.5rem);
  background:
    radial-gradient(circle at 90% 10%, rgba(236, 127, 31, 0.14), transparent 40%),
    radial-gradient(circle at 5% 90%, rgba(123, 74, 124, 0.12), transparent 45%),
    var(--surface-soft);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-700);
}

.lead {
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  color: var(--gray-700);
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.hero-media {
  position: relative;
  margin: 0;
}

.hero-media::before {
  content: '';
  position: absolute;
  inset: 8% -6% -6% 8%;
  border-radius: var(--radius-lg);
  background: var(--gradient-brand);
  opacity: 0.9;
}

.hero-media img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.info-bar {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  padding: 1.25rem;
  list-style: none;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.info-bar li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.5rem 0.75rem;
}

.info-bar li + li {
  border-left: 1px solid var(--gray-200);
}

.info-bar svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--orange-500);
}

.info-bar strong {
  display: block;
  color: var(--purple-900);
  font-size: 0.95rem;
}

.info-bar span {
  font-size: 0.92rem;
}

.info-bar a {
  color: inherit;
  text-decoration: none;
}

.info-bar a:hover {
  color: var(--purple-700);
  text-decoration: underline;
}

/* Sections */
.section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.section-soft {
  background: var(--surface-soft);
}

.section-head {
  max-width: 44rem;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.service-body {
  padding: 1.35rem 1.4rem 1.5rem;
}

.service-body p {
  margin: 0;
  font-size: 0.95rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.split-reverse .split-media {
  order: 2;
}

.split-reverse .split-content {
  order: 1;
}

.split-media {
  margin: 0;
}

.split-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.feature-list {
  display: grid;
  gap: 1.25rem;
  margin: 1.5rem 0 1.75rem;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  gap: 1rem;
}

.feature-list h3 {
  margin-bottom: 0.25rem;
}

.feature-list p {
  margin: 0;
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(236, 127, 31, 0.12);
  color: var(--orange-700);
}

.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: var(--radius-lg);
  background: var(--gradient-brand);
  color: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-lg);
}

.cta-banner h2 {
  color: #fff;
}

.cta-banner p {
  margin: 0;
  max-width: 36rem;
}

.cta-banner .btn {
  flex-shrink: 0;
}

/* Inner pages */
.page-hero {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(236, 127, 31, 0.15), transparent 40%),
    var(--surface-soft);
}

.page-hero .lead {
  margin-bottom: 0;
}

.page-hero-center {
  min-height: 50vh;
  display: grid;
  align-items: center;
  text-align: center;
}

.page-hero-center .lead {
  margin-inline: auto;
}

.page-hero-center .hero-actions {
  justify-content: center;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.value-card {
  padding: 2rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.value-card .feature-icon {
  margin-bottom: 1rem;
}

.value-card p {
  margin: 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.team-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.contact-list {
  display: grid;
  gap: 1rem;
}

.contact-card {
  display: flex;
  gap: 1rem;
  padding: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}

.contact-card h2 {
  margin-bottom: 0.3rem;
  font-size: 1.1rem;
}

.contact-card p,
.contact-card address {
  margin: 0 0 0.35rem;
}

.contact-card p:last-child {
  margin-bottom: 0;
}

.contact-card .btn {
  margin-top: 0.5rem;
}

.contact-strong {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--purple-700);
  text-decoration: none;
}

.notice {
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--orange-500);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.location-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.map-frame {
  overflow: hidden;
  min-height: 420px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  background: var(--surface-soft);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

.location-card {
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
}

.location-card h2 {
  margin: 1.25rem 0 0.35rem;
  font-size: 1.05rem;
}

.location-card h2:first-child {
  margin-top: 0;
}

.location-card p,
.location-card address {
  margin: 0;
}

.stack-actions {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* Footer */
.site-footer {
  background: var(--surface-soft);
  border-top: 1px solid var(--gray-200);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.footer-brand img {
  width: 200px;
  height: auto;
  margin-bottom: 1rem;
}

.footer-brand p {
  max-width: 22rem;
}

.footer-title {
  margin-bottom: 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-links,
.footer-contact {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a,
.footer-contact a {
  color: var(--gray-700);
  text-decoration: none;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--purple-700);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid var(--gray-200);
  font-size: 0.85rem;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.25rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: var(--purple-700);
  font-weight: 600;
}

/* Scroll reveal (only when JS is available and motion is allowed) */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Responsive */
@media (max-width: 1080px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-height) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1.25rem 20px 1.75rem;
    background: var(--surface);
    border-top: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .nav-list {
    flex-direction: column;
  }

  .nav-list a {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 72px;
  }

  .brand img {
    height: 48px;
  }

  .hero-grid,
  .split,
  .location-grid,
  .value-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    max-width: 560px;
  }

  .split-reverse .split-media,
  .split-media {
    order: -1;
  }

  .info-bar {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0.75rem 1rem;
  }

  .info-bar li {
    padding: 0.85rem 0.25rem;
  }

  .info-bar li + li {
    border-left: 0;
    border-top: 1px solid var(--gray-200);
  }

  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .card-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn,
  .cta-banner .btn {
    width: 100%;
  }

  .hero-media::before {
    inset: 6% -3% -4% 6%;
  }

  .map-frame,
  .map-frame iframe {
    min-height: 340px;
  }

  .footer-bottom-inner {
    flex-direction: column;
  }
}
