/* ============================================================
   LOOSE GOOSE KITCHEN CO. — STYLESHEET
   Plain CSS, mobile-first, ready for WordPress theme conversion.

   WordPress notes:
   - Move CSS variables to theme customizer or :root in style.css
   - Section classes map to page template parts / blocks
   - Form styles pair with Contact Form 7 or Gravity Forms
   ============================================================ */


/* ------------------------------------------------------------
   CSS CUSTOM PROPERTIES (brand colours & design tokens)
   ------------------------------------------------------------ */
:root {
  /* Brand colours */
  --color-blue: #222f40;
  --color-gold: #c79d49;
  --color-off-white: #fef6f4;

  /* Derived tones */
  --color-blue-light: #2e3f56;
  --color-blue-muted: rgba(34, 47, 64, 0.08);
  --color-gold-light: #d4ad63;
  --color-gold-muted: rgba(199, 157, 73, 0.15);
  --color-white: #ffffff;
  --color-text: var(--color-blue);
  --color-text-muted: #4a5568;

  /* Typography */
  --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Layout */
  --container-max: 72rem;
  --header-height: 4.5rem;

  /* Borders & shadows */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-full: 9999px;
  --shadow-soft: 0 4px 24px rgba(34, 47, 64, 0.08);
  --shadow-card: 0 8px 32px rgba(34, 47, 64, 0.1);
  --shadow-lifted: 0 12px 40px rgba(34, 47, 64, 0.12);

  /* Transitions */
  --transition: 0.25s ease;
}


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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-off-white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--transition);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-top: 0;
}

p {
  margin-top: 0;
  margin-bottom: var(--space-sm);
}

p:last-child {
  margin-bottom: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

address {
  font-style: normal;
}

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}


/* ------------------------------------------------------------
   LAYOUT UTILITIES
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-md);
}


/* ------------------------------------------------------------
   BUTTONS
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.85em 1.75em;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition:
    background-color var(--transition),
    color var(--transition),
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.btn--primary {
  background-color: var(--color-blue);
  color: var(--color-off-white);
  border-color: var(--color-blue);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background-color: var(--color-blue-light);
  color: var(--color-off-white);
  border-color: var(--color-blue-light);
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-off-white);
  border-color: var(--color-off-white);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
  background-color: var(--color-off-white);
  color: var(--color-blue);
}

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

.btn--gold:hover,
.btn--gold:focus-visible {
  background-color: var(--color-gold-light);
  color: var(--color-blue);
  border-color: var(--color-gold-light);
}

.btn--full {
  width: 100%;
}


/* ------------------------------------------------------------
   SITE HEADER & NAVIGATION
   WordPress: header.php
   ------------------------------------------------------------ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background-color: rgba(254, 246, 244, 0.92);
  border-bottom: 1px solid var(--color-blue-muted);
}

/* Blur on pseudo-element so fixed mobile nav isn't trapped in the header */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
  z-index: -1;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-sm);
}

.site-logo {
  flex-shrink: 0;
  text-decoration: none;
  line-height: 0;
}

.site-logo__img {
  height: 3.25rem;
  width: auto;
}

/* Mobile nav toggle (checkbox hack — no JS) */
.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  z-index: 110;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 1.375rem;
  height: 2px;
  background-color: var(--color-blue);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle-icon {
  position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-icon::before {
  top: -7px;
}

.nav-toggle-icon::after {
  top: 7px;
}

/* Open state */
.nav-toggle:checked ~ .nav-toggle-label .nav-toggle-icon {
  background-color: transparent;
}

.nav-toggle:checked ~ .nav-toggle-label .nav-toggle-icon::before {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle:checked ~ .nav-toggle-label .nav-toggle-icon::after {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  position: fixed;
  inset: 0;
  top: var(--header-height);
  z-index: 105;
  width: 100%;
  background-color: var(--color-off-white);
  padding: var(--space-lg) var(--space-md);
  transform: translateX(100%);
  transition: transform var(--transition);
  overflow-y: auto;
}

.nav-toggle:checked ~ .site-nav {
  transform: translateX(0);
}

.site-nav__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.site-nav__list a {
  display: block;
  padding: var(--space-sm) var(--space-md);
  font-weight: 500;
  color: var(--color-blue);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition), color var(--transition);
}

.site-nav__list a:hover,
.site-nav__list a:focus-visible {
  background-color: var(--color-gold-muted);
  color: var(--color-blue);
}

.site-nav__cta {
  background-color: var(--color-blue);
  color: var(--color-off-white) !important;
  text-align: center;
  margin-top: var(--space-sm);
}

.site-nav__cta:hover,
.site-nav__cta:focus-visible {
  background-color: var(--color-blue-light) !important;
}


/* ------------------------------------------------------------
   HERO SECTION
   ------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 92vh;
  min-height: 92dvh;
  display: flex;
  align-items: flex-end;
  padding-top: var(--header-height);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(34, 47, 64, 0.88) 0%,
    rgba(34, 47, 64, 0.45) 45%,
    rgba(34, 47, 64, 0.2) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-block: var(--space-xl) calc(var(--space-xl) + 2rem);
  max-width: 42rem;
}

.hero__badge {
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: var(--space-md);
  background-color: var(--color-off-white);
  border-radius: var(--radius-full);
  padding: 0.6rem;
  box-shadow: var(--shadow-card);
}

.hero__badge-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  color: var(--color-off-white);
  margin-bottom: var(--space-md);
  text-wrap: balance;
}

.hero__subtitle {
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  color: rgba(254, 246, 244, 0.9);
  margin-bottom: var(--space-lg);
  max-width: 36rem;
}

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

/* Wave divider — lakeside motif */
.wave-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 2;
  color: var(--color-off-white);
  line-height: 0;
}

.wave-divider svg {
  width: 100%;
  height: 3rem;
}


/* ------------------------------------------------------------
   SECTIONS — shared styles
   ------------------------------------------------------------ */
.section {
  padding-block: var(--space-xl);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-header--left {
  text-align: left;
}

.section-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-xs);
}

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

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--color-blue);
  margin-bottom: var(--space-sm);
}

.section-title--light {
  color: var(--color-off-white);
}

.section-intro {
  color: var(--color-text-muted);
  max-width: 36rem;
  margin-inline: auto;
}

.section-divider {
  width: 3rem;
  height: 3px;
  background-color: var(--color-gold);
  border-radius: var(--radius-full);
  margin: var(--space-sm) auto 0;
}

.section-divider--left {
  margin-left: 0;
}

.section-divider--light {
  background-color: var(--color-gold-light);
}

.lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--color-blue);
}


/* ------------------------------------------------------------
   ABOUT SECTION
   ------------------------------------------------------------ */
.section--about .section-intro {
  margin-top: var(--space-md);
}

.about-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 48rem) {
  .about-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
  }
}

.info-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-blue-muted);
}

.info-card__icon {
  font-size: 1.1em;
  font-weight: 400;
}

.info-card__title {
  font-size: 1.15rem;
  margin-bottom: var(--space-xs);
  color: var(--color-blue);
}

.info-card__text {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin: 0;
}


/* ------------------------------------------------------------
   LAKESIDE CAFÉ SECTION
   ------------------------------------------------------------ */
.section--cafe {
  background-color: var(--color-white);
}

.cafe-layout__content {
  margin-bottom: var(--space-lg);
}

.feature-list {
  margin-block: var(--space-md);
}

.feature-list__item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding-block: var(--space-xs);
  font-weight: 500;
}

.feature-list__dot {
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  background-color: var(--color-gold);
  border-radius: var(--radius-full);
}

.cafe-note {
  padding: var(--space-md);
  background-color: var(--color-gold-muted);
  border-left: 3px solid var(--color-gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.95rem;
}

.cafe-card {
  background: linear-gradient(145deg, var(--color-blue) 0%, var(--color-blue-light) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  box-shadow: var(--shadow-lifted);
}

.cafe-card__circle {
  width: 9rem;
  height: 9rem;
  margin-inline: auto;
  margin-bottom: var(--space-md);
  background-color: var(--color-off-white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  box-shadow: var(--shadow-soft);
}

.cafe-card__logo {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.cafe-card__tagline {
  color: var(--color-off-white);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-style: italic;
  margin: 0;
}


/* ------------------------------------------------------------
   EVENTS SECTION
   ------------------------------------------------------------ */
.events-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-blue-muted);
}

.card--events {
  text-align: center;
}

.card--events p {
  max-width: 42rem;
  margin-inline: auto;
}

.card--events .btn {
  margin-top: var(--space-md);
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xs);
}

.badge {
  display: inline-block;
  padding: 0.5em 1em;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-blue);
  background-color: var(--color-gold-muted);
  border: 1px solid rgba(199, 157, 73, 0.3);
  border-radius: var(--radius-full);
}


/* ------------------------------------------------------------
   PRIVATE BOOKINGS SECTION
   ------------------------------------------------------------ */
.bookings-banner {
  background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-blue-light) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-lifted);
  text-align: center;
}

.bookings-banner__content {
  max-width: 42rem;
  margin-inline: auto;
}

.bookings-banner__text {
  color: rgba(254, 246, 244, 0.9);
  margin-bottom: var(--space-md);
}


/* ------------------------------------------------------------
   GALLERY CAROUSEL — full-bleed, CSS auto-rotate fade
   ------------------------------------------------------------ */
.gallery-carousel {
  position: relative;
  width: 100%;
  min-height: 60vh;
  min-height: 60dvh;
  overflow: hidden;
}

.gallery-carousel__slides {
  position: absolute;
  inset: 0;
}

.gallery-carousel__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  animation: gallery-carousel-fade 18s infinite ease-in-out;
}

.gallery-carousel__slide:nth-child(1) {
  animation-delay: 0s;
}

.gallery-carousel__slide:nth-child(2) {
  animation-delay: -12s;
}

.gallery-carousel__slide:nth-child(3) {
  animation-delay: -6s;
}

/* 18s cycle = 6s per slide, 1.5s cross-dissolve overlap at each transition */
@keyframes gallery-carousel-fade {
  0% { opacity: 0; }
  8.33% { opacity: 1; }
  27.78% { opacity: 1; }
  38.89% { opacity: 0; }
  100% { opacity: 0; }
}

.gallery-carousel__overlay {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: inherit;
  padding: var(--space-xl) var(--space-md);
  text-align: center;
  background: linear-gradient(
    to bottom,
    rgba(34, 47, 64, 0.55) 0%,
    rgba(34, 47, 64, 0.35) 50%,
    rgba(34, 47, 64, 0.55) 100%
  );
}

.gallery-carousel__content {
  max-width: 36rem;
}

.gallery-carousel__intro {
  color: rgba(254, 246, 244, 0.9);
  font-size: 1.1rem;
  margin: var(--space-md) auto 0;
}


/* ------------------------------------------------------------
   CONTACT SECTION
   ------------------------------------------------------------ */
.section--contact {
  background-color: var(--color-white);
}

.contact-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.contact-details__card {
  background-color: var(--color-off-white);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  border: 1px solid var(--color-blue-muted);
  height: 100%;
}

.contact-details__heading {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
}

.contact-details__address {
  color: var(--color-text-muted);
  line-height: 1.7;
}

.opening-times__row {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-block: 0.5rem;
  border-bottom: 1px solid var(--color-blue-muted);
}

.opening-times__row:last-child {
  border-bottom: none;
}

.opening-times dt {
  font-weight: 500;
  color: var(--color-blue);
}

.opening-times dd {
  margin: 0;
  color: var(--color-text-muted);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.contact-links__item {
  color: var(--color-blue);
  font-weight: 500;
  text-decoration: none;
}

.contact-links__item:hover,
.contact-links__item:focus-visible {
  color: var(--color-gold);
  text-decoration: underline;
}



/* ------------------------------------------------------------
   SITE FOOTER
   WordPress: footer.php
   ------------------------------------------------------------ */
.site-footer {
  background-color: var(--color-blue);
  color: rgba(254, 246, 244, 0.85);
  padding-block: var(--space-lg);
  text-align: center;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.site-footer__logo {
  line-height: 0;
  text-decoration: none;
}

.site-footer__logo-img {
  height: 5.4rem;
  width: auto;
}

.site-footer__tagline {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1rem;
  margin: 0;
  opacity: 0.8;
}

.site-footer__copy {
  font-size: 0.85rem;
  margin: 0;
  opacity: 0.6;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm) var(--space-md);
  margin-top: var(--space-xs);
}

.site-footer__nav a {
  color: rgba(254, 246, 244, 0.75);
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: 500;
}

.site-footer__nav a:hover,
.site-footer__nav a:focus-visible {
  color: var(--color-gold-light);
}


/* ============================================================
   RESPONSIVE — TABLET & UP (min-width: 48rem / 768px)
   ============================================================ */
@media (min-width: 48rem) {

  :root {
    --header-height: 5rem;
  }

  /* Desktop navigation */
  .nav-toggle-label {
    display: none;
  }

  .site-nav {
    position: static;
    inset: auto;
    z-index: auto;
    width: auto;
    margin-left: auto;
    padding: 0;
    transform: none;
    background: none;
    overflow: visible;
  }

  .site-nav__list {
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
  }

  .site-nav__list a {
    padding: 0.5em 0.85em;
    font-size: 0.9375rem;
  }

  .site-nav__cta {
    margin-top: 0;
    margin-left: var(--space-xs);
    padding-inline: 1.25em;
  }

  .site-logo__img {
    height: 3.75rem;
  }

  /* Café layout */
  .cafe-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-xl);
    align-items: center;
  }

  .cafe-layout__content {
    margin-bottom: 0;
  }

  /* Bookings */
  .bookings-banner {
    padding: var(--space-xl);
  }

  /* Contact */
  .contact-details {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
  }
}


/* ============================================================
   RESPONSIVE — DESKTOP (min-width: 64rem / 1024px)
   ============================================================ */
@media (min-width: 64rem) {

  .section {
    padding-block: var(--space-2xl);
  }

  .gallery-carousel {
    min-height: 72vh;
    min-height: 72dvh;
  }
}


/* ============================================================
   RESPONSIVE — LARGE DESKTOP (min-width: 80rem / 1280px)
   ============================================================ */
@media (min-width: 80rem) {

  .hero__content {
    max-width: 48rem;
  }
}


/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

  .gallery-carousel__slide {
    animation: none;
    opacity: 0;
  }

  .gallery-carousel__slide:first-child {
    opacity: 1;
  }

  .btn:hover,
  .btn:focus-visible {
    transform: none;
  }
}
