/* Base tokens */

:root {
  --blue-deep: #063b66;
  --blue-mid: #0a4c82;
  --blue-soft: #e4eef7;
  --bg-light: #f4f6fa;
  --bg-soft: #edf2f8;
  --text-main: #111827;
  --text-muted: #6b7280;
  --text-on-blue: #f9fafb;
  --border-subtle: rgba(255, 255, 255, 0.18);
  --border-soft-dark: rgba(15, 23, 42, 0.08);
  --radius-pill: 999px;
  --radius-card: 18px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.35);
  --shadow-card: 0 10px 28px rgba(15, 23, 42, 0.08);
}

/* Global */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-main);
  background: var(--blue-deep);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

/* HEADER / NAV */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--blue-deep);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 52px;
  width: auto;
}

/* Nav */

.main-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.8rem;
}

.nav-list a {
  position: relative;
  color: var(--text-on-blue);
}

.nav-list a::after {
  content: "";
  position: absolute;
  bottom: -0.35rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.7);
  transition: width 160ms ease-out;
}

.nav-list a:hover::after {
  width: 70%;
}

/* Mobile nav toggle (hidden on desktop) */

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  border: none;
  background: none;
  padding: 4px;
  margin-left: auto;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
}

/* HERO */

.hero {
  background: radial-gradient(circle at top left, #0e5e9b 0, var(--blue-deep) 55%);
  color: var(--text-on-blue);
  padding: 6rem 0 6rem;
}

.hero-inner {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}

.hero-eyebrow {
  margin: 0 0 2rem;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.8);
}

.hero-title {
  margin: 0;
  font-family: "Playfair Display", "Times New Roman", serif;
  font-weight: 600;
  font-size: clamp(2.8rem, 4.1vw + 1.4rem, 3.6rem);
  line-height: 1.25;
}

.hero-tagline {
  margin: 1.6rem auto 0;
  max-width: 42rem;
  font-size: 0.98rem;
  color: rgba(226, 232, 240, 0.9);
}

.hero-actions {
  margin-top: 2.8rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(248, 250, 252, 0.6);
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 160ms ease-out,
    color 160ms ease-out,
    transform 160ms ease-out,
    box-shadow 160ms ease-out;
}

.btn.primary {
  background: rgba(243, 244, 246, 0.2);
  color: var(--text-on-blue);
  box-shadow: var(--shadow-soft);
}

.btn.primary:hover {
  background: rgba(243, 244, 246, 0.3);
  transform: translateY(-1px);
}

.btn.ghost {
  background: transparent;
  color: rgba(229, 231, 235, 0.9);
}

.btn.ghost:hover {
  background: rgba(243, 244, 246, 0.12);
}

/* GENERIC SECTIONS */

.section {
  padding: 4.5rem 0 4rem;
}

.light-section {
  background: var(--bg-light);
}

.soft-section {
  background: var(--bg-soft);
}

.section-header {
  max-width: 620px;
  margin: 0 auto 2.25rem;
  text-align: center;
}

.section-header h2 {
  margin: 0 0 0.75rem;
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 1.9rem;
}

.section-header p {
  margin: 0;
  font-size: 0.96rem;
  color: var(--text-muted);
}

.section-note {
  margin-top: 1.8rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Cards & grids */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #ffffff;
  border-radius: var(--radius-card);
  padding: 1.45rem 1.4rem 1.3rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  font-size: 0.92rem;
}

.card-meta {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Portfolio */

.portfolio-grid .card {
  min-height: 150px;
}

/* Steps */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.step {
  background: #ffffff;
  border-radius: var(--radius-card);
  padding: 1.4rem 1.4rem 1.3rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--blue-mid);
  color: #f9fafb;
  font-size: 0.9rem;
  margin-bottom: 0.45rem;
}

.step h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.step p {
  margin: 0;
  font-size: 0.92rem;
}

/* About */

.about-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
  font-size: 0.95rem;
  color: var(--text-main);
}

/* Contact */

.contact-section {
  background: var(--bg-light);
}

.contact-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
  align-items: center;
  justify-content: space-between;
}

.contact-inner h2 {
  margin: 0 0 0.7rem;
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 1.8rem;
}

.contact-inner p {
  margin: 0;
  max-width: 420px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

.contact-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Footer */

.site-footer {
  background: #021c33;
  color: rgba(226, 232, 240, 0.8);
  padding: 1.4rem 0 1.6rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}

.footer-secondary {
  opacity: 0.85;
}

/* Responsive */

@media (max-width: 900px) {
  .nav-list {
    gap: 1.5rem;
  }

  .hero {
    padding: 4.5rem 0 4.5rem;
  }

  .hero-title {
    font-size: clamp(2.4rem, 3.2vw + 1.6rem, 3.1rem);
  }
}

@media (max-width: 720px) {
  .header-inner {
    padding-inline: 0.5rem;
  }

  .main-nav {
    margin-left: 0.75rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-list {
    position: absolute;
    inset-inline: 0;
    top: 58px;
    padding: 0.75rem 1.25rem 1rem;
    flex-direction: column;
    gap: 0.75rem;
    background: rgba(6, 59, 102, 0.98);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 160ms ease-out, opacity 160ms ease-out;
  }

  .nav-list.nav-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .hero-actions {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 320px;
  }

  .contact-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
