/* ── Google Fonts ─────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* ── Custom Properties ────────────────────────────────────────────────────── */
:root {
  --color-cloud:   #dee5e5;
  --color-sage:    #9dc5bb;
  --color-teal:    #17b890;
  --color-charcoal:#393d3f;
  --color-navy:    #08415c;
  --color-white:   #ffffff;
  --color-bg:      #f8fcfc;
  --color-brand:      #17b890;          /* alias for --color-teal */
  --color-text-muted: rgba(0,0,0,0.45); /* dark muted text for light backgrounds */

  --font-heading: 'Montserrat', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'Courier New', monospace;

  --nav-height: 64px;
  --section-pad: 5rem 8vw;
  --radius: 10px;
  --radius-pill: 9999px;
  --shadow-sm: 0 2px 10px rgba(0,0,0,.08);
  --shadow-md: 0 6px 24px rgba(0,0,0,.12);
  --transition: .25s ease;
}

/* ── Reset ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--color-charcoal);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typography ───────────────────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem);  font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }
h4 { font-size: .95rem; font-weight: 600; }
p  { font-size: .95rem; }

/* ── Layout Helpers ───────────────────────────────────────────────────────── */
.container { max-width: 1140px; margin-inline: auto; padding-inline: 1.5rem; }
.section { padding: var(--section-pad); }
.section-alt { background: var(--color-bg); }
.section-dark { background: var(--color-charcoal); color: var(--color-white); }

.gradient-rule {
  display: block;
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-teal) 30%, var(--color-navy) 70%, transparent);
  opacity: .3;
}

.section-label {
  font-family: var(--font-heading);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--color-teal);
  margin-bottom: .6rem;
}
.label-tag {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-heading);
  font-size: .58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--color-teal);
  margin-bottom: .6rem;
}
.label-tag::before {
  content: '';
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--color-teal);
  flex-shrink: 0;
}
.label-tag.center {
  justify-content: center;
}
.label-tag.center::before { display: none; }

.section-heading {
  font-family: var(--font-heading);
  color: var(--color-navy);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: .5rem;
}
.section-sub {
  color: #777;
  font-size: .9rem;
  margin-bottom: 2.5rem;
  max-width: 580px;
}
.text-center { text-align: center; }
.text-center .section-sub { margin-inline: auto; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: .65rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-teal);
  color: var(--color-white);
  border-color: var(--color-teal);
}
.btn-primary:hover { background: #13a07d; border-color: #13a07d; }

.btn-white {
  background: var(--color-white);
  color: var(--color-navy);
  border-color: var(--color-white);
}
.btn-white:hover { background: var(--color-teal); color: var(--color-white); border-color: var(--color-teal); }

.btn-ghost {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,.6);
}
.btn-ghost:hover { border-color: var(--color-white); background: rgba(255,255,255,.1); }

.btn-outline {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-sage);
}
.btn-outline:hover { border-color: var(--color-teal); color: var(--color-teal); }

.btn-sm { padding: .4rem 1rem; font-size: .7rem; border-radius: var(--radius-pill); }

/* ── Grid Utilities ───────────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.2rem; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  :root { --section-pad: 3.5rem 5vw; }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 600px) {
  :root { --section-pad: 2.5rem 1.2rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ── Scroll-reveal ──────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
