/* ============================================
   EXPERIMENTS4GOOD — styles.css
   Brand: Fraunces (display) / Inter (body)
   Palette: Navy / Gold / Green / Coral
   v2 — Design pass
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400&family=Inter:wght@300;400;500;600&display=swap');

/* --- Custom Properties --- */
:root {
  --navy: #1a2744;
  --navy-light: #243352;
  --navy-dark: #111c33;
  --gold: #d4a24e;
  --gold-light: #e8c374;
  --gold-muted: #c49a4a;
  --green: #3a7d5c;
  --green-light: #4a9970;
  --green-muted: #2e6349;
  --coral: #e07c5a;
  --coral-light: #f09878;
  --coral-muted: #c46a4a;
  --cream: #faf7f2;
  --cream-dark: #f0ebe3;
  --warm-gray: #6b6560;
  --warm-gray-light: #9e9892;
  --text-primary: #2a2522;
  --text-secondary: #5c5652;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(26, 39, 68, 0.08);
  --shadow-md: 0 4px 14px rgba(26, 39, 68, 0.1);
  --shadow-lg: 0 8px 30px rgba(26, 39, 68, 0.12);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --max-width: 1100px;
  --max-width-narrow: 700px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--cream);
}

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

a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
a:hover { color: var(--green-muted); }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
}
h1 { font-size: 2.75rem; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 1.9rem; letter-spacing: -0.01em; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; font-weight: 500; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* --- Layout --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }
.container--narrow { max-width: var(--max-width-narrow); margin: 0 auto; padding: 0 2rem; }
.section { padding: 4.5rem 0; }
.section--navy { background-color: var(--navy); color: var(--cream); }
.section--navy h2, .section--navy h3 { color: var(--gold); }
.section--navy a { color: var(--gold-light); }
.section--cream-dark { background-color: var(--cream-dark); }

/* --- Header / Nav --- */
.site-header {
  background-color: var(--navy);
  padding: 0.9rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(17, 28, 51, 0.3);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.site-logo:hover { color: var(--gold); }
.site-logo span { color: var(--gold); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cream);
  margin: 5px 0;
  transition: all 0.3s ease;
}
.site-nav ul {
  display: flex;
  list-style: none;
  gap: 1.75rem;
  align-items: center;
}
.site-nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.8;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.site-nav a:hover, .site-nav a.active { opacity: 1; color: var(--gold); }

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--navy-dark);
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow-lg);
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 1rem; }
  .site-nav a { font-size: 1rem; }
}

/* --- Footer --- */
.site-footer {
  background-color: var(--navy-dark);
  color: var(--cream);
  padding: 2.5rem 0 1.5rem;
  font-size: 0.85rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-brand { max-width: 340px; }
.footer-brand p { opacity: 0.7; line-height: 1.6; margin-top: 0.5rem; }
.footer-links ul { list-style: none; display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a {
  color: var(--cream);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.footer-links a:hover { opacity: 1; color: var(--gold); }
.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(250, 247, 242, 0.08);
  text-align: center;
  opacity: 0.45;
  font-size: 0.78rem;
}

/* --- Hero --- */
.hero {
  background: linear-gradient(165deg, var(--navy-dark) 0%, var(--navy) 30%, var(--navy-light) 60%, var(--navy) 100%);
  background-size: 200% 200%;
  animation: heroGradient 12s ease infinite;
  padding: 5rem 0 4.5rem;
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
@keyframes heroGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
/* Dot grid */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(212, 162, 78, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}
/* Warm glow - animated */
.hero::after {
  content: '';
  position: absolute;
  top: -35%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 162, 78, 0.12) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
  animation: heroPulse 8s ease-in-out infinite;
  z-index: 0;
}
@keyframes heroPulse {
  0%, 100% { transform: scale(1) translate(0, 0); opacity: 0.8; }
  50% { transform: scale(1.15) translate(-20px, 15px); opacity: 1; }
}

/* Floating shapes */
.hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-shapes span {
  position: absolute;
  display: block;
  border-radius: 50%;
  opacity: 0;
  animation: shapeFloat 18s ease-in-out infinite;
}
.hero-shapes .s1 {
  width: 180px; height: 180px;
  border: 1.5px solid rgba(212, 162, 78, 0.15);
  top: 10%; right: 8%;
  animation-duration: 20s;
}
.hero-shapes .s2 {
  width: 90px; height: 90px;
  border: 1.5px solid rgba(58, 125, 92, 0.12);
  bottom: 15%; right: 25%;
  animation-delay: -4s;
  animation-duration: 16s;
}
.hero-shapes .s3 {
  width: 50px; height: 50px;
  background: rgba(224, 124, 90, 0.06);
  top: 55%; right: 12%;
  animation-delay: -8s;
  animation-duration: 14s;
}
.hero-shapes .s4 {
  width: 40px; height: 40px;
  border: 1.5px solid rgba(212, 162, 78, 0.1);
  border-radius: 4px;
  top: 25%; right: 35%;
  animation-name: shapeFloatDiamond;
  animation-delay: -2s;
  animation-duration: 22s;
}
.hero-shapes .s5 {
  width: 12px; height: 12px;
  background: rgba(58, 125, 92, 0.15);
  top: 35%; right: 18%;
  animation-delay: -6s;
  animation-duration: 12s;
}
.hero-shapes .s6 {
  width: 120px; height: 120px;
  border: 1px solid rgba(212, 162, 78, 0.08);
  bottom: 5%; left: 5%;
  animation-delay: -10s;
  animation-duration: 24s;
}

@keyframes shapeFloat {
  0%, 100% { opacity: 0; transform: translateY(20px) scale(0.95); }
  15% { opacity: 1; }
  50% { opacity: 1; transform: translateY(-15px) scale(1.05); }
  85% { opacity: 1; }
}
@keyframes shapeFloatDiamond {
  0%, 100% { opacity: 0; transform: rotate(45deg) translateY(15px) scale(0.9); }
  15% { opacity: 1; }
  50% { opacity: 1; transform: rotate(45deg) translateY(-12px) scale(1.08); }
  85% { opacity: 1; }
}

.hero .container { position: relative; z-index: 1; }
.hero h1 {
  color: var(--cream);
  max-width: 680px;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 20px rgba(17, 28, 51, 0.4);
  animation: heroTextIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
/* Subtle light-catching shift on the h1 */
@keyframes heroLightShift {
  0%, 100% { text-shadow: 0 2px 20px rgba(17, 28, 51, 0.4), 0 0 0 transparent; }
  50% { text-shadow: 0 2px 24px rgba(17, 28, 51, 0.3), 0 0 30px rgba(212, 162, 78, 0.04); }
}
.hero h1 {
  animation: heroTextIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) both,
             heroLightShift 8s ease-in-out 1s infinite;
}

/* Gold "4" pulse - home page only */
.hero h1 .text-gold {
  display: inline-block;
  animation: goldPulse 4s ease-in-out 1.2s infinite;
}
@keyframes goldPulse {
  0%, 100% { text-shadow: 0 0 0 transparent; }
  50% { text-shadow: 0 0 18px rgba(212, 162, 78, 0.35); }
}

.hero .tagline {
  font-size: 1.15rem;
  line-height: 1.75;
  max-width: 580px;
  opacity: 0;
  font-weight: 300;
  animation: heroTextIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}
.hero .cta-row {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: heroTextIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

/* Choreographed entrance */
@keyframes heroTextIn {
  from {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* Shorter hero for sub-pages */
.hero--short { padding: 3.5rem 0 3rem; }
.hero--short .hero-shapes .s1 { width: 120px; height: 120px; }
.hero--short .hero-shapes .s6 { display: none; }
.hero--short h1 {
  animation: heroTextIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both,
             heroLightShift 8s ease-in-out 0.8s infinite;
}
.hero--short .tagline {
  animation: heroTextIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn--gold { background-color: var(--gold); color: var(--navy); }
.btn--gold:hover { background-color: var(--gold-light); color: var(--navy); }
.btn--outline { background: transparent; border-color: rgba(250,247,242,0.5); color: var(--cream); }
.btn--outline:hover { background-color: rgba(250, 247, 242, 0.08); border-color: var(--cream); color: var(--cream); }
.btn--coral { background-color: var(--coral); color: var(--white); }
.btn--coral:hover { background-color: var(--coral-muted); color: var(--white); }
.btn--green { background-color: var(--green); color: var(--white); }
.btn--green:hover { background-color: var(--green-muted); color: var(--white); }
.btn--navy { background-color: var(--navy); color: var(--cream); }
.btn--navy:hover { background-color: var(--navy-light); color: var(--cream); }

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(26, 39, 68, 0.06);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  position: relative;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--text-secondary); font-size: 0.93rem; line-height: 1.65; }

/* Card icon */
.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
}
.card-icon svg { width: 100%; height: 100%; }

/* Card accent bar */
.card-accent {
  display: inline-block;
  width: 36px;
  height: 3px;
  border-radius: 2px;
  margin-bottom: 0.75rem;
}
.card-accent--gold { background-color: var(--gold); }
.card-accent--green { background-color: var(--green); }
.card-accent--coral { background-color: var(--coral); }

/* --- Value Cards (About, navy bg) --- */
.value-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}
.value-card {
  background: rgba(250, 247, 242, 0.04);
  border: 1px solid rgba(212, 162, 78, 0.2);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: border-color 0.2s;
}
.value-card:hover { border-color: rgba(212, 162, 78, 0.45); }
.value-card h3 { color: var(--gold); margin-bottom: 0.6rem; font-size: 1.15rem; }
.value-card p { opacity: 0.88; font-size: 0.93rem; line-height: 1.7; }

/* --- Prose --- */
.prose { max-width: var(--max-width-narrow); }
.prose p { font-size: 1.02rem; color: var(--text-secondary); margin-bottom: 1.15rem; }
.prose p:last-child { margin-bottom: 0; }

/* --- Section Headers --- */
.section-header { margin-bottom: 2.5rem; }
.section-header h2 { margin-bottom: 0.6rem; }
.section-header p { color: var(--text-secondary); font-size: 1rem; max-width: 580px; }

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(212, 162, 78, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.cta-banner h2 { color: var(--gold); margin-bottom: 0.75rem; position: relative; }
.cta-banner p { opacity: 0.85; max-width: 480px; margin: 0 auto 1.25rem; position: relative; }
.cta-banner .btn { position: relative; }

/* --- Forms --- */
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
  color: var(--text-primary);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.93rem;
  border: 1px solid rgba(26, 39, 68, 0.15);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text-primary);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(58, 125, 92, 0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* --- Email Gate --- */
.email-gate {
  background: var(--white);
  border: 1px solid rgba(26, 39, 68, 0.08);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  max-width: 460px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}
.email-gate h3 { margin-bottom: 0.4rem; }
.email-gate p { color: var(--text-secondary); font-size: 0.93rem; margin-bottom: 1.25rem; }
.email-gate .form-row { display: flex; gap: 0.75rem; }
.email-gate input[type="email"] {
  flex: 1;
  padding: 0.7rem 0.9rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.93rem;
  border: 1px solid rgba(26, 39, 68, 0.15);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text-primary);
}
.email-gate input[type="email"]:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(58, 125, 92, 0.1);
}
.email-gate .btn { white-space: nowrap; }
.email-gate .success-msg { display: none; color: var(--green); font-weight: 500; margin-top: 1rem; font-size: 0.93rem; }
.email-gate .error-msg { display: none; color: var(--coral); font-size: 0.85rem; margin-top: 0.5rem; }

/* --- Status Badge --- */
.status-badge {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 20px;
  margin-bottom: 0.85rem;
}
.status-badge--live { background: rgba(58, 125, 92, 0.12); color: var(--green); }
.status-badge--building { background: rgba(212, 162, 78, 0.15); color: var(--gold-muted); }
.status-badge--coming { background: rgba(107, 101, 96, 0.1); color: var(--warm-gray); }

/* --- About Intro --- */
.about-intro {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  max-width: 700px;
}
.about-intro-text p {
  font-size: 1.08rem;
  color: var(--text-primary);
  line-height: 1.75;
  margin: 0;
}
.about-intro-photo {
  width: 150px;
  min-width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--gold);
  box-shadow: 0 4px 16px rgba(26, 39, 68, 0.12);
}
.about-intro-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* --- Section Divider --- */
.section-divider {
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--green) 50%, var(--coral) 100%);
  border: none;
  opacity: 0.3;
}

/* --- Info Box --- */
.info-box {
  padding: 1.25rem 1.5rem;
  background: var(--cream-dark);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--gold);
}
.info-box p {
  font-size: 0.93rem;
  color: var(--text-secondary);
  margin: 0;
}
.info-box strong { color: var(--text-primary); }

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 0.5s ease-out both; }
.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.2s; }
.fade-in-delay-3 { animation-delay: 0.3s; }

/* --- Responsive --- */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.55rem; }
  .section { padding: 3rem 0; }
  .hero { padding: 3.5rem 0 3rem; }
  .hero--short { padding: 2.5rem 0 2rem; }
  .card-grid { grid-template-columns: 1fr; }
  .value-cards { grid-template-columns: 1fr; }
  .cta-banner { padding: 2rem 1.5rem; }
  .footer-inner { flex-direction: column; }
  .email-gate .form-row { flex-direction: column; }
  .about-intro { flex-direction: column; text-align: center; }
  .about-intro-photo { width: 130px; min-width: 130px; height: 130px; order: -1; }
}

/* --- Utility --- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.text-gold { color: var(--gold); }
.text-green { color: var(--green); }
.text-coral { color: var(--coral); }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
