/*
Layla's Lounge - Tywyn
Custom design system (replaces the original Tooplate "Antique Cafe" styling)
*/

:root {
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --color-cream: #fbf6ef;
  --color-cream-deep: #f1e5d6;
  --color-ink: #2a2019;
  --color-ink-soft: #5c4c3f;
  --color-brand: #b26b3a;
  --color-brand-dark: #8f5429;
  --color-sage: #3f6952;
  --color-sage-dark: #2e4f3d;
  --color-white: #ffffff;
  --color-line: rgba(42, 32, 25, 0.12);

  --shadow-sm: 0 2px 10px rgba(42, 32, 25, 0.08);
  --shadow-md: 0 14px 34px rgba(42, 32, 25, 0.14);
  --shadow-lg: 0 26px 64px rgba(42, 32, 25, 0.22);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body, h1, h2, h3, p, figure, ul {
  margin: 0;
}

ul {
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

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

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

a {
  color: inherit;
}

button {
  font-family: inherit;
}

.container-x {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-brand-dark);
  margin-bottom: 0.9rem;
}

.eyebrow-light {
  color: #f0c9a4;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-brand);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--color-brand-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.75);
  color: #fff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn-sage {
  background: var(--color-sage);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-sage:hover {
  background: var(--color-sage-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* ---------- Nav ---------- */

.site-nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  padding: 1.4rem 0;
  transition: all 0.3s ease;
}

.site-nav.is-scrolled {
  background: rgba(251, 246, 239, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 0.75rem 0;
}

.site-nav .container-x {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: color 0.3s ease;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

.site-nav.is-scrolled .brand {
  color: var(--color-ink);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.2rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 5px;
  transition: color 0.3s ease;
}

.site-nav.is-scrolled .nav-links a {
  color: var(--color-ink);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--color-brand);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-cta {
  margin-left: 0.5rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
  padding: 0.3rem;
}

.site-nav.is-scrolled .nav-toggle {
  color: var(--color-ink);
}

@media (max-width: 880px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--color-cream);
    box-shadow: var(--shadow-md);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    padding: 0.5rem 1.5rem 1.5rem;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease;
  }

  .nav-links.is-open {
    max-height: 24rem;
    opacity: 1;
  }

  .nav-links a {
    color: var(--color-ink) !important;
    display: block;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--color-line);
  }

  .nav-cta {
    display: none;
  }
}

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

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 14, 10, 0.6) 0%, rgba(20, 14, 10, 0.58) 45%, rgba(20, 14, 10, 0.9) 100%);
  z-index: 0;
}

@media (min-width: 1000px) and (hover: hover) {
  .hero {
    background-attachment: fixed;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding: 9rem 0 7rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  margin: 0.5rem 0 1.3rem;
}

.hero .lead {
  font-size: 1.15rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.92);
  max-width: 520px;
  margin-bottom: 2.3rem;
  font-weight: 300;
}

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

.scroll-cue {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 1.3rem;
  animation: bob 2.4s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

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

.section {
  padding: 6.5rem 0;
}

.section-deep {
  background: var(--color-cream-deep);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.75rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0.4rem 0 1rem;
}

.section-header p {
  color: var(--color-ink-soft);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

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

@media (max-width: 820px) {
  .menu-grid {
    grid-template-columns: 1fr;
  }
}

.menu-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-line);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.menu-card-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.menu-card-head h3 {
  flex: 1;
}

.menu-card-head .menu-item-price {
  font-size: 0.85rem;
}

.menu-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-cream-deep);
  color: var(--color-brand-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.menu-card h3 {
  font-size: 1.35rem;
  margin: 0;
}

.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.menu-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--color-line);
}

.menu-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.menu-item-name {
  font-weight: 600;
}

.menu-item-desc {
  display: block;
  font-size: 0.85rem;
  color: var(--color-ink-soft);
  font-weight: 400;
  margin-top: 0.2rem;
}

.menu-item-price {
  font-weight: 600;
  color: var(--color-brand-dark);
  white-space: nowrap;
}

.menu-note {
  text-align: center;
  margin-top: 2.75rem;
  color: var(--color-ink-soft);
  font-size: 0.92rem;
}

.menu-note a {
  color: var(--color-brand-dark);
  font-weight: 600;
}

/* ---------- Menu groups (sub-sections within the menu) ---------- */

.menu-group {
  margin-bottom: 4.5rem;
}

.menu-group:last-of-type {
  margin-bottom: 0;
}

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

.menu-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3.25rem;
}

.menu-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  border: 2px solid var(--color-line);
  background: #fff;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-ink-soft);
  cursor: pointer;
  transition: all 0.25s ease;
}

.menu-tab i {
  font-size: 0.9rem;
}

.menu-tab:hover {
  border-color: var(--color-brand);
  color: var(--color-ink);
}

.menu-tab.is-active {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.menu-group.menu-panel {
  margin-bottom: 0;
}

.menu-panel {
  display: none;
}

.menu-panel.is-active {
  display: block;
  animation: menu-panel-in 0.35s ease;
}

@keyframes menu-panel-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.menu-list-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-brand-dark);
  font-weight: 700;
  margin: 1.4rem 0 0.9rem;
}

.menu-list-label:first-of-type {
  margin-top: 0;
}

.menu-card-note {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--color-ink-soft);
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px dashed var(--color-line);
}

/* ---------- Açai bowl grid ---------- */

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

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

@media (max-width: 600px) {
  .bowl-grid {
    grid-template-columns: 1fr;
  }
}

.bowl-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-line);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bowl-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.bowl-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
}

.bowl-card .price {
  font-family: var(--font-body);
  color: var(--color-brand-dark);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

.bowl-card p {
  font-size: 0.88rem;
  color: var(--color-ink-soft);
  line-height: 1.6;
}

/* ---------- Wine tables ---------- */

.table-scroll {
  overflow-x: auto;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-md);
}

.wine-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-line);
  min-width: 560px;
}

.wine-table caption {
  text-align: left;
  caption-side: top;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 1.15rem 1.4rem 0.9rem;
}

.wine-table th,
.wine-table td {
  padding: 0.85rem 1.4rem;
  text-align: left;
  border-bottom: 1px solid var(--color-line);
}

.wine-table th {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-ink-soft);
  font-weight: 600;
}

.wine-table td.price {
  text-align: right;
  font-weight: 600;
  color: var(--color-brand-dark);
  white-space: nowrap;
}

.wine-table .wine-name {
  display: block;
  font-weight: 600;
}

.wine-table .wine-desc {
  display: block;
  font-size: 0.82rem;
  font-style: italic;
  color: var(--color-ink-soft);
  font-weight: 400;
  margin-top: 0.2rem;
}

.wine-table tbody tr:last-child td {
  border-bottom: none;
}

/* ---------- Gallery strip ---------- */

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  margin-top: 3.75rem;
}

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

.gallery-strip .gallery-item {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.gallery-strip img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

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

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-copy p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-ink-soft);
  margin: 0 0 1.2rem;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.card-panel {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-line);
}

.card-panel h3 {
  font-size: 1.5rem;
  margin: 0 0 1.5rem;
}

.info-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-line);
  text-decoration: none;
}

.info-row:first-of-type {
  padding-top: 0;
}

.info-row:last-of-type {
  border-bottom: none;
}

.info-row .icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-cream-deep);
  color: var(--color-brand-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.info-row .label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-ink-soft);
  margin-bottom: 0.15rem;
}

.info-row .value {
  font-weight: 600;
}

.social-row {
  display: flex;
  gap: 0.75rem;
  margin: 1.6rem 0 0.4rem;
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-cream-deep);
  color: var(--color-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  text-decoration: none;
}

.social-btn:hover {
  background: var(--color-brand);
  color: #fff;
  transform: translateY(-2px);
}

.map-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin: 1.9rem 0;
  aspect-ratio: 4 / 3;
  background: var(--color-cream-deep);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Form ---------- */

.form-field {
  margin-bottom: 1.3rem;
}

.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--color-ink-soft);
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--color-cream);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(178, 107, 58, 0.18);
}

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

.site-footer {
  background: var(--color-ink);
  color: rgba(255, 255, 255, 0.72);
  padding: 3.75rem 0 2rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #fff;
  margin: 0 0 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-col p {
  max-width: 320px;
  line-height: 1.7;
  font-size: 0.92rem;
  margin: 0;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.6rem;
  font-size: 0.82rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.72);
}

.footer-bottom a:hover {
  color: #fff;
}
