/* SurfWG — shared stylesheet. Mobile-first, no build step.
   Palette and type system per SurfWG 2.0 Brand Identity. */

:root {
  /* Brand palette — measured/defined in SurfWG_2.0_Brand_Identity.pdf */
  --white: #ffffff;
  --blue: #22b1f5;        /* Brand Blue — primary */
  --blue-deep: #0075aa;   /* Deep Blue — hover/pressed, heading accents */
  --blue-light: #82c3eb;  /* Light Blue — tints */
  --cream: #f3ead9;       /* Warm Cream — alt-section backgrounds */
  --cream-dark: #e9dcc2;  /* darker cream — borders, placeholders */
  --ink: #2b2620;         /* Ink — body text */
  --ink-soft: #6b6255;    /* softened ink — secondary text */
  --sunset: #e8823c;      /* Sunset Accent — everyday accent */
  --pop-orange: #f56622;  /* Pop Orange — promo/marketing only */

  --radius: 10px;
  --max-width: 1120px;

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Helvetica, Arial, sans-serif;
  --font-display: "Bricolage Grotesque", var(--font-body);
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo,
    monospace;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  font-size: 16px;
}

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

a {
  color: var(--blue-deep);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.75em 1em;
  z-index: 200;
}
.skip-link:focus {
  left: 0;
}

/* Header / nav */

.site-header {
  border-bottom: 1px solid var(--cream-dark);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
}

.brand img {
  height: 36px;
  width: auto;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  position: relative;
}
.nav-toggle::before { margin-bottom: 5px; }
.nav-toggle::after { margin-top: 5px; }

.main-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--cream-dark);
}

.main-nav.is-open {
  display: block;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.main-nav a {
  display: block;
  padding: 0.6rem 0.25rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid var(--cream);
}

.main-nav a[aria-current="page"] {
  color: var(--blue-deep);
}

.nav-cta {
  display: none;
}

@media (min-width: 860px) {
  .site-header .container {
    position: relative;
  }
  .nav-toggle {
    display: none;
  }
  .main-nav {
    display: block;
    position: static;
    border-bottom: none;
  }
  .main-nav ul {
    flex-direction: row;
    padding: 0;
    gap: 1.5rem;
  }
  .main-nav a {
    border-bottom: none;
    padding: 0.25rem 0;
  }
  .nav-cta {
    display: inline-flex;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.5em;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--blue-deep);
}

.btn-outline {
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--blue-deep);
}

.btn-secondary {
  border-color: var(--blue);
  color: var(--blue-deep);
  background: transparent;
}
.btn-secondary:hover {
  background: var(--cream);
}

/* Hero */

.hero {
  background:
    linear-gradient(160deg, rgba(0, 117, 170, 0.85), rgba(34, 177, 245, 0.72) 80%),
    url("../images/banners/hero-surfer.jpg") center 42% / cover no-repeat;
  color: var(--white);
  padding: 3rem 0 3.5rem;
}

.hero .container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero h1 {
  color: var(--white);
  font-size: 2.1rem;
}

.hero p.lede {
  font-size: 1.1rem;
  max-width: 46ch;
}

.hero p.philosophy {
  font-size: 1.05rem;
  font-style: italic;
  max-width: 46ch;
  opacity: 0.95;
  border-left: 3px solid rgba(255, 255, 255, 0.6);
  padding-left: 0.9rem;
  margin: 0;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.hero-stats div {
  background: rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 0.9rem;
  text-align: center;
}

.hero-stats strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.3rem;
}

.hero-stats span {
  font-size: 0.85rem;
  opacity: 0.9;
}

@media (min-width: 860px) {
  .hero .container {
    max-width: 640px;
  }
  .hero h1 {
    font-size: 2.75rem;
  }
}

/* Sections */

.section {
  padding: 3rem 0;
}

.section-alt {
  background: var(--cream);
}

.section-head {
  max-width: 60ch;
  margin-bottom: 2rem;
}

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--blue-deep);
}

/* Cards / grid */

.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 860px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  display: flex;
  flex-direction: column;
}

.card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.card-body h3 {
  margin-bottom: 0.2em;
}

.card-body .price {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--blue-deep);
}

.card-foot {
  padding: 0 1.25rem 1.25rem;
}

.badge {
  display: inline-flex;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
  background: var(--pop-orange);
  border-radius: 999px;
  padding: 0.25em 0.75em;
}

/* Photo placeholder */

.placeholder {
  background: var(--cream-dark);
  color: var(--ink-soft);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.85rem;
  padding: 1rem;
  border-bottom: 1px solid var(--cream-dark);
}

/* Room photos */

.card-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: 1px solid var(--cream-dark);
}

.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Banner photos — full-width visual breaks between sections */

.banner {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 7;
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.banner-wide {
  aspect-ratio: 4 / 1;
}

/* Testimonials */

.testimonial {
  border-left: 3px solid var(--blue);
  padding-left: 1.25rem;
  margin-bottom: 1.75rem;
}

.testimonial:last-of-type {
  margin-bottom: 0;
}

.testimonial-quote {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.testimonial-attribution {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-bottom: 0;
}

.closing-line {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--ink);
  margin-top: 2rem;
  margin-bottom: 0;
}

/* Story section — quiet photo backdrop, image already has its own
   dark gradient baked in, so no extra overlay is added here. */

.story-bg {
  background: url("../images/banners/about-story-bg.jpg") center / cover no-repeat;
  padding: 3.5rem 0;
}

.story-bg .eyebrow {
  color: var(--cream);
  opacity: 0.9;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}

.story-bg h1 {
  color: var(--white);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}

.story-bg p {
  color: var(--cream);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}

@media (min-width: 640px) {
  .story-bg {
    padding: 5rem 0;
  }
}

/* Tables (pricing) — data, so monospace throughout */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
}

th, td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--cream-dark);
  white-space: nowrap;
}

thead th {
  background: var(--cream);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
}

tbody tr:last-child td {
  border-bottom: none;
}

.note {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: 0.75rem;
}

/* List with check icons */

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.check-list li {
  padding-left: 1.6em;
  position: relative;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--sunset);
  font-weight: 700;
}

/* CTA band */

.cta-band {
  background: var(--blue-deep);
  color: var(--white);
  padding: 2.5rem 0;
  text-align: center;
}

.cta-band h2 {
  color: var(--white);
}

.cta-band .btn-primary {
  margin-top: 0.5rem;
}

/* Footer */

.site-footer {
  background: var(--cream);
  border-top: 1px solid var(--cream-dark);
  padding: 2.5rem 0 1.5rem;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-grid h4 {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  font-weight: 600;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.footer-grid a {
  color: var(--ink);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid var(--cream-dark);
  padding-top: 1rem;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

/* Utility */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.font-mono { font-family: var(--font-mono); }
