/* ============================================
   TINA'S STORY CAFE — Design Tokens & Styles
   Ocean + Coffee + Books theme
   ============================================ */

/* --- Type Scale --- */
:root {
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    8rem);

  /* --- Spacing (4px base) --- */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* --- Radius --- */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* --- Transitions --- */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* --- Content widths --- */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;

  /* --- Font families --- */
  --font-display: 'Zodiak', 'Georgia', serif;
  --font-body: 'Satoshi', 'Helvetica Neue', sans-serif;
  --font-script: 'Pacifico', cursive;
}

/* --- LIGHT MODE (Ocean + Warm Sand) --- */
:root, [data-theme="light"] {
  --color-bg:             #f5f1eb;
  --color-surface:        #faf8f4;
  --color-surface-2:      #ffffff;
  --color-surface-offset: #ece7df;
  --color-surface-offset-2: #e3ddd4;
  --color-surface-dynamic: #d9d2c8;
  --color-divider:        #d4cec4;
  --color-border:         #c9c2b8;

  --color-text:           #1a2a2e;
  --color-text-muted:     #5c6b6e;
  --color-text-faint:     #9aa5a8;
  --color-text-inverse:   #f5f1eb;

  --color-primary:        #1a6b73;
  --color-primary-hover:  #0e4f56;
  --color-primary-active: #0a3a40;
  --color-primary-light:  #e0f0f1;

  --color-accent:         #c87941;
  --color-accent-hover:   #a86530;
  --color-accent-light:   #f5e6d8;

  --shadow-sm: 0 1px 2px oklch(0.25 0.02 60 / 0.06);
  --shadow-md: 0 4px 12px oklch(0.25 0.02 60 / 0.08);
  --shadow-lg: 0 12px 32px oklch(0.25 0.02 60 / 0.12);
}

/* Dark mode removed — light only */

/* ============================================
   GLOBAL STYLES
   ============================================ */

body {
  font-family: var(--font-body);
}

h1, h2, h3 {
  font-family: var(--font-display);
}

a {
  color: var(--color-primary);
  text-decoration: none;
}
a:hover {
  color: var(--color-primary-hover);
}

.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}
@media (min-width: 768px) {
  .container { padding-inline: var(--space-8); }
}

/* ============================================
   HEADER / NAV
   ============================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(from var(--color-bg) l c h / 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.08);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.site-header--scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-3);
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}
@media (min-width: 768px) {
  .header-inner { padding-inline: var(--space-8); }
}

.logo-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
}
.logo-img {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  object-fit: cover;
}
.logo-text {
  font-family: var(--font-script);
  font-size: var(--text-lg);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
}

.nav-links {
  display: none;
  list-style: none;
  gap: var(--space-6);
  align-items: center;
}
@media (min-width: 768px) {
  .nav-links { display: flex; }
}
.nav-links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-interactive);
}
.nav-links a:hover {
  color: var(--color-text);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  border: 1.5px solid var(--color-primary);
  border-radius: var(--radius-full);
  color: var(--color-primary) !important;
  font-weight: 600 !important;
  transition: background var(--transition-interactive), color var(--transition-interactive);
}
.nav-cta:hover {
  background: var(--color-primary);
  color: #fff !important;
}

.header-right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}


.mobile-menu-btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  -webkit-tap-highlight-color: transparent;
}
@media (min-width: 768px) {
  .mobile-menu-btn { display: none; }
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--color-bg);
  padding: var(--space-20) var(--space-8);
  flex-direction: column;
  gap: var(--space-8);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-nav.open {
  display: flex;
}
.mobile-nav a {
  font-size: var(--text-xl);
  font-family: var(--font-display);
  color: var(--color-text);
  text-decoration: none;
  padding: var(--space-2) 0;
  min-height: 48px;
  display: flex;
  align-items: center;
}
.mobile-nav .mobile-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
  padding: var(--space-4) var(--space-6);
  border: 1.5px solid var(--color-primary);
  border-radius: var(--radius-full);
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  min-height: 48px;
  justify-content: center;
  width: fit-content;
}
.mobile-nav-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
@media (max-width: 767px) {
  .hero {
    min-height: 85svh;
  }
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroKenBurns 25s ease-in-out infinite alternate;
}
@keyframes heroKenBurns {
  0%   { transform: scale(1)   translate(0, 0); }
  100% { transform: scale(1.08) translate(-1%, -1%); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      oklch(from var(--color-bg) l c h / 0.88) 0%,
      oklch(from var(--color-bg) l c h / 0.55) 35%,
      oklch(from var(--color-bg) l c h / 0.15) 65%,
      oklch(from var(--color-bg) l c h / 0.05) 100%
    ),
    linear-gradient(
      to top,
      oklch(from var(--color-bg) l c h / 0.4) 0%,
      transparent 30%
    );
}
@media (max-width: 767px) {
  .hero-overlay {
    background:
      linear-gradient(
        to bottom,
        oklch(from var(--color-bg) l c h / 0.65) 0%,
        oklch(from var(--color-bg) l c h / 0.4) 40%,
        oklch(from var(--color-bg) l c h / 0.7) 100%
      );
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding: var(--space-16) var(--space-6);
  width: 100%;
}
@media (min-width: 768px) {
  .hero-content {
    padding: var(--space-16) var(--space-8);
    max-width: 55%;
    margin-left: var(--space-8);
    margin-right: auto;
  }
}
@media (min-width: 1280px) {
  .hero-content {
    padding: var(--space-24) var(--space-8);
    max-width: 50%;
    margin-left: calc((100vw - var(--content-wide)) / 2 + var(--space-8));
    margin-right: auto;
  }
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.6);
}

.hero h1 {
  font-size: var(--text-3xl);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
  text-shadow: 0 1px 6px rgba(255, 255, 255, 0.5);
}

.hero-desc {
  font-size: var(--text-base);
  color: var(--color-text);
  font-weight: 500;
  max-width: 48ch;
  margin-bottom: var(--space-8);
  line-height: 1.7;
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.6);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: background var(--transition-interactive),
              color var(--transition-interactive),
              transform var(--transition-interactive),
              box-shadow var(--transition-interactive);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.85);
  color: var(--color-text);
  border: none;
  backdrop-filter: blur(4px);
}
.btn-secondary:hover {
  background: #ffffff;
  color: var(--color-text);
  box-shadow: var(--shadow-md);
}

/* ============================================
   WAVE DIVIDER
   ============================================ */

.wave-divider {
  display: block;
  width: 100%;
  height: auto;
  margin-top: -2px;
  color: var(--color-bg);
}
.wave-divider-flipped {
  transform: scaleY(-1);
  margin-top: 0;
  margin-bottom: -2px;
}

/* ============================================
   STORY SECTION
   ============================================ */

.story-section {
  padding: clamp(var(--space-12), 8vw, var(--space-24)) 0;
}

.story-grid {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}
@media (min-width: 768px) {
  .story-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }
}

.story-img-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.story-img-wrapper img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.story-img-accent {
  position: absolute;
  bottom: var(--space-4);
  right: var(--space-4);
  background: oklch(from var(--color-primary) l c h / 0.9);
  color: #fff;
  font-family: var(--font-script);
  font-size: var(--text-sm);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
}

.story-text h2 {
  font-size: var(--text-xl);
  font-weight: 400;
  margin-bottom: var(--space-4);
  color: var(--color-text);
}

.story-text p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  line-height: 1.7;
}

.story-values {
  display: flex;
  gap: var(--space-6);
  margin-top: var(--space-6);
  flex-wrap: wrap;
}
.value-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.value-icon {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
}

/* ============================================
   SIGNATURE DRINKS
   ============================================ */

.drinks-section {
  padding: clamp(var(--space-12), 8vw, var(--space-24)) 0;
  background: var(--color-surface-offset);
}

.section-header {
  text-align: left;
  margin-bottom: var(--space-10);
}
.section-header h2 {
  font-size: var(--text-xl);
  font-weight: 400;
  margin-bottom: var(--space-3);
}
.section-header p {
  color: var(--color-text-muted);
  max-width: 50ch;
}
.section-eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.drinks-layout {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}
@media (min-width: 768px) {
  .drinks-layout {
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-12);
  }
}

.drinks-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.drinks-image img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.drinks-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.drink-card {
  padding: var(--space-5);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive);
}
.drink-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.drink-card h3 {
  font-family: var(--font-script);
  font-size: var(--text-lg);
  font-weight: 400;
  margin-bottom: var(--space-2);
}
.drink-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ============================================
   OCEAN DIVIDER SECTION
   ============================================ */

.ocean-section {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}
.ocean-section .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ocean-section .hero-overlay {
  background: rgba(0, 0, 0, 0.5);
}
.ocean-quote {
  position: relative;
  z-index: 1;
  padding: var(--space-12) var(--space-4);
}
.ocean-quote blockquote {
  font-family: var(--font-script);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: #ffffff;
  font-style: normal;
  max-width: 20ch;
  margin-inline: auto;
  margin-bottom: var(--space-4);
}
.ocean-quote cite {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.85);
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* ============================================
   VISIT SECTION (Hours + Map)
   ============================================ */

.visit-section {
  padding: clamp(var(--space-12), 8vw, var(--space-24)) 0;
}

.visit-grid {
  display: grid;
  gap: var(--space-8);
}
@media (min-width: 768px) {
  .visit-grid {
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-12);
  }
}

.visit-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.info-block h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.hours-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-1) var(--space-4);
  font-size: var(--text-sm);
}
.hours-day {
  font-weight: 600;
  color: var(--color-text);
}
.hours-time {
  color: var(--color-text-muted);
}
.hours-closed {
  color: var(--color-accent);
}

.address-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}
.address-text a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.map-wrapper {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  aspect-ratio: 16/10;
}
.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================
   INSTAGRAM SECTION
   ============================================ */

.instagram-section {
  padding: clamp(var(--space-12), 8vw, var(--space-24)) 0;
  background: var(--color-surface-offset);
}

.ig-posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-8);
}
@media (min-width: 540px) {
  .ig-posts-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .ig-posts-grid { gap: var(--space-5); }
}

.ig-post-card {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive);
}
.ig-post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.ig-post-card:hover .ig-post-img {
  transform: scale(1.06);
}
.ig-post-card:hover .ig-post-overlay {
  opacity: 1;
}

.ig-post-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.ig-post-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.15) 55%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-4);
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
}
/* Always show overlay on touch devices */
@media (hover: none) {
  .ig-post-overlay {
    opacity: 1;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.6) 0%,
      transparent 60%
    );
  }
}

.ig-post-caption {
  font-size: var(--text-xs);
  color: #fff;
  line-height: 1.5;
  font-style: italic;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
@media (min-width: 768px) {
  .ig-post-caption {
    font-size: var(--text-sm);
    -webkit-line-clamp: 3;
  }
}

.ig-post-date {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-top: var(--space-1);
}

.ig-post-badge {
  display: none;
}

.ig-cta {
  margin-top: var(--space-8);
  text-align: center;
}
.ig-cta p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  margin-inline: auto;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  padding: var(--space-12) 0 var(--space-6);
  border-top: 1px solid oklch(from var(--color-text) l c h / 0.08);
}

.footer-grid {
  display: grid;
  gap: var(--space-8);
  margin-bottom: var(--space-10);
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-12);
  }
}

.footer-brand p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 36ch;
  margin-top: var(--space-3);
  line-height: 1.7;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-4);
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer-col a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-interactive);
}
.footer-col a:hover {
  color: var(--color-text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-6);
  border-top: 1px solid oklch(from var(--color-text) l c h / 0.06);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  flex-wrap: wrap;
  gap: var(--space-3);
}
@media (max-width: 480px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--space-2);
  }
}
.footer-bottom a {
  color: var(--color-text-faint);
  text-decoration: none;
}
.footer-bottom a:hover {
  color: var(--color-text-muted);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */

.fade-in {
  opacity: 1;
}
@supports (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 100%;
  }
}
@keyframes reveal-fade {
  to { opacity: 1; }
}

/* ============================================
   INTERIOR IMAGE SECTION
   ============================================ */

.interior-section {
  padding: clamp(var(--space-12), 8vw, var(--space-24)) 0;
}

.interior-grid {
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 768px) {
  .interior-grid {
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: auto auto;
    gap: var(--space-4);
  }
  .interior-grid .interior-large {
    grid-row: 1 / 3;
  }
}

.interior-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
}
.interior-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.interior-large {
  aspect-ratio: 3/4;
}
@media (max-width: 767px) {
  .interior-large {
    aspect-ratio: 16/9;
  }
}
.interior-small {
  aspect-ratio: 16/10;
}
.interior-text-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-8);
  background: var(--color-primary);
  color: #fff;
}
.interior-text-card h3 {
  font-family: var(--font-script);
  font-size: var(--text-lg);
  font-weight: 400;
  margin-bottom: var(--space-3);
  color: #fff;
}
.interior-text-card p {
  font-size: var(--text-sm);
  opacity: 0.85;
  line-height: 1.7;
}

/* ============================================
   MOBILE OPTIMIZATIONS
   ============================================ */

/* Safe area insets for notched phones */
@supports (padding: env(safe-area-inset-top)) {
  .site-header {
    padding-top: env(safe-area-inset-top);
  }
  .site-footer {
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-nav {
    padding-top: calc(var(--space-20) + env(safe-area-inset-top));
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: calc(var(--space-8) + env(safe-area-inset-left));
    padding-right: calc(var(--space-8) + env(safe-area-inset-right));
  }
}

/* Touch targets — minimum 48px for all interactive elements on mobile */
@media (max-width: 767px) {
  .btn {
    min-height: 48px;
    padding: var(--space-3) var(--space-6);
  }
  .nav-cta {
    min-height: 44px;
  }
  .value-item {
    min-height: 44px;
    padding: var(--space-2) var(--space-3);
  }

  .footer-col a {
    display: inline-block;
    min-height: 44px;
    line-height: 44px;
  }
}

/* Map aspect ratio fix on mobile */
@media (max-width: 767px) {
  .map-wrapper {
    aspect-ratio: 4/3;
  }
}

/* Prevent horizontal overflow — clip instead of hidden to preserve sticky positioning */
body {
  overflow-x: clip;
}

/* Better tap highlighting on mobile */
a, button {
  -webkit-tap-highlight-color: oklch(from var(--color-primary) l c h / 0.12);
}

/* Logo text wrapping fix on very small screens */
@media (max-width: 374px) {
  .logo-text {
    font-size: clamp(0.85rem, 3.8vw, var(--text-lg));
  }
  .hero h1 {
    font-size: clamp(1.8rem, 8vw, var(--text-3xl));
  }
}

/* Instagram grid: tighter gap on very small screens */
@media (max-width: 374px) {
  .ig-posts-grid {
    gap: var(--space-3);
  }
}

/* Ensure images don't break layout */
img {
  max-width: 100%;
  height: auto;
}

/* Improve readability of hours grid on small screens */
@media (max-width: 374px) {
  .hours-grid {
    font-size: var(--text-xs);
    gap: var(--space-1) var(--space-2);
  }
}

/* Ocean quote section: reduce min-height on mobile */
@media (max-width: 767px) {
  .ocean-section {
    min-height: 40vh;
  }
  .ocean-quote blockquote {
    font-size: clamp(1.5rem, 6vw, var(--text-2xl));
    max-width: 18ch;
  }
}

/* Interior grid: better spacing on mobile */
@media (max-width: 767px) {
  .interior-grid {
    gap: var(--space-3);
  }
  .interior-text-card {
    padding: var(--space-6);
  }
}

/* Footer brand description: full width on mobile */
@media (max-width: 767px) {
  .footer-brand p {
    max-width: 100%;
  }
  .footer-grid {
    gap: var(--space-6);
  }
}

/* scroll-padding-top set in base.css */
