/*
Theme Name: Cafe Greko Reserve
Theme URI: https://cafegreko.com
Author: Cafe Greko Reserve
Author URI: https://cafegreko.com
Description: A warm and cozy WordPress theme for Cafe Greko Reserve, Mohali. Built for use with Elementor page builder.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cafe-greko
Tags: restaurant, cafe, elementor, warm, cozy, food, one-page

*/

/* ── GLOBAL RESET & VARIABLES ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --cream: #f5ede0;
  --warm-white: #fdf8f2;
  --mocha: #6b4226;
  --espresso: #3b1f0e;
  --caramel: #c8843a;
  --sand: #e8d5b7;
  --dark: #1e1009;
  --stone: #9e8a78;
}

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

body {
  background: var(--warm-white);
  color: var(--espresso);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: var(--espresso);
  line-height: 1.2;
}

a {
  color: var(--caramel);
  text-decoration: none;
  transition: color 0.2s;
}

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

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

/* ── WORDPRESS CORE ── */
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 0 auto 1rem; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: var(--stone); text-align: center; margin-top: 0.4rem; }
.screen-reader-text { clip: rect(1px,1px,1px,1px); position: absolute !important; height: 1px; width: 1px; overflow: hidden; }
.sticky { /* WordPress sticky post */ }
.bypostauthor { /* WordPress bypostauthor */ }

/* ── NAVIGATION ── */
#site-navigation {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 3rem;
  background: rgba(253, 248, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(107,66,38,0.1);
  transition: box-shadow 0.3s;
}

#site-navigation.scrolled {
  box-shadow: 0 4px 30px rgba(59,31,14,0.1);
}

.site-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--espresso);
  letter-spacing: 0.02em;
  text-decoration: none;
}

.site-logo span { color: var(--caramel); font-style: italic; }

.main-navigation ul {
  display: flex;
  gap: 2.2rem;
  list-style: none;
}

.main-navigation a {
  text-decoration: none;
  color: var(--mocha);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.2s;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  color: var(--caramel);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--mocha);
  border-radius: 4px;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  color: var(--mocha);
  font-size: 1.2rem;
}

/* ── BUTTONS ── */
.btn-primary, .elementor-button.btn-primary {
  background: var(--espresso);
  color: var(--cream) !important;
  padding: 0.9rem 2.2rem;
  border-radius: 0.4rem;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  transition: background 0.25s, transform 0.2s;
  border: 2px solid var(--espresso);
  display: inline-block;
  cursor: pointer;
}

.btn-primary:hover { background: var(--mocha); border-color: var(--mocha); transform: translateY(-2px); color: var(--cream) !important; }

.btn-outline {
  border: 2px solid var(--mocha);
  color: var(--mocha) !important;
  padding: 0.9rem 2.2rem;
  border-radius: 0.4rem;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  transition: all 0.25s;
  display: inline-block;
}

.btn-outline:hover { background: var(--mocha); color: var(--cream) !important; transform: translateY(-2px); }

.btn-caramel {
  background: var(--caramel);
  color: white !important;
  padding: 0.85rem 2rem;
  border-radius: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.2s;
  display: inline-block;
}

.btn-caramel:hover { background: #b07530; transform: translateY(-2px); color: white !important; }

/* ── SECTION COMMONS ── */
.section-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--caramel);
  font-weight: 500;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.section-eyebrow::before {
  content: '';
  width: 2.5rem;
  height: 1px;
  background: var(--caramel);
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--espresso);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-title em { color: var(--caramel); font-style: italic; }

.section-sub {
  font-family: 'Lora', serif;
  font-style: italic;
  color: var(--stone);
  font-size: 1rem;
  line-height: 1.7;
}

/* ── HERO ── */
.hero-section {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 70px;
  background: var(--cream);
  overflow: hidden;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 4rem 6rem 6rem;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 1.08;
  color: var(--espresso);
  margin-bottom: 1.8rem;
}

.hero-title em { color: var(--caramel); font-style: italic; display: block; }

.hero-desc {
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--stone);
  max-width: 420px;
  margin-bottom: 2.5rem;
}

.hero-badges { display: flex; gap: 1.2rem; margin-bottom: 3rem; flex-wrap: wrap; }

.badge {
  background: var(--espresso);
  color: var(--cream);
  padding: 0.45rem 1.1rem;
  border-radius: 2rem;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.badge.gold { background: var(--caramel); color: white; }

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-right { position: relative; overflow: hidden; }

.hero-img-grid { display: grid; grid-template-rows: 1fr 1fr; height: 100%; gap: 4px; }

.hero-img-grid .img-top {
  background: url('images/hero-top.jpg') center/cover no-repeat;
}

.hero-img-grid .img-bot {
  background: url('images/hero-bot.jpg') center/cover no-repeat;
}

.hero-float-card {
  position: absolute;
  bottom: 2.5rem; left: -2.5rem;
  z-index: 10;
  background: var(--warm-white);
  padding: 1.2rem 1.6rem;
  border-radius: 0.8rem;
  box-shadow: 0 20px 60px rgba(59,31,14,0.18);
  border-left: 4px solid var(--caramel);
}

.float-rating { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--espresso); }
.float-stars { color: var(--caramel); font-size: 1rem; margin: 0.1rem 0; }
.float-label { font-size: 0.75rem; color: var(--stone); letter-spacing: 0.05em; }

/* ── DIVIDER QUOTE ── */
.quote-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 3rem 4rem;
  background: var(--espresso);
  color: var(--sand);
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.quote-divider::before, .quote-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(232,213,183,0.3);
}

/* ── MENU SECTION ── */
.menu-section { padding: 7rem 6rem; background: var(--warm-white); }

.menu-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.menu-tab {
  padding: 0.55rem 1.5rem;
  border-radius: 2rem;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border: 2px solid var(--sand);
  background: transparent;
  color: var(--stone);
  transition: all 0.25s;
  font-family: 'DM Sans', sans-serif;
}

.menu-tab:hover, .menu-tab.active {
  background: var(--espresso);
  color: var(--cream);
  border-color: var(--espresso);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.menu-card {
  background: var(--cream);
  border-radius: 0.8rem;
  padding: 1.6rem;
  border: 1px solid var(--sand);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.menu-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(59,31,14,0.1); }

.menu-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--espresso);
  margin-bottom: 0.35rem;
}

.menu-card-desc { font-size: 0.83rem; color: var(--stone); line-height: 1.5; }

.menu-card-tag { font-size: 0.7rem; margin-top: 0.5rem; color: var(--caramel); font-weight: 500; }

.menu-card-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--caramel);
  white-space: nowrap;
}

.menu-panel { display: none; }
.menu-panel.active { display: block; }

/* ── PROMO BANNER ── */
.promo-banner {
  background: linear-gradient(135deg, var(--mocha), var(--espresso));
  color: var(--cream);
  padding: 2.5rem 6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.promo-text { font-family: 'Playfair Display', serif; font-size: 1.4rem; }
.promo-text span { color: var(--caramel); }
.promo-sub { font-size: 0.85rem; color: var(--sand); margin-top: 0.3rem; }

/* ── RESERVATIONS ── */
.reservations-section { padding: 7rem 6rem; background: var(--cream); }

.res-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.res-info p {
  font-family: 'Lora', serif;
  font-style: italic;
  color: var(--stone);
  line-height: 1.9;
  font-size: 1rem;
  margin-bottom: 2.5rem;
}

.res-details { display: flex; flex-direction: column; gap: 1.2rem; }

.res-detail-item { display: flex; align-items: flex-start; gap: 1rem; }

.res-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--espresso);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.res-detail-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--stone); font-weight: 500; }
.res-detail-value { font-family: 'Playfair Display', serif; font-size: 1rem; color: var(--espresso); margin-top: 0.1rem; }

.res-form-box {
  background: var(--warm-white);
  border-radius: 1rem;
  padding: 2.8rem;
  box-shadow: 0 20px 60px rgba(59,31,14,0.1);
}

.res-form-box h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--espresso); margin-bottom: 0.4rem; }
.res-form-sub { font-size: 0.85rem; color: var(--stone); margin-bottom: 2rem; }

.wpcf7-form .form-row,
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }

.form-group label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--mocha); font-weight: 500; }

.form-group input,
.form-group select,
.form-group textarea,
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="date"],
.wpcf7-form select,
.wpcf7-form textarea {
  background: var(--cream);
  border: 1px solid var(--sand);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--espresso);
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  border-color: var(--caramel);
}

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

.wpcf7-submit,
.form-submit-btn {
  width: 100%;
  background: var(--espresso);
  color: var(--cream);
  padding: 1rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.25s, transform 0.2s;
}

.wpcf7-submit:hover,
.form-submit-btn:hover { background: var(--mocha); transform: translateY(-2px); }

/* ── CONTACT SECTION ── */
.contact-section { padding: 7rem 6rem; background: var(--espresso); color: var(--cream); }

.contact-section .section-title { color: var(--cream); }
.contact-section .section-eyebrow { color: var(--caramel); }
.contact-section .section-sub { color: var(--sand); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-card {
  background: rgba(255,255,255,0.06);
  border-radius: 0.8rem;
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  transition: background 0.25s;
}

.contact-card:hover { background: rgba(255,255,255,0.1); }

.contact-card-icon { font-size: 1.8rem; margin-bottom: 1rem; }

.contact-card-title { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--cream); margin-bottom: 0.5rem; }

.contact-card-text { font-size: 0.88rem; color: var(--sand); line-height: 1.6; }

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

/* ── FOOTER ── */
.site-footer {
  background: var(--dark);
  color: var(--stone);
  text-align: center;
  padding: 2rem 3rem;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.site-footer span { color: var(--caramel); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeUp 0.7s ease both; }

/* ── ELEMENTOR OVERRIDES ── */
.elementor-section { position: relative; }

.elementor-widget-heading .elementor-heading-title {
  font-family: 'Playfair Display', serif !important;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  #site-navigation { padding: 1rem 1.5rem; }
  .main-navigation { display: none; }
  .main-navigation.toggled { display: block; position: absolute; top: 100%; left: 0; right: 0; background: var(--warm-white); padding: 1rem 1.5rem; border-top: 1px solid var(--sand); }
  .main-navigation.toggled ul { flex-direction: column; gap: 0.8rem; }
  .menu-toggle { display: block; }
  .hero-section { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 6rem 2rem 3rem; }
  .hero-right { height: 50vw; }
  .hero-float-card { left: 1rem; bottom: 1rem; }
  .menu-section, .reservations-section, .contact-section { padding: 4rem 2rem; }
  .res-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .promo-banner { padding: 2rem; flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
}
