/* =========================================================
   SAAVI Bird Net Services: design system & base styles
   Based on the "Architectural Shield & Air" Stitch design system.
   ========================================================= */

:root {
  /* Brand palette */
  --navy-950: #0A1F42;
  --navy-900: #0C2148;
  --navy-800: #102A56;   /* tertiary: footer, deep panels */
  --navy-700: #173A78;   /* primary */
  --navy-600: #22498F;
  --sky-700: #00658B;    /* accessible accent text on light */
  --sky-600: #1689BF;
  --sky-500: #24A8E0;    /* secondary */
  --sky-300: #7DD0FF;
  --sky-100: #EAF6FC;    /* ice blue wash */
  --sky-50:  #F3F9FD;
  --white: #FFFFFF;
  --bg: #F7F9FC;         /* soft cool mist */
  --surface-low: #F0F3FF;

  --ink-900: #0F1C2E;
  --ink-700: #344054;
  --ink-500: #5B6577;
  --ink-300: #94A3B8;
  --line: #E2E8F0;
  --line-blue: #D0E2EE;
  --line-strong: #CBD5E1;

  --whatsapp: #1FAF5A;
  --whatsapp-dark: #168A46;
  --danger: #BA1A1A;
  --success: #12805C;

  /* Typography: Plus Jakarta Sans for headings/labels, Inter for reading */
  --font-head: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --fs-display: clamp(2.375rem, 1.6rem + 2.9vw, 3.5rem);   /* 38 → 56px */
  --fs-h2: clamp(1.875rem, 1.5rem + 1.4vw, 2.5rem);         /* 30 → 40px */
  --fs-h3: clamp(1.375rem, 1.25rem + .5vw, 1.625rem);
  --fs-lead: clamp(1.0625rem, 1rem + .25vw, 1.125rem);      /* 17 → 18px */
  --fs-body: 1rem;
  --fs-sm: .875rem;
  --fs-xs: .8125rem;
  --fs-label: .75rem;

  /* Spacing (8pt grid) */
  --s-1: .25rem;
  --s-2: .5rem;
  --s-3: .75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2.5rem;
  --s-7: 3rem;
  --section-y: clamp(4rem, 2.75rem + 5vw, 7rem);
  --gutter: clamp(1.25rem, .6rem + 2.6vw, 3rem);
  --container: 1280px;
  --header-h: 80px;

  /* Shape */
  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* Elevation: diffused marine shadows */
  --sh-1: 0 1px 3px rgba(16, 42, 86, .04), 0 4px 8px rgba(16, 42, 86, .03);
  --sh-2: 0 4px 12px rgba(16, 42, 86, .06), 0 12px 28px rgba(16, 42, 86, .05);
  --sh-3: 0 12px 32px rgba(16, 42, 86, .12), 0 24px 64px rgba(16, 42, 86, .08);
  --hairline: 1px solid rgba(23, 58, 120, .08);
  --sh-focus: 0 0 0 3px var(--white), 0 0 0 5px var(--sky-500);

  /* Motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .64, 1);
  --t-fast: 180ms;
  --t-med: 420ms;
  --t-slow: 800ms;
  --t-reveal: 900ms;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink-700);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
[hidden] { display: none !important; }
::selection { background: var(--sky-500); color: var(--white); }

:focus-visible { outline: none; box-shadow: var(--sh-focus); border-radius: var(--r-xs); }
[tabindex="-1"]:focus { outline: none; box-shadow: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}
/* Filled glyphs (WhatsApp, star): styles on symbol children apply to every <use> clone */
symbol path.fill { fill: currentColor; stroke: none; }

.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;
}
.skip-link {
  position: fixed; left: var(--s-4); top: -100px; z-index: 200;
  background: var(--navy-800); color: var(--white); padding: .7rem 1.1rem; border-radius: var(--r-sm);
  font-weight: 600; transition: top var(--t-fast) var(--ease-out);
}
.skip-link:focus { top: var(--s-4); }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }

/* ---------- Typography ---------- */
.overline {
  display: inline-block;
  font-family: var(--font-head); font-size: var(--fs-label); font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sky-700); margin-bottom: var(--s-3);
}
.overline--light { color: var(--sky-300); }
.h2 {
  font-size: var(--fs-h2); line-height: 1.2; letter-spacing: -.02em; font-weight: 700;
  color: var(--navy-800); text-wrap: balance;
}
.h2--light { color: var(--white); }
.h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -.015em; font-weight: 700; color: var(--navy-800); }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--ink-500); text-wrap: pretty; }
.lead--light { color: rgba(234, 246, 252, .78); }
.text-accent { color: var(--sky-700); }

.section-head { margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); max-width: 46rem; }
.section-head__lead { margin-top: var(--s-3); font-size: var(--fs-lead); color: var(--ink-500); max-width: 40rem; text-wrap: pretty; }
.section-head--center { text-align: center; margin-inline: auto; display: grid; justify-items: center; }
.section-head--split { max-width: none; display: grid; gap: var(--s-5); align-items: end; }
@media (min-width: 900px) { .section-head--split { grid-template-columns: 1fr auto; } }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--navy-700);
  --btn-fg: var(--white);
  --btn-bg-hover: var(--navy-800);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .75rem 1.4rem;
  font-family: var(--font-head); font-weight: 700; font-size: .9375rem; line-height: 1.2;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1px solid transparent; border-radius: var(--r-pill);
  transition:
    transform var(--t-med) var(--ease-out),
    box-shadow var(--t-med) var(--ease-out),
    background-color var(--t-fast) ease, color var(--t-fast) ease, border-color var(--t-fast) ease;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.2) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 700ms var(--ease-out);
}
.btn__icon { width: 1.1em; height: 1.1em; transition: transform var(--t-med) var(--ease-out); }
@media (hover: hover) {
  .btn:hover { background: var(--btn-bg-hover); box-shadow: var(--sh-2); transform: translateY(-2px); }
  .btn:hover::before { transform: translateX(120%); }
  .btn:hover .btn__icon { transform: translateX(3px); }
}
.btn:active { transform: translateY(0) scale(.97); box-shadow: none; transition-duration: 90ms; }
.btn:focus-visible { box-shadow: var(--sh-focus); border-radius: var(--r-pill); }
.btn--primary { box-shadow: 0 8px 20px -10px rgba(23, 58, 120, .6); }
.btn--outline { --btn-bg: var(--white); --btn-fg: var(--navy-700); --btn-bg-hover: var(--sky-100); border-color: var(--line-blue); }
@media (hover: hover) { .btn--outline:hover { border-color: var(--navy-700); } }
.btn--accent { --btn-bg: var(--sky-500); --btn-bg-hover: var(--sky-600); }
.btn--light { --btn-bg: var(--white); --btn-fg: var(--navy-800); --btn-bg-hover: var(--sky-100); }
.btn--whatsapp { --btn-bg: var(--whatsapp); --btn-bg-hover: var(--whatsapp-dark); }
.btn--sm { min-height: 42px; padding: .55rem 1.1rem; font-size: .875rem; }
.btn--lg { min-height: 54px; padding: .9rem 1.75rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: not-allowed; transform: none; box-shadow: none; }

/* Magnetic buttons: JS sets --mx / --my (desktop, fine pointer only) */
[data-magnetic].is-magnetic { transform: translate(var(--mx, 0), var(--my, 0)); }
@media (hover: hover) { [data-magnetic].is-magnetic:hover { transform: translate(var(--mx, 0), calc(var(--my, 0px) - 2px)); } }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy-700); color: var(--white);
  transition: background-color var(--t-fast) ease, transform var(--t-med) var(--ease-spring);
}
.icon-btn .icon { width: 1.15rem; height: 1.15rem; }
.icon-btn:focus-visible { border-radius: 50%; }
@media (hover: hover) { .icon-btn:hover { background: var(--navy-800); transform: translateY(-2px); } }

/* Text link with arrow */
.link-cta {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 700; font-size: .9375rem; color: var(--navy-700);
  padding-block: .35rem; position: relative;
}
.link-cta::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--sky-500); transform: scaleX(.2); transform-origin: left;
  transition: transform var(--t-med) var(--ease-out);
}
.link-cta .icon { width: 1.1em; height: 1.1em; transition: transform var(--t-med) var(--ease-out); }
@media (hover: hover) {
  .link-cta:hover::after { transform: scaleX(1); }
  .link-cta:hover .icon:last-of-type { transform: translateX(4px); }
}
.link-subtle {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-head); font-size: .875rem; font-weight: 700;
  color: var(--whatsapp-dark); padding: .35rem .2rem; cursor: pointer;
}
.link-subtle .icon { width: 1.05em; height: 1.05em; }
@media (hover: hover) { .link-subtle:hover { text-decoration: underline; text-underline-offset: 3px; } }

/* ---------- Badges, chips, tags ---------- */
.pill-badge {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .45rem 1rem; border-radius: var(--r-pill);
  background: var(--sky-100); border: 1px solid var(--line-blue);
  font-family: var(--font-head); font-size: var(--fs-label); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--navy-700);
}
.pill-badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sky-500); box-shadow: 0 0 0 4px rgba(36, 168, 224, .18); }

.badge {
  position: absolute; z-index: 2; top: 1rem; left: 1rem;
  padding: .32rem .7rem; border-radius: var(--r-pill);
  font-family: var(--font-head); font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.badge--solid { background: var(--navy-700); color: var(--white); }

.chip {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .45rem .8rem; border-radius: var(--r-pill);
  font-family: var(--font-head); font-size: .75rem; font-weight: 700; color: var(--navy-800);
}
.chip .icon { width: 1rem; height: 1rem; color: var(--sky-600); }
.chip--glass {
  background: rgba(255, 255, 255, .88); box-shadow: var(--sh-2);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}

/* Honest labelling for stock imagery */
.photo-tag {
  position: absolute; z-index: 2;
  padding: .22rem .55rem; border-radius: var(--r-xs);
  background: rgba(10, 31, 66, .62); color: rgba(255, 255, 255, .92);
  font-size: .625rem; font-weight: 600; letter-spacing: .04em;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  pointer-events: none;
}

.ticks { display: grid; gap: .55rem; }
.ticks li { position: relative; padding-left: 1.75rem; font-size: .9375rem; font-weight: 500; color: var(--ink-700); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .15em; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--sky-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 60% no-repeat;
}
.ticks--compact { gap: .4rem; margin-top: .6rem; }
.ticks--compact li { font-weight: 400; }

/* ---------- Form elements ---------- */
.field { display: grid; gap: .4rem; }
.field label { font-family: var(--font-head); font-size: .875rem; font-weight: 600; color: var(--navy-800); }
.req { color: var(--danger); margin-left: .1rem; }
.optional { font-weight: 500; color: var(--ink-500); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .75rem .95rem;
  background: var(--white); color: var(--navy-800);
  border: 1px solid var(--line-blue); border-radius: var(--r-sm);
  transition: border-color var(--t-fast) ease, box-shadow var(--t-med) var(--ease-out);
  appearance: none; -webkit-appearance: none;
}
.field textarea { resize: vertical; min-height: 116px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-300); }
@media (hover: hover) { .field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line-strong); } }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--sky-500);
  box-shadow: 0 0 0 1px var(--sky-500), 0 0 0 4px rgba(36, 168, 224, .15);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); background: #FFF8F7; }
.field.has-error input:focus, .field.has-error select:focus { box-shadow: 0 0 0 1px var(--danger), 0 0 0 4px rgba(186, 26, 26, .12); }
.field__error { font-size: var(--fs-xs); font-weight: 600; color: var(--danger); }
.field__error:empty { display: none; }
.select { position: relative; }
.select .icon { position: absolute; right: .95rem; top: 50%; translate: 0 -50%; pointer-events: none; color: var(--ink-500); }
.select select { padding-right: 2.75rem; cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
