/*
 * coastify.css — Shared stylesheet for Coastify static site
 * Generated for Netlify deployment
 * Link in every page: <link rel="stylesheet" href="/coastify.css"/>
 */

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ── DESIGN TOKENS ── */
:root {
  --teal:       #2BBFBF;
  --teal-dim:   rgba(43,191,191,0.1);
  --teal-mid:   rgba(43,191,191,0.25);
  --dark:       #003d40;
  --darker:     #002528;
  --off-white:  #f7f9f9;
  --sand:       #C9A96E;
  --sand-dim:   rgba(201,169,110,0.12);
  --sand-light: #f0e8db;
  --white:      #ffffff;
  --light:      #4a6565;
  --text-muted: rgba(255,255,255,0.5);
  --text-body:  rgba(255,255,255,0.78);
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans:  "DM Sans", Arial, sans-serif;
  --radius-sm:  10px;
  --radius-md:  16px;
  --radius-lg:  20px;
  --radius-xl:  24px;
  --radius-pill: 50px;
}

/* ── BASE ── */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--white);
  background: var(--darker);
  min-height: 100vh;
  overflow-x: hidden;
}

body.light-bg {
  background: var(--white);
  color: var(--dark);
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 300; line-height: 1.1; }
h1 { font-size: clamp(38px, 5.5vw, 62px); }
h2 { font-size: clamp(28px, 3.5vw, 46px); }
h3 { font-size: clamp(18px, 2vw, 26px); font-weight: 600; }
em { font-style: italic; }
p { line-height: 1.75; }
strong { font-weight: 600; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 48px;
  background: rgba(0,37,40,0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(43,191,191,0.1);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 4px 32px rgba(0,0,0,0.3); }
.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.4rem; font-weight: 600;
  color: var(--teal); text-decoration: none; letter-spacing: 0.05em;
}
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.6);
  text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--teal); }
.nav-cta {
  display: inline-block; padding: 10px 24px;
  border-radius: var(--radius-pill);
  background: var(--teal); color: var(--darker);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; text-decoration: none; transition: background 0.2s;
}
.nav-cta:hover { background: #22a8a8; }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: rgba(255,255,255,0.7); border-radius: 2px; transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  display: none; position: fixed;
  top: 72px; left: 0; right: 0; bottom: 0;
  background: rgba(0,37,40,0.97);
  backdrop-filter: blur(16px);
  z-index: 99; flex-direction: column;
  align-items: center; justify-content: center; gap: 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-serif); font-size: 1.6rem;
  font-weight: 300; color: var(--white);
  text-decoration: none; transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--teal); }
.mobile-menu .nav-cta { font-size: 1rem; padding: 14px 36px; font-family: var(--font-sans); }

/* ── BUTTONS ── */
.btn {
  display: inline-block; padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans); font-size: 0.9rem;
  font-weight: 600; letter-spacing: 0.04em;
  text-decoration: none; cursor: pointer;
  transition: all 0.25s; border: none;
}
.btn-primary { background: var(--teal); color: var(--white); box-shadow: 0 4px 20px rgba(43,191,191,0.3); }
.btn-primary:hover { background: #22a8a8; transform: translateY(-1px); box-shadow: 0 6px 28px rgba(43,191,191,0.45); }
.btn-outline { background: transparent; color: var(--dark); border: 2px solid var(--teal); }
.btn-outline:hover { background: var(--teal); color: var(--white); }
.btn-outline-light { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.4); }
.btn-outline-light:hover { border-color: var(--teal); color: var(--teal); }
.btn-sand { background: var(--sand); color: var(--darker); }
.btn-sand:hover { background: #b8966a; transform: translateY(-1px); }
.btn-block { display: block; text-align: center; width: 100%; }

/* ── SECTION UTILITIES ── */
.section-eyebrow {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 14px;
}
.section-eyebrow-sand {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--sand); margin-bottom: 14px; opacity: 0.85;
}
.wave-div { width: 48px; height: 2px; background: var(--teal); margin: 28px 0; opacity: 0.5; }
.wave-div.centered { margin: 28px auto; }
.text-teal { color: var(--teal); }
.text-sand { color: var(--sand); }
.text-muted { color: var(--text-muted); }

/* ── HERO (dark) ── */
.hero-dark {
  padding: 150px 48px 80px;
  text-align: center;
  background: linear-gradient(160deg, var(--darker) 0%, var(--dark) 100%);
  position: relative; overflow: hidden;
}
.hero-dark::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(43,191,191,0.08) 0%, transparent 65%);
  pointer-events: none;
}
.hero-dark h1 { color: var(--white); margin-bottom: 20px; }
.hero-dark .hero-sub { font-size: 1rem; color: var(--text-muted); max-width: 500px; margin: 0 auto; line-height: 1.75; }

/* ── CARD BASE ── */
.card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(43,191,191,0.15);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}
.card:hover { border-color: rgba(43,191,191,0.35); background: rgba(43,191,191,0.04); transform: translateY(-3px); }
.card-light {
  background: var(--white);
  border: 1px solid rgba(43,191,191,0.12);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: box-shadow 0.25s, transform 0.25s;
}
.card-light:hover { box-shadow: 0 16px 48px rgba(0,61,64,0.1); transform: translateY(-4px); }

/* ── CARD ICON ── */
.card-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--sand-dim);
  border: 1px solid rgba(201,169,110,0.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; flex-shrink: 0;
}
.card-icon svg { width: 22px; height: 22px; }
.card-icon-teal { background: rgba(43,191,191,0.12); border-color: rgba(43,191,191,0.2); }

/* ── PRODUCT CARD ── */
.product-card {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid rgba(43,191,191,0.15);
  background: var(--white); display: block;
  text-decoration: none; color: inherit;
  transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
}
.product-card:hover { box-shadow: 0 20px 60px rgba(0,61,64,0.12); transform: translateY(-6px); border-color: rgba(43,191,191,0.32); }
.product-img { overflow: hidden; position: relative; background: var(--off-white); }
.product-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s; }
.product-card:hover .product-img img { transform: scale(1.05); }
.product-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: var(--teal); color: var(--white);
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 5px 13px; border-radius: 20px;
}
.product-badge-sand { background: var(--sand); }

/* ── TIP BOX ── */
.tip {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--sand-dim);
  border: 1px solid rgba(201,169,110,0.2);
  border-radius: var(--radius-sm); padding: 14px 16px; margin-top: 14px;
}
.tip-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.tip p { color: rgba(255,255,255,0.7); font-size: 0.83rem; margin: 0; line-height: 1.6; }

/* ── TESTIMONIAL ── */
.testimonial {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(43,191,191,0.2);
  border-radius: 18px; padding: 32px 26px;
}
.testimonial blockquote {
  font-family: var(--font-serif); font-size: 1.1rem;
  font-style: italic; color: rgba(255,255,255,0.92);
  line-height: 1.7; margin: 0 0 20px;
}
.testimonial .stars { color: var(--sand); font-size: 0.9rem; letter-spacing: 2px; margin-bottom: 16px; }
.testimonial strong { display: block; font-size: 0.9rem; color: var(--teal); margin-bottom: 2px; }
.testimonial span { font-size: 0.8rem; color: var(--text-muted); }

/* ── HELP BANNER ── */
.help-banner {
  background: linear-gradient(135deg, rgba(43,191,191,0.1) 0%, rgba(0,61,64,0.4) 100%);
  border: 1px solid rgba(43,191,191,0.25);
  border-radius: 18px; padding: 32px 36px;
  display: flex; align-items: center;
  justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.help-banner h3 { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 300; color: var(--white); margin-bottom: 6px; }
.help-banner h3 em { color: var(--teal); font-style: italic; }
.help-banner p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }
.help-links { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid rgba(43,191,191,0.1);
  padding: 22px 48px;
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-logo {
  font-family: var(--font-serif); font-size: 1rem;
  font-weight: 600; color: var(--teal); letter-spacing: 0.08em;
}
footer p { font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.05em; }

/* ── PULSE ANIMATION ── */
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal); animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

/* ── FADE IN ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── GRID HELPERS ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }

/* ── SPACING UTILITIES ── */
.pad-page { padding: 80px 48px; }
.pad-section { padding: 72px 48px; }
.max-860 { max-width: 860px; margin-left: auto; margin-right: auto; }
.max-960 { max-width: 960px; margin-left: auto; margin-right: auto; }
.max-1100 { max-width: 1100px; margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }

/* ── MOBILE ── */
@media (max-width: 768px) {
  nav { padding: 14px 20px; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr !important; }
  .pad-page, .pad-section { padding: 52px 20px; }
  footer { padding: 20px; flex-direction: column; text-align: center; }
  .help-banner { margin-left: 20px; margin-right: 20px; }
  h1 { font-size: clamp(32px, 8vw, 48px); }
  h2 { font-size: clamp(24px, 6vw, 36px); }
  .hero-dark { padding: 110px 20px 60px; }
}
@media (max-width: 480px) {
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
}
