/* ==========================================================
   Cafe Cornerstone — Windsor, NSW
   Stylesheet
   ========================================================== */

:root {
  --cream: #f6efe2;
  --cream-dark: #ece1cb;
  --paper: #fbf7ee;
  --charcoal: #332a1f;
  --charcoal-soft: #5a4f3f;
  --gold: #b3873f;
  --gold-dark: #8f6a2f;
  --terracotta: #bd6f52;
  --sage: #74805a;
  --sage-dark: #5a6346;

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Jost", "Segoe UI", sans-serif;

  --max-width: 1180px;
  --radius: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--charcoal);
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}

h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
h3 { font-size: 1.25rem; letter-spacing: 0.04em; text-transform: uppercase; }
h4 { font-size: 0.95rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-dark); margin-top: 1.2em; }

p { margin: 0 0 1em; }

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 1.75rem;
}

.center { text-align: center; }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 0.6em;
}
.eyebrow.center { text-align: center; }

.section-lead {
  max-width: 620px;
  margin: -0.5em auto 2.5rem;
  color: var(--charcoal-soft);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.85em 1.9em;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--gold);
  color: var(--paper);
}
.btn-primary:hover { background: var(--gold-dark); transform: translateY(-1px); }

.btn-outline {
  border-color: var(--charcoal);
  color: var(--charcoal);
  background: transparent;
}
.btn-outline:hover { background: var(--charcoal); color: var(--cream); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--gold-dark);
  border-color: var(--gold);
  padding: 0.7em 1.6em;
  font-size: 0.85rem;
}
.btn-ghost:hover { background: var(--gold); color: var(--paper); }

.btn-small {
  padding: 0.6em 1.4em;
  font-size: 0.85rem;
}

.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-top: 1.8rem; }

/* ===== Header / Nav ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(246, 239, 226, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(51, 42, 31, 0.08);
}

.nav-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.7rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}
.brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}
.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--charcoal-soft);
  position: relative;
  padding: 0.3em 0;
}
.main-nav a:not(.nav-cta):after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: var(--terracotta);
  transition: width 0.2s ease;
}
.main-nav a:not(.nav-cta):hover:after { width: 100%; }
.main-nav a:hover { color: var(--charcoal); }

.nav-cta {
  background: var(--charcoal);
  color: var(--cream) !important;
  padding: 0.55em 1.3em;
  border-radius: 999px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--gold-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px; height: 34px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 1.5rem 5rem;
  background:
    radial-gradient(circle at 15% 20%, rgba(179, 135, 63, 0.10), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(116, 128, 90, 0.12), transparent 50%),
    var(--cream);
  position: relative;
}

.hero-logo {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.6rem;
  box-shadow: 0 8px 30px rgba(51, 42, 31, 0.18);
  border: 4px solid var(--paper);
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  margin-bottom: 0.25em;
}

.hero-tagline {
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--terracotta);
  margin-bottom: 1.3rem;
}

.hero-sub {
  max-width: 560px;
  margin: 0 auto;
  color: var(--charcoal-soft);
  font-size: 1.08rem;
}

.hero-order-note {
  margin: 1.4rem 0 0;
  font-size: 0.9rem;
  color: var(--charcoal-soft);
}
.hero-order-note a {
  color: var(--gold-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero-order-note a:hover { color: var(--terracotta); }

.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.4rem;
  color: var(--charcoal-soft);
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ===== Leaf dividers ===== */
.leaf-divider { line-height: 0; color: var(--cream-dark); }
.leaf-divider svg { width: 100%; height: 32px; display: block; }
.leaf-divider svg path { fill: currentColor; }
.leaf-divider.flip { transform: rotate(180deg); }

/* ===== About ===== */
.about { background: var(--paper); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
  align-items: center;
}
.about-photo { position: relative; }
.about-photo img {
  width: 100%;
  border-radius: var(--radius);
  filter: sepia(18%) contrast(1.02);
  box-shadow: 0 18px 40px rgba(51, 42, 31, 0.18);
}
.photo-caption {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--charcoal-soft);
  font-style: italic;
  text-align: center;
}
.about-copy p { color: var(--charcoal-soft); }

/* ===== Meet the Team ===== */
.team-section { background: var(--cream); }

.team-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 3rem;
}

.team-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.75rem;
  align-items: start;
  background: var(--paper);
  border: 1px solid rgba(51, 42, 31, 0.08);
  border-radius: 8px;
  padding: 2.5rem;
}

.team-photo-placeholder {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--cream) 0%, var(--cream-dark) 100%);
  border: 3px solid var(--paper);
  box-shadow: 0 8px 24px rgba(51, 42, 31, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-photo-placeholder span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 4rem;
  color: var(--gold);
}
.team-photo-placeholder img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.team-copy h3 {
  font-size: 1.6rem;
  margin-bottom: 0.15em;
}
.team-role {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--terracotta);
  margin-bottom: 1.1em;
}
.team-copy p:not(.team-role) { color: var(--charcoal-soft); }

@media (max-width: 700px) {
  .team-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 2.2rem 1.6rem;
  }
}

/* ===== Menu section ===== */
.menu-section { background: var(--cream); }

.menu-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 3rem;
  margin-top: 3rem;
}

.menu-card {
  background: var(--paper);
  padding: 2.1rem 2.2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(51, 42, 31, 0.08);
}

.menu-card h3 {
  color: var(--sage-dark);
  border-bottom: 1px solid rgba(51, 42, 31, 0.12);
  padding-bottom: 0.6rem;
  margin-bottom: 0.9rem;
}
.menu-card h3:not(:first-child) { margin-top: 2rem; }

.menu-sizes {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gold-dark);
  margin-bottom: 0.4em;
}
.menu-items {
  color: var(--charcoal-soft);
  font-size: 0.95rem;
}

.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 600;
  padding-top: 0.6em;
}
.menu-list li.sub {
  display: block;
  font-weight: 400;
  color: var(--charcoal-soft);
  font-size: 0.88rem;
  padding-top: 0.1em;
  padding-bottom: 0.3em;
  border-bottom: 1px dashed rgba(51, 42, 31, 0.12);
}
.menu-list li .price { color: var(--terracotta); font-weight: 700; }

.menu-list li.note {
  display: block;
  font-style: italic;
  font-weight: 400;
  color: var(--gold-dark);
  font-size: 0.85rem;
  padding-top: 0.1em;
  padding-bottom: 0.5em;
  border-bottom: 1px dashed rgba(51, 42, 31, 0.12);
}

.menu-image-link { text-align: center; margin-top: 3rem; }

/* ===== Food menu ===== */
.food-section { background: var(--paper); }

.food-columns { align-items: start; }

.menu-card-wide { grid-column: 1 / -1; }

.register-note {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: var(--charcoal);
  margin: 1.6rem 0 0;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(51, 42, 31, 0.12);
}

.allergen-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--charcoal-soft);
  font-style: italic;
  margin: 2.5rem 0 0;
}

.food-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin: 2.8rem 0 0;
}
.food-gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 10px 26px rgba(51, 42, 31, 0.14);
}
.food-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.food-gallery figure:hover img { transform: scale(1.05); }

@media (max-width: 900px) {
  .food-gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Photo banner (shared: Functions + Visit) ===== */
.photo-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin: 2.6rem 0 0.6rem;
}
.photo-banner figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: 0 14px 30px rgba(51, 42, 31, 0.16);
}
.photo-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
}

@media (max-width: 700px) {
  .photo-banner { grid-template-columns: 1fr; }
}

/* When a banner has an odd photo out (3 total), center the last one instead of leaving a gap */
.photo-banner figure:nth-child(3):last-child {
  grid-column: 1 / -1;
  max-width: 50%;
  margin: 0 auto;
}
@media (max-width: 700px) {
  .photo-banner figure:nth-child(3):last-child { max-width: 100%; }
}

/* ===== Video banner (Catering: recent event clips) ===== */
.video-banner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin: 1.8rem 0 0;
}
.video-banner figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: 0 14px 30px rgba(51, 42, 31, 0.16);
}
.video-banner video {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}
@media (max-width: 700px) {
  .video-banner {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ===== Catering ===== */
.catering-section { background: var(--cream); }

.price-tiers {
  color: var(--terracotta) !important;
  font-weight: 600;
  font-style: normal !important;
}

.catering-cta {
  max-width: 560px;
  margin: 3.5rem auto 0;
  padding: 2.6rem 2.5rem;
  text-align: center;
  background: var(--paper);
  border-radius: 8px;
  border: 1px solid rgba(51, 42, 31, 0.08);
}
.catering-cta h3 {
  color: var(--sage-dark);
  margin-bottom: 0.5em;
}
.catering-cta p {
  color: var(--charcoal-soft);
  margin-bottom: 1.4em;
}

/* ===== Functions ===== */
.functions-section { background: var(--cream); }

.function-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.function-card {
  background: var(--paper);
  padding: 2.4rem 1.8rem;
  border-radius: var(--radius);
  border: 1px solid rgba(51, 42, 31, 0.08);
  text-align: center;
}

.function-price {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--terracotta);
  margin-bottom: 0.3em;
}
.function-price span {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--charcoal-soft);
  margin-left: 0.2em;
}

.function-card h3 {
  color: var(--sage-dark);
  margin-bottom: 0.6em;
}

.function-desc {
  font-size: 0.95rem;
  color: var(--charcoal-soft);
  margin-bottom: 0.9em;
}

.function-features {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--gold-dark);
  margin-bottom: 0.9em;
}

.function-status {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--charcoal-soft);
}

.event-narrative {
  max-width: 700px;
  margin: 2.2rem auto 0;
  text-align: left;
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid rgba(51, 42, 31, 0.08);
  padding: 2.2rem 2.4rem;
}
.event-narrative > p {
  color: var(--charcoal-soft);
  margin-bottom: 1.4em;
}

.event-options-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.event-options-list li {
  position: relative;
  padding: 0.75rem 0 0.75rem 1.9rem;
  border-bottom: 1px solid rgba(51, 42, 31, 0.08);
  color: var(--charcoal-soft);
  line-height: 1.55;
}
.event-options-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.event-options-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--terracotta);
}

/* ===== Visit / Hours / Map ===== */
.visit-section { background: var(--cream); }
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
  align-items: start;
  margin-top: 3rem;
}

.detail-block { margin-bottom: 2.1rem; }
.detail-block h3 {
  color: var(--sage-dark);
  font-size: 1rem;
  margin-bottom: 0.5em;
}

.pet-friendly-note {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--charcoal-soft);
  max-width: 380px;
}
.pet-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  margin-top: 0.15em;
  color: var(--terracotta);
}
.detail-block a:hover { color: var(--terracotta); }

.hours-table { border-collapse: collapse; width: 100%; max-width: 320px; }
.hours-table th, .hours-table td {
  text-align: left;
  padding: 0.35em 0;
  font-size: 0.95rem;
  font-weight: 400;
}
.hours-table th { color: var(--charcoal); font-weight: 600; width: 40%; }
.hours-table td { color: var(--charcoal-soft); }
.hours-table tr + tr th, .hours-table tr + tr td {
  border-top: 1px solid rgba(51, 42, 31, 0.1);
}

.visit-map iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(51, 42, 31, 0.18);
}

/* ===== Contact CTA ===== */
.contact-cta {
  background: var(--sage-dark);
  color: var(--cream);
}
.contact-cta h2 { color: var(--cream); }
.contact-cta p { color: rgba(246, 239, 226, 0.85); max-width: 480px; margin-left: auto; margin-right: auto; }
.contact-cta .btn-outline { border-color: var(--cream); color: var(--cream); }
.contact-cta .btn-outline:hover { background: var(--cream); color: var(--sage-dark); }
.contact-cta .btn-primary { background: var(--gold); }

/* ===== Footer ===== */
.site-footer {
  background: var(--charcoal);
  color: var(--cream-dark);
  padding-top: 3.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.5rem;
  padding-top: 0;
  padding-bottom: 2rem;
}
.footer-brand { display: flex; flex-direction: column; gap: 0.8rem; }
.footer-logo { width: 44px; height: 44px; border-radius: 50%; }
.footer-brand p { color: rgba(246, 239, 226, 0.7); font-size: 0.9rem; margin: 0; }

.footer-links, .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.92rem;
}
.footer-links a:hover, .footer-contact a:hover { color: var(--gold); }
.footer-contact p { margin: 0; color: rgba(246, 239, 226, 0.8); }

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(246, 239, 226, 0.55);
  border-top: 1px solid rgba(246, 239, 226, 0.12);
  padding: 1.4rem 1rem;
  margin: 0;
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 10, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 2.5rem 1.5rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.8rem;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-panel {
  background: var(--paper);
  width: 100%;
  max-width: 620px;
  max-height: 88vh;
  overflow-y: auto;
  border-radius: var(--radius);
  padding: 2.8rem 2.6rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  text-align: left;
}
.lightbox-panel .eyebrow { margin-bottom: 0.3em; }
.lightbox-panel h2 { margin-bottom: 1.5rem; }
.lightbox-panel h3 {
  color: var(--sage-dark);
  border-bottom: 1px solid rgba(51, 42, 31, 0.12);
  padding-bottom: 0.5rem;
  margin: 1.8rem 0 0.9rem;
}
.lightbox-panel h3:first-of-type { margin-top: 0; }

/* ===== Responsive ===== */
@media (max-width: 1140px) {
  .main-nav { gap: 1.1rem; }
  .main-nav a { font-size: 0.86rem; white-space: nowrap; }
  .nav-cta { padding: 0.55em 1.05em; }
  .brand-text { font-size: 1.02rem; }
}

@media (max-width: 900px) {
  .about-grid, .visit-grid { grid-template-columns: 1fr; }
  .visit-map iframe { min-height: 320px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .function-columns { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-bottom: 1px solid rgba(51,42,31,0.08);
  }
  .main-nav.open { max-height: 460px; }
  .main-nav a { width: 100%; padding: 1rem 1.75rem; border-top: 1px solid rgba(51,42,31,0.06); font-size: 0.95rem; white-space: normal; }
  .main-nav a:after { display: none; }
  .nav-cta { border-radius: 0; text-align: center; padding: 1rem 1.75rem; }
  .nav-toggle { display: flex; }
  .brand-text { font-size: 1.15rem; }
}

@media (max-width: 760px) {
  .menu-columns { grid-template-columns: 1fr; }
  .function-columns { grid-template-columns: 1fr; }
  .section-inner { padding: 3.5rem 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; text-align: left; }
}

@media (max-width: 480px) {
  .hero { padding-top: 7rem; }
  .hero-logo { width: 100px; height: 100px; }
}
