/*
Theme Name: Hawaii Shoreline Solutions
Theme URI: https://hawaiishorelinesolutions.com
Author: Hawaii Shoreline Solutions
Author URI: https://hawaiishorelinesolutions.com
Description: A science-driven coastal restoration theme for Hawaii Shoreline Solutions.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hss-theme
*/

/* ── VARIABLES ── */
:root {
  --navy: #1a2d4a;
  --navy-deep: #0f1d33;
  --sand: #d4b97c;
  --sand-light: #e8d5a8;
  --cream: #f5f0e6;
  --cream-warm: #faf6ee;
  --slate: #3a4a5c;
  --text: #2c3e50;
  --text-light: #6b7b8d;
  --white: #ffffff;
  --accent: #2e7d8c;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--cream-warm);
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'DM Serif Display', serif; font-weight: 400; }

img { max-width: 100%; height: auto; }

a { text-decoration: none; }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(26,45,74,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212,185,124,0.15);
  transition: all 0.4s ease;
}
.nav.scrolled { background: rgba(15,29,51,0.98); }
.nav-inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px;
}
.nav-logo {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none;
}
.nav-logo img { height: 44px; width: 44px; border-radius: 50%; }
.nav-logo span {
  font-family: 'DM Serif Display', serif;
  font-size: 18px; color: var(--sand-light);
  letter-spacing: 0.02em;
}
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.75); text-decoration: none;
  font-size: 14px; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; transition: color 0.3s;
}
.nav-links a:hover { color: var(--sand); }
.nav-cta {
  display: inline-block;
  background: transparent; border: 1.5px solid var(--sand);
  color: var(--sand); padding: 10px 24px; font-size: 13px;
  font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; transition: all 0.3s; text-decoration: none;
}
.nav-cta:hover { background: var(--sand); color: var(--navy-deep); }

/* Mobile menu toggle */
.nav-toggle {
  display: none; background: none; border: none;
  cursor: pointer; padding: 8px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--sand); margin: 5px 0;
  transition: all 0.3s;
}

/* ── HERO ── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: flex-end;
  padding: 0 0 80px 0;
  background-size: cover; background-position: center;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15,29,51,0.3) 0%,
    rgba(15,29,51,0.5) 50%,
    rgba(15,29,51,0.85) 100%
  );
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 1240px; margin: 0 auto; padding: 0 32px; width: 100%;
}
.hero-tag {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--sand);
  border: 1px solid rgba(212,185,124,0.4);
  padding: 6px 16px; margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(40px, 5.5vw, 72px);
  color: var(--white); line-height: 1.12;
  max-width: 780px; margin-bottom: 24px;
}
.hero p {
  font-size: 19px; color: rgba(255,255,255,0.8);
  max-width: 560px; font-weight: 300; line-height: 1.8;
  margin-bottom: 40px;
}
.hero-btn {
  display: inline-block; padding: 16px 40px;
  background: var(--sand); color: var(--navy-deep);
  text-decoration: none; font-weight: 600; font-size: 14px;
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: all 0.3s;
}
.hero-btn:hover { background: var(--sand-light); transform: translateY(-2px); }

/* ── SECTIONS ── */
.section {
  padding: 100px 32px;
  max-width: 1240px; margin: 0 auto;
}
.section-dark {
  background: var(--navy-deep);
  padding: 100px 32px;
}
.section-dark .inner { max-width: 1240px; margin: 0 auto; }
.section-slate {
  background: var(--slate);
  padding: 100px 32px;
}
.section-slate .inner { max-width: 1240px; margin: 0 auto; }
.section-cream {
  background: var(--cream);
  padding: 100px 32px;
}
.section-cream .inner { max-width: 1240px; margin: 0 auto; }

.label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--sand);
  margin-bottom: 16px; display: block;
  font-family: 'Source Sans 3', sans-serif;
}
.label-light { color: var(--accent); }

.section-title {
  font-size: clamp(32px, 4vw, 50px);
  color: var(--navy); line-height: 1.2;
  margin-bottom: 20px;
}
.section-title-light { color: var(--cream); }

.section-sub {
  font-size: 18px; color: var(--text-light);
  max-width: 640px; font-weight: 300; line-height: 1.8;
  margin-bottom: 48px;
}
.section-sub-light { color: rgba(255,255,255,0.65); }

/* ── CRISIS GRID ── */
.crisis-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px; margin-top: 48px;
}
.crisis-card {
  position: relative; overflow: hidden;
  aspect-ratio: 4/3;
}
.crisis-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.crisis-card:hover img { transform: scale(1.05); }
.crisis-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 24px;
  background: linear-gradient(transparent, rgba(15,29,51,0.9));
}
.crisis-overlay h4 {
  color: var(--white); font-size: 20px; margin-bottom: 4px;
}
.crisis-overlay p {
  color: rgba(255,255,255,0.7); font-size: 14px; font-weight: 300;
}

/* ── STATS ── */
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.stat-item { text-align: center; }
.stat-num {
  font-family: 'DM Serif Display', serif;
  font-size: 48px; color: var(--sand); line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 13px; color: rgba(255,255,255,0.5);
  text-transform: uppercase; letter-spacing: 0.1em;
  font-family: 'Source Sans 3', sans-serif;
}

/* ── APPROACH ── */
.approach-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 40px; margin-top: 48px;
}
.approach-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(212,185,124,0.12);
  padding: 40px 32px;
  transition: all 0.4s;
}
.approach-card:hover {
  border-color: rgba(212,185,124,0.3);
  background: rgba(255,255,255,0.08);
}
.approach-num {
  font-family: 'DM Serif Display', serif;
  font-size: 48px; color: rgba(212,185,124,0.2);
  line-height: 1; margin-bottom: 20px;
}
.approach-card h4 {
  color: var(--cream); font-size: 22px; margin-bottom: 12px;
}
.approach-card p {
  color: rgba(255,255,255,0.6); font-size: 15px; line-height: 1.7;
}

/* ── PHOTO ROW ── */
.photo-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.photo-row img {
  width: 100%; height: 320px; object-fit: cover; display: block;
}

/* ── SERVICES ── */
.services-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 24px; margin-top: 48px;
}
.service-item {
  background: var(--white);
  padding: 40px;
  border: 1px solid rgba(26,45,74,0.08);
  transition: all 0.3s;
}
.service-item:hover {
  box-shadow: 0 8px 40px rgba(26,45,74,0.08);
  transform: translateY(-3px);
}
.service-item h4 {
  font-size: 24px; color: var(--navy);
  margin-bottom: 12px;
}
.service-item p {
  font-size: 15px; color: var(--text-light); line-height: 1.7;
}

/* ── TEAM ── */
.team-split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.team-img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
}
.team-text h3 {
  font-size: 36px; color: var(--cream); margin-bottom: 20px;
}
.team-text p {
  font-size: 16px; color: rgba(255,255,255,0.65);
  line-height: 1.8; margin-bottom: 16px;
}
.team-highlight {
  border-left: 3px solid var(--sand);
  padding-left: 20px; margin-top: 24px;
}
.team-highlight p {
  font-size: 15px; font-style: italic;
  color: rgba(255,255,255,0.5);
}

/* ── FULL WIDTH IMAGE ── */
.full-image img {
  width: 100%; height: 400px; object-fit: cover; display: block;
}

/* ── CTA ── */
.cta-section {
  text-align: center; padding: 120px 32px;
  background: var(--navy-deep);
}
.cta-section h2 {
  font-size: clamp(32px, 4vw, 48px);
  color: var(--cream); margin-bottom: 20px;
}
.cta-section p {
  font-size: 18px; color: rgba(255,255,255,0.6);
  max-width: 560px; margin: 0 auto 40px;
  font-weight: 300;
}
.cta-btn {
  display: inline-block; padding: 18px 48px;
  background: var(--sand); color: var(--navy-deep);
  text-decoration: none; font-weight: 700; font-size: 14px;
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: all 0.3s;
}
.cta-btn:hover { background: var(--sand-light); transform: translateY(-2px); }

/* ── FOOTER ── */
.site-footer {
  background: #0a1524; padding: 60px 32px 40px;
  text-align: center;
}
.footer-inner { max-width: 1240px; margin: 0 auto; }
.footer-logo { height: 40px; width: 40px; border-radius: 50%; margin-bottom: 16px; }
.site-footer p {
  font-size: 13px; color: rgba(255,255,255,0.3);
  margin-bottom: 8px;
}
.site-footer a { color: rgba(255,255,255,0.4); text-decoration: none; }
.site-footer a:hover { color: var(--sand); }

/* ── ANIMATIONS ── */
.fade-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.active {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(15,29,51,0.98);
    padding: 24px 32px; gap: 16px;
  }
  .crisis-grid { grid-template-columns: 1fr; }
  .approach-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .team-split { grid-template-columns: 1fr; gap: 40px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .photo-row { grid-template-columns: 1fr; }
  .photo-row img { height: 240px; }
  .full-image img { height: 280px; }
  .hero { min-height: 90vh; padding-bottom: 60px; }
}

@media (max-width: 600px) {
  .stats-row { grid-template-columns: 1fr; gap: 32px; }
  .stat-num { font-size: 40px; }
  .nav-inner { padding: 14px 20px; }
  .section { padding: 60px 20px; }
  .section-dark, .section-slate, .section-cream { padding: 60px 20px; }
  .cta-section { padding: 80px 20px; }
}
