:root {
  --navy: #262262;
  --teal: #02A09C;
  --ink: #1c1c28;
  --muted: #5a5a6e;
  --bg: #ffffff;
  --bg-soft: #f5f6fa;
  --line: #e4e6ef;
  --container: 1040px;
  --gutter: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}

img { max-width: 100%; }

.wordmark, h1, h2, h3, .nav a, .btn {
  font-family: 'Questrial', 'Century Gothic', 'Futura', sans-serif;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============ Header ============ */
header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}
.wordmark {
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--navy);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.logo-symbol { height: 34px; width: auto; display: block; }
.logo-symbol-footer { height: 30px; }

/* Desktop nav (default) */
.nav {
  display: flex;
  gap: 28px;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.04em;
  padding: 4px 0;
}
.nav a:hover, .nav a.active { color: var(--teal); }

/* Hamburger button (hidden on desktop) */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile / tablet nav: hamburger + dropdown panel */
@media (max-width: 1180px) {
  .menu-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(28, 28, 40, 0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav.open { max-height: 320px; }
  .nav a {
    padding: 15px var(--gutter);
    font-size: 16px;
    border-top: 1px solid var(--line);
  }
  .nav a.active {
    color: var(--teal);
    box-shadow: inset 3px 0 0 var(--teal);
  }
}

/* ============ Hero ============ */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1a1750 60%, #133a58 100%);
  color: #fff;
  padding: clamp(56px, 10vw, 110px) 0;
}
.hero h1 {
  font-size: clamp(26px, 4.5vw, 48px);
  line-height: 1.22;
  letter-spacing: 0.02em;
  max-width: 22ch;
}
.hero h1 em { color: var(--teal); font-style: normal; }
.hero p {
  margin-top: 20px;
  max-width: 60ch;
  font-size: clamp(15px, 2vw, 18px);
  color: #cfd2e6;
}
.btn {
  display: inline-block;
  margin-top: 30px;
  background: var(--teal);
  color: #fff;
  text-decoration: none;
  padding: 13px 30px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  font-size: 15px;
  border: none;
  cursor: pointer;
}
.btn:hover { background: #028f8b; }

/* ============ Sections ============ */
section { padding: clamp(48px, 8vw, 84px) 0; }
section.alt { background: var(--bg-soft); }
.kicker {
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 13px;
  margin-bottom: 10px;
}
h2 {
  font-size: clamp(23px, 3vw, 32px);
  color: var(--navy);
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}
.lede { max-width: 65ch; color: var(--muted); font-size: clamp(15px, 1.8vw, 17px); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 24px;
  margin-top: 40px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(20px, 3vw, 28px);
}
.card h3 { color: var(--navy); font-size: 19px; margin-bottom: 10px; letter-spacing: 0.03em; }
.card p { color: var(--muted); font-size: 15px; }
.card .dot {
  width: 34px; height: 4px;
  background: var(--teal);
  border-radius: 2px;
  margin-bottom: 16px;
}

/* ============ Contact ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 40px;
}

.contact-block h3 {
  color: var(--navy);
  font-size: 17px;
  letter-spacing: 0.04em;
  margin: 26px 0 6px;
}
.contact-block h3:first-child { margin-top: 0; }
.contact-block p { color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
.contact-block a { color: var(--teal); text-decoration: none; }
.note {
  font-size: 13px;
  color: var(--muted);
  background: var(--bg-soft);
  border-left: 3px solid var(--teal);
  padding: 10px 14px;
  border-radius: 0 4px 4px 0;
  margin-top: 8px;
}

form label {
  display: block;
  font-size: 14px;
  color: var(--ink);
  margin: 16px 0 6px;
  font-weight: 500;
}
form input, form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: inherit;
  font-size: 16px; /* prevents iPhone zoom-on-focus */
  background: var(--bg);
}
form input:focus, form textarea:focus {
  outline: none;
  border-color: var(--teal);
}
form .btn { width: auto; }

/* ============ Footer ============ */
footer {
  background: var(--navy);
  color: #b9bcd6;
  padding: 40px 0;
  font-size: 13.5px;
}
footer .wordmark { color: #fff; font-size: 18px; }
footer .wordmark span { color: var(--teal); }
footer .legal { margin-top: 14px; line-height: 1.9; overflow-wrap: anywhere; }
footer a { color: var(--teal); text-decoration: none; }

/* ==================================================
   Breakpoints — device coverage
   ==================================================
   ≤360      Samsung Galaxy Fold (folded cover screen ~344px)
   361–480   Small phones (iPhone SE/mini, iPhone Duo folded ~466px)
   481–640   Standard phones (iPhone 15/16/17, Android)
   641–899   Foldables unfolded (Galaxy Fold ~673px, iPhone Duo ~890px)
             + tablets PORTRAIT (iPad 768/820/834px)
   900–1180  Tablets LANDSCAPE (iPad 1024/1112/1180px)
   1181–1439 Laptop / small desktop
   1440–1799 Standard desktop
   ≥1800     Large desktop (1440p / 4K)
   ================================================== */

/* --- Galaxy Fold cover screen (≤360px) --- */
@media (max-width: 360px) {
  :root { --gutter: 14px; }
  body { font-size: 15px; }
  .wordmark { font-size: 15px; gap: 7px; letter-spacing: 0.04em; }
  .logo-symbol { height: 24px; }
  .btn { display: block; text-align: center; padding: 12px 20px; }
  .card { padding: 18px; }
}

/* --- Small phones + iPhone Duo folded (361–480px) --- */
@media (min-width: 361px) and (max-width: 480px) {
  :root { --gutter: 16px; }
  .wordmark { font-size: 17px; gap: 8px; }
  .logo-symbol { height: 26px; }
  .btn { display: block; text-align: center; }
}

/* --- Standard phones (481–640px) --- */
@media (min-width: 481px) and (max-width: 640px) {
  .wordmark { font-size: 19px; gap: 10px; }
  .logo-symbol { height: 30px; }
}

/* --- Phones & portrait tablets: stack contact page --- */
@media (max-width: 899px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* --- Foldables unfolded + tablets portrait (641–899px) --- */
@media (min-width: 641px) and (max-width: 899px) {
  :root { --container: 680px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .grid .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* --- Tablets landscape (900–1180px) --- */
@media (min-width: 900px) and (max-width: 1180px) {
  :root { --container: 880px; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .contact-grid { gap: 40px; }
}

/* --- Phone held sideways (short landscape screens) --- */
@media (max-height: 480px) and (orientation: landscape) {
  .hero { padding: 40px 0; }
  section { padding: 40px 0; }
}

/* --- Laptop / small desktop (1181–1439px) --- */
@media (min-width: 1181px) and (max-width: 1439px) {
  :root { --container: 1040px; }
}

/* --- Standard desktop (1440–1799px) --- */
@media (min-width: 1440px) and (max-width: 1799px) {
  :root { --container: 1160px; }
}

/* --- Large desktop (≥1800px): 1440p / 4K --- */
@media (min-width: 1800px) {
  :root { --container: 1280px; }
  body { font-size: 17px; }
  .hero h1 { font-size: 54px; }
  .card h3 { font-size: 20px; }
  .card p, .contact-block p { font-size: 16px; }
}
