/*
Theme Name: Layered
Theme URI: https://www.layeredtx.com
Author: Sela Hospitality Group LLC
Description: One-page restaurant theme for Layered, downtown McKinney — hero, guest favorites, full menu, story, Room One Eleven teaser, visit/map. Every word, price and photo is editable under Appearance → Customize.
Version: 1.0.3
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: layered
*/
/* Layered — layeredtx.com
   Bright, warm, daytime. Cream paper, charcoal ink, Layered-cup teal accent, egg-yolk highlight.
   --------------------------------------------------------------- */
:root {
  --font-display: 'Clash Display', 'Avenir Next', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Satoshi', 'Helvetica Neue', Arial, sans-serif;

  --bg: #faf6ee;
  --bg-2: #f2ebdd;
  --bg-3: #e9dfcc;
  --paper: #fffdf8;
  --ink: #1f1b18;
  --ink-2: rgba(31, 27, 24, 0.74);
  --ink-3: rgba(31, 27, 24, 0.55);
  --line: rgba(31, 27, 24, 0.12);
  --line-strong: rgba(31, 27, 24, 0.26);
  --teal: #2f7f9f;      /* text-safe version of the Layered cup blue */
  --teal-2: #69a7c6;    /* the cup itself */
  --teal-soft: #dcebf2;
  --yolk: #e9b949;
  --dark: #1f1b18;
  --dark-ink: #f6efe3;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.2rem;
  --text-xl: clamp(1.5rem, 1.15rem + 1.5vw, 2.1rem);
  --text-2xl: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem);
  --text-hero: clamp(2.9rem, 1.6rem + 5.4vw, 6rem);

  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-6: 1.5rem;
  --s-8: 2rem; --s-12: 3rem; --s-16: 4rem; --s-24: 6rem; --s-32: 8rem;

  --wrap: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 6px;
  --radius-lg: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: var(--text-base); line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.sr-only { position: absolute; left: -9999px; }
.sr-only:focus { left: 1rem; top: 1rem; background: var(--ink); color: var(--bg); padding: 0.5rem 1rem; z-index: 100; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.display { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.015em; line-height: 1.05; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal);
}
.eyebrow::before { content: ""; width: 1.6rem; height: 2px; background: var(--teal); border-radius: 2px; }
.lede { font-size: var(--text-lg); line-height: 1.55; color: var(--ink-2); max-width: 54ch; }
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.section__head { display: grid; gap: var(--s-3); margin-bottom: clamp(2rem, 4vw, 3.5rem); max-width: 64ch; }
.section__head h2 { max-width: 20ch; }
.section__head h2 { font-size: var(--text-2xl); }
.section__head--wide { max-width: none; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: end; }
.section__head--wide .eyebrow { margin-bottom: var(--s-3); }

/* Buttons & links */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.8rem 1.25rem;
  border-radius: 999px; background: var(--ink); color: var(--bg);
  font-weight: 700; font-size: var(--text-sm); letter-spacing: 0.01em; line-height: 1;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn svg { width: 1em; height: 1em; flex: none; }
.btn:hover { background: var(--teal); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line-strong); }
.btn--ghost:hover { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--lg { padding: 1rem 1.6rem; font-size: var(--text-base); }
.btn--light { background: var(--dark-ink); color: var(--dark); }
.btn--light:hover { background: var(--yolk); color: var(--dark); }
.link { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; color: var(--teal); border-bottom: 1.5px solid transparent; transition: border-color 0.3s var(--ease); }
.link svg { width: 1em; height: 1em; transition: transform 0.3s var(--ease); }
.link:hover { border-color: currentColor; }
.link:hover svg { transform: translateX(3px); }
.link--light { color: var(--dark-ink); }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(250, 246, 238, 0.86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color 0.3s var(--ease); }
.header.is-scrolled { border-color: var(--line); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: var(--s-6); min-height: 76px; }
.brand { display: inline-flex; flex-direction: column; gap: 0.3rem; color: var(--ink); }
.brand svg { width: 150px; height: auto; display: block; }
.brand small { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.75rem); }
.nav > a:not(.btn) { font-weight: 700; font-size: var(--text-sm); color: var(--ink-2); padding: 0.4rem 0; border-bottom: 2px solid transparent; transition: color 0.3s var(--ease), border-color 0.3s var(--ease); }
.nav > a:not(.btn):hover { color: var(--ink); border-color: var(--teal); }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line-strong); position: relative; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); transition: transform 0.35s var(--ease), opacity 0.35s; }
.nav-toggle span:nth-child(1) { top: 16px; } .nav-toggle span:nth-child(2) { top: 26px; }

/* Hero */
.hero { position: relative; padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: auto -10% -40% 45%; height: 120%; background: radial-gradient(closest-side, rgba(105, 167, 198, 0.22), transparent 70%); pointer-events: none; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 10fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; position: relative; }
.hero h1 { font-size: var(--text-hero); margin: var(--s-6) 0 var(--s-6); max-width: 10ch; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero .lede { margin-bottom: var(--s-6); }
.hours-badge { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.45rem 0.9rem 0.45rem 0.7rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-weight: 700; font-size: var(--text-sm); margin-bottom: var(--s-8); }
.hours-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: #3cab6a; box-shadow: 0 0 0 4px rgba(60, 171, 106, 0.18); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hero__note { margin-top: var(--s-6); font-size: var(--text-sm); color: var(--ink-3); }
.hero__media { display: grid; grid-template-columns: 3fr 2fr; grid-template-rows: 1fr 1fr; gap: 0.9rem; aspect-ratio: 5 / 4.6; }
.hero__media figure { overflow: hidden; border-radius: var(--radius-lg); background: var(--bg-3); box-shadow: 0 20px 50px -30px rgba(31, 27, 24, 0.45); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media .h1 { grid-row: 1 / 3; }
.hero__media .h1 img { object-position: 45% 50%; }
.hero__media .h2 img { object-position: 50% 45%; }

/* Intro */
.intro { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.intro__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.intro h2 { font-size: var(--text-2xl); max-width: 16ch; margin-bottom: var(--s-6); }
.intro__body p { font-size: var(--text-lg); line-height: 1.55; color: var(--ink-2); margin-bottom: var(--s-6); }
.pillars { display: grid; gap: var(--s-6); }
.pillars li { display: grid; grid-template-columns: 3rem 1fr; column-gap: var(--s-4); padding: var(--s-6) 0; border-top: 1px solid var(--line); }
.pillars li:last-child { border-bottom: 1px solid var(--line); }
.pillar__ic { grid-row: 1 / 3; font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); color: var(--teal); }
.pillars h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); letter-spacing: -0.01em; }
.pillars p { color: var(--ink-2); margin-top: 0.2rem; }

/* Favorites */
.favs { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); }
.fav figure { overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 1; background: var(--bg-3); margin-bottom: var(--s-4); }
.fav img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.fav:hover img { transform: scale(1.04); }
.fav h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); letter-spacing: -0.01em; }
.fav p { color: var(--ink-2); font-size: var(--text-sm); margin-top: 0.2rem; }

/* Menu */
.menu { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.menu__intro p { color: var(--ink-2); margin-bottom: var(--s-4); }
.menu__nav { position: sticky; top: 76px; z-index: 5; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0.6rem 0; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); background: rgba(255, 253, 248, 0.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.menu__nav a { font-size: var(--text-sm); font-weight: 700; padding: 0.45rem 0.9rem; border-radius: 999px; border: 1.5px solid var(--line); color: var(--ink-2); transition: all 0.3s var(--ease); }
.menu__nav a:hover, .menu__nav a.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.menu__groups { display: grid; gap: clamp(2rem, 4vw, 3rem); }
.menu__group + .menu__group { padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.menu__group .menu__list { columns: 2; column-gap: clamp(2.5rem, 5vw, 5rem); }
.menu__group .menu__list li { break-inside: avoid; }
.menu__group { scroll-margin-top: 150px; }
.menu__group h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--text-xl); letter-spacing: -0.015em; padding-bottom: var(--s-3); margin-bottom: var(--s-3); border-bottom: 2px solid var(--ink); }
.menu__sub { font-style: italic; color: var(--ink-3); margin: -0.25rem 0 var(--s-4); }
.menu__list li { padding: 0.85rem 0; border-bottom: 1px dashed var(--line); }
.menu__list li:last-child { border-bottom: 0; }
.mi__head { display: flex; align-items: baseline; gap: 0.6rem; }
.mi__head h4 { font-weight: 700; font-size: var(--text-base); letter-spacing: 0.005em; }
.mi__dots { flex: 1; border-bottom: 1px dotted var(--line-strong); transform: translateY(-0.3em); min-width: 1rem; }
.mi__head b { font-family: var(--font-display); font-weight: 600; font-size: var(--text-base); color: var(--teal); white-space: nowrap; }
.menu__list p { color: var(--ink-2); font-size: var(--text-sm); line-height: 1.5; margin-top: 0.15rem; max-width: 56ch; }
.menu__note { margin-top: var(--s-8); font-size: var(--text-xs); color: var(--ink-3); letter-spacing: 0.02em; }

/* Story */
.story__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.story__media { position: sticky; top: 100px; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.story__media figure { overflow: hidden; border-radius: var(--radius-lg); background: var(--bg-3); }
.story__media img { width: 100%; height: 100%; object-fit: cover; }
.story__media .s1 { grid-column: 1 / 3; aspect-ratio: 4 / 3; }
.story__media .s2 { aspect-ratio: 1; }
.story__media figcaption { display: none; }
.quote { align-self: stretch; display: flex; align-items: center; padding: var(--s-6); border-radius: var(--radius-lg); background: var(--teal-soft); color: var(--teal); font-family: var(--font-display); font-weight: 600; font-size: var(--text-xl); line-height: 1.2; letter-spacing: -0.015em; }
.story__text h2 { font-size: var(--text-2xl); margin: var(--s-4) 0 var(--s-8); max-width: 16ch; }
.story__body p { color: var(--ink-2); margin-bottom: var(--s-4); max-width: 62ch; }
.story__body p:first-child { font-size: var(--text-lg); line-height: 1.55; color: var(--ink); }

/* Speakeasy band */
.speakeasy { background: var(--dark); color: var(--dark-ink); padding: clamp(3.5rem, 8vw, 7rem) 0; position: relative; overflow: hidden; }
.speakeasy::before { content: ""; position: absolute; inset: -20% auto auto 55%; width: 60%; height: 140%; background: radial-gradient(closest-side, rgba(233, 185, 73, 0.14), transparent 70%); pointer-events: none; }
.speakeasy__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; position: relative; }
.speakeasy .eyebrow { color: var(--yolk); } .speakeasy .eyebrow::before { background: var(--yolk); }
.speakeasy h2 { font-size: var(--text-2xl); margin: var(--s-4) 0 var(--s-6); max-width: 18ch; }
.speakeasy__body p { color: rgba(246, 239, 227, 0.75); max-width: 56ch; font-size: var(--text-lg); line-height: 1.55; }
.speakeasy__cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-6); margin-top: var(--s-8); }
.speakeasy__badge { justify-self: end; width: clamp(180px, 20vw, 240px); aspect-ratio: 1; border-radius: 50%; border: 1.5px solid rgba(246, 239, 227, 0.3); display: grid; place-content: center; text-align: center; gap: 0.4rem; }
.speakeasy__badge span { font-family: var(--font-display); font-weight: 600; font-size: clamp(3rem, 5vw, 4.5rem); line-height: 1; letter-spacing: -0.03em; color: var(--yolk); }
.speakeasy__badge small { font-size: var(--text-xs); letter-spacing: 0.16em; text-transform: uppercase; color: rgba(246, 239, 227, 0.7); line-height: 1.5; }

/* Visit */
.visit__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.visit h2 { font-size: var(--text-2xl); margin: var(--s-4) 0 var(--s-8); max-width: 14ch; }
.visit__facts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6) var(--s-8); margin-bottom: var(--s-8); }
.visit__facts dt { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.3rem; }
.visit__facts dd { font-weight: 500; line-height: 1.5; }
.visit__facts dd small { display: block; font-weight: 400; color: var(--ink-3); font-size: var(--text-sm); margin-top: 0.15rem; }
.visit__facts dd a { border-bottom: 1.5px solid var(--line-strong); }
.visit__facts dd a:hover { border-color: var(--teal); color: var(--teal); }
.visit__facts ul li + li { color: var(--ink-3); font-weight: 400; font-size: var(--text-sm); }
.visit__notes { display: grid; gap: 0.5rem; margin-bottom: var(--s-8); color: var(--ink-2); }
.visit__notes li { display: flex; gap: 0.6rem; align-items: baseline; }
.visit__notes li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--teal-2); transform: translateY(-1px); }
.visit__cta { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.visit__map { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-3); aspect-ratio: 4 / 3; border: 1px solid var(--line); filter: saturate(0.85) contrast(1.02); }
.visit__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Footer */
.footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: clamp(2.5rem, 5vw, 4rem) 0 var(--s-8); }
.footer__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) auto; gap: var(--s-8); align-items: start; }
.brand--footer svg { width: 180px; }
.footer__brand p { margin-top: var(--s-4); color: var(--ink-2); font-size: var(--text-sm); line-height: 1.7; }
.footer__brand a:hover { color: var(--teal); }
.footer__links { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1.5rem; font-weight: 700; font-size: var(--text-sm); }
.footer__links a:hover { color: var(--teal); }
.footer__social { display: flex; gap: 0.6rem; }
.footer__social a { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; transition: all 0.3s var(--ease); }
.footer__social a:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.footer__social svg { width: 20px; height: 20px; }
.footer__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-12); padding-top: var(--s-6); border-top: 1px solid var(--line); font-size: var(--text-xs); color: var(--ink-3); }
.footer__legal a { font-weight: 700; } .footer__legal a:hover { color: var(--teal); }

/* Generic page template */
.page-content { padding: clamp(3rem, 6vw, 5rem) 0; max-width: 72ch; }
.page-content h1 { font-size: var(--text-2xl); margin-bottom: var(--s-8); }
.page-content p, .page-content li { color: var(--ink-2); margin-bottom: var(--s-4); }
.page-content a { color: var(--teal); border-bottom: 1px solid currentColor; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .fav img { transition: none; }
}

/* Responsive */
@media (max-width: 1000px) {
  .favs { grid-template-columns: repeat(2, 1fr); }
  .footer__in { grid-template-columns: 1fr 1fr; }
  .footer__social { grid-column: 1 / -1; }
  .story__media { position: static; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: var(--s-4) var(--gutter) var(--s-8); background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 30px 40px -30px rgba(31, 27, 24, 0.3); }
  .nav.is-open { display: flex; }
  .nav > a:not(.btn) { padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-size: var(--text-base); }
  .nav .btn { margin-top: var(--s-4); justify-content: center; }
  .nav .btn--ghost { margin-top: var(--s-6); }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }
  .hero__grid, .intro__grid, .story__grid, .visit__grid, .speakeasy__in, .section__head--wide { grid-template-columns: 1fr; }
  .hero h1 { max-width: 12ch; }
  .hero__media { aspect-ratio: 4 / 3; }
  .menu__group .menu__list { columns: 1; }
  .menu__nav { top: 72px; }
  .speakeasy__badge { justify-self: start; }
  .story__media { grid-template-columns: 1fr 1fr; }
  .story__media .s1 { grid-column: 1 / 3; }
}
@media (max-width: 560px) {
  .brand svg { width: 118px; }
  .brand small { display: none; }
  .favs { grid-template-columns: 1fr 1fr; gap: 0.9rem; }
  .fav h3 { font-size: var(--text-base); }
  .visit__facts { grid-template-columns: 1fr; }
  .footer__in { grid-template-columns: 1fr; }
  .story__media { grid-template-columns: 1fr; }
  .story__media .s1 { grid-column: auto; }
  .quote { min-height: 7rem; }
  .btn--lg { width: 100%; justify-content: center; }
}
