/* alamocafe.com — one stylesheet for the whole site.
   Sections: tokens · base · buttons · header · footer · popups · mobile menu · shared blocks.
   Breakpoints mirror the original design: 1366 laptop, 1200, 1024 tablet, 880, 767 mobile. */

/* ---------- tokens ---------- */
:root {
  --navy: #002D56;
  --yellow: #F0AB25;
  --red: #EE2A2C;
  --red-hover: #E13F3F;
  --teal: #09B3AD;
  --cream: #FFFAE8;
  --light-yellow: #EDCD6A;
  --white: #FFFFFF;
  --text: #000000;
  --body-text: #212121;

  --font-display: 'Cubano', sans-serif;
  --font-serif: 'EB Garamond', serif;
  --font-sans: 'Roboto', sans-serif;

  --fs-hero: 97px;  --lh-hero: 90px;
  --fs-h2: 60px;    --lh-h2: 60px;
  --fs-h3: 35px;
  --fs-h4: 25px;
  --fs-btn: 18px;
  --fs-eyebrow: 22px;
  --fs-body: 22px;  --lh-body: 31px;
  --container: 1920px;
}
@media (max-width: 1366px) { :root { --fs-hero: 80px; --fs-h2: 48px; --fs-h3: 30px; --fs-h4: 22px; --fs-btn: 17px; --fs-eyebrow: 20px; } }
@media (max-width: 1200px) { :root { --fs-hero: 72px; --fs-h2: 44px; --fs-h3: 28px; --fs-h4: 21px; --fs-btn: 16px; --fs-eyebrow: 19px; } }
@media (max-width: 1024px) { :root { --fs-hero: 64px; --lh-hero: 0.9em; --fs-h2: 40px; --fs-h3: 26px; --fs-h4: 20px; --fs-btn: 16px; --fs-eyebrow: 18px; --container: 1024px; } }
@media (max-width: 880px)  { :root { --fs-hero: 52px; --fs-h2: 34px; --lh-h2: 0.9em; --fs-h3: 24px; --fs-h4: 18px; --fs-btn: 15px; --fs-eyebrow: 17px; } }
@media (max-width: 767px)  { :root { --fs-hero: 44px; --fs-h2: 30px; --fs-h3: 22px; --fs-h4: 16px; --fs-btn: 14px; --fs-eyebrow: 16px; --container: 767px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overscroll-behavior: none; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font: 300 var(--fs-body) / var(--lh-body) var(--font-serif);
  -webkit-font-smoothing: antialiased; /* as the old site's theme kit */
  overflow-x: hidden;
}
body.popup-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: inline-block; }
a { color: inherit; font-weight: 500; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 400; color: var(--navy); }
p { margin: 0 0 20px; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.icon { width: 1em; height: 1em; fill: currentColor; vertical-align: -0.125em; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--white); padding: 8px 12px; z-index: 1000; }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--red); color: var(--white);
  font: 400 var(--fs-btn) / 1 var(--font-display);
  padding: 20px 40px; border-radius: 11px; text-decoration: none; text-align: center;
  transition: background-color .2s ease-in-out;
}
.btn:hover { background: var(--red-hover); }
.btn-teal { background: var(--teal); }
.btn-teal:hover { background: #08a39e; }
.btn-wide { width: 290px; }

/* ---------- header ---------- */
.site-header { position: relative; z-index: 100; }

.topbar {
  background: var(--navy); min-height: 62px;
  display: flex; justify-content: flex-end; align-items: flex-end;
  padding: 0 95px 0 0;
}
.topbar-buttons { display: none; }
.topbar-social { display: flex; align-items: center; gap: 37px; min-height: 62px; }
.social-circle {
  width: 25px; height: 25px; border-radius: 50%; background: var(--white); color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
  transition: color .2s ease-in-out;
}
.social-circle .icon { width: 17px; height: 17px; }
.social-circle .icon-instagram { width: 20px; height: 20px; }
.social-circle .icon-tiktok { width: 18px; height: 18px; }
.social-circle .icon-sevenrooms { width: 24px; height: 24px; }
.topbar-link { font: 400 18px / 31px var(--font-display); color: var(--white); text-transform: uppercase; }
.topbar-social a:hover, .topbar-link:hover { color: var(--red-hover); opacity: .85; transition: all .2s ease-in-out; }
.cart-link { position: relative; color: var(--white); text-decoration: none; margin: 0 40px 0 -5px; }
.cart-link .icon { width: 22px; height: 22px; }
.cart-count {
  position: absolute; top: -7px; right: -9px; min-width: 14px; height: 14px; padding: 0 3px;
  background: var(--red); color: var(--white); border-radius: 7px;
  font: 700 10px / 14px var(--font-sans); text-align: center;
}

.mainbar {
  background: var(--white); min-height: 160px;
  display: flex; align-items: center; justify-content: space-around;
  padding: 6px 25px; position: relative; z-index: 150;
}
/* Logo (296px natural) and a 1290px nav block share the row; when the row is
   narrower than their sum both shrink in proportion, which is how the live
   header ends up with a 257px logo at 1440 and a 219px one at 1024. */
.logo { display: block; line-height: 0; flex: 0 1 296px; min-width: 0; }
.logo img { width: 100%; height: auto; }
.mainbar-right { display: flex; align-items: center; justify-content: flex-end; flex: 0 1 1290px; min-width: 0; }
.menu-toggle { display: none; }
.main-nav { padding: 7px; }
.main-nav ul { display: flex; }
.main-nav a {
  display: block; font: 400 18px / 20px var(--font-display); color: var(--navy);
  padding: 18px 13px; text-decoration: none; text-transform: uppercase; white-space: nowrap;
  transition: color .2s;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--red); }
.header-buttons { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 6px; width: 455px; flex: 0 0 auto; }
.header-buttons .btn { font-size: 18px; }

@media (max-width: 1742px) {
  .main-nav a { font-size: 15px; }
  .header-buttons { width: 395px; }
  .header-buttons .btn { font-size: 14px; }
}
@media (max-width: 1615px) {
  .main-nav a { font-size: 13px; }
  .header-buttons .btn { font-size: 13px; }
  .header-buttons .btn-teal { font-size: 14px; } /* live's waitlist button keeps the 1742 size */
}
@media (max-width: 1366px) {
  /* Live centres a 602px button group and a 503px icon group (719 at 1200, 940 at 1024) and
     lets them shrink against each other once they no longer fit. */
  .topbar { justify-content: center; align-items: flex-end; padding-right: 15px; gap: 20px; }
  .topbar-buttons { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 6px; flex: 0 1 602px; }
  .topbar-buttons .btn { font-size: 13px; }
  .topbar-social { min-height: 60px; flex: 0 1 503px; justify-content: flex-end; }
  .main-nav a { padding: 18px 11px; }
  .topbar-link { font-size: 17px; }
  .mainbar-right { flex-basis: 1600px; }
  .header-buttons { display: none; }
}
@media (max-width: 1200px) {
  .topbar { align-items: center; }
  .topbar-social { flex-basis: 719px; }
  .topbar-buttons .btn { font-size: 11px; padding: 12px 20px; }
  .mainbar-right { flex-basis: 1000px; }
}
@media (max-width: 1024px) {
  .topbar-social { flex-basis: 940px; }
  .topbar-buttons .btn { font-size: 12px; }
  .topbar-link { font-size: 16px; }
  .main-nav a { padding: 18px 10px; }
}
@media (max-width: 880px) {
  .topbar { min-height: 60px; }
  .topbar-buttons, .topbar-social { display: none; }
  .mainbar { justify-content: space-around; }
  .main-nav { display: none; }
  .menu-toggle {
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    width: 65px; padding-top: 25px; color: var(--navy); text-decoration: none;
  }
  .menu-toggle .icon { width: 40px; height: 40px; }
  .menu-toggle span { font: 600 12px / 1 var(--font-sans); margin-top: 8px; }
  .mainbar-right { flex: 0 0 auto; }
}
@media (max-width: 767px) {
  .topbar { min-height: 20px; }
  .mainbar { min-height: 119px; padding: 6px 25px; justify-content: flex-end; gap: 17px; }
  .logo { flex: 0 1 70%; }
  .menu-toggle { width: 68px; }
}

/* ---------- footer ---------- */
.site-footer {
  overflow: hidden; /* the back-to-top circle sits off-canvas at narrow widths */
  background: var(--navy); color: var(--white); min-height: 640px;
  padding: 30px 0 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
}
.footer-logo { line-height: 0; }
.footer-logo img { width: 404px; }
.footer-social { display: flex; justify-content: center; align-items: center; gap: 43px; padding-top: 50px; }
.footer-social a { line-height: 0; }
.footer-social img { width: 50px; height: 50px; }
.footer-waitlist img { width: 55px; height: 55px; border-radius: 85%; transform: scaleX(-1); }
.footer-nav { width: 100%; padding-top: 31px; display: flex; flex-direction: column; align-items: center; }
.footer-rule { width: 1250px; max-width: 100%; margin: 10px auto; border: 0; border-top: 1.5px solid var(--white); }
.footer-nav ul { display: flex; flex-wrap: wrap; justify-content: center; }
.footer-nav a {
  display: block; font: 400 var(--fs-btn) / 20px var(--font-display); color: var(--white);
  padding: 13px 20px; text-decoration: none; text-transform: uppercase; transition: color .2s;
}
.footer-nav a:hover, .footer-nav a[aria-current="page"] { color: var(--red); }
.footer-copy-wrap { position: relative; width: 500px; max-width: 100%; padding: 10px; }
.footer-copy { margin: 0 0 14.4px; text-align: center; font: 300 16px / 31px "Times New Roman", serif; white-space: nowrap; }
.footer-top {
  position: absolute; left: 1020px; top: -25px; width: 50px; height: 54px; padding: 8px 10px;
  background: var(--yellow); color: var(--navy); border-radius: 50%; line-height: 0;
}
.footer-top .icon { width: 30px; height: 30px; }
@media (max-width: 1366px) { .footer-top { left: 500px; } }
@media (max-width: 767px)  { .footer-top { left: 145px; top: 40px; } }
/* On phones the old site has an invisible plugin element 10px below the footer; kept for pixel parity, safe to remove. */
@media (max-width: 767px)  { body { padding-bottom: 10px; } }
@media (max-width: 1200px) { .footer-rule { width: 900px; } }
@media (max-width: 1024px) { .footer-rule-bottom { width: 100%; } }
@media (max-width: 767px)  { .footer-logo { padding: 0 12px; } .footer-rule { width: 100%; } .site-footer { min-height: 640px; } }

/* ---------- popups (the "Popup Maker" style dialogs) ---------- */
.popup {
  position: fixed; inset: 0; z-index: 1999999999;
  background: rgba(4, 26, 53, .80);
  display: flex; justify-content: center; align-items: center;
  overflow-y: auto; padding: 0;
}
.popup[hidden] { display: none; }
.popup-box {
  position: relative; background: #f9f9f9; padding: 15px; margin: auto 0;
  box-shadow: 0 0 30px 0 rgba(2, 2, 2, 1);
  width: 60%; max-width: 800px;
}
.popup-close {
  position: absolute; top: -13px; right: -13px; width: 26px; height: 26px;
  background: rgba(238, 45, 43, 1); color: var(--white); border: 2px solid #ee2d2b; border-radius: 26px;
  box-shadow: 0 0 15px 1px rgba(2, 2, 2, .75);
  font: 100 24px / 20px Arial, sans-serif; text-align: center; z-index: 2;
}
.popup-content { color: var(--text); font-weight: 100; }
.popup-content p { margin: 0 0 1em; }

/* Waitlist chooser. Solid buttons book online (SevenRooms), outlined ones dial. */
.popup-reserve .popup-content { font-size: 16px; line-height: normal; }
.popup-reserve .popup-content p { margin: 0 0 .9em; }
.ot-reservations {
  display: flex; justify-content: center; align-items: flex-start; flex-wrap: wrap;
  gap: clamp(16px, 3vw, 36px); margin: 0 auto; width: 100%; max-width: 760px;
}
/* align-items stretch, not center: centred children shrink-wrap. */
.ot-location { display: flex; flex-direction: column; align-items: stretch; text-align: center; flex: 1 1 300px; max-width: 350px; padding: 8px 4px 16px; }
.ot-location h3 { font-family: var(--font-display); font-size: 22px; font-weight: 600; line-height: 1.1; margin: 0 0 12px; }
.ot-location .ac-note { font-size: 15px; line-height: 1.45; margin: 0 0 14px; color: #444; }
.ot-location .ac-help { margin: 6px 0 10px; }
.ac-route {
  display: block; width: 100%; box-sizing: border-box; margin: 0 0 10px; padding: 13px 14px;
  border: 2px solid #002d56; border-radius: 10px; background: #002d56; color: #ffffff;
  font: inherit; font-size: 17px; font-weight: 700; line-height: 1.25;
  text-align: center; text-decoration: none; cursor: pointer; -webkit-appearance: none; appearance: none;
}
.ac-route span { display: block; margin-top: 3px; font-size: 13.5px; font-weight: 400; opacity: .85; }
.ac-route-call { background: #ffffff; color: #002d56; }
.ac-route:hover, .ac-route:focus { filter: brightness(1.08); }
@media (max-width: 767px) { .popup-reserve .popup-box { width: 95%; } }
@media (max-width: 800px) {
  .ot-reservations { flex-direction: column; align-items: center; max-width: 340px; }
  /* Stacked, flex-basis 300px would become a 300px height. */
  .ot-location { flex: none; width: 100%; max-width: 340px; }
}

.tiles-title { margin: 30px 0 0; line-height: 1; font-family: var(--font-display); color: #002d56; text-align: center; font-size: 40px; }
.tiles { display: flex; justify-content: center; align-items: flex-start; gap: 40px; padding: 50px 30px 30px; }
.giftcards-grid { flex-direction: column; align-items: center; gap: 24px; padding-top: 30px; }
.tile { display: flex; flex-direction: column; align-items: center; text-align: left; }
.tile > a { display: block; text-decoration: none; color: inherit; line-height: 0; }
.tile img { display: block; width: 350px; max-width: 100%; height: auto; }
.tile > h2 { margin: 0 0 12px; line-height: 1; font-family: var(--font-display); color: #e13f3f; font-size: 32px; text-align: center; }
.tile > p { margin: 0; line-height: 0; }
.tile img.tile-cover { width: 350px; height: 230px; object-fit: cover; }
.tile-card { background: var(--white); padding: 28px; margin-top: -24px; width: 350px; max-width: 100%; position: relative; }
.tile-card h2 { margin: 25px 0 12px; line-height: 1; font-family: var(--font-display); color: #e13f3f; font-size: 32px; }
.tile-address { font-weight: 700; color: #0b3552; line-height: 1.4; font-size: 18px; }
.tile-card p { margin: 1em 0 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.tile-card .btn { font-size: 16px; padding: 20px 40px; white-space: nowrap; }
@media (max-width: 800px) {
  .tiles { flex-direction: column; align-items: center; gap: 24px; padding: 24px; }
  .tile { width: 100%; max-width: 350px; }
}
@media (max-width: 767px) {
  .popup-box { width: 90%; }
}

/* ---------- mobile menu (opens from the MENU toggle at ≤880px) ---------- */
.mobile-menu { background: #000000AB; justify-content: flex-end; align-items: stretch; }
.mobile-menu-frame { width: 85vw; height: 100vh; background: var(--light-yellow); padding: 10px; overflow-y: auto; }
.mobile-menu-frame > .mobile-menu-panel { background: var(--white); border: 10px solid var(--navy); min-height: 100%; padding: 55px 55px 100vw; position: relative; }
.mobile-menu-close { position: absolute; top: 25px; right: 11%; color: var(--red); font-size: 30px; line-height: 1; }
.mobile-menu-close .icon { width: 30px; height: 30px; }
.mobile-menu-logo { display: block; width: 200px; height: 80px; margin: 0 auto 20px; object-fit: contain; }
.mobile-menu-buttons { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-bottom: 20px; }
.mobile-menu nav a {
  display: block; font: 400 18px / 20px var(--font-display); color: var(--navy);
  padding: 13px 20px; text-decoration: none; text-transform: uppercase;
}
.mobile-menu nav a:hover, .mobile-menu nav a[aria-current="page"] { color: var(--red); }
@media (max-width: 1366px) { .mobile-menu nav a { font-size: 17px; } }
@media (max-width: 1200px) { .mobile-menu nav a { font-size: 16px; } }
@media (max-width: 880px)  { .mobile-menu nav a { font-size: 15px; } }
@media (max-width: 767px)  {
  .mobile-menu-frame { width: 90vw; }
  .mobile-menu-frame > .mobile-menu-panel { padding: 85px 0 100vw; }
  .mobile-menu nav { padding-left: 30px; }
  .mobile-menu nav a { font-size: 22px; }
}

/* ---------- shared page blocks ---------- */
.container { max-width: var(--container); margin: 0 auto; }
.eyebrow {
  font: 700 var(--fs-eyebrow) / var(--lh-body) var(--font-serif); text-transform: uppercase; letter-spacing: 4.2px;
  color: var(--red); margin: 0;
}
.eyebrow-navy { color: var(--navy); }
.eyebrow-white { color: var(--white); }
.h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); }
.h3 { font-size: var(--fs-h3); }
.h4 { font-size: var(--fs-h4); }
.divider { display: block; width: 642px; max-width: 100%; height: auto; padding: 30px 0; }
.text-white { color: var(--white); }
.text-navy { color: var(--navy); }
.text-red { color: var(--red); }
.text-center { text-align: center; }
.arrow-link {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font: 400 var(--fs-btn) / 1.2 var(--font-display); color: var(--red); text-transform: uppercase;
}
.arrow-link .icon { width: 22px; height: 22px; }

/* ---------- forms (assets/js/forms.js) ---------- */
/* Honeypot: off-screen, never seen or tabbed to by people. */
.form-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-error input, .form-error select, .form-error textarea { border-color: #e13f3f !important; }
.form-error-msg { flex-basis: 100%; width: 100%; margin: 6px 0 0; color: #c62828; font-size: 14px; font-weight: 600; line-height: 1.3; }
.form-status { margin: 0 0 14px; color: #c62828; font-size: 16px; font-weight: 600; }
.form-status[hidden] { display: none; }
button[type="submit"][disabled] { opacity: .6; cursor: progress; }
.form-done { max-width: 760px; margin: 40px auto; padding: 32px 24px; border: 2px solid #002d56; border-radius: 12px; background: #ffffff; text-align: center; color: #002d56; }
.form-done h3 { margin: 0 0 10px; font-family: var(--font-display); font-size: 32px; line-height: 1.1; }
.form-done p { margin: 0; font-size: 18px; line-height: 1.5; color: #333; }
