/* Core palette and global tokens */
:root {
  --primary-900: #0f2a4f;
  --primary-700: #1b4f92;
  --primary-600: #2462ad;
  --primary-500: #2f78d2;
  --accent-200: #dcecff;
  --accent-100: #eef6ff;
  --surface: #ffffff;
  --background: #f8fbff;
  --text: #133451;
  --muted: #516a82;
  --border: #cfdeef;
  --shadow-soft: 0 14px 30px rgba(15, 42, 79, 0.08);
  --shadow-header: 0 8px 18px rgba(15, 42, 79, 0.08);
  --radius-md: 12px;
  --radius-lg: 20px;
  --max-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, #f1f8ff 0%, var(--background) 38%, #ffffff 100%);
  line-height: 1.65;
}

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

a {
  color: var(--primary-700);
}

h1,
h2,
h3 {
  margin: 0 0 0.8rem;
  color: var(--primary-900);
  font-family: "Sora", "Trebuchet MS", sans-serif;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(1.45rem, 2.2vw, 2.25rem);
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.1rem, 1.45vw, 1.6rem);
  line-height: 1.2;
}

h3 {
  font-size: 0.9rem;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0 0 1rem;
}

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

.container {
  width: min(var(--max-width), 92vw);
  margin: 0 auto;
}

.section {
  padding: clamp(3.1rem, 5vw, 5.4rem) 0;
}

.section.intro {
  padding: clamp(0.785rem, 2.2vw, 2.456rem) 0 clamp(0.5rem, 1.4vw, 1.6rem);
}

.section.intro .container > :last-child {
  margin-bottom: 0;
}

.section.divider {
  padding: clamp(1.24rem, 2vw, 2.16rem) 0;
}

.divider {
  border-top: 1px solid var(--border);
}

.eyebrow {
  margin-bottom: 0.75rem;
  font-size: 0.83rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--primary-600);
}

/* Sticky header and navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(207, 222, 239, 0.65);
  box-shadow: var(--shadow-header);
}

.header-inner {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
}

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

.site-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.site-nav a:hover {
  color: var(--primary-700);
  background: var(--accent-100);
  transform: translateY(-1px);
}

.site-nav a.active {
  color: #fff;
  background: linear-gradient(130deg, var(--primary-700), var(--primary-500));
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  padding: 0 9px;
}

.nav-toggle span {
  width: 100%;
  height: 2px;
  background: var(--primary-900);
  transition: transform 180ms ease, opacity 180ms ease;
}

/* Buttons */
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.7rem 0 1.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.76rem 1.3rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn-primary {
  background: linear-gradient(130deg, var(--primary-700), var(--primary-500));
  color: #fff;
}

.btn-primary:hover {
  background: linear-gradient(130deg, #1a4a87, #2368bb);
}

.btn-secondary {
  border-color: var(--primary-600);
  color: var(--primary-700);
  background: #fff;
}

.btn-secondary:hover {
  background: var(--accent-100);
}

/* Home */
.hero-layout {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: clamp(1.4rem, 3.5vw, 3.1rem);
  align-items: start;
}

.hero-closing {
  font-weight: 600;
  color: var(--primary-700);
}

.hero-panel {
  padding: 1.5rem 1.4rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, #eff6ff, #dfeeff);
  border: 1px solid #c9dbf3;
  box-shadow: var(--shadow-soft);
}

.hero-panel h2 {
  font-size: 1.3rem;
}

.hero-panel ul {
  padding-left: 1.2rem;
  margin: 0;
}

.hero-panel li {
  margin-bottom: 0.7rem;
}

/* About */
.intro p {
  max-width: 76ch;
}

.check-list {
  padding-left: 1.15rem;
}

.check-list li {
  margin-bottom: 0.45rem;
}

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

.card {
  padding: 1.4rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.callout .container {
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, #0f2a4f 0%, #1b4f92 100%);
  color: #f8fbff;
}

.callout h2 {
  color: #fff;
}

.callout p {
  max-width: 80ch;
}

/* Services */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.2rem 1.3rem;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, border-color 180ms ease;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: #9dbde0;
}

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #a6c3e4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary-700);
  background: var(--accent-100);
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.contact-form {
  display: grid;
  gap: 0.55rem;
}

.contact-form label {
  font-size: 0.9rem;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid #b9cfe8;
  border-radius: 10px;
  padding: 0.68rem 0.72rem;
  font: inherit;
  color: var(--text);
  background: #fcfdff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid #9fc3ea;
  border-color: #78a8de;
}

.contact-form button {
  margin-top: 0.45rem;
  width: fit-content;
  cursor: pointer;
}

.netlify-recaptcha {
  margin-top: 0.5rem;
}

/* Footer */
.site-footer {
  margin-top: 2.2rem;
  padding: 2.4rem 0 1rem;
  color: #e7f1ff;
  background: linear-gradient(140deg, #0f2a4f 0%, #1a4f92 100%);
}

.footer-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  gap: 1rem;
  align-items: start;
}

.footer-title {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.site-footer a {
  color: #d8ebff;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer a[href^="mailto"] {
  text-decoration: underline;
}

.copyright {
  margin: 1.7rem auto 0;
  width: min(var(--max-width), 92vw);
  padding-top: 0.85rem;
  border-top: 1px solid rgba(210, 228, 251, 0.35);
  font-size: 0.88rem;
  color: #d6e7fc;
}

/* Subtle load animation */
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  animation: rise-in 500ms ease-out both;
}

.reveal-delay-1 {
  animation: rise-in 600ms ease-out both;
}

.reveal-delay-2 {
  animation: rise-in 700ms ease-out both;
}

.reveal-delay-3 {
  animation: rise-in 800ms ease-out both;
}

/* Responsive behaviors */
@media (max-width: 980px) {
  .hero-layout,
  .card-grid,
  .service-grid,
  .contact-layout,
  .footer-layout {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 580px;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 15px 20px rgba(15, 42, 79, 0.08);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-nav ul {
    padding: 0.8rem 0.7rem 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.3rem;
  }

  body.nav-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  body.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  body.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .section {
    padding: 2.8rem 0;
  }

  .section.intro {
    padding: 0.792rem 0 0.6rem;
  }

  .section.divider {
    padding: 1.12rem 0;
  }

  .header-inner {
    min-height: 56px;
  }

  .brand img {
    height: 107px;
  }
}

@media (max-width: 540px) {
  .button-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}
