/* =========================================================
   SUNRISE CAFE - style.css
   1. Variables   2. Base   3. Header   4. Hero   5. Sections
   6. Menu   7. About   8. Gallery   9. Visit   10. Footer
   11. WhatsApp button   12. Lightbox   13. Animations
   14. Larger screens
   ========================================================= */


/* ---------- 1. VARIABLES ---------- */
:root {
  --ink: #1d2540;          /* dark navy: text, footer, horizon */
  --muted: #545e7a;        /* softer text */
  --dawn: #dce7f6;         /* pale morning-sky blue */
  --dawn-light: #eef3fb;   /* very light blue for alternate sections */
  --paper: #fbfcfe;        /* page background */
  --sun: #f4b63c;          /* golden yellow */
  --crust: #9a4e22;        /* toasted brown, used for prices */
  --whatsapp: #0f7a3f;     /* dark green for the WhatsApp button */

  --font-heading: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Newsreader", Georgia, serif;

  --page-width: 1080px;
}


/* ---------- 2. BASE ---------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.65;
}

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

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.1;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.container {
  width: min(100% - 2.5rem, var(--page-width));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}


/* ---------- 3. HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 252, 254, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--dawn);
}

.header-inner {
  width: min(100% - 2.5rem, var(--page-width));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo::before {
  content: "";
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--sun);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 40px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.nav-toggle-bar {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* When the menu is open, the three lines turn into an X */
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* On phones the nav is a dropdown that is hidden until "Menu" is tapped */
.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  background: var(--paper);
  padding: 0.5rem 1.25rem 1rem;
  border-bottom: 1px solid var(--dawn);
}

.site-nav.open {
  display: flex;
  animation: slide-down 0.25s ease;
}

.site-nav a {
  font-family: var(--font-heading);
  font-weight: 500;
  text-decoration: none;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--dawn);
}

.site-nav a:hover {
  color: var(--crust);
}


/* ---------- 4. HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 82vh;
  background: var(--dawn);
  display: flex;
  align-items: flex-start;
}

/* The dark strip at the bottom is the "horizon" the sun rises from */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 90px;
  background: var(--ink);
  z-index: 2;
}

.sun {
  position: absolute;
  z-index: 1;
  bottom: 0;
  right: 50%;
  margin-right: -140px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 30px rgba(244, 182, 60, 0.28),
              0 0 0 70px rgba(244, 182, 60, 0.14);
  transform: translateY(40%);
  animation: sunrise 2.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-inner {
  position: relative;
  z-index: 3;
  width: min(100% - 2.5rem, var(--page-width));
  margin-inline: auto;
  padding: 3rem 0 12rem;
}

.hero-text {
  max-width: 34rem;
  font-size: 1.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}


/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 2px solid var(--ink);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover {
  background: var(--sun);
  color: var(--ink);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
}

.btn-secondary:hover {
  background: var(--ink);
  color: #fff;
}


/* ---------- 5. SECTIONS ---------- */
.section {
  padding: 4.5rem 0;
}

.section-tint {
  background: var(--dawn-light);
}

.section-intro {
  max-width: 34rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

/* Leaves room for the sticky header when a link jumps to a section */
section[id] {
  scroll-margin-top: 64px;
}


/* ---------- 6. MENU ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.2rem;
}

.filter-btn {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1rem;
  background: #fff;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.filter-btn:hover {
  background: var(--dawn);
}

.filter-btn.is-active {
  background: var(--ink);
  color: #fff;
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.8rem 3rem;
}

.menu-item {
  animation: fade-in 0.4s ease;
}

.menu-row {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.menu-row h3 {
  margin: 0;
}

.leader {
  flex: 1;
  border-bottom: 2px dotted #b4c0d8;
  transform: translateY(-0.3rem);
}

.price {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--crust);
  white-space: nowrap;
}

.menu-desc {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}


/* ---------- 7. ABOUT ---------- */
.about-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.about-photo {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--dawn);
}

.about-text p {
  max-width: 34rem;
}

.facts {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 0;
  border-top: 2px solid var(--sun);
}

.facts li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--dawn);
  font-family: var(--font-heading);
  font-weight: 500;
}


/* ---------- 8. GALLERY ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.gallery-item {
  padding: 0;
  border: none;
  background: var(--dawn);
  border-radius: 10px;
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 1 / 1;
}

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

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


/* ---------- 9. VISIT ---------- */
.visit-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.visit-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
}

.visit-card {
  background: var(--dawn-light);
  border-left: 6px solid var(--sun);
  border-radius: 10px;
  padding: 1.6rem;
}

.visit-card h3 {
  margin-bottom: 0.4rem;
}

.hours {
  margin: 0 0 1.4rem;
}

.hours div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--dawn);
}

.hours dt {
  color: var(--muted);
}

.hours dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

address {
  font-style: normal;
}


/* ---------- 10. FOOTER ---------- */
.site-footer {
  background: var(--ink);
  color: #fff;
  padding: 1.6rem 0 5rem; /* extra bottom space so the WhatsApp button never covers text */
  font-size: 1rem;
}

.site-footer p {
  margin: 0;
}


/* ---------- 11. WHATSAPP FLOATING BUTTON ---------- */
.whatsapp-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--whatsapp);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px);
}


/* ---------- 12. LIGHTBOX ---------- */
.lightbox {
  border: none;
  padding: 0;
  background: transparent;
  max-width: 92vw;
  max-height: 92vh;
  overflow: visible;
}

.lightbox::backdrop {
  background: rgba(29, 37, 64, 0.88);
}

.lightbox[open] {
  animation: fade-in 0.25s ease;
}

.lightbox-body {
  position: relative;
  padding: 3rem 0 0;
}

.lightbox img {
  max-width: 92vw;
  max-height: 78vh;
  border-radius: 10px;
  margin-inline: auto;
}

.lightbox-close {
  position: absolute;
  top: 0;
  right: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  background: var(--sun);
  color: var(--ink);
  border: none;
  border-radius: 999px;
  padding: 0.5rem 1.2rem;
  cursor: pointer;
}


/* ---------- 13. ANIMATIONS ---------- */
@keyframes sunrise {
  from { transform: translateY(110%); }
  to   { transform: translateY(40%); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slide-down {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Respect people who turn off animations in their device settings */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}


/* ---------- 14. LARGER SCREENS (tablet and up) ---------- */
@media (min-width: 760px) {

  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    gap: 1.8rem;
    padding: 0;
    border: none;
    background: none;
  }

  .site-nav a {
    border: none;
    padding: 0.3rem 0;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-inner {
    padding: 5rem 0 9rem;
  }

  .sun {
    right: 6%;
    margin-right: 0;
    width: clamp(380px, 42vw, 560px);
    height: clamp(380px, 42vw, 560px);
    box-shadow: 0 0 0 40px rgba(244, 182, 60, 0.28),
                0 0 0 90px rgba(244, 182, 60, 0.14);
  }

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

  .about-layout {
    grid-template-columns: 5fr 6fr;
    gap: 4rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .visit-layout {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
}