/* ============================================================
   Hacienda Vieja — Roseburg, OR
   Visual identity: warm adobe + clay terracotta, agave green,
   marigold gold, talavera cobalt. Yeseva One display + Karla body.
   Mobile-first. Built to score 90+ on PageSpeed.
   ============================================================ */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: 'Yeseva One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/yesevaone-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/karla-latin.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  --adobe:        #faf1e1;   /* page background */
  --adobe-deep:   #f3e4cb;   /* alt section */
  --cream-card:   #fffdf7;
  --clay:         #b0402a;   /* primary terracotta */
  --clay-dark:    #8a2e1e;
  --clay-darker:  #6f2417;
  --mole:         #2a1a12;   /* warm near-black text */
  --mole-soft:    #5b4636;
  --agave:        #4e6f52;   /* green accent */
  --agave-dark:   #3c5640;
  --marigold:     #e2a52f;   /* gold */
  --talavera:     #2b5c8a;   /* cobalt accent */
  --line:         #e4d3b4;

  --maxw: 1180px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 14px 40px -18px rgba(60, 30, 15, .35);
  --shadow-sm: 0 6px 20px -12px rgba(60, 30, 15, .4);

  --ff-display: 'Yeseva One', Georgia, 'Times New Roman', serif;
  --ff-body: 'Karla', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--mole);
  background: var(--adobe);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
}
img, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--clay-dark); text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.1; font-weight: 400; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--clay-dark); color: #fff; padding: 10px 16px;
  border-radius: 8px; transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, .btn:focus-visible, iframe:focus-visible {
  outline: 3px solid var(--talavera);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Shared type ---------- */
.eyebrow {
  font-size: .8rem; letter-spacing: .22em; text-transform: uppercase;
  font-weight: 700; color: var(--clay); margin: 0 0 .6rem;
}
.eyebrow-light { color: #f6c66a; text-shadow: 0 2px 10px rgba(0,0,0,.55); }
.section-title {
  font-family: var(--ff-display);
  font-size: clamp(1.9rem, 5.2vw, 3rem);
  color: var(--mole); letter-spacing: .005em;
}
.section-lede { color: var(--mole-soft); max-width: 60ch; }
.section-head { margin-bottom: 2.4rem; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .section-lede { margin-left: auto; margin-right: auto; }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--ff-body); font-weight: 700; font-size: 1rem;
  padding: .85rem 1.5rem; border-radius: 999px; cursor: pointer;
  border: 2px solid transparent; transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  line-height: 1; white-space: nowrap;
}
.btn-primary { background: var(--clay); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--clay-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--clay-dark); border-color: var(--clay); }
.btn-outline:hover { background: var(--clay); color: #fff; transform: translateY(-2px); }
.btn-call { background: var(--agave); color: #fff; padding: .6rem 1rem; font-size: .95rem; }
.btn-call:hover { background: var(--agave-dark); }
.btn-outline-light { background: rgba(0,0,0,.18); color: #fff; border-color: #fff; backdrop-filter: blur(2px); }
.btn-outline-light:hover { background: #fff; color: var(--clay-dark); transform: translateY(-2px); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 241, 225, .92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 64px;
}
.brand { display: flex; align-items: center; gap: .6rem; color: var(--mole); }
.brand-mark { display: inline-flex; flex: 0 0 auto; }
.brand-mark svg { display: block; border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--ff-display); font-size: 1.32rem; color: var(--clay-dark); }
.brand-sub {
  font-size: .62rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--mole-soft); margin-top: 3px; font-weight: 700;
}
.main-nav { display: none; }
.main-nav a {
  color: var(--mole); font-weight: 700; font-size: .98rem; padding: .4rem .2rem;
  position: relative;
}
.main-nav a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--clay); transition: right .25s ease;
}
.main-nav a:hover::after, .main-nav a:focus-visible::after { right: 0; }
.header-call span { display: inline; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 58%;
  z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(42,16,10,.38) 0%, rgba(42,16,10,.22) 30%, rgba(42,16,10,.55) 62%, rgba(42,16,10,.82) 88%, rgba(42,16,10,.92) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  padding-top: 3rem; padding-bottom: 3rem;
  color: #fff;
}
.hero-title {
  font-family: var(--ff-display);
  font-size: clamp(3rem, 13vw, 6.5rem);
  line-height: .96; color: #fff;
  text-shadow: 0 4px 30px rgba(0,0,0,.4);
  margin-bottom: .6rem;
}
.hero-tagline {
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  max-width: 46ch; color: #f6ead6;
  text-shadow: 0 2px 14px rgba(0,0,0,.5);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.4rem 0 1.1rem; }
.hero-note {
  font-size: .9rem; color: #f1dcbf; margin: 0; font-weight: 600;
  letter-spacing: .01em;
}

/* ============================================================
   INFO STRIP
   ============================================================ */
.info-strip {
  background: var(--clay-dark);
  color: #fdeede;
  padding: 0;
}
.info-grid {
  display: grid; grid-template-columns: 1fr; gap: 0;
}
.info-card {
  padding: 1.6rem 20px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.info-card:last-child { border-bottom: 0; }
.info-card--accent { background: rgba(0,0,0,.12); }
.info-h {
  font-family: var(--ff-display); font-size: 1.25rem; color: var(--marigold);
  margin-bottom: .4rem;
}
.info-body { margin: 0 0 .5rem; color: #f7e6d2; }
.info-link { color: #fff; font-weight: 700; }
.info-link:hover { color: var(--marigold); }

/* ============================================================
   ABOUT
   ============================================================ */
.about { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.about-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
.about-media img {
  width: 100%; border-radius: var(--radius-lg);
  box-shadow: var(--shadow); aspect-ratio: 16 / 10; object-fit: cover;
}
.about-text .section-title { margin-bottom: 1rem; }
.about-text p { color: var(--mole-soft); }
.badge-row {
  display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem;
}
.badge-row li {
  background: var(--adobe-deep); color: var(--clay-darker);
  border: 1px solid var(--line); border-radius: 999px;
  padding: .4rem .9rem; font-size: .85rem; font-weight: 700;
}

/* ============================================================
   MENU
   ============================================================ */
.menu { padding: clamp(3rem, 8vw, 5.5rem) 0; background: var(--adobe-deep); }
.menu-cats {
  display: grid; grid-template-columns: 1fr; gap: 1.2rem;
}
.cat-card {
  background: var(--cream-card); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.cat-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.cat-body { padding: 1.1rem 1.2rem 1.3rem; }
.cat-body h3 { font-family: var(--ff-display); font-size: 1.35rem; color: var(--clay-dark); margin-bottom: .35rem; }
.cat-body p { margin: 0; color: var(--mole-soft); font-size: .96rem; }

/* favorites */
.favorites {
  margin-top: clamp(3rem, 7vw, 4.5rem);
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 5vw, 3rem);
  box-shadow: var(--shadow-sm);
}
.dish-list {
  display: grid; grid-template-columns: 1fr; gap: 1.4rem;
  margin-bottom: 1.4rem;
}
.dish { padding-bottom: 1.1rem; border-bottom: 1px dashed var(--line); }
.dish-head { display: flex; align-items: baseline; gap: .8rem; }
.dish-name { font-family: var(--ff-display); font-size: 1.22rem; color: var(--mole); }
.dish-price {
  margin-left: auto; font-weight: 700; color: var(--clay); white-space: nowrap;
  font-size: 1.05rem;
}
.dish-desc { margin: .3rem 0 0; color: var(--mole-soft); font-size: .95rem; }
.price-note {
  text-align: center; font-size: .82rem; color: var(--mole-soft);
  font-style: italic; margin: 0 0 1.6rem;
}

/* ============================================================
   VISIT / MAP
   ============================================================ */
.visit { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.visit-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: stretch; }
.visit-addr { color: var(--mole-soft); margin: 1rem 0 1.3rem; font-size: 1.05rem; }
.visit-addr strong { color: var(--mole); }
.hours-table { width: 100%; border-collapse: collapse; margin-bottom: 1.6rem; }
.hours-table th, .hours-table td {
  text-align: left; padding: .7rem 0; border-bottom: 1px solid var(--line);
  font-size: 1rem;
}
.hours-table th { font-weight: 700; color: var(--mole); }
.hours-table td { color: var(--mole-soft); text-align: right; }
.visit-cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.visit-map {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--line); min-height: 320px;
}
.visit-map iframe { width: 100%; height: 100%; min-height: 320px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--mole); color: #e9d9c4; padding: 3rem 0 5.5rem; }
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
  padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand .brand-name { color: #fff; font-size: 1.6rem; display: block; margin-bottom: .5rem; }
.footer-brand p { color: #cdb89e; max-width: 32ch; }
.footer-social {
  display: inline-flex; align-items: center; gap: .5rem; color: #fff;
  font-weight: 700; margin-top: .4rem;
}
.footer-social:hover { color: var(--marigold); }
.footer-col h3 { font-family: var(--ff-display); color: var(--marigold); font-size: 1.2rem; margin-bottom: .6rem; }
.footer-col p { color: #cdb89e; margin: 0 0 .5rem; }
.footer-col a { color: #fff; }
.footer-col a:hover { color: var(--marigold); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: .5rem; justify-content: space-between;
  padding-top: 1.4rem; font-size: .85rem; color: #b09a82;
}
.footer-bottom p { margin: 0; }
.footer-credit { color: #8c7660; }

/* ============================================================
   STICKY MOBILE CALL BAR
   ============================================================ */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line);
  box-shadow: 0 -8px 24px -12px rgba(0,0,0,.4);
}
.mobile-bar-btn {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem; font-weight: 700; font-size: 1rem; color: #fff;
}
.mobile-bar-btn.call { background: var(--clay); }
.mobile-bar-btn.dir { background: var(--agave); }
.mobile-bar-btn:active { filter: brightness(.92); }

/* ============================================================
   SCROLL REVEAL (progressive enhancement; no-JS shows all)
   ============================================================ */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 600px) {
  .info-grid { grid-template-columns: repeat(3, 1fr); }
  .info-card { border-bottom: 0; border-right: 1px solid rgba(255,255,255,.14); }
  .info-card:last-child { border-right: 0; }
  .menu-cats { grid-template-columns: repeat(2, 1fr); }
  .dish-list { grid-template-columns: repeat(2, 1fr); gap: 1.4rem 2.4rem; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

@media (min-width: 880px) {
  body { font-size: 18px; }
  .main-nav { display: flex; gap: 1.6rem; }
  .hero { min-height: 86vh; }
  .about-grid { grid-template-columns: 1.05fr 1fr; gap: 3.5rem; }
  .menu-cats { grid-template-columns: repeat(4, 1fr); }
  .visit-grid { grid-template-columns: 1fr 1.1fr; gap: 3rem; }
  .visit-map { min-height: 460px; }
  .visit-map iframe { min-height: 460px; }
  /* hide the sticky mobile bar + padding on desktop */
  .mobile-bar { display: none; }
  .site-footer { padding-bottom: 3rem; }
}

@media (min-width: 1024px) {
  .hero-content { padding-bottom: 4.5rem; }
}

/* ---------- Motion & contrast prefs ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
