/* =========================================================================
   1. BRAND VARIABLES  — taken directly from the Dolmaz brand guide.
   Edit colors/fonts/spacing here to adjust the whole site at once.
   ========================================================================= */
:root{
  /* --- Brand palette (exact hex from the brand book) --- */
  --gold:        #9f7d45;   /* primary logo gold — headings, fine lines     */
  --gold-mid:    #d7bc7f;   /* lighter gold                                 */
  --gold-pale:   #efe0af;   /* palest gold — subtle highlights              */
  --pale-cyan:   #add5de;   /* Pale Cyan Blue — light headings on dark      */
  --teal:        #6c8386;   /* Muted Teal — secondary / body on dark        */
  --slate:       #384651;   /* Deep Slate Blue — panels, secondary dark     */
  --charcoal:    #2f3b47;   /* Deep Charcoal Blue — primary dark / anchor   */

  /* --- Functional roles --- */
  --bg:          #fbf8f1;   /* warm off-white page background                */
  --surface:     #ffffff;   /* cards                                         */
  --ink:         #2f3b47;   /* body text on light = charcoal                 */
  --muted:       #5f6f78;   /* secondary text on light                       */
  --line:        #e4ded0;   /* hairline borders on light                     */

  /* --- Fonts --- */
  --font-display: "Libre Baskerville", "Baskerville Old Face", Baskerville, Georgia, serif;
  --font-body:    "Barlow", system-ui, sans-serif;

  /* --- Layout --- */
  --maxw: 1180px;
  --radius: 14px;
  --shadow: 0 20px 50px -28px rgba(47,59,71,.45);
}

/* =========================================================================
   2. BASE / RESET
   ========================================================================= */
*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; scroll-padding-top:80px; }
body{
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--bg);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
.container{ width:100%; max-width:var(--maxw); margin:0 auto; padding:0 26px; }

/* Shared section heading style */
.section{ padding:96px 0; }
.eyebrow{
  font-family:var(--font-body); text-transform:uppercase;
  letter-spacing:.28em; font-size:.74rem; font-weight:600;
  color:var(--gold); margin-bottom:16px;
}
.section-title{
  font-family:var(--font-display); font-weight:400;
  font-size:clamp(1.9rem, 3.6vw, 2.9rem); line-height:1.12;
  color:var(--charcoal); margin-bottom:18px;
}
.section-intro{ max-width:580px; color:var(--muted); margin-bottom:52px; }
.center{ text-align:center; }
.center .section-intro{ margin-left:auto; margin-right:auto; }

/* Decorative gold divider with a small diamond — echoes the brand's fine gold lines */
.divider{ display:flex; align-items:center; justify-content:center; gap:14px; margin:0 auto 18px; max-width:240px; }
.divider::before, .divider::after{ content:""; height:1px; flex:1; background:linear-gradient(to var(--d,right), transparent, var(--gold)); }
.divider::after{ --d:left; }
.divider i{ width:7px; height:7px; background:var(--gold); transform:rotate(45deg); display:block; }

/* =========================================================================
   3. THE GRAPEVINE PATTERN (brand motif) used as header/footer texture.
   Defined once as an SVG background data-URI; tint via opacity.
   ========================================================================= */
.vine-bg{ position:relative; }
.vine-bg::before{
  content:""; position:absolute; inset:0; opacity:.10; pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='none' stroke='%23add5de' stroke-width='1.4'%3E%3Cpath d='M30 0 C40 40 20 70 35 110 C45 140 25 160 40 180'/%3E%3Cpath d='M90 0 C80 35 100 65 88 100 C78 135 98 155 86 180'/%3E%3Cpath d='M150 0 C160 40 140 70 152 110 C160 145 142 160 150 180'/%3E%3Cpath d='M60 60 q14 -8 22 4' /%3E%3Cpath d='M118 120 q14 -8 22 4'/%3E%3C/g%3E%3Cg fill='%23add5de'%3E%3Cpath d='M52 44 l10 -10 6 12 -10 8z'/%3E%3Cpath d='M112 96 l10 -10 6 12 -10 8z'/%3E%3Ccircle cx='44' cy='70' r='3'/%3E%3Ccircle cx='50' cy='76' r='3'/%3E%3Ccircle cx='47' cy='82' r='3'/%3E%3Ccircle cx='128' cy='30' r='3'/%3E%3Ccircle cx='134' cy='36' r='3'/%3E%3Ccircle cx='131' cy='42' r='3'/%3E%3C/g%3E%3C/svg%3E");
  background-size:200px 200px;
}

/* =========================================================================
   4. HEADER / NAVIGATION  (Deep Charcoal Blue bar, gold logo)
   ========================================================================= */
.site-header{
  position:sticky; top:0; z-index:60;
  background:rgba(47,59,71,.96); backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(159,125,69,.28);
}
.nav{ display:flex; align-items:center; justify-content:space-between; height:78px; }

/* --- Logo lockup (inline SVG vine emblem + wordmark) --- */
.logo{ display:flex; align-items:center; gap:11px; }
.logo img{ height:46px; width:auto; display:block; }
.logo-text{ display:flex; flex-direction:column; line-height:1; }
.logo-word{
  font-family:var(--font-display); font-weight:400; font-size:1.5rem;
  letter-spacing:.16em; color:var(--gold); padding-left:.16em;
}
.logo-tag{
  font-family:var(--font-body); font-size:.56rem; font-weight:600;
  letter-spacing:.34em; text-transform:uppercase; color:var(--teal);
  margin-top:5px; padding-left:.18em;
}

.nav-links{ display:flex; gap:30px; list-style:none; align-items:center; }
.nav-links a{ color:#e7eef0; font-weight:500; font-size:.92rem; position:relative; padding:6px 0; }
.nav-links a::after{
  content:""; position:absolute; left:0; bottom:0; height:1.5px; width:0;
  background:var(--gold); transition:width .25s ease;
}
.nav-links a:hover::after{ width:100%; }
.nav-cta{
  border:1px solid var(--gold); color:var(--gold) !important;
  padding:9px 20px !important; border-radius:2px; letter-spacing:.04em;
  transition:background .2s ease, color .2s ease;
}
.nav-cta:hover{ background:var(--gold); color:var(--charcoal) !important; }
.nav-cta::after{ display:none; }

.hamburger{ display:none; flex-direction:column; gap:5px; background:none; border:0; cursor:pointer; padding:8px; }
.hamburger span{ width:26px; height:2px; background:var(--gold); border-radius:2px; transition:transform .3s, opacity .3s; }
.hamburger.open span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2){ opacity:0; }
.hamburger.open span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

/* =========================================================================
   5. HERO  (HOME)  — dark charcoal with vine pattern
   ========================================================================= */
.hero{
  background:linear-gradient(165deg, var(--charcoal), var(--slate));
  color:var(--bg); overflow:hidden;
}
.hero-inner{ position:relative; z-index:2; text-align:center; padding:118px 0 128px; }
.hero-logo{ width:min(360px,72vw); height:auto; margin:0 auto 30px; display:block; }
.hero h1{
  font-family:var(--font-display); font-weight:400;
  font-size:clamp(2.4rem, 5.5vw, 4.2rem); line-height:1.06;
  letter-spacing:.01em; margin-bottom:8px; color:var(--pale-cyan);
}
.hero h1 em{ font-style:italic; color:var(--gold); }
.hero .tagline{
  font-family:var(--font-body); text-transform:uppercase; letter-spacing:.4em;
  font-size:.8rem; color:var(--teal); margin-bottom:30px;
}
.hero p{ max-width:540px; margin:0 auto 38px; color:#d6dee0; font-size:1.06rem; }
.hero-actions{ display:flex; gap:16px; justify-content:center; flex-wrap:wrap; }

.btn{
  display:inline-block; cursor:pointer; border:0; font-family:var(--font-body);
  font-weight:600; font-size:.95rem; letter-spacing:.04em; padding:15px 32px;
  border-radius:2px; transition:transform .2s, background .2s, color .2s, box-shadow .2s;
}
.btn-primary{ background:var(--gold); color:var(--charcoal); }
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 14px 30px -12px rgba(159,125,69,.7); }
.btn-ghost{ background:transparent; color:var(--pale-cyan); border:1px solid rgba(173,213,222,.45); }
.btn-ghost:hover{ background:rgba(173,213,222,.12); }

/* =========================================================================
   6. OUR STORY
   ========================================================================= */
.story-inner{ display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:center; }
.story-media{
  aspect-ratio:4/5; border-radius:var(--radius); border:1px solid var(--line);
  background:linear-gradient(135deg,#eadfce,#dfeaec);
  display:flex; align-items:center; justify-content:center; color:#9b868f; font-size:.85rem;
}
.story-text .lead{ font-family:var(--font-display); font-size:1.25rem; color:var(--charcoal); margin-bottom:18px; line-height:1.5; }
.story-text p{ color:var(--muted); margin-bottom:16px; }
.story-stats{ display:flex; gap:36px; margin-top:30px; }
.story-stats div{ }
.story-stats b{ font-family:var(--font-display); font-size:2rem; color:var(--gold); display:block; line-height:1; }
.story-stats span{ font-size:.82rem; color:var(--muted); text-transform:uppercase; letter-spacing:.1em; }

/* =========================================================================
   7. MENU  (tabbed)
   ========================================================================= */
.menu{ background:#f4eee2; }
.menu-tabs{ display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin-bottom:48px; }
.tab{
  font-family:var(--font-body); font-weight:600; font-size:.88rem; letter-spacing:.02em;
  padding:10px 20px; border-radius:2px; cursor:pointer; color:var(--muted);
  background:transparent; border:1px solid var(--line); transition:all .2s ease;
}
.tab:hover{ color:var(--charcoal); border-color:var(--gold); }
.tab.active{ background:var(--charcoal); color:var(--gold-pale); border-color:var(--charcoal); }

.menu-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:24px; }
.menu-panel{ display:none; }
.menu-panel.active{ display:block; animation:fade .35s ease; }
@keyframes fade{ from{opacity:0; transform:translateY(8px);} to{opacity:1; transform:none;} }

.dish{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  overflow:hidden; display:flex; flex-direction:column;
  transition:transform .25s ease, box-shadow .25s ease;
}
.dish:hover{ transform:translateY(-4px); box-shadow:var(--shadow); }
.dish-media{
  aspect-ratio:16/11; background:linear-gradient(135deg,#e9dcc8,#dde9eb);
  display:flex; align-items:center; justify-content:center; color:#a8917b;
  font-size:.78rem; letter-spacing:.06em; text-transform:uppercase;
}
.dish-body{ padding:22px 22px 24px; display:flex; flex-direction:column; gap:8px; flex:1; }
.dish-head{ display:flex; justify-content:space-between; align-items:baseline; gap:12px; }
.dish-name{ font-family:var(--font-display); font-weight:400; font-size:1.2rem; color:var(--charcoal); }
.dish-price{ font-weight:700; color:var(--gold); white-space:nowrap; }
.dish-desc{ color:var(--muted); font-size:.9rem; }
.price-list{ list-style:none; margin-top:6px; display:flex; flex-direction:column; gap:7px; }
.price-list li{ display:flex; justify-content:space-between; gap:12px; font-size:.88rem; padding-bottom:7px; border-bottom:1px dashed var(--line); }
.price-list li:last-child{ border-bottom:0; }
.price-list .p{ font-weight:700; color:var(--gold); white-space:nowrap; }
.chips{ display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.chip{ font-size:.72rem; font-weight:600; background:#f1e7d6; color:var(--muted); padding:4px 10px; border-radius:2px; }

/* =========================================================================
   8. GALLERY  — placeholder grid (drop photos in later)
   ========================================================================= */
.gallery-grid{ display:grid; grid-template-columns:repeat(4,1fr); grid-auto-rows:170px; gap:14px; }
.gallery-grid figure{
  background:linear-gradient(135deg,#e6dac6,#d6e3e5); border-radius:10px; overflow:hidden;
  display:flex; align-items:center; justify-content:center; color:#9b868f; font-size:.78rem;
  transition:transform .25s ease;
}
.gallery-grid figure:hover{ transform:scale(1.02); }
.gallery-grid .tall{ grid-row:span 2; }
.gallery-grid .wide{ grid-column:span 2; }

/* =========================================================================
   9. VISIT US  — map + hours on charcoal
   ========================================================================= */
.visit{ background:linear-gradient(165deg, var(--slate), var(--charcoal)); color:var(--bg); }
.visit .section-title{ color:var(--pale-cyan); }
.visit .eyebrow{ color:var(--gold); }
.visit-inner{ display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center; position:relative; z-index:2; }
.visit-info .row{ display:flex; gap:16px; padding:18px 0; border-bottom:1px solid rgba(173,213,222,.18); }
.visit-info .row:last-child{ border-bottom:0; }
.visit-info .ico{ color:var(--gold); flex:none; width:24px; }
.visit-info h4{ font-family:var(--font-display); font-weight:400; font-size:1.05rem; color:var(--pale-cyan); margin-bottom:2px; }
.visit-info p{ color:#cdd8da; font-size:.94rem; }
.visit-map{
  aspect-ratio:1/1; border-radius:var(--radius); border:1px solid rgba(173,213,222,.3);
  background:repeating-linear-gradient(45deg, rgba(173,213,222,.06) 0 14px, rgba(173,213,222,.1) 14px 28px);
  display:flex; align-items:center; justify-content:center; color:rgba(173,213,222,.6); font-size:.85rem; text-align:center; padding:20px;
}

/* =========================================================================
   10. CONTACT  (reservation form)
   ========================================================================= */
.contact-inner{ display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:start; }
.contact-info p{ color:var(--muted); margin-bottom:14px; }
.contact-info strong{ color:var(--gold); }
.form-card{ background:var(--surface); border:1px solid var(--line); border-radius:18px; padding:34px; box-shadow:var(--shadow); }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.field{ margin-bottom:18px; }
.field label{ display:block; font-size:.78rem; font-weight:600; color:var(--charcoal); margin-bottom:7px; text-transform:uppercase; letter-spacing:.08em; }
.field input, .field select, .field textarea{
  width:100%; padding:13px 14px; font-family:var(--font-body); font-size:.95rem;
  border:1px solid var(--line); border-radius:6px; background:#fffdf8; color:var(--ink);
  transition:border-color .2s, box-shadow .2s; resize:vertical;
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline:none; border-color:var(--gold); box-shadow:0 0 0 3px rgba(159,125,69,.16);
}
.form-card .btn-primary{ width:100%; }
.form-note{ font-size:.8rem; color:var(--muted); margin-top:14px; text-align:center; }
.form-success{ display:none; background:#eef5ef; border:1px solid #bcd9bb; color:#3a6b35; padding:14px; border-radius:6px; font-size:.92rem; margin-top:16px; text-align:center; }

/* =========================================================================
   11. FOOTER  (Deep Charcoal Blue + vine motif)
   ========================================================================= */
.site-footer{ background:var(--charcoal); color:#cdd8da; padding:64px 0 30px; overflow:hidden; }
.footer-grid{ position:relative; z-index:2; display:grid; grid-template-columns:2fr 1fr 1fr; gap:44px; margin-bottom:42px; }
.footer-grid .logo-word{ font-size:1.35rem; }
.footer-grid p{ color:#a9b6ba; font-size:.92rem; margin-top:14px; max-width:300px; }
.footer-col h4{ font-size:.8rem; text-transform:uppercase; letter-spacing:.12em; color:var(--gold); margin-bottom:16px; }
.footer-col ul{ list-style:none; display:flex; flex-direction:column; gap:10px; }
.footer-col a{ color:#a9b6ba; font-size:.92rem; }
.footer-col a:hover{ color:var(--pale-cyan); }
.footer-bottom{ position:relative; z-index:2; border-top:1px solid rgba(173,213,222,.14); padding-top:22px; text-align:center; font-size:.82rem; color:#7f8e93; }

/* =========================================================================
   12. RESPONSIVE
   ========================================================================= */
@media (max-width:920px){
  .story-inner, .visit-inner, .contact-inner{ grid-template-columns:1fr; gap:40px; }
  .gallery-grid{ grid-template-columns:repeat(2,1fr); }
  .footer-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width:760px){
  .hamburger{ display:flex; }
  .nav-links{
    position:absolute; top:78px; left:0; right:0; flex-direction:column; gap:0;
    background:var(--charcoal); padding:8px 26px 20px;
    border-bottom:1px solid rgba(159,125,69,.28);
    max-height:0; overflow:hidden; transition:max-height .35s ease;
  }
  .nav-links.open{ max-height:420px; }
  .nav-links li{ width:100%; }
  .nav-links a{ display:block; padding:14px 0; border-bottom:1px solid rgba(173,213,222,.1); }
  .nav-cta{ margin-top:12px; text-align:center; }
  .section{ padding:68px 0; }
}
@media (max-width:520px){
  .form-row{ grid-template-columns:1fr; }
  .gallery-grid{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr; }
  .story-stats{ gap:24px; }
}
