/* ============================================================
   Beach Bums — Main Stylesheet
   Design language: sun-bleached sand + driftwood, lagoon turquoise accent,
   sunset coral secondary, relaxed organic headings
   ============================================================ */

/* --- CSS Custom Properties (Light theme — default) --- */
:root {
  /* Brand palette */
  --color-sand: #F2E8D5;
  --color-driftwood: #6B5744;
  --color-turquoise: #1B8A8A;
  --color-coral: #F2764E;
  --color-charcoal: #332B22;

  /* Functional tokens — surfaces & text */
  --bg-page: #FFFBF5;
  --bg-card: #FFFFFF;
  --bg-card-alt: #F2E8D5;
  --text-primary: #332B22;
  --text-secondary: #6B5744;
  --text-muted: #8A7A6A;

  /* Text on brand-coloured backgrounds (hero, nav, footer, buttons)
     — stays light in BOTH themes */
  --text-on-brand: #FFFFFF;
  --text-on-brand-muted: rgba(255, 255, 255, 0.85);

  /* Interactive */
  --color-link: #1B8A8A;
  --color-link-hover: #147070;
  --btn-primary-bg: #1B8A8A;
  --btn-primary-text: #FFFFFF;
  --btn-primary-hover: #147070;
  --btn-secondary-bg: transparent;
  --btn-secondary-text: #1B8A8A;
  --btn-secondary-border: #1B8A8A;

  /* Surfaces */
  --nav-bg: rgba(255, 251, 245, 0.95);
  --nav-text: #332B22;
  --footer-bg: #332B22;
  --footer-text: #F2E8D5;
  --hero-overlay: rgba(51, 43, 34, 0.45);

  /* Misc */
  --border-color: rgba(107, 87, 68, 0.15);
  --shadow-sm: 0 1px 3px rgba(51, 43, 34, 0.08);
  --shadow-md: 0 4px 12px rgba(51, 43, 34, 0.1);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* Typography scale */
  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.5rem;
  --fs-4xl: 3.25rem;
  --fs-hero: clamp(2.5rem, 5vw + 1rem, 4.5rem);
}

/* --- Dark theme override --- */
[data-theme="dark"] {
  --bg-page: #1A1612;
  --bg-card: #262019;
  --bg-card-alt: #332B22;
  --text-primary: #F2E8D5;
  --text-secondary: #C4B59E;
  --text-muted: #8A7A6A;

  /* text-on-brand stays the same — white on turquoise/coral/charcoal bg */

  --color-link: #3CBCBC;
  --color-link-hover: #5ED4D4;
  --btn-primary-bg: #1B8A8A;
  --btn-primary-text: #FFFFFF;
  --btn-primary-hover: #3CBCBC;
  --btn-secondary-text: #3CBCBC;
  --btn-secondary-border: #3CBCBC;

  --nav-bg: rgba(26, 22, 18, 0.95);
  --nav-text: #F2E8D5;
  --footer-bg: #0F0D0A;
  --footer-text: #C4B59E;
  --hero-overlay: rgba(26, 22, 18, 0.55);

  --border-color: rgba(242, 232, 213, 0.1);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-page);
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
}

img, picture, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--color-link-hover); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }

ul, ol { list-style: none; }

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section--alt {
  background-color: var(--bg-card-alt);
}

.text-center { text-align: center; }

.grid {
  display: grid;
  gap: 2rem;
}

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-weight: 600;
  font-size: var(--fs-sm);
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn--primary {
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-text);
}
.btn--primary:hover {
  background-color: var(--btn-primary-hover);
  color: var(--btn-primary-text);
}

.btn--secondary {
  background-color: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
  border: 2px solid var(--btn-secondary-border);
}
.btn--secondary:hover {
  background-color: var(--btn-secondary-border);
  color: var(--text-on-brand);
}

.btn--coral {
  background-color: var(--color-coral);
  color: var(--text-on-brand);
}
.btn--coral:hover {
  background-color: #d9603d;
  color: var(--text-on-brand);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s ease;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__brand {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--nav-text);
  text-decoration: none;
}
.nav__brand:hover { color: var(--color-turquoise); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--nav-text);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}
.nav__link:hover,
.nav__link--active {
  color: var(--color-turquoise);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Theme toggle button */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--nav-text);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.theme-toggle:hover {
  background-color: var(--border-color);
}
.theme-toggle svg {
  width: 20px;
  height: 20px;
}
/* Show/hide sun/moon icons */
.theme-toggle__sun { display: none; }
.theme-toggle__moon { display: block; }
[data-theme="dark"] .theme-toggle__sun { display: block; }
[data-theme="dark"] .theme-toggle__moon { display: none; }

/* Mobile menu toggle */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
}
.nav__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--nav-text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Mobile nav overlay */
@media (max-width: 768px) {
  .nav__burger { display: flex; }

  .nav__links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    background-color: var(--bg-page);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
  }
  .nav__links--open {
    opacity: 1;
    visibility: visible;
  }
  .nav__links--open .nav__link {
    font-size: var(--fs-xl);
  }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 85vh;
  padding: 8rem 1.5rem 4rem;
  text-align: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-color: var(--color-sand);
  /* Placeholder — replace with real hero photo */
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero__tagline {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-on-brand-muted);
  margin-bottom: 1rem;
}

.hero__title {
  color: var(--text-on-brand);
  margin-bottom: 1.25rem;
}

.hero__subtitle {
  font-size: var(--fs-lg);
  color: var(--text-on-brand-muted);
  margin-bottom: 2.5rem;
  line-height: 1.5;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ============================================================
   IMAGE PLACEHOLDER BLOCKS
   (Used until real photos supplied)
   ============================================================ */
.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-sand) 0%, #e0d4c0 100%);
  border: 2px dashed var(--color-driftwood);
  border-radius: var(--radius-md);
  min-height: 250px;
  padding: 2rem;
  text-align: center;
  color: var(--color-driftwood);
  font-size: var(--fs-sm);
  font-style: italic;
}

[data-theme="dark"] .img-placeholder {
  background: linear-gradient(135deg, #262019 0%, #332B22 100%);
  border-color: #5a4a3a;
  color: var(--text-muted);
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background-color: rgba(27, 138, 138, 0.1);
  color: var(--color-turquoise);
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

[data-theme="dark"] .card__icon {
  background-color: rgba(60, 188, 188, 0.12);
  color: #3CBCBC;
}

.card__title {
  font-size: var(--fs-lg);
  margin-bottom: 0.75rem;
}

.card__text {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  max-width: 640px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.section-header__label {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-turquoise);
  margin-bottom: 0.75rem;
}

.section-header__title {
  margin-bottom: 1rem;
}

.section-header__text {
  color: var(--text-secondary);
  font-size: var(--fs-md);
  line-height: 1.6;
}

/* ============================================================
   MENU SECTION
   ============================================================ */
.menu-category {
  margin-bottom: 3rem;
}

.menu-category__title {
  font-size: var(--fs-xl);
  color: var(--color-turquoise);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-color);
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item__name {
  font-weight: 600;
  color: var(--text-primary);
}

.menu-item__desc {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.menu-item__price {
  font-weight: 600;
  color: var(--color-driftwood);
  white-space: nowrap;
  margin-left: 1rem;
}

[data-theme="dark"] .menu-item__price {
  color: var(--color-sand);
}

/* Menu tab navigation */
.menu-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.menu-tab {
  padding: 0.6rem 1.25rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  border-radius: var(--radius-sm);
  background-color: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.menu-tab:hover,
.menu-tab--active {
  background-color: var(--color-turquoise);
  color: var(--text-on-brand);
  border-color: var(--color-turquoise);
}

/* ============================================================
   EVENTS SECTION
   ============================================================ */
.event-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
}

.event-card__image {
  min-height: 200px;
  background: linear-gradient(135deg, var(--color-sand), #e0d4c0);
}

[data-theme="dark"] .event-card__image {
  background: linear-gradient(135deg, #262019, #332B22);
}

.event-card__body {
  padding: 1.75rem;
}

.event-card__badge {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-coral);
  margin-bottom: 0.5rem;
}

.event-card__title {
  font-size: var(--fs-lg);
  margin-bottom: 0.75rem;
}

.event-card__text {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

/* ============================================================
   GALLERY GRID
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.gallery-item .img-placeholder {
  width: 100%;
  height: 100%;
  min-height: unset;
  border-radius: 0;
}

/* ============================================================
   CONTACT / FORM
   ============================================================ */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--text-primary);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-turquoise);
  box-shadow: 0 0 0 3px rgba(27, 138, 138, 0.15);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

/* ============================================================
   MAP
   ============================================================ */
.map-container {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 4rem 0 2rem;
}

.footer a {
  color: var(--footer-text);
  transition: color 0.2s ease;
}
.footer a:hover {
  color: var(--color-turquoise);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer__heading {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--text-on-brand);
  margin-bottom: 1.25rem;
}

.footer__list li {
  margin-bottom: 0.6rem;
}

.footer__list a {
  font-size: var(--fs-sm);
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: var(--fs-sm);
}

.footer__contact-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  opacity: 0.7;
}

.footer__bottom {
  border-top: 1px solid rgba(242, 232, 213, 0.15);
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* ============================================================
   HOURS TABLE
   ============================================================ */
.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table tr {
  border-bottom: 1px solid var(--border-color);
}

.hours-table tr:last-child { border-bottom: none; }

.hours-table td {
  padding: 0.75rem 0;
  font-size: var(--fs-sm);
}

.hours-table td:first-child {
  font-weight: 600;
  color: var(--text-primary);
}

.hours-table td:last-child {
  text-align: right;
  color: var(--text-secondary);
}

.hours-note {
  font-size: var(--fs-xs);
  color: var(--color-coral);
  font-style: italic;
  margin-top: 0.75rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }
  h2 { font-size: var(--fs-2xl); }
  h3 { font-size: var(--fs-xl); }

  .hero { min-height: 70vh; padding: 6rem 1.5rem 3rem; }
  .hero__subtitle { font-size: var(--fs-base); }
  .hero__ctas { flex-direction: column; align-items: center; }

  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .nav__inner { height: 60px; }
  .btn { padding: 0.75rem 1.25rem; font-size: var(--fs-xs); }
}

/* ============================================================
   SKIP LINK (ACCESSIBILITY)
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background-color: var(--color-turquoise);
  color: var(--text-on-brand);
  padding: 0.75rem 1.5rem;
  z-index: 10000;
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
}
