/* ===================================
   Sole Mio Kitchen & Bar — Custom CSS
   Matching Toast site design
   =================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cardo:ital,wght@0,400;0,700;1,400&family=Karla:wght@300;400;500;600;700&display=swap');

/* Brand Colors */
:root {
  --sm-orange: #E8722A;
  --sm-dark-orange: #D4621F;
  --sm-cream: #FFF8F0;
  --sm-warm-bg: #FFF0E3;
  --sm-dark: #1A1A1A;
  --sm-text: #333333;
  --sm-text-light: #666666;
  --sm-gold: #C5A55A;
  --sm-wine: #722F37;
  --sm-olive: #556B2F;
  --sm-border: #E8DDD0;
}

/* Global */
body {
  background-color: var(--sm-warm-bg) !important;
  color: var(--sm-text);
  font-family: 'Karla', sans-serif;
  font-size: 16px;
}

/* Header */
.ast-primary-header-bar,
#masthead,
.site-header {
  background-color: var(--sm-warm-bg) !important;
  border-bottom: none !important;
}

/* Logo */
.custom-logo-link img,
.custom-logo {
  max-height: 40px !important;
  width: auto !important;
}

.site-title a, .ast-site-title-wrap a {
  color: var(--sm-dark) !important;
  font-family: 'Cardo', serif !important;
  font-weight: 700 !important;
  font-size: 1.3rem !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

/* Navigation — match reference exactly */
.main-header-menu a,
.ast-header-break-point .ast-header-menu-toggle,
#site-navigation a,
.ast-primary-header-bar .main-header-menu .menu-item > a {
  color: var(--sm-dark) !important;
  font-family: 'Karla', sans-serif !important;
  font-weight: 400 !important;
  font-size: 14px !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

.main-header-menu a:hover,
#site-navigation a:hover {
  color: var(--sm-orange) !important;
}

.main-header-menu .current-menu-item > a {
  color: var(--sm-orange) !important;
  border-bottom: none !important;
}

/* Page Title — hide default */
.entry-title {
  display: none !important;
}

/* Content Area */
.entry-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===================================
   HERO — White card style (matching Toast)
   =================================== */
.hero-section {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  height: 520px;
  overflow: hidden;
  margin-bottom: 40px;
}

.hero-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Remove old gradient overlay */
.hero-overlay {
  position: absolute;
  top: 50%;
  left: 16%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.96);
  border-radius: 20px;
  padding: 48px 56px;
  max-width: 560px;
  width: 48%;
  box-shadow: 0 4px 40px rgba(0,0,0,0.12);
  color: var(--sm-dark);
  text-align: left;
}

.hero-overlay h1 {
  font-family: 'Cardo', serif !important;
  font-size: 2.2rem !important;
  color: var(--sm-dark) !important;
  margin-bottom: 12px !important;
  line-height: 1.2 !important;
  font-weight: 400 !important;
}

.hero-overlay p {
  font-family: 'Karla', sans-serif !important;
  font-size: 1.1rem !important;
  color: #444 !important;
  max-width: 100% !important;
  margin-bottom: 24px !important;
  line-height: 1.5 !important;
}

/* Section Styling */
.sm-section {
  padding: 50px 0;
  margin-bottom: 20px;
}

.sm-section-alt {
  background-color: white;
  padding: 50px 40px;
  border-radius: 12px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.05);
  margin-bottom: 30px;
}

.sm-section h2,
.entry-content h2 {
  font-family: 'Cardo', serif !important;
  font-size: 2rem;
  color: var(--sm-dark);
  margin-bottom: 20px;
  text-align: center;
}

.sm-section h3,
.entry-content h3 {
  font-family: 'Cardo', serif !important;
  font-size: 1.4rem;
  color: var(--sm-orange);
  margin-bottom: 15px;
}

/* Grid Layout */
.sm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 30px 0;
}

.sm-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin: 30px 0;
}

@media (max-width: 768px) {
  .sm-grid-3 { grid-template-columns: 1fr; }
}

/* Card Styling */
.sm-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sm-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.sm-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.sm-card-body {
  padding: 20px;
}

.sm-card-body h3 {
  font-family: 'Cardo', serif;
  font-size: 1.2rem;
  color: var(--sm-dark);
  margin-bottom: 10px;
}

.sm-card-body p {
  color: var(--sm-text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  font-family: 'Karla', sans-serif;
}

/* CTA Button */
.sm-btn {
  display: inline-block;
  background-color: var(--sm-orange);
  color: white !important;
  padding: 14px 32px;
  border-radius: 30px;
  text-decoration: none !important;
  font-family: 'Karla', sans-serif !important;
  font-weight: 600;
  font-size: 1rem;
  transition: background-color 0.3s ease;
  text-transform: none !important;
  letter-spacing: 0.3px;
}

.sm-btn:hover {
  background-color: var(--sm-dark-orange);
  color: white !important;
}

.sm-btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--sm-orange) !important;
  padding: 12px 30px;
  border: 2px solid var(--sm-orange);
  border-radius: 30px;
  text-decoration: none !important;
  font-weight: 600;
  transition: all 0.3s ease;
  font-family: 'Karla', sans-serif;
}

.sm-btn-outline:hover {
  background-color: var(--sm-orange);
  color: white !important;
}

/* Two Column Layout */
.sm-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin: 40px 0;
}

@media (max-width: 768px) {
  .sm-two-col { grid-template-columns: 1fr; }
}

.sm-two-col img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Reviews / Testimonials */
.sm-reviews {
  background: white;
  padding: 50px 40px;
  border-radius: 12px;
  text-align: center;
  margin: 30px 0;
  box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}

.sm-review-stars {
  color: var(--sm-orange);
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.sm-review-text {
  font-style: italic;
  color: var(--sm-text);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 15px;
  line-height: 1.7;
  font-family: 'Cardo', serif;
}

/* Specials Highlight */
.sm-special {
  background: white;
  border-left: 4px solid var(--sm-orange);
  padding: 25px 30px;
  margin: 20px 0;
  border-radius: 0 12px 12px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.sm-special h3 {
  color: var(--sm-orange);
  margin-bottom: 8px;
  font-family: 'Cardo', serif;
}

/* Hours Table */
.sm-hours {
  background: var(--sm-dark);
  color: white;
  padding: 40px;
  border-radius: 12px;
  margin: 30px 0;
}

.sm-hours h3 {
  color: var(--sm-gold) !important;
  text-align: center;
  font-family: 'Cardo', serif;
}

.sm-hours table {
  width: 100%;
  max-width: 400px;
  margin: 20px auto;
  border-collapse: collapse;
}

.sm-hours td {
  padding: 8px 15px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  font-family: 'Karla', sans-serif;
}

.sm-hours td:first-child {
  font-weight: 600;
}

/* Footer-like info section */
.sm-info-bar {
  background: var(--sm-dark);
  color: white;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 50px 60px;
  margin-top: 50px;
}

.sm-info-bar a {
  color: var(--sm-orange) !important;
}

/* Image gallery row */
.sm-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 30px 0;
}

.sm-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .sm-gallery { grid-template-columns: repeat(2, 1fr); }
  .hero-section { height: 380px; }
  .hero-overlay {
    width: 85%;
    padding: 28px 24px;
  }
  .hero-overlay h1 { font-size: 1.8rem !important; }
}

/* Center text sections */
.sm-center {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  font-family: 'Karla', sans-serif;
}

/* Divider */
.sm-divider {
  border: none;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--sm-orange), transparent);
  margin: 40px 0;
}

/* General text */
.entry-content p,
.entry-content li {
  font-family: 'Karla', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--sm-text);
}

/* Header Order Online button */
.sm-header-cta {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
}

.sm-header-btn {
  display: inline-block;
  background-color: var(--sm-orange);
  color: white !important;
  padding: 10px 22px;
  border-radius: 25px;
  text-decoration: none !important;
  font-family: 'Karla', sans-serif !important;
  font-weight: 600;
  font-size: 15px;
  transition: background-color 0.3s ease;
}

.sm-header-btn:hover {
  background-color: var(--sm-dark-orange);
  color: white !important;
}

/* Make header relative for absolute positioning */
.ast-primary-header-bar .ast-container,
.ast-primary-header-bar {
  position: relative !important;
}

/* Hide site title TEXT when logo is present */
.custom-logo-link ~ .site-title,
.custom-logo-link ~ .ast-site-title-wrap .site-title,
.ast-site-title-wrap .site-title {
  display: none !important;
}

/* When custom logo exists, hide tagline and text title */
body.has-custom-logo .site-title,
body.has-custom-logo .site-description,
body.has-custom-logo .ast-site-title-wrap a:not(.custom-logo-link) {
  display: none !important;
}

/* === Header height compact override === */
.ast-primary-header-bar .ast-container {
  min-height: 0 !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  display: flex !important;
  align-items: center !important;
}
.sm-injected-order-btn {
  flex-shrink: 0 !important;
  margin-left: 16px !important;
}

/* === Remove gap between header and hero === */
.ast-article-single .entry-content,
.entry-content,
#primary,
.ast-container > #primary,
.site-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
.ast-plain-container .entry-content > *:first-child,
.entry-content > .hero-section:first-child {
  margin-top: 0 !important;
}

/* === Footer: hide Astra credit, clean copyright === */
.ast-footer-credit a[href*='wpastra'],
.ast-footer-credit a[href*='wordpress.org'],
.footer-credit-link { display: none !important; }
.ast-footer-credit .ast-footer-copyright { color: #888; font-size: 0.82rem; }

/* === Shared card component (used across multiple pages) === */
.sm-menu-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px 28px 20px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}

/* Hide entire Astra footer credit, replace with clean copyright */
.ast-footer-copyright {
  font-size: 0 !important;
  visibility: hidden !important;
}
.ast-footer-copyright::before {
  content: 'Copyright \00a9  2026 Sole Mio Kitchen & Bar. All rights reserved.';
  font-size: 0.82rem !important;
  visibility: visible !important;
  color: #888;
}

/* Mobile header CTA buttons — visible next to hamburger */
.sm-mobile-cta {
  display: none;
}
@media (max-width: 921px) {
  .sm-mobile-cta {
    display: flex !important;
    gap: 8px;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #fff;
    padding: 10px 16px;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.12);
  }
  .sm-mobile-cta a {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    border-radius: 8px;
    font-family: 'Karla', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
  }
  .sm-mobile-cta .sm-mob-order {
    background: var(--sm-orange, #E8722A);
    color: #fff;
  }
  .sm-mobile-cta .sm-mob-reserve {
    background: #fff;
    color: var(--sm-orange, #E8722A);
    border: 2px solid var(--sm-orange, #E8722A);
  }
  /* Add bottom padding to body so content isn't hidden behind fixed bar */
  body { padding-bottom: 64px; }
}

/* Mobile directions button */
@media (max-width: 921px) {
  .sm-mobile-cta .sm-mob-directions {
    background: var(--sm-dark, #1A1A1A);
    color: #fff;
  }
}

/* Hide Astra generated page title H1 on homepage */
.home .entry-title,
.page-id-4 .entry-title { display: none !important; }
