/* === PANCHO'S MEXICAN VILLA – MOCKUP STYLES === */
/* Vanilla CSS. No frameworks. No build step. */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Yeseva+One&family=Quattrocento+Sans:wght@400;700&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --font-display: 'Yeseva One', Georgia, serif;
  --font-body: 'Quattrocento Sans', 'Helvetica Neue', Arial, sans-serif;

  --text-display: 3.5rem;
  --text-h1: 2.5rem;
  --text-h2: 2rem;
  --text-h3: 1.5rem;
  --text-h4: 1.25rem;
  --text-lead: 1.125rem;
  --text-body: 1rem;
  --text-small: 0.875rem;
  --text-xs: 0.75rem;

  --color-mole: #2C1810;
  --color-terracotta: #C65D3B;
  --color-plaster: #F7F3ED;
  --color-cobalt: #1E5AA8;
  --color-marigold: #D4A03A;

  --color-white: #FFFFFF;
  --color-stone-100: #F7F3ED;
  --color-stone-200: #E8E0D6;
  --color-stone-300: #D4C8BA;
  --color-stone-400: #A89B8C;
  --color-stone-500: #6B5E54;
  --color-stone-600: #4A3F37;
  --color-stone-700: #2C1810;

  --color-link: #1E5AA8;
  --color-link-hover: #C65D3B;
  --color-focus: #1E5AA8;
  --color-error: #B83232;
  --color-success: #2F7A3E;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-10: 4rem;
  --space-12: 6rem;
  --space-16: 8rem;

  --content-max: 1200px;
  --gutter: 1.5rem;
  --radius: 0;
}

@media (max-width: 480px) {
  :root {
    --text-display: 2.25rem;
    --text-h1: 1.875rem;
    --text-h2: 1.5rem;
  }
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: var(--radius);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--color-mole);
  background: var(--color-plaster);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--color-link-hover);
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--color-mole);
}

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
h4 { font-size: var(--text-h4); }

.lead {
  font-size: var(--text-lead);
  line-height: 1.5;
  color: var(--color-stone-600);
}

.overline {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-terracotta);
}

/* --- Layout Utilities --- */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

@media (min-width: 768px) {
  .container {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }
}

@media (min-width: 1080px) {
  .container {
    padding-left: 48px;
    padding-right: 48px;
  }
}

.section {
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
}

.section-alt {
  background: var(--color-stone-200);
}

.section-dark {
  background: var(--color-mole);
  color: var(--color-white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--color-white);
}

.text-center { text-align: center; }

.grid-2 {
  display: grid;
  gap: var(--space-6);
}

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

.grid-3 {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-4 {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 768px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1080px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  line-height: 1;
  min-height: 48px;
  min-width: 48px;
  padding: 0.875rem 2rem;
  cursor: pointer;
  transition: background-color 150ms ease-out, color 150ms ease-out, transform 150ms ease-out;
}

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

.btn-primary {
  background: var(--color-cobalt);
  color: var(--color-white);
  border: none;
}

.btn-primary:hover {
  background: var(--color-mole);
  color: var(--color-white);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--color-mole);
  border: 2px solid var(--color-mole);
}

.btn-secondary:hover {
  background: var(--color-mole);
  color: var(--color-white);
}

.btn-ghost {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

.btn-ghost:hover {
  background: var(--color-white);
  color: var(--color-mole);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

/* --- Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--color-mole);
  border-bottom: 3px solid var(--color-terracotta);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-white);
  text-decoration: none;
  line-height: 1;
}

.logo:hover {
  color: var(--color-marigold);
}

.main-nav {
  display: none;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
}

.main-nav a {
  font-size: var(--text-small);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-stone-300);
  text-decoration: none;
  padding: var(--space-2) 0;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--color-white);
}

.main-nav a[aria-current="page"] {
  color: var(--color-marigold);
}

.nav-cta {
  display: none;
}

@media (min-width: 1080px) {
  .main-nav {
    display: block;
  }
  .nav-cta {
    display: inline-flex;
  }
  .menu-toggle {
    display: none;
  }
}

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

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: transform 150ms ease-out;
}

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

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

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

.menu-toggle:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

/* Mobile menu overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 64px 0 0 0;
  background: var(--color-mole);
  z-index: 99;
  padding: var(--space-8) var(--space-6);
  flex-direction: column;
  gap: var(--space-6);
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.mobile-nav a {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  color: var(--color-white);
  text-decoration: none;
}

.mobile-nav a:hover,
.mobile-nav a[aria-current="page"] {
  color: var(--color-marigold);
}

.mobile-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.mobile-phone {
  font-size: var(--text-h4);
  color: var(--color-white);
  text-decoration: none;
  text-align: center;
  padding: var(--space-3);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  max-height: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--color-mole);
  overflow: hidden;
  padding-top: 64px;
}

.hero__image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: var(--space-8) var(--space-4);
}

.hero__overline {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-marigold);
  margin-bottom: var(--space-4);
}

.hero__title {
  font-size: var(--text-display);
  line-height: 1.05;
  color: var(--color-white);
  margin-bottom: var(--space-5);
}

.hero__subtitle {
  font-size: var(--text-lead);
  color: var(--color-stone-200);
  margin-bottom: var(--space-8);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero__motif {
  position: absolute;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 48px;
  height: 48px;
  color: var(--color-marigold);
  opacity: 0.3;
  z-index: 1;
}

@media (min-width: 768px) {
  .hero__motif {
    width: 64px;
    height: 64px;
  }
}

/* --- Specials Bar --- */
.specials-bar {
  background: var(--color-terracotta);
  color: var(--color-white);
  padding: var(--space-5) 0;
}

.specials-bar__grid {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 768px) {
  .specials-bar__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1080px) {
  .specials-bar__grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.special-item {
  text-align: center;
}

.special-item__day {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-marigold);
  margin-bottom: var(--space-1);
}

.special-item__offer {
  font-family: var(--font-display);
  font-size: var(--text-h4);
  line-height: 1.2;
}

/* --- Cards --- */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-stone-200);
  padding: var(--space-5);
  transition: border-color 150ms ease-out;
}

.card:hover {
  border-color: var(--color-terracotta);
}

.card__title {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  margin-bottom: var(--space-3);
}

.card__text {
  color: var(--color-stone-600);
  margin-bottom: var(--space-4);
}

.card__meta {
  font-size: var(--text-small);
  font-weight: 700;
  color: var(--color-mole);
}

/* --- Menu Cards --- */
.menu-card {
  background: var(--color-white);
  border: 1px solid var(--color-stone-200);
  padding: var(--space-5);
  transition: border-color 150ms ease-out;
}

.menu-card:hover {
  border-color: var(--color-terracotta);
}

.menu-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
}

.menu-card__title {
  font-family: var(--font-display);
  font-size: var(--text-h4);
}

.menu-card__price {
  font-family: var(--font-body);
  font-size: var(--text-h4);
  font-weight: 700;
  color: var(--color-mole);
  white-space: nowrap;
}

.menu-card__desc {
  font-size: var(--text-small);
  color: var(--color-stone-600);
  margin-bottom: var(--space-3);
}

.menu-card__tags {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.5rem;
  line-height: 1;
}

.tag--vegan {
  background: var(--color-terracotta);
  color: var(--color-white);
}

.tag--gf {
  background: var(--color-marigold);
  color: var(--color-mole);
}

/* --- Testimonials --- */
.testimonial {
  background: var(--color-stone-200);
  padding: var(--space-6);
  position: relative;
}

.testimonial__motif {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  width: 32px;
  height: 32px;
  color: var(--color-terracotta);
  opacity: 0.2;
}

.testimonial__quote {
  font-size: var(--text-lead);
  font-style: italic;
  line-height: 1.5;
  margin-bottom: var(--space-5);
  position: relative;
  z-index: 1;
}

.testimonial__author {
  font-size: var(--text-small);
  font-weight: 700;
  color: var(--color-stone-600);
}

.testimonial__source {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-stone-500);
}

/* --- Gift Cards --- */
.gift-card {
  text-align: center;
}

.gift-card__image {
  aspect-ratio: 3 / 4;
  background: var(--color-stone-200);
  margin-bottom: var(--space-4);
  overflow: hidden;
}

.gift-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gift-card__title {
  font-family: var(--font-display);
  font-size: var(--text-h4);
  margin-bottom: var(--space-2);
}

.gift-card__note {
  font-size: var(--text-small);
  color: var(--color-stone-500);
}

/* --- Section Header --- */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-10);
}

.section-header__overline {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-terracotta);
  margin-bottom: var(--space-3);
}

.section-header__title {
  font-size: var(--text-h2);
  margin-bottom: var(--space-4);
}

.section-header__lead {
  font-size: var(--text-lead);
  color: var(--color-stone-600);
}

/* --- Divider --- */
.divider {
  border: none;
  height: 1px;
  background: var(--color-stone-200);
  margin: var(--space-10) auto;
  max-width: var(--content-max);
}

.divider--short {
  width: 120px;
  height: 3px;
  background: var(--color-terracotta);
}

/* --- Forms --- */
.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: var(--text-small);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-stone-600);
  margin-bottom: var(--space-2);
}

.form-input,
.form-textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--color-mole);
  background: var(--color-white);
  border: 2px solid var(--color-stone-300);
  padding: 0.75rem 1rem;
  line-height: 1.5;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-cobalt);
  box-shadow: 0 0 0 3px rgba(30, 90, 168, 0.2);
}

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

/* --- Footer --- */
.site-footer {
  background: var(--color-mole);
  color: var(--color-stone-300);
  padding-top: var(--space-10);
  padding-bottom: var(--space-6);
}

.footer-grid {
  display: grid;
  gap: var(--space-8);
  margin-bottom: var(--space-10);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1080px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-col__title {
  font-family: var(--font-display);
  font-size: var(--text-h4);
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-col a {
  color: var(--color-stone-300);
  text-decoration: none;
  font-size: var(--text-small);
}

.footer-col a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid var(--color-stone-600);
  padding-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-bottom p {
  font-size: var(--text-small);
  color: var(--color-stone-500);
}

.social-links {
  display: flex;
  gap: var(--space-4);
}

.social-links a {
  display: block;
  width: 24px;
  height: 24px;
  color: var(--color-stone-300);
  transition: color 150ms ease-out;
}

.social-links a:hover {
  color: var(--color-marigold);
}

.social-links a:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

.social-links svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  gap: var(--space-8);
}

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

.contact-info__item {
  margin-bottom: var(--space-5);
}

.contact-info__label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-terracotta);
  margin-bottom: var(--space-1);
}

.contact-info__value {
  font-size: var(--text-lead);
  color: var(--color-mole);
}

.contact-info__value a {
  color: var(--color-mole);
  text-decoration: none;
}

.contact-info__value a:hover {
  text-decoration: underline;
  color: var(--color-link-hover);
}

.hours-list {
  list-style: none;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-stone-200);
  font-size: var(--text-small);
}

.hours-list li strong {
  color: var(--color-mole);
}

/* --- Menu Page --- */
.menu-category {
  margin-bottom: var(--space-10);
}

.menu-category__title {
  font-size: var(--text-h2);
  margin-bottom: var(--space-2);
}

.menu-category__note {
  font-size: var(--text-small);
  color: var(--color-stone-500);
  margin-bottom: var(--space-6);
}

.menu-grid {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 768px) {
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Sticky CTA (mobile) --- */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--color-mole);
  display: flex;
  gap: 1px;
}

.sticky-cta a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-white);
  text-decoration: none;
  padding: var(--space-3);
  min-height: 52px;
}

.sticky-cta a:first-child {
  background: var(--color-cobalt);
}

.sticky-cta a:last-child {
  background: var(--color-terracotta);
}

@media (min-width: 1080px) {
  .sticky-cta {
    display: none;
  }
}

/* Add bottom padding to body so content isn't hidden behind sticky CTA */
@media (max-width: 1079px) {
  body {
    padding-bottom: 52px;
  }
}

/* --- Print Styles --- */
@media print {
  .site-header,
  .sticky-cta,
  .mobile-nav,
  .menu-toggle,
  .hero__image,
  .social-links,
  .btn {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    padding-bottom: 0;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.75rem;
    word-break: break-all;
  }

  .section {
    padding: 1rem 0;
    page-break-before: auto;
  }

  .card,
  .testimonial,
  .menu-card {
    border: 1px solid #ccc;
    page-break-inside: avoid;
  }

  h1, h2, h3 {
    page-break-after: avoid;
  }
}
