/* style.css */
/* ==============================================
   LA PATRONA — STYLESHEET
   Theme colors live in :root.
   ============================================== */

:root {
  /* ── BRAND COLORS ─────────────────────────── */
  --color-primary: #E63946;
  --color-primary-hover: #c92a36;
  --color-accent: #E63946;
  --color-accent-hover: #c92a36;

  /* ── BACKGROUNDS ──────────────────────────── */
  --bg-dark: #1D3557;
  --bg-chrome: #111827;
  --bg-white: #ffffff;
  --bg-warm: #f7f4f0;

  /* ── TEXT ─────────────────────────────────── */
  --text-section-tag: #1D3557;
  --text-body: #4a4a4a;
  --text-muted: #888;
  --text-light: #9baab5;
  --text-on-dark: rgba(255, 255, 255, 0.88);

  /* ── BORDERS / DIVIDERS ───────────────────── */
  --border-light: #eeeeee;
  --border-dark: rgba(255, 255, 255, 0.08);

  /* ── MISC ─────────────────────────────────── */
  --radius-btn: 30px;
  --radius-card: 10px;
  --max-width: 1100px;

  /* ── HEADER TUNING ────────────────────────── */
  --header-height: 64px;
  --logo-height: 120px;
  --header-logo-slot: 220px;
}

/* ── RESET ────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-body);
  font-size: 14px;
  overflow-x: hidden;
  /* Prevent horizontal scroll bug */
}

html {
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ── TOP BAR ──────────────────────────────────── */
.topbar {
  background: var(--bg-chrome);
  padding: 7px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-on-dark);
}

.topbar .left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.topbar .left span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar .right a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 3px;
  font-size: 12px;
  margin-left: 5px;
  color: rgba(255, 255, 255, 0.75);
  transition: background .2s, color .2s, border-color .2s;
}

.topbar .right a:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.topbar .left a {
  color: var(--text-on-dark);
  text-decoration: none;
  transition: color .2s;
}

.topbar .left a:hover {
  color: rgba(255, 255, 255, 0.45);
}

/* Language toggle button */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  transition: background .2s, border-color .2s, color .2s;
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.lang-toggle:focus {
  outline: 2px solid rgba(230, 57, 70, .6);
  outline-offset: 2px;
}

.lang-label {
  font-weight: 700;
  letter-spacing: .8px;
}

/* ── HEADER BAR (logo inside header, left) ────── */
.header-bar {
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  position: relative;
  z-index: 50;
}

.header-inner {
  display: grid;
  grid-template-columns: var(--header-logo-slot) 1fr var(--header-logo-slot);
  align-items: center;
  gap: 18px;
  min-height: var(--header-height);
  padding: 6px 20px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}

.logo-img {
  height: var(--logo-height);
  width: auto;
  max-width: 100%;
  display: block;
}

.main-nav {
  justify-self: center;
}

.main-nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-nav ul li {
  position: relative;
}

.main-nav ul li a {
  display: block;
  padding: 12px 22px;
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #333;
  line-height: 1;
  transition: color .2s, background .2s;
}

.main-nav ul li a:hover {
  color: var(--color-primary);
}

.main-nav ul li.active a {
  background: var(--color-primary);
  color: #fff;
}

.header-spacer {
  width: 100%;
  height: 1px;
  opacity: 0;
}

.nav-toggle {
  display: none;
  background: var(--color-primary);
  border: none;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 18px;
  color: #fff;
}

/* ── BUTTONS ──────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 11px 28px;
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 30px;
  cursor: pointer;
  transition: all .25s;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

.btn-outline-hero {
  background: transparent;
  border-color: #fff;
  color: #fff;
  margin-left: 12px;
}

.btn-outline-hero:hover {
  background: #fff;
  color: #222;
}

.btn-outline-section {
  background: transparent;
  border: 2px solid var(--color-accent);
  color: #333;
}

.btn-outline-section:hover {
  background: var(--color-accent);
  color: #fff;
}

/* ── HERO ─────────────────────────────────────── */
.hero {
  position: relative;
  height: 500px;
  overflow: hidden;
  background: #111;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .3) 0%, rgba(0, 0, 0, .6) 100%);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  width: 90%;
  z-index: 10;
}

.hero-content h1 {
  font-family: 'Satisfy', cursive;
  font-size: clamp(36px, 6vw, 64px);
  text-shadow: 2px 2px 10px rgba(0, 0, 0, .6);
  line-height: 1.1;
  margin-bottom: 14px;
}

.hero-content p {
  font-size: 15px;
  letter-spacing: 1px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, .5);
  margin-bottom: 28px;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(255, 255, 255, .15);
  border: none;
  color: #fff;
  font-size: 20px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}

.hero-arrow:hover {
  background: var(--color-primary);
}

.hero-arrow.prev {
  left: 15px;
}

.hero-arrow.next {
  right: 15px;
}

.hero-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.hero-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .4);
  cursor: pointer;
}

.hero-dots span.active {
  background: var(--color-accent);
}

/* ── SECTION COMMONS ──────────────────────────── */
section {
  padding: 70px 20px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-section-tag);
  margin-bottom: 10px;
}

h2.section-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #222;
  margin-bottom: 14px;
  line-height: 1.2;
}

h2.section-title em {
  font-style: normal;
  color: var(--color-accent);
}

/* ── ABOUT ────────────────────────────────────── */
.about {
  background: var(--bg-white);
  padding: 80px 0;
}

.about .container {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: start;
}

@media (max-width: 900px) {
  .about .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Removed .about-grid redundant class */

.about-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

@media (max-width: 600px) {
  .about-img img {
    margin: 0 auto;
    max-width: 500px;
  }
}

.about-text p {
  line-height: 1.85;
  margin-bottom: 18px;
  font-size: 13.5px;
}

.about-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* ── AUTHENTIC ────────────────────────────────── */
.authentic {
  background: var(--bg-warm);
}

.authentic .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.authentic-img img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 10px;
}

.authentic-text p {
  line-height: 1.85;
  margin-bottom: 18px;
  font-size: 13.5px;
}

/* ── GALLERY — MASONRY ────────────────────────── */
.gallery {
  background: var(--bg-dark);
  padding: 70px 20px;
}

.gallery .section-header {
  text-align: center;
  margin-bottom: 48px;
}

.gallery .section-header .section-tag {
  justify-content: center;
  color: rgba(255, 255, 255, .5);
  letter-spacing: 4px;
}

.gallery .section-header h2 {
  color: #fff;
}

.gallery .section-header h2 em {
  color: var(--color-accent);
}

.gallery .section-header p {
  color: #8fa3b1;
  font-size: 13px;
  margin-top: 8px;
}

.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  align-items: start;
}

.masonry-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.g-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
}

.g-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}

.g-item.tall img {
  height: 290px;
}

.g-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background .35s ease;
  border-radius: 10px;
}

.g-item:hover img {
  transform: scale(1.07);
}

.g-item:hover .g-overlay {
  background: rgba(17, 24, 39, 0.55);
}

/* ── ORDER CTA ────────────────────────────────── */
.order-cta {
  background: var(--color-primary);
  padding: 28px 20px 52px;
  position: relative;
  overflow: hidden;
}

.order-cta::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 34px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 34' preserveAspectRatio='none'%3E%3Cpath d='M0 34 Q300 0 600 20 Q900 38 1200 10 L1200 34Z' fill='%23111827'/%3E%3C/svg%3E") no-repeat bottom / 100% 34px;
}

.order-cta-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}

.order-label {
  font-family: 'Oswald', sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fff;
}

.order-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, .85);
  margin-top: 4px;
}

.btn-order {
  display: inline-block;
  background: #fff;
  color: var(--color-primary);
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 14px 36px;
  border-radius: 30px;
  border: 2px solid #fff;
  transition: background .25s, color .25s, border-color .25s;
  white-space: nowrap;
  text-decoration: none;
}

.btn-order:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: #fff;
}

/* ── FOOTER ───────────────────────────────────── */
footer {
  background: var(--bg-chrome);
  color: var(--text-light);
  padding: 60px 20px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-bottom: 44px;
}

.footer-col h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-dark);
}

.footer-col h4 .ficon {
  color: var(--color-accent);
  font-size: 15px;
}

.footer-col p {
  font-size: 12.5px;
  line-height: 1.85;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.hours-table tr td {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.hours-table tr:last-child td {
  border-bottom: none;
}

.hours-table tr td:last-child {
  color: var(--color-accent);
  text-align: right;
  font-weight: 600;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 11px;
  font-size: 12.5px;
}

.contact-item .ci {
  color: var(--color-accent);
  margin-top: 2px;
  font-size: 14px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.contact-item a {
  color: var(--text-light);
  text-decoration: none;
  transition: color .2s;
}

.contact-item a:hover {
  color: var(--color-accent);
}

.social-links {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.social-links a {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, .07);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-light);
  transition: background .2s, color .2s;
}

.social-links a:hover {
  background: var(--color-primary);
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding: 16px 20px;
  font-size: 12px;
  color: #5a6e7a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-bottom span a {
  color: var(--color-accent);
}

/* ── RESPONSIVE ───────────────────────────────── */
@media (max-width: 900px) {

  .about .container,
  .authentic .container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .authentic-img {
    order: -1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-masonry {
    grid-template-columns: repeat(2, 1fr);
  }

  :root {
    --header-logo-slot: 200px;
  }
}

@media (max-width: 600px) {

  /* Topbar mobile */
  .topbar {
    flex-direction: column;
    padding: 15px 15px;
    gap: 15px;
    text-align: center;
  }

  .topbar .left {
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  .tb-address {
    font-size: 13.5px;
    line-height: 1.5;
    max-width: 90%;
    margin: 0 auto;
    color: var(--text-on-dark);
  }

  .tb-address .addr-text {
    display: block;
    margin-top: 4px;
    opacity: 0.95;
  }

  /* Remove all redundant pseudo-elements that cause overlap */
  .tb-address a::after {
    display: none !important;
  }

  .tb-phone {
    font-size: 14.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 5px;
  }

  .lang-toggle {
    padding: 8px 18px;
    margin-bottom: 8px;
  }

  .topbar .right {
    display: flex;
    justify-content: center;
    gap: 15px;
    width: 100%;
    margin-top: 5px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .topbar .right a {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  /* Header & Logo center */
  :root {
    --logo-height: 90px;
    /* Big, Bold Logo on mobile */
  }

  /* Header & Logo center */
  :root {
    --logo-height: 200px;
    /* Large branding presence on mobile */
  }

  .header-bar {
    padding: 20px 0;
  }

  .header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 10px 20px;
  }

  .hero-btns {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .hero-btns .btn {
    margin: 0 !important;
    width: 240px;
    /* More tap-friendly width on mobile */
  }

  .logo-wrap {
    justify-content: center;
    width: 100%;
  }

  .header-spacer {
    display: none;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin: 10px auto 0;
    border-radius: 4px;
    font-size: 24px;
    padding: 0;
  }

  /* Label removed to avoid "Menu within Menu" redundancy */
  .nav-toggle::after {
    display: none !important;
  }

  .main-nav {
    width: 100%;
  }

  .main-nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-light);
    margin-top: 15px;
    border-radius: 8px;
    overflow: hidden;
  }

  .main-nav ul.open {
    display: flex;
  }

  .main-nav ul li a {
    padding: 18px;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
    letter-spacing: 2px;
  }

  .main-nav ul li:last-child a {
    border-bottom: none;
  }

  .main-nav ul li.active a {
    background: var(--color-primary);
    color: #fff !important;
  }

  /* Rest of site */
  .hero {
    height: 480px;
    /* Taller to fit stacked buttons */
    width: 100%;
    overflow: hidden;
  }

  .container {
    padding: 0 15px;
    /* Ensure content doesn't hit edge on very small screens */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    width: 100%;
  }

  .footer-col h4 {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 30px 20px;
  }

  .order-cta-inner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
}

/* ── ULTRA SMALL DEVICES (iPhone SE / etc) ───── */
@media (max-width: 400px) {
  .section-title {
    font-size: 24px !important;
  }

  .btn {
    padding: 10px 20px !important;
    width: 100% !important;
    text-align: center;
  }

  /* About section fixes */
  .about-actions {
    flex-direction: column;
    gap: 10px !important;
  }

  section {
    padding: 50px 15px;
  }
}