/*
Theme Name: Libertad
Theme URI: https://theculturebunker.org/libertad
Author: The Culture Bunker
Author URI: https://theculturebunker.org
Description: A custom WordPress theme for Libertad — Inventive Latin American Cuisine & Craft Cocktails. Built around the Libertad brand system featuring Cormorant Garamond, Cormorant SC, and Jost typography with the signature espresso/terracotta/gold palette. Includes location-aware blocks, reservation CTAs, menu sections, events, and social-ready content templates.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: libertad
Tags: restaurant, hospitality, food, custom-colors, custom-menu, custom-logo, featured-images, full-width-template, theme-options, threaded-comments, translation-ready, block-styles, wide-blocks
*/

/* ==========================================================================
   LIBERTAD — Brand & Style System
   v1.0 / 2025 — The Culture Bunker
   ========================================================================== */

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

:root {
  /* Primary palette */
  --espresso: #1A0F0A;
  --espresso-mid: #2C1A10;
  --espresso-light: #4A3828;
  --terracotta: #C4501A;
  --terracotta-light: #E07244;
  --terracotta-dark: #7A2E0A;
  --gold: #C9953A;
  --gold-light: #E5B86A;
  --gold-dark: #7A5510;
  --burgundy: #8B1A2F;
  --burgundy-light: #B03848;
  --verde: #4A6741;
  --verde-light: #6B8F63;

  /* Neutrals */
  --cream: #F5EDD8;
  --cream-dark: #EAD9B8;
  --sand: #C9B18A;
  --sand-light: #DDD0B4;
  --white: #FDFAF4;

  /* Text */
  --text-dark: #1A0F0A;
  --text-mid: #4A3828;
  --text-light: #8C7460;

  /* Spacing scale */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-2xl: 96px;

  /* Type scale */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-sc: 'Cormorant SC', Georgia, serif;
  --font-body: 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Containers */
  --container-max: 1280px;
  --content-max: 720px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--cream);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--terracotta-dark);
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.1;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(48px, 6vw, 88px); }
h2 { font-size: clamp(36px, 4vw, 56px); }
h3 { font-size: clamp(24px, 2.5vw, 36px); font-weight: 400; }
h4 { font-size: 22px; font-weight: 500; }
h5 { font-size: 18px; font-weight: 500; }
h6 { font-size: 16px; font-weight: 500; }

em, i {
  font-style: italic;
  color: var(--terracotta);
}

p {
  margin-bottom: 1em;
  color: var(--text-mid);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--terracotta);
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--terracotta);
}

.eyebrow.centered {
  justify-content: center;
}

.eyebrow.centered::after {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--terracotta);
}

/* Selection */
::selection {
  background: var(--terracotta);
  color: var(--white);
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-narrow {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

section {
  padding: var(--space-2xl) 0;
  position: relative;
}

.section-dark {
  background: var(--espresso);
  color: var(--white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--white);
}

.section-dark p {
  color: var(--sand);
}

.section-dark .eyebrow {
  color: var(--gold-light);
}

.section-dark .eyebrow::before,
.section-dark .eyebrow.centered::after {
  background: var(--gold-light);
}

.section-warm {
  background: var(--espresso-mid);
  color: var(--white);
}

.section-warm h1,
.section-warm h2,
.section-warm h3 {
  color: var(--white);
}

.section-warm p {
  color: var(--sand);
}

.section-cream {
  background: var(--cream);
}

.section-white {
  background: var(--white);
}

.section-sand {
  background: var(--cream-dark);
}

/* ==========================================================================
   Skip Link (accessibility)
   ========================================================================== */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--terracotta);
  color: var(--white);
  padding: 12px 20px;
  z-index: 9999;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 12px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(26, 15, 10, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 149, 58, 0.12);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(26, 15, 10, 0.98);
}

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 20px var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.site-branding {
  flex-shrink: 0;
}

.site-title a,
.site-logo a {
  font-family: var(--font-sc);
  font-size: 22px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.18em;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-title a:hover,
.site-logo a:hover {
  color: var(--gold-light);
}

.site-logo img {
  max-height: 44px;
  width: auto;
}

/* Primary nav */
.primary-nav ul {
  list-style: none;
  display: flex;
  gap: var(--space-lg);
  align-items: center;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand);
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
  padding: 4px 0;
}

.primary-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--terracotta);
  transition: width 0.3s ease;
}

.primary-nav a:hover,
.primary-nav .current-menu-item a {
  color: var(--gold-light);
}

.primary-nav a:hover::after,
.primary-nav .current-menu-item a::after {
  width: 100%;
}

/* Submenu */
.primary-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--espresso-mid);
  border: 1px solid rgba(201, 149, 58, 0.15);
  padding: var(--space-sm);
  flex-direction: column;
  gap: 8px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
}

.primary-nav li {
  position: relative;
}

.primary-nav li:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.primary-nav .sub-menu li {
  width: 100%;
}

/* Reserve button in header */
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--terracotta);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.header-cta:hover {
  background: var(--terracotta-dark);
  color: var(--white);
  transform: translateY(-1px);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 8px;
  width: 44px;
  height: 44px;
  position: relative;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: all 0.3s ease;
  position: absolute;
  left: 10px;
}

.menu-toggle span {
  top: 50%;
  transform: translateY(-50%);
}

.menu-toggle span::before {
  content: '';
  top: -7px;
  left: 0;
}

.menu-toggle span::after {
  content: '';
  top: 7px;
  left: 0;
}

.menu-toggle.is-open span {
  background: transparent;
}

.menu-toggle.is-open span::before {
  transform: rotate(45deg);
  top: 0;
}

.menu-toggle.is-open span::after {
  transform: rotate(-45deg);
  top: 0;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.site-hero {
  min-height: 100vh;
  background: var(--espresso);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 120px var(--space-lg) var(--space-xl);
  position: relative;
  overflow: hidden;
}

.site-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(196, 80, 26, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(139, 26, 47, 0.14) 0%, transparent 55%);
  pointer-events: none;
}

.site-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--hero-bg, none);
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
  z-index: 2;
}

.hero-ornament {
  position: absolute;
  top: 100px;
  right: var(--space-lg);
  width: 160px;
  height: 160px;
  border: 1px solid rgba(201, 149, 58, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.hero-ornament::before {
  content: '';
  width: 120px;
  height: 120px;
  border: 1px solid rgba(201, 149, 58, 0.2);
  border-radius: 50%;
  position: absolute;
}

.hero-ornament-text {
  font-family: var(--font-sc);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(201, 149, 58, 0.6);
  text-align: center;
  line-height: 1.6;
  text-transform: uppercase;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: var(--space-md);
  animation: fadeInUp 0.8s ease forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 104px);
  font-weight: 300;
  color: var(--white);
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-sm);
  animation: fadeInUp 1s ease 0.1s forwards;
  opacity: 0;
}

.hero-title em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 300;
  font-style: italic;
  color: var(--sand);
  margin-bottom: var(--space-xl);
  max-width: 580px;
  animation: fadeInUp 1s ease 0.2s forwards;
  opacity: 0;
}

.hero-line {
  width: 60px;
  height: 1px;
  background: var(--terracotta);
  margin-bottom: var(--space-lg);
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.3s forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn,
button.btn,
input[type="submit"],
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 16px 28px;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  background: var(--espresso);
  color: var(--white);
}

.btn:hover,
button.btn:hover,
.wp-block-button__link:hover {
  background: var(--espresso-mid);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-terracotta {
  background: var(--terracotta);
  color: var(--white);
}

.btn-terracotta:hover {
  background: var(--terracotta-dark);
  color: var(--white);
}

.btn-gold {
  background: var(--gold);
  color: var(--espresso);
}

.btn-gold:hover {
  background: var(--gold-dark);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--espresso);
  color: var(--espresso);
}

.btn-outline:hover {
  background: var(--espresso);
  color: var(--white);
}

.section-dark .btn-outline,
.section-warm .btn-outline {
  border-color: var(--sand);
  color: var(--sand);
}

.section-dark .btn-outline:hover,
.section-warm .btn-outline:hover {
  background: var(--cream);
  color: var(--espresso);
  border-color: var(--cream);
}

/* ==========================================================================
   Reservation bar
   ========================================================================== */

.reservation-bar {
  background: var(--espresso);
  padding: 20px var(--space-md);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.reservation-bar-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  font-style: italic;
  color: var(--sand);
  flex: 1;
  min-width: 200px;
}

.reservation-bar-cta {
  background: var(--terracotta);
  color: var(--white);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 2px;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease;
}

.reservation-bar-cta:hover {
  background: var(--terracotta-dark);
  color: var(--white);
}

/* ==========================================================================
   Section headers
   ========================================================================== */

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: var(--space-md);
}

.section-subheading {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  font-style: italic;
  color: var(--text-light);
  margin-bottom: var(--space-xl);
  max-width: 680px;
  line-height: 1.6;
}

.section-dark .section-subheading,
.section-warm .section-subheading {
  color: var(--sand);
}

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

.section-centered .section-subheading {
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Brand pillars / Feature grid
   ========================================================================== */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: var(--space-xl);
}

.feature-card {
  background: rgba(255, 255, 255, 0.04);
  padding: var(--space-lg) var(--space-md);
  border: 1px solid rgba(201, 149, 58, 0.12);
}

.section-cream .feature-card,
.section-white .feature-card {
  background: var(--white);
  border-color: var(--cream-dark);
}

.feature-number {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 300;
  color: rgba(201, 149, 58, 0.3);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.section-cream .feature-number,
.section-white .feature-number {
  color: rgba(196, 80, 26, 0.3);
}

.feature-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--gold-light);
  margin-bottom: 12px;
}

.section-cream .feature-title,
.section-white .feature-title {
  color: var(--text-dark);
}

.feature-text {
  font-size: 14px;
  color: var(--sand);
  line-height: 1.7;
  font-weight: 300;
}

.section-cream .feature-text,
.section-white .feature-text {
  color: var(--text-mid);
}

/* ==========================================================================
   Menu sections
   ========================================================================== */

.menu-section {
  margin-bottom: var(--space-xl);
}

.menu-section-title {
  font-family: var(--font-sc);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--cream-dark);
}

.menu-items {
  display: grid;
  gap: var(--space-md);
}

.menu-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-sm);
  align-items: baseline;
  padding-bottom: var(--space-md);
  border-bottom: 1px dotted var(--cream-dark);
}

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

.menu-item-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.menu-item-desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  font-style: italic;
  font-family: var(--font-display);
}

.menu-item-price {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--terracotta);
  white-space: nowrap;
}

/* ==========================================================================
   Locations
   ========================================================================== */

.locations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.location-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 149, 58, 0.15);
  padding: var(--space-lg);
  border-radius: 8px;
}

.section-cream .location-card,
.section-white .location-card {
  background: var(--white);
  border-color: var(--cream-dark);
}

.location-name {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.section-cream .location-name,
.section-white .location-name {
  color: var(--text-dark);
}

.location-tag {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 8px;
  display: block;
}

.location-address {
  font-size: 15px;
  color: var(--sand);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.section-cream .location-address,
.section-white .location-address {
  color: var(--text-mid);
}

.location-hours {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-md) 0;
}

.location-hours li {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
  color: var(--sand);
  border-bottom: 1px solid rgba(201, 149, 58, 0.08);
}

.section-cream .location-hours li,
.section-white .location-hours li {
  color: var(--text-mid);
  border-bottom-color: var(--cream-dark);
}

.location-hours li:last-child {
  border-bottom: none;
}

.location-hours .day {
  font-weight: 500;
  letter-spacing: 0.05em;
}

.location-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* ==========================================================================
   Post / Blog content
   ========================================================================== */

.post-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(26, 15, 10, 0.12);
}

.post-card-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--espresso);
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.post-card:hover .post-card-image img {
  transform: scale(1.05);
}

.post-card-content {
  padding: var(--space-md);
}

.post-card-meta {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 12px;
}

.post-card-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 12px;
  line-height: 1.2;
}

.post-card-title a {
  color: var(--text-dark);
}

.post-card-title a:hover {
  color: var(--terracotta);
}

.post-card-excerpt {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

/* Single post */
.single-post-header {
  text-align: center;
  padding: 160px var(--space-lg) var(--space-xl);
  background: var(--espresso);
  color: var(--white);
}

.single-post-meta {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: var(--space-sm);
}

.single-post-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.05;
  max-width: 900px;
  margin: 0 auto var(--space-md);
}

.single-post-content {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
}

.single-post-content p,
.single-post-content ul,
.single-post-content ol {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: var(--space-md);
  color: var(--text-mid);
}

.single-post-content h2,
.single-post-content h3 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.single-post-content blockquote {
  border-left: 3px solid var(--terracotta);
  padding: var(--space-sm) var(--space-md);
  margin: var(--space-md) 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--text-dark);
  background: rgba(196, 80, 26, 0.04);
}

.single-post-content img {
  border-radius: 4px;
  margin: var(--space-md) 0;
}

.single-post-content a {
  border-bottom: 1px solid var(--terracotta);
}

/* ==========================================================================
   Page content
   ========================================================================== */

.page-header {
  background: var(--espresso);
  color: var(--white);
  padding: 160px var(--space-lg) var(--space-xl);
  text-align: center;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 300;
  color: var(--white);
}

.page-content {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
}

/* ==========================================================================
   Forms
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
textarea,
select {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-dark);
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: 2px;
  transition: border-color 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--terracotta);
}

label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 8px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--espresso);
  color: var(--sand);
  padding: var(--space-2xl) 0 var(--space-lg);
  border-top: 1px solid rgba(201, 149, 58, 0.15);
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.footer-brand {
  font-family: var(--font-sc);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--white);
  margin-bottom: var(--space-sm);
  display: block;
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
  color: var(--sand);
  margin-bottom: var(--space-md);
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: var(--space-md);
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-list li {
  margin-bottom: 8px;
}

.footer-list a {
  color: var(--sand);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-list a:hover {
  color: var(--gold-light);
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(201, 149, 58, 0.3);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sand);
  transition: all 0.2s ease;
}

.footer-social a:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--white);
}

.footer-social svg {
  width: 16px;
  height: 16px;
}

.footer-bottom {
  border-top: 1px solid rgba(201, 149, 58, 0.1);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
  font-size: 12px;
  color: rgba(201, 177, 138, 0.5);
}

.footer-bottom a {
  color: rgba(201, 177, 138, 0.7);
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: var(--space-xl);
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-mid);
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--terracotta);
  color: var(--white);
  border-color: var(--terracotta);
}

/* ==========================================================================
   WordPress Block / Gutenberg styles
   ========================================================================== */

.wp-block-image {
  margin: var(--space-md) 0;
}

.wp-block-image img {
  border-radius: 4px;
}

.wp-block-pullquote {
  border-top: 1px solid var(--terracotta);
  border-bottom: 1px solid var(--terracotta);
  padding: var(--space-md) 0;
  margin: var(--space-lg) 0;
  text-align: center;
}

.wp-block-pullquote p {
  font-family: var(--font-display);
  font-size: 28px;
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.4;
}

.wp-block-pullquote cite {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-top: var(--space-sm);
  font-style: normal;
}

.wp-block-button {
  margin-bottom: var(--space-sm);
}

/* Alignments */
.alignwide {
  margin-left: calc(-1 * var(--space-lg));
  margin-right: calc(-1 * var(--space-lg));
  max-width: calc(100% + var(--space-xl));
}

.alignfull {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
  width: 100vw;
}

/* ==========================================================================
   Comments
   ========================================================================== */

.comments-area {
  max-width: var(--content-max);
  margin: var(--space-xl) auto 0;
  padding: var(--space-lg) var(--space-lg) 0;
  border-top: 1px solid var(--cream-dark);
}

.comments-title {
  font-family: var(--font-display);
  font-size: 28px;
  margin-bottom: var(--space-md);
}

.comment-list {
  list-style: none;
  padding: 0;
}

.comment-body {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--cream-dark);
}

.comment-author {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.05em;
}

.comment-meta {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: var(--space-sm);
}

/* ==========================================================================
   Utility / accent
   ========================================================================== */

.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--terracotta), transparent);
  margin: 0;
  opacity: 0.3;
}

.tagline-block {
  background: var(--espresso);
  border-left: 3px solid var(--terracotta);
  padding: var(--space-md) var(--space-lg);
  margin-top: var(--space-lg);
  border-radius: 0 8px 8px 0;
}

.tagline-block .label {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 12px;
}

.tagline-block .tagline {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 300;
  font-style: italic;
  color: var(--white);
  line-height: 1.4;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .locations-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --space-2xl: 64px;
    --space-xl: 40px;
    --space-lg: 24px;
  }

  .menu-toggle {
    display: block;
  }

  .primary-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: var(--espresso);
    padding: 80px var(--space-lg) var(--space-lg);
    transition: right 0.3s ease;
    z-index: 99;
    overflow-y: auto;
  }

  .primary-nav.is-open {
    right: 0;
  }

  .primary-nav ul {
    flex-direction: column;
    gap: var(--space-md);
    align-items: flex-start;
  }

  .primary-nav a {
    font-size: 14px;
    letter-spacing: 0.2em;
  }

  .header-cta {
    display: none;
  }

  .hero-ornament {
    display: none;
  }

  .container,
  .container-narrow {
    padding: 0 var(--space-md);
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .menu-item {
    grid-template-columns: 1fr;
  }

  .menu-item-price {
    margin-top: 4px;
  }
}

/* ==========================================================================
   Print
   ========================================================================== */

@media print {
  .site-header,
  .site-footer,
  .header-cta,
  .reservation-bar {
    display: none;
  }

  body {
    background: white;
    color: black;
  }
}
