/* =============================================================
   ISLAND HAPPENINGS — Brand System
   Color Palette:
     --ocean:      #1A3C4D   (deep ocean — headings, nav)
     --seafoam:    #2D9F83   (seafoam green — accents, links)
     --sunset:     #E8913A   (warm sunset orange — CTAs, highlights)
     --sand:       #FAF5ED   (warm sand — backgrounds)
     --coral:      #E06B5E   (coral — badges, alerts)
     --sky:        #87CEEB   (sky blue — secondary accents)
     --ink:        #2C3E44   (body text)
     --ink-muted:  #5D7178   (secondary text)
   ============================================================= */

:root {
  --ocean: #1A3C4D;
  --seafoam: #2D9F83;
  --seafoam-light: #3DBFA0;
  --sunset: #E8913A;
  --sunset-light: #F4A94D;
  --sand: #FAF5ED;
  --sand-dark: #F0E8DA;
  --coral: #E06B5E;
  --sky: #87CEEB;
  --ink: #2C3E44;
  --ink-muted: #5D7178;
  /* Accessible -text variants for body copy on white backgrounds */
  --seafoam-text: #1D7D64;
  --seafoam-light-text: #1F8F73;
  --sunset-text: #B05A12;
  --sunset-light-text: #C06716;
  --coral-text: #B33A2C;

  --white: #FFFFFF;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(26,60,77,0.08);
  --shadow-lg: 0 8px 32px rgba(26,60,77,0.12);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', 'Avenir Next', -apple-system, sans-serif;
  background: var(--sand);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--seafoam-text); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--sunset-text); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, h5 { color: var(--ocean); line-height: 1.25; }
h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 700; }
h2 { font-size: clamp(24px, 3.5vw, 36px); font-weight: 600; }
h3 { font-size: 22px; font-weight: 600; }
h4 { font-size: 18px; font-weight: 600; }
p { margin-bottom: 16px; color: var(--ink-muted); font-size: 17px; line-height: 1.75; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 24px; }

/* =============================================================
   NAV
   ============================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 48px;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(26,60,77,0.06);
  backdrop-filter: saturate(160%) blur(12px);
}
.nav-logo img { height: 55px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ocean);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--sunset-text); }
.nav-links a.active { color: var(--seafoam-text); border-bottom: 2px solid var(--seafoam); padding-bottom: 2px; }
.nav-cta {
  background: var(--sunset);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--sunset-light); color: var(--white) !important; transform: translateY(-1px); }
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; }

/* =============================================================
   HERO
   ============================================================= */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(26,60,77,0.25) 0%, rgba(26,60,77,0.10) 40%, rgba(26,60,77,0.35) 100%),
    url('/img/hero-beach.jpg') center/cover no-repeat;
}
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero .eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--sunset-light-text);
  margin-bottom: 16px;
}
.hero h1 { color: var(--white); margin-bottom: 20px; text-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.hero h1 em { font-style: italic; color: var(--sunset-light-text); }
.hero p { color: rgba(255,255,255,0.92); font-size: 20px; max-width: 600px; margin: 0 auto 36px; text-shadow: 0 1px 8px rgba(0,0,0,0.3); }
.hero-cta {
  display: inline-block;
  background: var(--sunset);
  color: var(--white);
  padding: 16px 40px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 20px rgba(232,145,58,0.4);
}
.hero-cta:hover { background: var(--sunset-light); color: var(--white); transform: translateY(-2px); }

/* Weather strip */
.weather-strip {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 700px;
  margin: -40px auto 0;
  position: relative;
  z-index: 3;
  box-shadow: var(--shadow-lg);
}
.weather-strip .temp { font-size: 36px; font-weight: 700; color: var(--ocean); }
.weather-strip .condition { font-size: 15px; color: var(--ink-muted); }
.weather-strip .details { font-size: 13px; color: var(--ink-muted); display: flex; gap: 16px; }

/* =============================================================
   SECTIONS
   ============================================================= */
.section { padding: 80px 0; }
.section-alt { background: var(--white); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--sunset-text);
  margin-bottom: 12px;
}
.section-header p { max-width: 600px; margin: 12px auto 0; }

/* =============================================================
   TODAY'S HAPPENINGS (Event Cards)
   ============================================================= */
.happenings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
.happening-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.happening-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.happening-card img { width: 100%; height: 200px; object-fit: cover; }
.happening-card .card-body { padding: 24px; }
.happening-card .time-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
}
.time-badge.morning { background: #FFF3E0; color: #E8913A; }
.time-badge.afternoon { background: #E0F2F1; color: #2D9F83; }
.time-badge.evening { background: #EDE7F6; color: #7E57C2; }
.time-badge.allday { background: #E3F2FD; color: #42A5F5; }
.happening-card h3 { font-size: 19px; margin-bottom: 8px; }
.happening-card .location {
  font-size: 14px;
  color: var(--seafoam-text);
  font-weight: 500;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.happening-card .description { font-size: 15px; color: var(--ink-muted); line-height: 1.6; }

/* === SPONSORED CARD (monetization) === */
.happening-card.sponsored {
  border: 2px solid var(--sunset-light);
  position: relative;
}
.happening-card.sponsored::before {
  content: 'FEATURED';
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--sunset);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 4px 12px;
  border-radius: 50px;
  z-index: 2;
}

/* =============================================================
   BUSINESS DIRECTORY
   ============================================================= */
.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.directory-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
}
.directory-card:hover { transform: translateY(-3px); }
.directory-card .biz-category {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--seafoam-text);
  margin-bottom: 8px;
}
.directory-card h4 { margin-bottom: 8px; }
.directory-card .biz-location { font-size: 14px; color: var(--ink-muted); margin-bottom: 12px; }
.directory-card .biz-desc { font-size: 15px; color: var(--ink-muted); flex: 1; }
.directory-card .biz-link {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--sunset-text);
}

/* Premium directory listing */
.directory-card.premium {
  border: 2px solid var(--sunset-light);
  background: linear-gradient(135deg, var(--white) 0%, #FFF8F0 100%);
  position: relative;
}
.directory-card.premium::after {
  content: '★ PREMIUM';
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--sunset-text);
}
.directory-card.premium .biz-photo {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

/* =============================================================
   NEWSLETTER ARCHIVE
   ============================================================= */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.archive-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.archive-card:hover { transform: translateY(-3px); }
.archive-card .date {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sunset-text);
  margin-bottom: 8px;
}
.archive-card h4 { margin-bottom: 8px; }
.archive-card p { font-size: 15px; }
.archive-card .read-link { font-size: 14px; font-weight: 600; color: var(--seafoam-text); margin-top: 12px; display: inline-block; }

/* =============================================================
   BLOG / GUIDES
   ============================================================= */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}
.guide-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.guide-card:hover { transform: translateY(-4px); }
.guide-card img { width: 100%; height: 220px; object-fit: cover; }
.guide-card .card-body { padding: 28px; }
.guide-card .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--seafoam-text);
  margin-bottom: 10px;
}
.guide-card h3 { font-size: 20px; margin-bottom: 10px; }

/* =============================================================
   SUBSCRIBE / NEWSLETTER CTA
   ============================================================= */
.subscribe-section {
  background: linear-gradient(135deg, var(--ocean) 0%, #245A6E 100%);
  padding: 80px 24px;
  text-align: center;
  color: var(--white);
}
.subscribe-section h2 { color: var(--white); margin-bottom: 12px; }
.subscribe-section p { color: rgba(255,255,255,0.8); max-width: 500px; margin: 0 auto 32px; }
.subscribe-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  gap: 12px;
}
.subscribe-form input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: 50px;
  font-size: 15px;
  outline: none;
}
.subscribe-form button {
  background: var(--sunset);
  color: var(--white);
  border: none;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.2s;
}
.subscribe-form button:hover { background: var(--sunset-light); }

/* =============================================================
   AD ZONES (Monetization)
   ============================================================= */
.ad-banner {
  background: linear-gradient(135deg, #FFF8F0 0%, #FFF3E0 100%);
  border: 1px solid rgba(232,145,58,0.2);
  border-radius: var(--radius);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 40px 0;
}
.ad-banner img { width: 120px; height: 120px; object-fit: cover; border-radius: var(--radius-sm); }
.ad-banner .ad-content h4 { margin-bottom: 4px; }
.ad-banner .ad-content p { font-size: 15px; margin-bottom: 8px; }
.ad-banner .ad-cta {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--sunset-text);
}
.ad-banner .ad-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-muted);
  opacity: 0.6;
}

/* Sidebar ad */
.ad-sidebar {
  background: var(--white);
  border: 1px solid rgba(232,145,58,0.15);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.ad-sidebar img { width: 100%; border-radius: var(--radius-sm); margin-bottom: 12px; }
.ad-sidebar .ad-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-muted);
  opacity: 0.6;
  margin-bottom: 8px;
}

/* =============================================================
   POWERED BY BADGE
   ============================================================= */
.powered-by {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 1px;
}
.powered-by img { height: 20px; opacity: 0.6; }
.powered-by a { color: var(--ink-muted); }
.powered-by a:hover { color: var(--seafoam-text); }

/* =============================================================
   FOOTER
   ============================================================= */
.footer {
  background: var(--ocean);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer h4 { color: var(--white); font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 20px; }
.footer p { font-size: 15px; color: rgba(255,255,255,0.6); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 14px; }
.footer-links a:hover { color: var(--sunset-light-text); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.footer-social { display: flex; gap: 16px; }
.footer-social a { color: rgba(255,255,255,0.5); font-size: 18px; }
.footer-social a:hover { color: var(--sunset-light-text); }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 768px) {
  .nav { padding: 12px 20px; }
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    padding: 24px;
    gap: 20px;
    box-shadow: var(--shadow-lg);
  }
  .hero { min-height: 70vh; padding: 100px 20px 60px; }
  .weather-strip { flex-direction: column; text-align: center; margin: -30px 20px 0; }
  .section { padding: 56px 0; }
  .happenings-grid, .directory-grid, .guides-grid, .archive-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .subscribe-form { flex-direction: column; }
  .ad-banner { flex-direction: column; text-align: center; }
}

/* =============================================================
   MOBILE-FIRST IMPROVEMENTS (added in Concierge sweep)
   ============================================================= */
@media (max-width: 640px) {
  .weather-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 18px;
    margin: -30px 16px 0;
  }
  .weather-strip .details {
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: 12px;
  }
  .weather-strip .temp { font-size: 30px; }
  .hero h1 { font-size: 40px !important; }
  .section { padding: 50px 0; }
  .section-header { margin-bottom: 32px; }
  .happenings-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
  .container { padding: 0 16px; }
}

/* Improve tap targets on all mobile */
@media (max-width: 768px) {
  .nav-links a,
  .nav-cta {
    padding: 12px 16px !important;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  button, .btn, input[type="submit"] {
    min-height: 44px;
  }
}

/* iOS safe-area support */
@supports (padding: env(safe-area-inset-top)) {
  body { padding-bottom: env(safe-area-inset-bottom); }
  .nav { padding-top: calc(14px + env(safe-area-inset-top)); }
}
