/* ==========================================================
   QUINN CAFE - STYLESHEET
   Edit the colors and fonts in :root to restyle the whole site.
   ========================================================== */

:root {
  /* Brown palette */
  --espresso: #1a0f09;   /* darkest background */
  --roast: #2a1810;      /* main background */
  --walnut: #43291a;     /* cards, borders */
  --mocha: #6b4430;      /* soft accents */
  --caramel: #d29a5c;    /* highlight color, buttons */
  --caramel-dark: #b97f42;
  --latte: #e9d6bd;      /* main text */
  --muted: #b9a28b;      /* secondary text */

  /* Fonts */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;

  /* Layout */
  --max-width: 1120px;
  --radius: 10px;
  --header-height: 72px;
}


/* ---------- Reset and base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--latte);
  background: var(--roast);
}

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

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

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}


/* ---------- Typography ---------- */

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 600;
}

h1 {
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.2rem;
}


/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.85rem 1.8rem;
  background: var(--caramel);
  color: var(--espresso);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  border: 2px solid var(--caramel);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn:hover {
  background: var(--caramel-dark);
  border-color: var(--caramel-dark);
}

.btn-outline {
  background: transparent;
  color: var(--latte);
  border-color: var(--latte);
}

.btn-outline:hover {
  background: var(--latte);
  border-color: var(--latte);
  color: var(--espresso);
}

.btn-small {
  padding: 0.5rem 1.2rem;
  font-size: 0.95rem;
}


/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  transition: background 0.3s, box-shadow 0.3s;
}

/* Added by script.js after you scroll down */
.site-header.scrolled {
  background: rgba(26, 15, 9, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--walnut);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--latte);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a:not(.btn) {
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:not(.btn):hover {
  color: var(--caramel);
}

/* Mobile menu button (hidden on desktop) */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--latte);
  margin: 6px 0;
  transition: transform 0.25s;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}


/* ---------- Hero ---------- */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-height) + 2rem) 0 5rem;

  /* HERO IMAGE: change "images/hero.jpg" to your own file.
     The dark gradient on top keeps the text readable.
     If the image is missing, the brown gradient below shows instead. */
  background:
    linear-gradient(to top, rgba(26, 15, 9, 0.92) 5%, rgba(26, 15, 9, 0.35) 70%),
    url("images/hero.jpg") center / cover no-repeat,
    linear-gradient(135deg, #4a2c1b, #1a0f09);
}

.hero-content {
  max-width: var(--max-width);
}

.hero h1 {
  max-width: 14ch;
  margin-bottom: 1.25rem;
}

.hero-text {
  max-width: 46ch;
  font-size: 1.2rem;
  color: var(--latte);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}


/* ---------- Sections ---------- */

.section {
  padding: 6rem 0;
}

.section-dark {
  background: var(--espresso);
}

.section-head {
  margin-bottom: 2rem;
}

.section-head p {
  color: var(--muted);
  max-width: 50ch;
}


/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* ABOUT IMAGE: add your own photo at images/about.jpg */
.about-image {
  min-height: 460px;
  border-radius: var(--radius);
  background:
    url("images/about.jpg") center / cover no-repeat,
    linear-gradient(160deg, var(--mocha), var(--walnut));
}

.about-text p {
  color: var(--muted);
  max-width: 52ch;
  margin-bottom: 1rem;
}

.facts {
  margin-top: 2rem;
  display: grid;
  gap: 0.75rem;
}

.facts li {
  padding-left: 1rem;
  border-left: 3px solid var(--caramel);
  color: var(--muted);
}

.facts strong {
  color: var(--latte);
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-right: 0.4rem;
}


/* ---------- Menu ---------- */

.menu-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.tab {
  padding: 0.55rem 1.3rem;
  background: transparent;
  color: var(--latte);
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--mocha);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.tab:hover {
  border-color: var(--caramel);
}

.tab.active {
  background: var(--caramel);
  border-color: var(--caramel);
  color: var(--espresso);
  font-weight: 700;
}

.menu-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.75rem;
}

.menu-item {
  display: flex;
  flex-direction: column;
  background: var(--roast);
  border: 1px solid var(--walnut);
  border-radius: var(--radius);
  overflow: hidden;
}

.menu-item[hidden] {
  display: none;
}

/* Photo area. The gradient shows until you add a real image. */
.menu-photo {
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, var(--mocha), var(--walnut));
  overflow: hidden;
}

.menu-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

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

.menu-body {
  padding: 1.1rem 1.25rem 1.4rem;
}

.menu-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.25rem;
}

.price {
  color: var(--caramel);
  font-weight: 700;
}

.menu-body p {
  color: var(--muted);
  font-size: 0.95rem;
}


/* ---------- Visit ---------- */

.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.visit-intro {
  color: var(--muted);
  max-width: 46ch;
}

.hours-card {
  background: var(--walnut);
  padding: 2.25rem;
  border-radius: var(--radius);
}

.hours-card h3 {
  margin-bottom: 1.25rem;
  color: var(--caramel);
}

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

.hours li:last-child {
  border-bottom: 0;
}


/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info p {
  color: var(--muted);
  margin-bottom: 2rem;
}

.contact-info dt {
  color: var(--caramel);
  font-weight: 700;
  margin-top: 1.25rem;
}

.contact-info a:hover {
  color: var(--caramel);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-form label {
  font-weight: 500;
  margin-top: 0.75rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--roast);
  color: var(--latte);
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--mocha);
  border-radius: 8px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--caramel);
}

.contact-form .btn {
  align-self: flex-start;
  margin-top: 1.25rem;
}

.form-note {
  color: var(--caramel);
  min-height: 1.5rem;
}


/* ---------- Footer ---------- */

.site-footer {
  padding: 2rem 0;
  background: var(--espresso);
  border-top: 1px solid var(--walnut);
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.site-footer .logo {
  font-size: 1.2rem;
}


/* ---------- Tablet and mobile ---------- */

@media (max-width: 860px) {

  .section {
    padding: 4rem 0;
  }

  .about-grid,
  .visit-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-image {
    min-height: 320px;
  }

  /* Mobile navigation */
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--espresso);
    border-bottom: 1px solid var(--walnut);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }
}


/* ---------- Respect reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
