/*
Theme Name: Tjs Thurmaston
Theme URI: https://tjsthurmaston.co.uk
Author: TJ's Thurmaston
Description: Restaurant ordering theme with integrated menu system
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: tj-thurmaston
*/

/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
  --cream: #F5F0E8;
  --dark: #1A1208;
  --charcoal: #2D2416;
  --gold: #C9A84C;
  --gold-light: #E2C97E;
  --warm-gray: #8C7B6B;
  --border: rgba(201, 168, 76, 0.25);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', 'Helvetica Neue', sans-serif;

  --max-width: 1200px;
  --section-pad: clamp(40px, 6vw, 80px);
}

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

html {
  scroll-behavior: smooth;
}

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

img {
  max-width: 100%;
  display: block;
}

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

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

/* =============================================
   HEADER
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 18, 8, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 clamp(20px, 5vw, 60px);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-logo {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.02em;
}

.site-logo span {
  color: var(--gold);
}

/* NAV */
.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
}

.site-nav a:hover {
  opacity: 1;
  color: var(--gold);
}

.nav-cta {
  background: var(--gold);
  color: var(--dark) !important;
  opacity: 1 !important;
  padding: 10px 22px;
  border-radius: 3px;
  transition: background 0.2s ease !important;
}

.nav-cta:hover {
  background: var(--gold-light) !important;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  transition: transform 0.3s ease;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  padding: var(--section-pad) clamp(20px, 5vw, 60px);
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(201, 168, 76, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(201, 168, 76, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '—';
  margin: 0 8px;
  opacity: 0.5;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--cream);
  margin-bottom: 20px;
}

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

.hero-sub {
  font-size: 1.05rem;
  color: var(--warm-gray);
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-btn {
  display: inline-block;
  background: var(--gold);
  color: var(--dark);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 15px 36px;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  text-decoration: none;
}

.hero-btn:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  color: var(--dark);
}

/* =============================================
   DIVIDER
   ============================================= */
.ornament-divider {
  text-align: center;
  padding: 8px 0;
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 12px;
  opacity: 0.5;
}

/* =============================================
   MENU SECTION (iframe embed)
   ============================================= */
.menu-section {
  padding: var(--section-pad) clamp(20px, 5vw, 60px);
}

.menu-section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-label {
  text-align: center;
  margin-bottom: 40px;
}

.section-label h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 10px;
}

.section-label p {
  color: var(--warm-gray);
  font-size: 0.95rem;
}


.order-cta-wrap {
  text-align: center;
  padding: 20px 0 10px;
}

.order-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--gold);
  color: var(--dark);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 20px 48px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 30px rgba(201, 168, 76, 0.25);
}

.order-btn:hover {
  background: var(--gold-light);
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(201, 168, 76, 0.35);
}

.order-btn:active {
  transform: translateY(0);
}

.order-btn-icon {
  font-size: 1.3rem;
}

.order-hint {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--warm-gray);
  opacity: 0.7;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--charcoal);
  border-top: 1px solid var(--border);
  padding: clamp(40px, 6vw, 70px) clamp(20px, 5vw, 60px) 32px;
  margin-top: var(--section-pad);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .site-logo {
  font-size: 1.3rem;
  margin-bottom: 14px;
  display: block;
}

.footer-brand p {
  color: var(--warm-gray);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 260px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-col address {
  font-style: normal;
  color: var(--warm-gray);
  font-size: 0.9rem;
  line-height: 1.9;
}

.footer-col .hours-list {
  list-style: none;
  color: var(--warm-gray);
  font-size: 0.9rem;
  line-height: 1.9;
}

.footer-col .hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.footer-col .hours-list span {
  color: var(--cream);
  opacity: 0.7;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  color: var(--warm-gray);
  font-size: 0.8rem;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-legal-links a {
  color: var(--warm-gray);
  font-size: 0.8rem;
}

.footer-legal-links a:hover {
  color: var(--gold);
}

.footer-legal-links span {
  color: var(--warm-gray);
  opacity: 0.4;
  font-size: 0.8rem;
}

/* =============================================
   MOBILE
   ============================================= */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(26, 18, 8, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 24px clamp(20px, 5vw, 60px);
  }

  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .menu-frame-wrapper iframe {
    height: 550px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .menu-frame-wrapper iframe {
    height: 480px;
  }
}

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

.hero-eyebrow { animation: fadeUp 0.6s ease 0.1s both; }
.hero h1 { animation: fadeUp 0.6s ease 0.25s both; }
.hero-sub { animation: fadeUp 0.6s ease 0.4s both; }
.hero-btn { animation: fadeUp 0.6s ease 0.55s both; }

/* =============================================
   ALLERGEN BOX
   ============================================= */
.allergen-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  max-width: 900px;
  margin: 28px auto 0;
  background: rgba(201, 168, 76, 0.07);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-left: 4px solid var(--gold);
  border-radius: 4px;
  padding: 24px 28px;
}

.allergen-icon {
  font-size: 1.5rem;
  color: var(--gold);
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.allergen-content h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--cream);
  margin-bottom: 10px;
  font-weight: 700;
}

.allergen-content p {
  font-size: 0.88rem;
  color: var(--warm-gray);
  line-height: 1.7;
  margin-bottom: 8px;
}

.allergen-content p:last-child {
  margin-bottom: 0;
}

.allergen-content strong {
  color: var(--cream);
  font-weight: 600;
}

.allergen-content a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.allergen-note {
  font-style: italic;
  opacity: 0.8;
}

/* =============================================
   FOOTER EXTRAS
   ============================================= */
.footer-website {
  display: inline-block;
  margin-top: 12px;
  color: var(--gold);
  font-size: 0.85rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hours-list .day {
  color: var(--cream);
  opacity: 0.8;
  min-width: 90px;
}

.hours-list .closed {
  color: var(--warm-gray);
  font-style: italic;
  opacity: 0.6;
}

/* =============================================
   LEGAL PAGES (T&C / Privacy Policy)
   ============================================= */
.legal-page {
  padding: var(--section-pad) clamp(20px, 5vw, 60px);
  min-height: 60vh;
}

.legal-page-inner {
  max-width: 780px;
  margin: 0 auto;
}

.legal-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--cream);
  margin-bottom: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.legal-content {
  margin-top: 32px;
  color: var(--warm-gray);
  font-size: 0.95rem;
  line-height: 1.85;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--cream);
  margin: 36px 0 12px;
}

.legal-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--cream);
  margin: 24px 0 8px;
}

.legal-content p {
  margin-bottom: 14px;
}

.legal-content ul, .legal-content ol {
  padding-left: 20px;
  margin-bottom: 14px;
}

.legal-content li {
  margin-bottom: 6px;
}

.legal-content a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content strong {
  color: var(--cream);
  font-weight: 600;
}

/* =============================================
   WORDPRESS ALIGNMENT HELPERS
   ============================================= */
.wp-block-image { margin: 0; }
.aligncenter { text-align: center; }
