/* ========================================
   BeachDash v2 - Shared Styles
   Coastal Luxury meets Surf Culture
   ======================================== */

/* ========================================
   CSS VARIABLES & RESET
   ======================================== */
:root {
  --sand-50: #FFFDF8;
  --sand-100: #FEF7E8;
  --sand-200: #F5E6C8;
  --sand-300: #E8D4A8;
  --sand-400: #D4B896;
  --ocean-deep: #0C4A6E;
  --ocean-mid: #0369A1;
  --ocean-light: #38BDF8;
  --ocean-foam: #E0F2FE;
  --sunset-orange: #F97316;
  --sunset-pink: #FB7185;
  --sunset-gold: #FBBF24;
  --coral: #FF6B6B;
  --palm-green: #22C55E;
  --text-dark: #1C1917;
  --text-mid: #44403C;
  --text-light: #78716C;
  --danger-red: #DC2626;
  --danger-light: #FEF2F2;
  --danger-border: #FECACA;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--sand-50);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

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

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ocean-deep);
  margin-bottom: 1rem;
}

h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

p {
  line-height: 1.7;
  margin-bottom: 1rem;
  color: var(--text-mid);
}

strong {
  font-weight: 600;
  color: var(--text-dark);
}

/* ========================================
   HEADER
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom, rgba(255,253,248,0.95), rgba(255,253,248,0));
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.header.scrolled {
  background: rgba(255,253,248,0.98);
  box-shadow: 0 4px 30px rgba(0,0,0,0.05);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ocean-deep);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--sunset-orange);
}

.nav-links {
  display: none;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--ocean-mid);
}

.header-cta {
  padding: 0.75rem 1.5rem;
  background: var(--ocean-deep);
  color: white;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(12, 74, 110, 0.3);
}

.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(12, 74, 110, 0.4);
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--text-dark);
  color: white;
  padding: 4rem 2rem 2rem;
  margin-top: auto;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 2fr 1fr 1fr;
    text-align: left;
  }
}

.footer-brand .logo {
  color: white;
  margin-bottom: 1rem;
  display: inline-block;
}

.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-section h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  max-width: 1100px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}

/* ========================================
   PAGE CONTENT - Interior Pages
   ======================================== */
.page-hero {
  padding: 8rem 2rem 3rem;
  background: linear-gradient(180deg, var(--sand-100) 0%, var(--sand-50) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 60% 40% at 70% 10%, var(--sunset-gold) 0%, transparent 40%),
    radial-gradient(ellipse 50% 30% at 20% 80%, var(--ocean-light) 0%, transparent 40%);
  opacity: 0.15;
  z-index: 0;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.page-hero h1 {
  margin-bottom: 0.75rem;
}

.page-hero .subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 0;
}

.page-hero .effective-date {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: white;
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-content {
  flex: 1;
  padding: 3rem 2rem 4rem;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

/* ========================================
   CONTENT BOXES
   ======================================== */
.content-box {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  border: 1px solid var(--sand-200);
}

.content-box h2 {
  color: var(--ocean-deep);
  margin-bottom: 1rem;
}

.content-box-ocean {
  background: var(--ocean-foam);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.content-box-ocean h2 {
  color: var(--ocean-deep);
}

.content-box-warning {
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
  border-radius: 20px;
  padding: 2rem;
  margin: 2rem 0;
  border: 1px solid #FDE68A;
}

.content-box-warning h2 {
  color: #92400E;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.content-box-warning h2::before {
  content: '';
  display: none;
}

.content-box-danger {
  background: var(--danger-light);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--danger-border);
}

.content-box-danger h2 {
  color: var(--danger-red);
}

/* ========================================
   LISTS
   ======================================== */
.styled-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.styled-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-mid);
  line-height: 1.6;
}

.styled-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background: var(--ocean-mid);
  border-radius: 50%;
}

.styled-list.warning li::before {
  background: var(--sunset-orange);
}

.styled-list.danger li::before {
  background: var(--danger-red);
}

.numbered-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  counter-reset: step-counter;
}

.numbered-list li {
  position: relative;
  padding-left: 3rem;
  color: var(--text-mid);
  line-height: 1.6;
  counter-increment: step-counter;
}

.numbered-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, var(--ocean-light), var(--ocean-mid));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
}

.nested-list {
  list-style: disc;
  padding-left: 1.25rem;
  margin-top: 0.75rem;
  color: var(--text-mid);
}

.nested-list li {
  padding-left: 0;
  margin-bottom: 0.5rem;
}

.nested-list li::before {
  display: none;
}

/* ========================================
   LINKS & BUTTONS
   ======================================== */
.link {
  color: var(--ocean-mid);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.link:hover {
  color: var(--ocean-deep);
  text-decoration: underline;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--ocean-deep) 0%, var(--ocean-mid) 100%);
  color: white;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 30px rgba(12, 74, 110, 0.35);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(12, 74, 110, 0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: white;
  color: var(--text-dark);
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border: none;
  cursor: pointer;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  color: var(--text-light);
  font-size: 0.95rem;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--ocean-mid);
}

.back-link svg {
  width: 16px;
  height: 16px;
}

/* ========================================
   CONTACT INFO
   ======================================== */
.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--sand-50);
  border-radius: 12px;
  margin-bottom: 1rem;
}

.contact-card:last-child {
  margin-bottom: 0;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--ocean-light), var(--ocean-mid));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
}

.contact-details {
  flex: 1;
}

.contact-label {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.contact-value {
  font-weight: 600;
  color: var(--text-dark);
}

.contact-value a {
  color: var(--ocean-mid);
  text-decoration: none;
}

.contact-value a:hover {
  text-decoration: underline;
}

/* ========================================
   HOURS CARD
   ======================================== */
.hours-grid {
  display: grid;
  gap: 0.75rem;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--sand-50);
  border-radius: 10px;
}

.hours-day {
  font-weight: 500;
  color: var(--text-dark);
}

.hours-time {
  color: var(--text-mid);
}

.hours-note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 1rem;
  font-style: italic;
}

/* ========================================
   DEFINITION GRID
   ======================================== */
.definition-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

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

.definition-item {
  padding: 1rem;
  background: var(--sand-50);
  border-radius: 12px;
}

.definition-term {
  font-weight: 600;
  color: var(--ocean-deep);
  margin-bottom: 0.25rem;
}

.definition-desc {
  font-size: 0.95rem;
  color: var(--text-mid);
  margin: 0;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fade-up 0.6s ease-out both;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }

/* ========================================
   UTILITIES
   ======================================== */
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.text-center { text-align: center; }
