/* O'Cruceiro — Restaurante Gallego en Madrid */
/* Custom styles: brand colors, typography, layout tweaks */

:root {
  --red-deep: #7A1A1A;
  --red-mid: #9B2335;
  --red-light: #C8404A;
  --cream: #F8F3EC;
  --cream-dark: #EDE4D5;
  --gold: #C8A255;
  --gold-light: #E0C07A;
  --stone: #3D2B1A;
  --text-dark: #1E1612;
  --text-mid: #4A3728;
  --text-light: #7A6255;
  --white: #FFFFFF;
  --shadow-soft: 0 4px 24px rgba(30, 12, 5, 0.10);
  --shadow-card: 0 2px 12px rgba(30, 12, 5, 0.08);
  --radius: 8px;
  --radius-sm: 4px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Crimson Pro', 'Georgia', 'Times New Roman', serif;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-dark);
  background-color: var(--cream);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-mid); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--red-deep); }
ul, ol { padding-left: 1.5rem; }
li { margin-bottom: 0.3rem; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-dark);
}
h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 1.2rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 2.5rem; margin-bottom: 0.9rem; color: var(--red-deep); }
h3 { font-size: 1.3rem; margin-top: 1.8rem; margin-bottom: 0.6rem; color: var(--stone); }
p { margin-bottom: 1.2rem; }
strong { font-weight: 700; color: var(--stone); }

/* ===== LAYOUT ===== */
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 1.5rem; }

/* ===== NAVBAR ===== */
.site-navbar {
  background: var(--red-deep);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 68px;
  max-width: 1180px;
  margin: 0 auto;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.brand-icon {
  width: 38px;
  height: 38px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--red-deep);
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: 0.02em;
}
.brand-tagline {
  font-size: 0.68rem;
  color: var(--gold-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-links li { margin: 0; }
.nav-links a {
  display: block;
  padding: 0.5rem 0.85rem;
  font-family: 'Crimson Pro', serif;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.88);
  letter-spacing: 0.03em;
  transition: color 0.18s, background 0.18s;
  border-radius: var(--radius-sm);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--gold-light);
  background: rgba(255,255,255,0.08);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: all 0.3s;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--stone);
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.55;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(122,26,26,0.72) 0%, rgba(30,22,18,0.55) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 5rem 1.5rem;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-family: 'Crimson Pro', serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 0.3rem;
}
.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: var(--white);
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}
.hero-content p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.88);
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.8rem;
  font-family: 'Crimson Pro', serif;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.22s;
  cursor: pointer;
  border: 2px solid transparent;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.btn-primary {
  background: var(--gold);
  color: var(--red-deep);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--red-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,162,85,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  color: var(--white);
}
.btn-submit {
  background: var(--red-mid);
  color: var(--white);
  border: 2px solid var(--red-mid);
  padding: 0.8rem 2rem;
  font-family: 'Crimson Pro', serif;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.22s;
  letter-spacing: 0.04em;
}
.btn-submit:hover {
  background: var(--red-deep);
  border-color: var(--red-deep);
  transform: translateY(-1px);
}

/* ===== DECORATIVE DIVIDER ===== */
.ornament {
  text-align: center;
  color: var(--gold);
  font-size: 1.4rem;
  margin: 2.5rem 0;
  letter-spacing: 0.5rem;
}
.section-title-group {
  text-align: center;
  margin-bottom: 3rem;
}
.section-title-group h2 { color: var(--red-deep); margin-top: 0; }
.section-title-group p { color: var(--text-light); font-size: 1.1rem; max-width: 560px; margin: 0.5rem auto 0; }

/* ===== CARDS ===== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.22s, box-shadow 0.22s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.card-img { width: 100%; height: 220px; object-fit: cover; }
.card-body { padding: 1.4rem 1.5rem; }
.card-body h3 { margin-top: 0; font-size: 1.15rem; color: var(--red-deep); }
.card-body p { color: var(--text-mid); font-size: 0.95rem; margin-bottom: 0.8rem; }
.card-link { font-weight: 600; color: var(--gold); font-size: 0.9rem; }
.card-link:hover { color: var(--red-mid); }

/* ===== MENU CARDS (specials) ===== */
.menu-card {
  background: var(--white);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.2rem;
  box-shadow: var(--shadow-card);
}
.menu-card h3 { color: var(--red-deep); margin-top: 0; font-size: 1.1rem; }
.menu-card p { margin-bottom: 0; font-size: 0.98rem; color: var(--text-mid); }

/* ===== CONTENT SECTIONS ===== */
.section-pad { padding: 5rem 0; }
.section-pad-sm { padding: 3rem 0; }
.section-cream { background: var(--cream); }
.section-white { background: var(--white); }
.section-dark { background: var(--red-deep); color: var(--white); }
.section-dark h2 { color: var(--gold-light); }
.section-dark p { color: rgba(255,255,255,0.85); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.four-col { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ===== FEATURE STRIP ===== */
.feature-strip { display: flex; gap: 0; border-top: 1px solid var(--cream-dark); border-bottom: 1px solid var(--cream-dark); }
.feature-item {
  flex: 1;
  padding: 2rem 1.5rem;
  text-align: center;
  border-right: 1px solid var(--cream-dark);
}
.feature-item:last-child { border-right: none; }
.feature-icon { font-size: 2rem; margin-bottom: 0.6rem; color: var(--gold); }
.feature-item h4 { font-size: 0.95rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 0.3rem; color: var(--red-deep); }
.feature-item p { font-size: 0.88rem; color: var(--text-light); margin-bottom: 0; line-height: 1.5; }

/* ===== CONTENT WITH SIDE IMAGE ===== */
.content-img-right { display: grid; grid-template-columns: 1fr 400px; gap: 3rem; align-items: start; }
.content-img-left { display: grid; grid-template-columns: 400px 1fr; gap: 3rem; align-items: start; }
.side-img { border-radius: var(--radius); box-shadow: var(--shadow-soft); width: 100%; object-fit: cover; height: 360px; }

/* ===== CONTACT FORM ===== */
.contact-form { max-width: 620px; }
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  color: var(--text-mid);
  letter-spacing: 0.02em;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  font-family: 'Crimson Pro', serif;
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,162,85,0.15);
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* ===== SUBMENU NAV ===== */
.sub-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  border-bottom: 2px solid var(--cream-dark);
  padding-bottom: 0.5rem;
}
.sub-nav a {
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text-mid);
  font-weight: 600;
  border: 1px solid var(--cream-dark);
  transition: all 0.18s;
}
.sub-nav a:hover, .sub-nav a.active {
  background: var(--red-mid);
  color: var(--white);
  border-color: var(--red-mid);
}

/* ===== PAGE HERO (non-home) ===== */
.page-hero {
  position: relative;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}
.page-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(122,26,26,0.7) 0%, rgba(30,22,18,0.65) 100%);
}
.page-hero-content { position: relative; z-index: 2; padding: 1.5rem; }
.page-hero-content h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 0.5rem; }
.page-hero-content p { color: rgba(255,255,255,0.8); font-size: 1.05rem; margin: 0; max-width: 560px; }
.page-hero-breadcrumb {
  font-size: 0.82rem;
  color: var(--gold-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--stone);
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 2rem;
  border-top: 4px solid var(--gold);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.footer-tagline { font-size: 0.85rem; color: var(--gold-light); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-desc { font-size: 0.93rem; line-height: 1.7; color: rgba(255,255,255,0.65); margin-bottom: 0; }
.footer-col h4 {
  font-family: 'Playfair Display', serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(200,162,85,0.3);
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: rgba(255,255,255,0.65); font-size: 0.92rem; transition: color 0.18s; }
.footer-links a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-copyright { font-size: 0.85rem; color: rgba(255,255,255,0.45); }
.footer-gold-line { color: var(--gold); font-size: 0.85rem; }

/* ===== PULL QUOTE ===== */
blockquote.pull-quote {
  border-left: 4px solid var(--gold);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--cream-dark);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-mid);
}

/* ===== INFO BOX ===== */
.info-box {
  background: var(--cream-dark);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.5rem 1.8rem;
  margin: 2rem 0;
}
.info-box h4 { color: var(--red-deep); margin-top: 0; font-size: 1rem; letter-spacing: 0.04em; }
.info-box ul { margin-bottom: 0; }

/* ===== GALERIA GRID ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery-grid img { border-radius: var(--radius-sm); aspect-ratio: 4/3; object-fit: cover; }

/* ===== 404 ===== */
.page-404 { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.page-404 h1 { font-size: 5rem; color: var(--red-mid); margin-bottom: 0.5rem; }
.page-404 h2 { color: var(--text-dark); margin-top: 0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .two-col, .content-img-right, .content-img-left { grid-template-columns: 1fr; }
  .two-col.reverse { direction: ltr; }
  .three-col { grid-template-columns: 1fr 1fr; }
  .four-col { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .feature-strip { flex-wrap: wrap; }
  .feature-item { min-width: 50%; border-right: none; border-bottom: 1px solid var(--cream-dark); }
  .feature-item:nth-child(odd) { border-right: 1px solid var(--cream-dark); }
  .side-img { height: 260px; }
}
@media (max-width: 640px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--red-deep); padding: 1rem; box-shadow: var(--shadow-soft); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .three-col, .four-col, .footer-grid { grid-template-columns: 1fr; }
  .feature-strip { flex-direction: column; }
  .feature-item { border-right: none; border-bottom: 1px solid var(--cream-dark); min-width: 100%; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero { min-height: 60vh; }
  .page-hero { height: 260px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}
