/* =====================================================
   Christo's Restaurant — style.css
   Brand colors sourced from original Enfold theme CSS.
   Mobile-first, no framework dependencies.
   ===================================================== */

/* ----- Custom Properties ----- */
:root {
  --primary:       #c3512f;  /* burnt orange/terracotta */
  --primary-dark:  #883d1f;  /* hover / secondary */
  --bg:            #ffffff;
  --bg-alt:        #f8f6f2;
  --text:          #7c6853;
  --heading:       #382410;
  --border:        #ebe8e2;
  --footer-bg:     #2b2822;
  --footer-text:   #988f81;
  --footer-link:   #ffffff;
  --font:          'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width:     1200px;
}

/* ----- Fonts (locally served) ----- */
@font-face {
  font-family: 'Lato';
  src: url('/fonts/lato/lato-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lato';
  src: url('/fonts/lato/lato-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lato';
  src: url('/fonts/lato/lato-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ----- Reset & Base ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  /* Footer color fills overscroll area below page on iOS/desktop */
  background: var(--footer-bg);
}

body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#main { flex: 1; }

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

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

ul { list-style: none; }

/* ----- Layout helpers ----- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.center { text-align: center; }

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.col-one-third  { flex: 1 1 220px; }
.col-two-thirds { flex: 2 1 440px; }
.col-half       { flex: 1 1 300px; }
.col-main       { flex: 2 1 440px; }
.col-aside      { flex: 1 1 220px; }
.col-map        { flex: 2 1 440px; }

/* ----- Typography ----- */
h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 700;
  color: var(--heading);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

h1 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h2 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); margin-bottom: 0.5rem; }
h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }

.sub-heading {
  color: var(--text);
  font-weight: 300;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

/* Heading rule decoration (matches original "blockquote modern-quote") */
.heading-border {
  margin: 0.75rem 0 1.25rem;
}
.heading-border-inner {
  display: inline-block;
  width: 50px;
  height: 3px;
  background: var(--primary);
}

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  padding: 0.65em 1.5em;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 2px;
  transition: background 0.2s;
}
.btn:hover { background: var(--primary-dark); text-decoration: none; color: #fff; }

/* ----- Header ----- */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.15);
  border-bottom: 1px solid rgba(255,255,255,0.25);
  height: 80px;
  display: flex;
  align-items: center;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

#header.scrolled {
  background: rgba(43,40,34,0.97);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo img {
  height: 56px;
  width: auto;
}


/* ----- Main Nav ----- */
.main-nav { display: flex; align-items: center; }

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: center;
}

.main-nav ul li a {
  display: block;
  padding: 0 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  line-height: 80px;
  height: 80px;
  transition: color 0.2s;
  white-space: nowrap;
}

.main-nav ul li a:hover,
.main-nav ul li.current a {
  color: var(--primary);
  text-decoration: none;
}


/* Mobile hamburger button — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  transition: transform 0.2s, opacity 0.2s;
}

#header.scrolled .nav-toggle span {
  background: var(--heading);
}

/* ----- Hero (Home) ----- */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 65vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
}

/* Dark gradient overlay — fades up from bottom so text stays readable */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.70) 0%, rgba(0,0,0,0.20) 55%, transparent 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-bottom: 3rem;
}

.hero h1 {
  color: #fff;
  font-weight: 300;
  letter-spacing: 0.08em;
}
.hero h1 strong { font-weight: 700; }

/* Keep bold text white inside the home hero — overrides site-wide strong colour */
.hero strong,
.hero b { color: inherit; }

.hero .heading-border-inner { background: rgba(255,255,255,0.6); }

.hero-sub {
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
  margin-bottom: 1rem;
}
.hero-sub a { color: #fff; font-weight: 700; }
.hero-sub a:hover { text-decoration: underline; }

/* ----- Home content sections ----- */
.home-content { padding: 3rem 0; }

.home-intro {
  align-items: flex-start;
  margin-bottom: 3rem;
}

.home-features {
  align-items: flex-start;
  border-top: 1px solid var(--border);
  padding-top: 2.5rem;
}

.feature-img {
  margin-bottom: 1rem;
}

.img-fluid { width: 100%; height: auto; }

/* Feature column images: fixed height, center-cropped */
img.feature-img {
  height: 220px;
  object-fit: cover;
  object-position: center;
}

/* Utility: center-crop to 200px tall (used on Reservations page) */
img.img-crop {
  height: 200px;
  object-fit: cover;
  object-position: center;
}

/* ----- Iconbox ----- */
.iconbox { margin-top: 0.75rem; }
.iconbox .icon {
  color: var(--primary);
  font-size: 1.25rem;
  display: block;
  margin-bottom: 0.25rem;
}
.iconbox h3 { color: var(--heading); margin-bottom: 0.5rem; }

/* ----- Page Hero (inner pages) ----- */
.page-hero {
  background: var(--primary);
  color: #fff;
  padding: 2.5rem 0;
  padding-top: calc(80px + 2.5rem);
  text-align: center;
}
.page-hero h1 { color: #fff; font-weight: 300; letter-spacing: 0.08em; }
.page-hero .heading-border-inner { background: rgba(255,255,255,0.6); }
.page-hero .page-subtitle { color: rgba(255,255,255,0.9); margin-top: 0.5rem; font-size: 1rem; }

/* Page hero variant: background image, left-aligned (About page) */
.page-hero--image {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: left;
}
.page-hero--image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}
.page-hero--image .page-heading {
  position: relative;
  z-index: 1;
}
.page-hero--image .page-subtitle { text-align: left; }

/* ----- About page 60/40 layout ----- */
.about-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: flex-start;
}
.about-main    { flex: 3 1 380px; }
.about-gallery { flex: 2 1 260px; }

/* 2-column grid for sidebar gallery */
.gallery-grid--2col {
  grid-template-columns: repeat(2, 1fr);
}

/* ----- Christo's History two-column layout ----- */
.history-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: flex-start;
}
.history-left,
.history-right { flex: 1 1 300px; }

/* Site-wide: bold text uses the primary brand colour */
strong, b { color: var(--primary); }

/* In-content links: underlined so they are distinguishable without relying on colour alone */
.page-content a:not(.btn),
.home-content a:not(.btn),
.about-main a:not(.btn),
.history-cols a:not(.btn) { text-decoration: underline; }

/* Extra breathing room above section dividers in about copy */
.about-main hr {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  border: none;
  border-top: 1px solid var(--border);
}

/* ----- Lightbox ----- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
}
.lightbox.is-open { display: flex; }

.lb-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  max-height: 90vh;
}
.lb-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  display: block;
}
.lb-caption {
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  text-align: center;
}
.lb-close,
.lb-prev,
.lb-next {
  position: fixed;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  padding: 0.5rem;
  z-index: 501;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.lb-close:hover,
.lb-prev:hover,
.lb-next:hover { opacity: 1; }
.lb-close { top: 1rem; right: 1.5rem; font-size: 2.5rem; }
.lb-prev,
.lb-next  { top: 50%; transform: translateY(-50%); font-size: 4rem; font-weight: 300; }
.lb-prev  { left:  1rem; }
.lb-next  { right: 1rem; }

/* ----- Page Content ----- */
.page-content {
  padding: 3rem 0;
}

.page-content h2 { margin-bottom: 0.5rem; color: var(--heading); }
.page-content h3 { color: var(--heading); margin-bottom: 0.5rem; }
.page-content ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.page-content ul li { margin-bottom: 0.25rem; }
.page-content img { margin-bottom: 1rem; }

/* ----- Two-col layouts (page content) ----- */
.two-col { display: flex; flex-wrap: wrap; gap: 2.5rem; }
.col-main  { flex: 2 1 400px; }
.col-aside { flex: 1 1 240px; }
.col-half  { flex: 1 1 300px; }
.col-map   { flex: 2 1 400px; }

/* Contact specifics */
.contact-details h3 { margin-bottom: 0.5rem; }
.contact-details p  { margin-bottom: 0.5rem; }
.contact-details hr {
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  border: none;
  border-top: 1px solid var(--border);
}

/* ----- Footer ----- */
#socket {
  background: var(--footer-bg);
  padding: 2rem 0;
  color: var(--footer-text);
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.copyright { font-size: 0.8rem; }

.footer-nav {
  width: 75%;
  max-width: 800px;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 0.25rem 0;
}
.footer-nav ul li a {
  display: block;
  color: var(--footer-text);
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  line-height: 1;
}
.footer-nav ul li a:hover { color: var(--footer-link); text-decoration: none; }

/* ----- Photo Gallery ----- */
.photo-gallery { margin-top: 2rem; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  display: block;
  aspect-ratio: 1 / 1;
  background: var(--heading);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(56, 36, 16, 0.8);
  color: #fff;
  font-size: 0.8rem;
  padding: 0.5rem 0.75rem;
  transform: translateY(100%);
  transition: transform 0.25s ease;
  text-align: center;
}

.gallery-item:hover figcaption { transform: translateY(0); }

/* ----- Scroll to top (optional) ----- */
#scroll-top { display: none; }

/* =====================================================
   Responsive — Mobile (@media max-width: 767px)
   ===================================================== */
@media (max-width: 767px) {

  #header { height: 64px; }

  .logo img { height: 44px; }

  /* Show hamburger button */
  .nav-toggle { display: flex; }

  /* Hide nav until toggled */
  .main-nav ul {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 2px solid var(--border);
    flex-direction: column;
    padding: 0.5rem 0;
    gap: 0;
  }
  .main-nav ul.is-open { display: flex; }

  .main-nav ul li a {
    height: auto;
    line-height: 1.4;
    padding: 0.75rem 1.25rem;
    display: block;
    width: 100%;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
    color: var(--heading); /* dropdown is white bg — override the global #fff */
  }

  .hero { padding: 2rem 0; }

  .home-content { padding: 2rem 0; }

  .footer-nav { width: 100%; }
}

/* =====================================================
   Responsive — Tablet (@media min-width: 640px)
   ===================================================== */
@media (min-width: 640px) {
  /* nav shows inline */
}

/* =====================================================
   Responsive — Desktop (@media min-width: 1024px)
   ===================================================== */
@media (min-width: 1024px) {
  .main-nav ul li a { padding: 0 1rem; }
}
