/* ============================================================
   Shark Coast Media — sharkcoastmediaco.com
   Bold coastal design system. Mobile-first. No frameworks.
   ============================================================ */

:root {
  --navy: #0B2545;
  --navy-deep: #071A33;
  --aqua: #2EC4B6;
  --aqua-dark: #1E9E92;
  --sand: #F4E9DA;
  --sand-deep: #EADDC8;
  --white: #FFFFFF;
  --ink: #10233B;
  --muted: #B9C6D8;
  --font-head: 'Archivo', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
  --max: 72rem;
  --pad: 1.25rem;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--white);
  background: var(--navy);
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 4.2vw, 2.5rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

a { color: var(--aqua); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

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

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--aqua); color: var(--navy);
  padding: 0.5rem 1rem; z-index: 200; font-weight: 700;
}
.skip-link:focus { left: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Shark tooth motif ---------- */
.tooth {
  display: inline-block;
  width: 1.1em; height: 1.2em;
  background: var(--aqua);
  clip-path: polygon(15% 0, 85% 0, 100% 18%, 50% 100%, 0 18%);
  flex: none;
}
.tooth--sand { background: var(--sand); }
.tooth--navy { background: var(--navy); }

.tooth-row {
  display: flex; gap: 0.4rem; align-items: center;
  margin-bottom: 1rem;
}
.tooth-row .tooth:nth-child(2) { opacity: 0.6; transform: scale(0.8); }
.tooth-row .tooth:nth-child(3) { opacity: 0.3; transform: scale(0.6); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy-deep);
  border-bottom: 2px solid rgba(46, 196, 182, 0.25);
}

.header-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 0.8rem var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0 1rem;
}

.brand {
  display: flex; align-items: center; gap: 0.55rem;
  color: var(--white); font-family: var(--font-head);
  font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand .tooth { width: 1.35rem; height: 1.5rem; }
.brand em { font-style: normal; color: var(--aqua); }

.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px;
  background: none; border: 2px solid var(--aqua);
  padding: 0.6rem 0.55rem; cursor: pointer;
}
.nav-toggle span:not(.sr-only) {
  width: 22px; height: 2px; background: var(--aqua);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav { display: none; width: 100%; }
.site-nav.open { display: block; }

.site-nav ul {
  list-style: none; margin: 0; padding: 0.5rem 0 1rem;
  display: flex; flex-direction: column; gap: 0.1rem;
}
.site-nav a {
  display: block; padding: 0.55rem 0.25rem;
  color: var(--white); font-weight: 600; font-size: 1rem;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--aqua); text-decoration: none; }

.nav-cta {
  background: var(--aqua); color: var(--navy) !important;
  font-family: var(--font-head); font-weight: 800;
  padding: 0.55rem 1rem !important; text-align: center;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}
.nav-cta:hover { background: var(--white); text-decoration: none; }

@media (min-width: 960px) {
  .header-inner { flex-wrap: nowrap; }
  .nav-toggle { display: none; }
  .site-nav { display: block; width: auto; }
  .site-nav ul { flex-direction: row; align-items: center; gap: 1.1rem; padding: 0; }
  .site-nav a { padding: 0.25rem 0; font-size: 0.95rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head); font-weight: 800;
  font-size: 1rem; letter-spacing: 0.01em;
  padding: 0.85rem 1.6rem;
  background: var(--aqua); color: var(--navy);
  border: none; cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
  transition: background 0.15s ease;
}
.btn:hover, .btn:focus-visible { background: var(--white); color: var(--navy); text-decoration: none; }

.btn--ghost {
  background: transparent; color: var(--aqua);
  box-shadow: inset 0 0 0 2px var(--aqua);
  clip-path: none;
}
.btn--ghost:hover { background: rgba(46,196,182,0.12); color: var(--white); }

.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-deep); color: var(--aqua); }

/* ---------- Sections & diagonal dividers ---------- */
section { padding: 3.5rem 0; }

.section--sand {
  background: var(--sand);
  color: var(--ink);
  clip-path: polygon(0 2.2rem, 100% 0, 100% calc(100% - 2.2rem), 0 100%);
  padding: 5rem 0 5.5rem;
}
.section--sand h2, .section--sand h3 { color: var(--navy); }
.section--sand a { color: var(--aqua-dark); }

.section--sand-flip {
  clip-path: polygon(0 0, 100% 2.2rem, 100% 100%, 0 calc(100% - 2.2rem));
}

.eyebrow {
  font-family: var(--font-head); font-weight: 800;
  font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--aqua); display: block; margin-bottom: 0.6rem;
}
.section--sand .eyebrow { color: var(--aqua-dark); }

.lead { font-size: 1.2rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 4.5rem 0 5.5rem;
  background: linear-gradient(115deg, var(--navy-deep) 0%, var(--navy) 55%, #0E3A5C 100%);
}
.hero::after {
  content: "";
  position: absolute; right: -6rem; top: -4rem;
  width: 24rem; height: 30rem;
  background: rgba(46, 196, 182, 0.09);
  clip-path: polygon(15% 0, 85% 0, 100% 18%, 50% 100%, 0 18%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { max-width: 17ch; }
.hero .lead { max-width: 52ch; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.6rem; }

.hero-tags {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 2rem; padding: 0; list-style: none;
}
.hero-tags li {
  font-size: 0.85rem; font-weight: 600;
  border: 1px solid rgba(46,196,182,0.5);
  color: var(--aqua);
  padding: 0.25rem 0.7rem;
}

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 700px) { .grid--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 700px) and (max-width: 899px) { .grid--4, .grid--3 { grid-template-columns: 1fr 1fr; } }

.card {
  background: var(--navy-deep);
  border: 1px solid rgba(46,196,182,0.25);
  border-top: 4px solid var(--aqua);
  padding: 1.5rem 1.4rem;
  display: flex; flex-direction: column; gap: 0.4rem;
}
.card h3 { margin-bottom: 0.2rem; }
.card p { color: var(--muted); font-size: 0.98rem; margin-bottom: 0.6rem; }
.card .card-link { margin-top: auto; font-weight: 700; }

.section--sand .card {
  background: var(--white);
  border-color: rgba(11,37,69,0.12);
  border-top-color: var(--aqua);
}
.section--sand .card p { color: #4A5A6E; }

/* Asymmetric split */
.split { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 860px) {
  .split { grid-template-columns: 7fr 5fr; }
  .split--flip { grid-template-columns: 5fr 7fr; }
  .split--flip > :first-child { order: 2; }
}

/* ---------- Process steps ---------- */
.steps { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.25rem; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 899px) { .steps { grid-template-columns: 1fr 1fr; } }

.steps li {
  counter-increment: step;
  border-left: 3px solid var(--aqua);
  padding: 0.25rem 0 0.25rem 1rem;
}
.steps li::before {
  content: "0" counter(step);
  font-family: var(--font-head); font-weight: 800;
  font-size: 1.6rem; color: var(--aqua); display: block;
}
.steps h3 { font-size: 1.05rem; margin: 0.2rem 0; }
.steps p { font-size: 0.95rem; color: var(--muted); margin: 0; }
.section--sand .steps p { color: #4A5A6E; }

/* ---------- Stat strip ---------- */
.stat-strip { display: grid; gap: 1.5rem; margin: 2rem 0 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .stat-strip { grid-template-columns: repeat(3, 1fr); } }
.stat-strip strong {
  display: block; font-family: var(--font-head); font-weight: 800;
  font-size: 2rem; color: var(--aqua); line-height: 1;
}
.section--sand .stat-strip strong { color: var(--navy); }
.stat-strip span { font-size: 0.95rem; }

/* ---------- Checklist ---------- */
.check-list { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: 0.6rem; }
.check-list li { padding-left: 1.6rem; position: relative; }
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.35em;
  width: 0.85rem; height: 0.95rem;
  background: var(--aqua);
  clip-path: polygon(15% 0, 85% 0, 100% 18%, 50% 100%, 0 18%);
}

/* ---------- FAQ ---------- */
.faq { max-width: 46rem; }
.faq details {
  border: 1px solid rgba(46,196,182,0.3);
  border-left: 4px solid var(--aqua);
  margin-bottom: 0.8rem;
  background: var(--navy-deep);
}
.section--sand .faq details { background: var(--white); border-color: rgba(11,37,69,0.15); border-left-color: var(--aqua); }
.faq summary {
  cursor: pointer; padding: 1rem 1.1rem;
  font-family: var(--font-head); font-weight: 800; font-size: 1.02rem;
  list-style: none; position: relative; padding-right: 2.4rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 1.1rem; top: 50%;
  transform: translateY(-50%);
  color: var(--aqua); font-size: 1.4rem; font-weight: 400;
}
.faq details[open] summary::after { content: "-"; }
.faq details p { padding: 0 1.1rem 1.1rem; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--aqua); color: var(--navy);
  clip-path: polygon(0 2rem, 100% 0, 100% 100%, 0 100%);
  padding: 4.5rem 0 3.5rem;
}
.cta-band h2 { color: var(--navy); max-width: 22ch; }
.cta-band p { max-width: 55ch; font-size: 1.1rem; }
.cta-band a:not(.btn) { color: var(--navy); font-weight: 700; }

/* ---------- Prose pages ---------- */
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.4rem; }
.prose ul { padding-left: 1.2rem; }

.page-hero { padding: 3.5rem 0 3rem; background: linear-gradient(115deg, var(--navy-deep), var(--navy)); }
.page-hero h1 { max-width: 22ch; }
.page-hero .lead { max-width: 56ch; color: var(--muted); }

/* ---------- Forms ---------- */
.contact-form { max-width: 34rem; display: grid; gap: 1rem; margin-top: 1.5rem; }
.contact-form label {
  display: block; font-family: var(--font-head); font-weight: 800;
  font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase;
  margin-bottom: 0.3rem; color: var(--navy);
}
.contact-form input, .contact-form textarea {
  width: 100%; padding: 0.75rem 0.9rem;
  font-family: var(--font-body); font-size: 1rem;
  border: 2px solid var(--navy); background: var(--white); color: var(--ink);
  border-radius: 0;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: 3px solid var(--aqua); outline-offset: 1px;
}
.hidden-field { display: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  border-top: 3px solid var(--aqua);
  padding: 3rem 0 2rem;
}
.footer-grid {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--pad);
  display: grid; gap: 2rem;
}
@media (min-width: 800px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

.footer-brand p { color: var(--muted); font-size: 0.95rem; max-width: 32ch; }
.footer-brand .brand { margin-bottom: 0.8rem; }

.site-footer h2 {
  font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--aqua); margin-bottom: 0.8rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.site-footer ul a { color: var(--white); font-size: 0.95rem; }
.site-footer ul a:hover { color: var(--aqua); }

.footer-bottom {
  max-width: var(--max); margin: 2.5rem auto 0; padding: 1.2rem var(--pad) 0;
  border-top: 1px solid rgba(46,196,182,0.2);
  font-size: 0.88rem; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between;
}
.footer-bottom p { margin: 0; }

/* ---------- 404 ---------- */
.err-hero { min-height: 55vh; display: grid; place-items: center; text-align: center; padding: 5rem 0; }
.err-hero .tooth { width: 3rem; height: 3.4rem; margin: 0 auto 1.2rem; }
.err-code { font-family: var(--font-head); font-weight: 800; font-size: 4.5rem; color: var(--aqua); line-height: 1; display: block; }

/* mobile fixes */
.grid > *, .split > *, .footer-grid > *, .steps > li { min-width: 0; }
.site-footer, .footer-bottom, .prose, .card { overflow-wrap: break-word; }
@media (max-width: 959px) {
  .nav-toggle { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
  .site-nav.open { max-height: calc(100vh - 70px); overflow-y: auto; }
  .site-nav a { min-height: 44px; display: flex; align-items: center; }
  .nav-cta { justify-content: center; }
}
@media (max-width: 799px) {
  .site-footer ul { gap: 0; }
  .site-footer ul a { display: inline-block; padding: 0.5rem 0; }
}

/* form select (match text inputs) */
.contact-form select {
  width: 100%; padding: 0.75rem 0.9rem;
  font-family: var(--font-body); font-size: 1rem;
  border: 2px solid var(--navy); background: var(--white); color: var(--ink);
  border-radius: 0;
}
.contact-form select:focus {
  outline: 3px solid var(--aqua); outline-offset: 1px;
}
