/*
Theme Name: Millstone Restaurant
Theme URI: https://www.millstonerestaurant.ie
Author: Millstone Restaurant
Description: Custom theme for Millstone Restaurant — heritage Irish restaurant at 39 Dame Street, Dublin 2. One-page home plus menu, coeliac, group dining, about and contact pages.
Version: 1.5.1
Requires PHP: 7.4
License: Proprietary
Text Domain: millstone
*/

/* ===== Fonts (served from the existing Webflow CDN for now) ===== */
@font-face {
  font-family: 'Chromate';
  src: url('https://cdn.prod.website-files.com/6a7da5568b2be2fb14829374/6a7da5568b2be2fb1482934f_Chromate-Regular.ttf') format('truetype');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'Mosk';
  src: url('https://cdn.prod.website-files.com/6a7da5568b2be2fb14829374/6a7da5568b2be2fb1482934e_Mosk%20Medium%20500.ttf') format('truetype');
  font-weight: 500; font-display: swap;
}
@font-face {
  font-family: 'Mosk';
  src: url('https://cdn.prod.website-files.com/6a7da5568b2be2fb14829374/6a7da5568b2be2fb14829350_Mosk%20Bold%20700.ttf') format('truetype');
  font-weight: 700; font-display: swap;
}

/* ===== Base ===== */
:root {
  --bg: #f7f5f0;
  --ink: #111;
  --soft: rgba(0,0,0,.55);
  --line: #ddd;
  --dark: #101010;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: 'Mosk', 'Helvetica Neue', Arial, sans-serif; font-weight: 500;
  background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ===== Nav ===== */
.ml-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 24px; background: var(--bg); position: relative; z-index: 50;
  border-bottom: 1px solid var(--line);
}
.ml-brand-logo { height: 46px; width: auto; }
.ml-navlinks { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.ml-navlink {
  font-family: 'Mosk'; font-weight: 700; font-size: 13px; letter-spacing: 2px;
  text-transform: uppercase; text-decoration: none; color: var(--ink);
}
.ml-navlink:hover { opacity: .6; }
.ml-btn, .ml-btn-outline {
  display: inline-block; font-family: 'Mosk'; font-weight: 700; font-size: 13px;
  letter-spacing: 2px; text-transform: uppercase; text-decoration: none;
  padding: 12px 22px; border: 1.5px solid var(--ink); white-space: nowrap;
}
.ml-btn { background: var(--ink); color: #fff; }
.ml-btn-outline { background: transparent; color: var(--ink); }
.ml-btn:hover, .ml-btn-outline:hover { opacity: .75; }
.ml-nav-toggle, .ml-nav-burger { display: none; }
@media (max-width: 860px) {
  .ml-nav-burger {
    display: block; cursor: pointer; font-size: 26px; line-height: 1;
    color: var(--ink); padding: 2px 6px;
  }
  .ml-navlinks {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); flex-direction: column; align-items: stretch;
    gap: 0; padding: 6px 0 10px; border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(0,0,0,.08);
  }
  .ml-nav-toggle:checked ~ .ml-navlinks { display: flex; }
  .ml-navlinks .ml-navlink { padding: 13px 24px; }
  .ml-navlinks .ml-btn { margin: 8px 24px 6px; text-align: center; }
}

/* ===== Home hero ===== */
.ml-hero {
  min-height: 88vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 60px 24px;
  background-size: cover; background-position: 50% 62%; background-repeat: no-repeat;
  background-color: #222;
  position: relative;
}
.ml-hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(rgba(12,10,8,.30) 0%, rgba(12,10,8,.20) 45%, rgba(12,10,8,.55) 100%);
}
.ml-hero > * { position: relative; z-index: 1; }
.ml-hero h1 {
  font-family: 'Chromate', serif; font-weight: 400; color: #fff;
  font-size: 45px; line-height: 1.3; letter-spacing: 5px; max-width: 900px;
  text-shadow: 0 2px 20px rgba(0,0,0,.75);
}
.ml-hero-sub { color: #fff; font-size: 18px; letter-spacing: 1px; margin-top: 18px; text-shadow: 0 1px 14px rgba(0,0,0,.8); }
.ml-hero-btns { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; justify-content: center; }
.ml-hero-btns .hb {
  font-family: 'Mosk'; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: #fff; text-decoration: none; font-size: 14px; padding: 13px 26px;
  border: 1.5px solid rgba(255,255,255,.85);
}
.ml-hero-btns .hb:hover { background: rgba(255,255,255,.15); }
@media (max-width: 767px) { .ml-hero h1 { font-size: 30px; letter-spacing: 3px; } }

/* ===== Home sections ===== */
.ml-sec { padding: 80px 24px; }
.ml-grid2 { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 34px; align-items: center; max-width: 1200px; margin: 0 auto; }
.ml-grid2 img { width: 100%; height: 420px; object-fit: cover; }
@media (max-width: 900px) {
  .ml-grid2 { grid-template-columns: 1fr; }
  .ml-grid2 img { height: 260px; }
}
.ml-kicker {
  display: block; font-family: 'Mosk'; font-weight: 700; font-size: 12px;
  letter-spacing: 4px; text-transform: uppercase; color: var(--soft); margin-bottom: 10px;
}
.ml-title { display: block; font-family: 'Chromate', serif; font-weight: 400; font-size: 30px; letter-spacing: 2px; line-height: 1.3; margin-bottom: 18px; }
.ml-copy { color: rgba(0,0,0,.75); }
.ml-sechead { text-align: center; margin-bottom: 36px; }
.ml-linkbtn {
  display: inline-block; margin-top: 24px; font-family: 'Mosk'; font-weight: 700;
  font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink);
  text-decoration: none; border-bottom: 2px solid var(--ink); padding-bottom: 4px;
}
.ml-linkbtn:hover { opacity: .6; }

/* Quote band */
.ml-quote { text-align: center; max-width: 760px; margin: 0 auto; padding: 90px 24px; }
.ml-quote-big { font-family: 'Chromate', serif; font-size: 24px; line-height: 1.6; letter-spacing: 1px; }
.ml-stars { letter-spacing: 6px; margin: 22px 0 8px; }
.ml-quote-small { font-family: 'Mosk'; font-weight: 700; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--soft); }

/* ===== Menus accordions ===== */
.ml-acc-wrap { max-width: 800px; margin: 0 auto; }
.ml-acc { border-bottom: 1px solid var(--line); }
.ml-acc summary {
  list-style: none; cursor: pointer; padding: 26px 10px;
  font-family: 'Chromate', serif; font-size: 25px; letter-spacing: 3px;
  display: flex; align-items: center; justify-content: space-between;
}
.ml-acc summary::-webkit-details-marker { display: none; }
.ml-acc summary::after { content: '+'; font-family: 'Mosk'; font-weight: 700; font-size: 22px; }
.ml-acc[open] summary::after { content: '\2013'; }
.ml-acc-body { padding: 4px 10px 30px; }
@media (max-width: 767px) { .ml-acc summary { font-size: 19px; letter-spacing: 2px; } }

/* ===== Dish rows (home accordions + menu pages) ===== */
.ml-dish {
  display: flex; align-items: baseline; justify-content: space-between; gap: 18px;
  padding: 11px 0; border-bottom: 1px dotted rgba(0,0,0,.15);
}
.ml-dish:last-child { border-bottom: 0; }
.ml-dish-name { font-family: 'Mosk'; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; font-size: 14.5px; }
.ml-dish-desc { color: var(--soft); font-size: 14px; letter-spacing: .4px; margin-top: 2px; text-transform: none; }
.ml-price { font-family: 'Mosk'; font-weight: 700; white-space: nowrap; font-size: 14.5px; }
.ml-pdf {
  display: inline-block; margin-top: 18px; font-size: 13.5px; color: var(--soft);
  text-decoration: underline;
}
.ml-pdf:hover { color: var(--ink); }

/* ===== Gallery ===== */
.ml-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 1200px; margin: 0 auto; }
.ml-gallery img { width: 100%; height: 300px; object-fit: cover; }
@media (max-width: 767px) {
  .ml-gallery { grid-template-columns: repeat(2, 1fr); }
  .ml-gallery img { height: 170px; }
}

/* ===== Contact section ===== */
.ml-contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; max-width: 1100px; margin: 40px auto; }
@media (max-width: 900px) { .ml-contact-grid { grid-template-columns: repeat(2, 1fr); } }
.ml-c-title { font-family: 'Mosk'; font-weight: 700; font-size: 13px; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 10px; }
.ml-c-text { color: rgba(0,0,0,.75); font-size: 15px; }
.ml-hours-grid { display: grid; grid-template-columns: auto auto; gap: 4px 18px; font-size: 15px; }
.ml-hours-grid .t { color: rgba(0,0,0,.75); }
.ml-map iframe { border: 0; width: 100%; height: 340px; display: block; }
.ml-form { max-width: 640px; margin: 30px auto 0; }
.ml-form label { display: block; font-family: 'Mosk'; font-weight: 700; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; margin: 16px 0 6px; }
.ml-form input, .ml-form textarea {
  width: 100%; padding: 12px; border: 1px solid var(--line); background: #fff;
  font-family: inherit; font-size: 15px;
}
.ml-form textarea { min-height: 120px; }
.ml-form button { margin-top: 22px; cursor: pointer; }

/* ===== Page (satellite) layout ===== */
.ml-wrap { max-width: 820px; margin: 0 auto; padding: 0 20px 70px; }
.ml-crumbs { font-size: 13px; color: var(--soft); margin: 26px 0 18px; }
.ml-crumbs a { color: var(--soft); }
.ml-h1 { font-family: 'Chromate', serif; font-weight: 400; font-size: 34px; letter-spacing: 2px; line-height: 1.3; margin: 6px 0 18px; }
.ml-h2 { font-family: 'Chromate', serif; font-weight: 400; font-size: 22px; letter-spacing: 2px; margin: 42px 0 14px; }
.ml-lead { color: rgba(0,0,0,.78); margin-bottom: 14px; }
.ml-note { font-size: 13px; color: var(--soft); font-style: italic; margin: 20px 0; }
.ml-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0; }
.ml-inline-link { text-decoration: underline; }
@media (max-width: 767px) { .ml-h1 { font-size: 27px; } }

/* ===== Footer ===== */
.ml-footer { border-top: 1px solid var(--line); margin-top: 50px; padding: 40px 20px 100px; text-align: center; font-size: 14px; color: var(--soft); }
.ml-footer > div { margin: 6px 0; }
.ml-footer-link { color: var(--soft); }
.ml-footer-link:hover { color: var(--ink); }

/* ===== Sticky mobile bar ===== */
.ml-sticky { display: none; }
@media (max-width: 767px) {
  .ml-sticky {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 999;
    background: var(--dark); padding: 10px 10px calc(10px + env(safe-area-inset-bottom)); gap: 8px;
    box-shadow: 0 -4px 16px rgba(0,0,0,.3);
  }
  .ml-sticky-link {
    flex: 1; display: flex; align-items: center; justify-content: center;
    padding: 11px 4px; border: 1.5px solid #fff; font-family: 'Mosk'; font-weight: 700;
    font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
    color: #fff; text-decoration: none;
  }
  .ml-sticky-link:first-child { background: #fff; color: var(--dark); }
  body { padding-bottom: 66px; }
}

/* ===== Contact form states ===== */
.form-ok, .form-err { text-align: center; font-weight: 700; padding: 12px 14px; margin-bottom: 18px; }
.form-ok { background: #e6f2e2; color: #2e5c25; }
.form-err { background: #f7e3e2; color: #8c2320; }
.hp-field { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }


/* ===== Split hero (v1.5) ===== */
.ml-hero2 {
  min-height: 86vh; display: flex; align-items: center;
  background-color: #0d0b09; background-size: cover;
  background-position: 78% 45%; background-repeat: no-repeat;
  position: relative;
}
.ml-hero2::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg,
    #0d0b09 0%, #0d0b09 38%,
    rgba(13,11,9,.82) 52%, rgba(13,11,9,.35) 72%, rgba(13,11,9,.05) 100%);
}
.ml-hero2-left {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding: 110px 7% 120px; max-width: 62%;
}
.ml-hero2-left h1 {
  font-family: 'Chromate', serif; font-weight: 400; color: #fff;
  font-size: 52px; line-height: 1.3; letter-spacing: 5px;
  text-transform: uppercase; max-width: 580px;
}
.ml-hero2-rule { width: 160px; height: 2px; background: #fff; margin: 34px 0 30px; }
.ml-hero2-sub {
  font-family: 'Mosk'; font-weight: 700; color: #e9e4da;
  font-size: 14px; letter-spacing: 3px; line-height: 2; text-transform: uppercase;
  max-width: 540px;
}
.ml-hero2-btns { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 42px; }
.hb2 {
  font-family: 'Mosk'; font-weight: 700; font-size: 13px; letter-spacing: 2px;
  text-transform: uppercase; color: #fff; text-decoration: none;
  border: 1.5px solid rgba(255,255,255,.9); padding: 15px 28px;
  display: inline-flex; align-items: center; gap: 10px;
  transition: background .25s ease, color .25s ease;
}
.hb2:hover { background: #fff; color: #0d0b09; }
.hb2-arr { font-size: 15px; }
.ml-hero2-social {
  position: absolute; right: 24px; bottom: 44px; z-index: 2;
  display: flex; flex-direction: column; gap: 22px;
}
.ml-hero2-social a { color: #fff; opacity: .92; transition: opacity .2s ease, transform .2s ease; }
.ml-hero2-social a:hover { opacity: 1; transform: translateY(-2px); }
.ml-hero2-down {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  color: #fff; z-index: 2; animation: ml-bob 2.2s ease-in-out infinite;
}
@keyframes ml-bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,7px); } }
@media (max-width: 900px) {
  .ml-hero2 { min-height: 78vh; background-position: 60% 45%; }
  .ml-hero2::before {
    background: linear-gradient(180deg,
      rgba(13,11,9,.88) 0%, rgba(13,11,9,.72) 55%, rgba(13,11,9,.45) 100%);
  }
  .ml-hero2-left { max-width: none; padding: 72px 24px 84px; }
  .ml-hero2-left h1 { font-size: 33px; letter-spacing: 3px; }
  .ml-hero2-rule { margin: 26px 0 22px; }
  .ml-hero2-sub { font-size: 13px; letter-spacing: 2px; }
  .ml-hero2-social { flex-direction: row; right: 18px; bottom: 18px; gap: 18px; }
  .ml-hero2-down { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ml-hero2-down { animation: none; } }
