/* ============================================================
   Pizza Heart — สไตล์เว็บไซต์
   ชุดสี/ฟอนต์ยึดตาม Brand Assets (00 Brand Brief/brand.md)
   ============================================================ */

:root{
  /* ชุดสีแบรนด์ */
  --heart-red:   #800707;
  --deep-brick:  #7F2E2B;
  --terracotta:  #C27761;
  --dusty-rose:  #DBB6A9;
  --paper-cream: #F1EDE6;
  --off-white:   #FDF9F4;
  --chalk:       #CACACA;

  --ink:      #3A2422;
  --ink-soft: #6B534F;
  --line:     rgba(127,46,43,.16);

  --shadow-sm: 0 2px 8px rgba(58,36,34,.08);
  --shadow-md: 0 10px 30px rgba(58,36,34,.12);
  --shadow-lg: 0 20px 50px rgba(58,36,34,.16);

  --radius:    18px;
  --radius-lg: 28px;

  --font-head: "Mali","Trebuchet MS","Segoe UI",system-ui,sans-serif;
  --font-body: "Sarabun","Segoe UI",system-ui,-apple-system,sans-serif;

  --dock-h: 0px;
}

*,*::before,*::after{ box-sizing:border-box; }

html{ scroll-behavior:smooth; scroll-padding-top:76px; }

body{
  margin:0;
  background:var(--paper-cream);
  color:var(--ink);
  font-family:var(--font-body);
  font-size:17px;
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
  padding-bottom:var(--dock-h);
}

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

a{ color:var(--heart-red); }

h1,h2,h3{
  font-family:var(--font-head);
  font-weight:700;
  line-height:1.25;
  color:var(--heart-red);
  margin:0;
}

.visually-hidden{
  position:absolute; width:1px; height:1px;
  padding:0; margin:-1px; overflow:hidden;
  clip:rect(0 0 0 0); white-space:nowrap; border:0;
}

.wrap{ width:min(1120px,calc(100% - 40px)); margin-inline:auto; }
.wrap--narrow{ width:min(720px,calc(100% - 40px)); }

/* ---------- ลายกิงแฮม ---------- */
.gingham-band{
  height:22px;
  background-color:var(--paper-cream);
  background-image:
    repeating-linear-gradient(90deg,
      rgba(194,119,97,.55) 0 14px, transparent 14px 28px),
    repeating-linear-gradient(0deg,
      rgba(219,182,169,.55) 0 14px, transparent 14px 28px);
}

/* ============================================================
   แถบบน
   ============================================================ */
.topbar{
  position:sticky; top:0; z-index:60;
  display:flex; align-items:center; gap:16px;
  padding:10px clamp(16px,4vw,32px);
  background:rgba(253,249,244,.92);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}

.topbar__brand{
  display:flex; align-items:center; gap:10px;
  font-family:var(--font-head); font-weight:700;
  font-size:19px; color:var(--heart-red); text-decoration:none;
  margin-right:auto;
}
.topbar__brand img{ border-radius:50%; box-shadow:var(--shadow-sm); }

.topbar__nav{ display:flex; gap:22px; }
.topbar__nav a{
  color:var(--deep-brick); text-decoration:none;
  font-weight:500; font-size:16px;
  padding-bottom:2px; border-bottom:2px solid transparent;
}
.topbar__nav a:hover{ border-bottom-color:var(--terracotta); }

.topbar__cta{
  background:var(--heart-red); color:var(--off-white);
  text-decoration:none; font-weight:600; font-size:15px;
  padding:9px 18px; border-radius:999px;
  box-shadow:var(--shadow-sm);
  white-space:nowrap;
}
.topbar__cta:hover{ background:var(--deep-brick); }

@media (max-width:820px){
  .topbar__nav{ display:none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero{ position:relative; isolation:isolate; }

.hero__photo{ position:absolute; inset:0; z-index:-2; overflow:hidden; }
.hero__photo img{ width:100%; height:100%; object-fit:cover; object-position:center 58%; }
.hero__photo::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(180deg,
    rgba(58,36,34,.30) 0%,
    rgba(58,36,34,.55) 45%,
    rgba(128,7,7,.80) 100%);
}

.hero__inner{
  position:relative;
  width:min(760px,calc(100% - 40px));
  margin-inline:auto;
  padding:clamp(64px,10vw,120px) 0 clamp(56px,8vw,96px);
  text-align:center;
  color:var(--off-white);
}

.hero__logo{
  width:104px; height:104px; margin:0 auto 22px;
  border-radius:50%; box-shadow:var(--shadow-lg);
}

.hero__eyebrow{
  font-family:var(--font-head); font-weight:600;
  letter-spacing:.22em; font-size:13px;
  margin:0 0 14px; color:var(--dusty-rose);
  text-transform:uppercase;
}

.hero__title{
  color:var(--off-white);
  font-size:clamp(31px,6vw,52px);
  text-shadow:0 3px 22px rgba(0,0,0,.4);
  margin-bottom:16px;
}

.hero__lead{
  font-size:clamp(16px,2.2vw,19px);
  max-width:56ch; margin:0 auto 26px;
  color:rgba(253,249,244,.94);
  text-shadow:0 2px 14px rgba(0,0,0,.35);
}

/* ป้ายเปิด/ปิด */
.statuspill{
  display:inline-flex; align-items:center; gap:10px;
  background:rgba(253,249,244,.95);
  color:var(--ink);
  padding:9px 20px; border-radius:999px;
  font-weight:600; font-size:15px;
  box-shadow:var(--shadow-md);
  margin-bottom:28px;
}
.statuspill__dot{
  width:10px; height:10px; border-radius:50%;
  background:var(--chalk); flex:none;
}
.statuspill--open  .statuspill__dot{ background:#2E8B4A; box-shadow:0 0 0 4px rgba(46,139,74,.2); }
.statuspill--closed .statuspill__dot{ background:#B4443C; box-shadow:0 0 0 4px rgba(180,68,60,.2); }

.hero__actions{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }

/* ============================================================
   ปุ่ม
   ============================================================ */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family:var(--font-body); font-weight:600; font-size:16px;
  text-decoration:none; cursor:pointer;
  padding:13px 26px; border-radius:999px; border:2px solid transparent;
  transition:transform .12s ease, background .18s ease, color .18s ease;
}
.btn:active{ transform:translateY(1px); }

.btn--primary{ background:var(--heart-red); color:var(--off-white); box-shadow:var(--shadow-md); }
.btn--primary:hover{ background:var(--deep-brick); }

.btn--ghost{ background:rgba(253,249,244,.14); color:var(--off-white); border-color:rgba(253,249,244,.7); }
.btn--ghost:hover{ background:var(--off-white); color:var(--heart-red); }

.btn--line{ background:#06C755; color:#fff; box-shadow:var(--shadow-md); }
.btn--line:hover{ background:#05a948; }

.btn--lg{ padding:16px 34px; font-size:17px; }

/* ปุ่มนำทาง */
.btn--nav{
  background:var(--off-white);
  color:var(--deep-brick);
  border-color:var(--line);
  padding:14px 20px;
  justify-content:flex-start;
  text-align:left;
  box-shadow:var(--shadow-sm);
}
.btn--nav:hover{ border-color:var(--terracotta); background:#fff; }
.btn--nav strong{ display:block; font-size:16px; color:var(--heart-red); }
.btn--nav small{ display:block; font-size:13px; font-weight:400; color:var(--ink-soft); }
.navbtns__icon{ font-size:22px; line-height:1; flex:none; }

/* ปุ่มโซเชียล */
.socials{ display:flex; flex-wrap:wrap; gap:10px; margin-top:4px; }
.social{
  display:inline-flex; align-items:center; gap:9px;
  padding:9px 16px 9px 10px; border-radius:999px;
  background:var(--off-white); border:2px solid var(--line);
  color:var(--deep-brick); text-decoration:none;
  font-family:var(--font-body); font-weight:600; font-size:15px;
  box-shadow:var(--shadow-sm);
  transition:border-color .18s ease, background .18s ease;
}
.social:hover{ border-color:var(--terracotta); background:#fff; }
.social__icon{
  display:grid; place-items:center; flex:none;
  width:26px; height:26px; border-radius:50%;
  color:#fff; font-size:12px; font-weight:700; line-height:1;
  text-transform:lowercase;
}
.social--facebook  .social__icon{ background:#1877F2; font-size:15px; }
.social--instagram .social__icon{
  background:radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

/* ============================================================
   Section ทั่วไป
   ============================================================ */
.section{ padding:clamp(56px,8vw,92px) 0; }
.section--tint{ background:var(--off-white); }

.section__head{ text-align:center; margin-bottom:clamp(30px,5vw,48px); }

.section__eyebrow{
  font-family:var(--font-head); font-weight:600;
  letter-spacing:.22em; text-transform:uppercase;
  font-size:12px; color:var(--terracotta); margin:0 0 8px;
}
.section__title{ font-size:clamp(27px,4.4vw,40px); margin-bottom:10px; }
.section__sub{ margin:0; color:var(--ink-soft); font-size:16px; }

/* ============================================================
   ตัวกรองเมนู
   ============================================================ */
.filters{
  display:flex; flex-wrap:wrap; gap:10px;
  justify-content:center; margin-bottom:36px;
}
.filters button{
  font-family:var(--font-body); font-size:15px; font-weight:600;
  padding:9px 20px; border-radius:999px; cursor:pointer;
  background:transparent; color:var(--deep-brick);
  border:2px solid var(--line);
  transition:all .16s ease;
}
.filters button:hover{ border-color:var(--terracotta); }
.filters button[aria-selected="true"]{
  background:var(--heart-red); color:var(--off-white); border-color:var(--heart-red);
}

/* ============================================================
   เมนู
   ============================================================ */
.menugroup{ margin-bottom:clamp(40px,6vw,64px); }
.menugroup[hidden]{ display:none; }

.menugroup__head{
  display:flex; align-items:baseline; gap:14px;
  flex-wrap:wrap; margin-bottom:22px;
  padding-bottom:12px; border-bottom:2px dashed var(--dusty-rose);
}
.menugroup__title{ font-size:clamp(21px,3vw,27px); margin:0; }
.menugroup__sub{
  margin:0; color:var(--deep-brick);
  font-weight:600; font-size:15px;
  background:var(--dusty-rose); padding:3px 14px; border-radius:999px;
}

.menugrid{
  display:grid; gap:22px;
  grid-template-columns:repeat(auto-fill,minmax(250px,1fr));
}

.card{
  background:var(--off-white);
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  overflow:hidden;
  display:flex; flex-direction:column;
  box-shadow:var(--shadow-sm);
  transition:transform .18s ease, box-shadow .18s ease;
}
.card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-md); }

/* รูปพิซซ่าต้นฉบับมี 2 แบบปนกัน: บางไฟล์พื้นหลังใส บางไฟล์เป็นสี่เหลี่ยมขาว
   จึงตั้งพื้นหลังกล่องรูปให้ไล่เฉดขาวแบบเดียวกับไฟล์พื้นขาว ทั้ง 12 หน้าจะดูเหมือนกันหมด */
.card__media{
  position:relative;
  aspect-ratio:1/1;
  background:radial-gradient(circle at 50% 45%, #fff 0%, #fff 58%, #F2F1F0 100%);
  display:grid; place-items:center;
  padding:0;
  border-bottom:1px solid var(--line);
}
.card__media img{ width:100%; height:100%; object-fit:contain; }

.card__body{ padding:16px 18px 20px; display:flex; flex-direction:column; gap:6px; flex:1; }

.card__name{
  font-family:var(--font-head); font-weight:700;
  font-size:19px; color:var(--heart-red); margin:0;
  letter-spacing:.01em;
}
.card__nameth{ font-size:15px; color:var(--deep-brick); font-weight:600; margin:0; }
.card__desc{ font-size:14.5px; color:var(--ink-soft); margin:0 0 4px; flex:1; }

.card__prices{
  display:flex; gap:8px; flex-wrap:wrap;
  padding-top:12px; border-top:1px dashed var(--dusty-rose);
}
.pricetag{
  display:inline-flex; align-items:baseline; gap:5px;
  background:var(--heart-red); color:var(--off-white);
  padding:5px 14px; border-radius:999px;
  font-size:15px; font-weight:600;
}
.pricetag small{ font-size:12px; opacity:.85; font-weight:400; }
.pricetag--tray{ background:var(--deep-brick); }

/* ============================================================
   ตารางเวลา
   ============================================================ */
.hourscard{
  background:var(--paper-cream);
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  padding:clamp(20px,4vw,34px);
  box-shadow:var(--shadow-sm);
}

.hours{ width:100%; border-collapse:collapse; }
.hours td{
  padding:13px 6px;
  border-bottom:1px dashed var(--dusty-rose);
  font-size:16.5px;
}
.hours tr:last-child td{ border-bottom:none; }

.hours__day{ font-weight:600; color:var(--deep-brick); }
.hours__time{ text-align:right; font-weight:600; color:var(--heart-red); white-space:nowrap; }
.hours__time--closed{ color:var(--ink-soft); font-weight:400; }

.hours tr[data-today="true"]{ background:rgba(219,182,169,.32); }
.hours tr[data-today="true"] .hours__day::after{
  content:"วันนี้";
  display:inline-block; margin-left:9px;
  background:var(--heart-red); color:var(--off-white);
  font-size:11.5px; font-weight:600;
  padding:2px 10px; border-radius:999px;
  vertical-align:middle;
}

.hourscard__now{
  margin:20px 0 0; padding-top:18px;
  border-top:2px solid var(--line);
  text-align:center; font-weight:600; font-size:16px;
  color:var(--deep-brick);
}

/* ============================================================
   แผนที่ + ที่อยู่
   ============================================================ */
.location{
  display:grid; gap:clamp(24px,4vw,40px);
  grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);
  align-items:start;
}
@media (max-width:900px){
  .location{ grid-template-columns:1fr; }
}

.infoline{ margin-bottom:22px; }
.infoline__label{
  display:block;
  font-family:var(--font-head); font-weight:600;
  font-size:12px; letter-spacing:.16em; text-transform:uppercase;
  color:var(--terracotta); margin-bottom:4px;
}
.infoline__value{ margin:0; font-size:17.5px; font-weight:500; color:var(--ink); }
.infoline__value a{ color:var(--heart-red); font-weight:600; text-decoration:none; }
.infoline__value a:hover{ text-decoration:underline; }
.infoline__hint{ margin:4px 0 0; font-size:15px; color:var(--ink-soft); }

.navlabel{
  margin:28px 0 12px;
  font-family:var(--font-head); font-weight:600;
  color:var(--heart-red); font-size:17px;
}

.navbtns{ display:grid; gap:10px; }
.navnote{ margin:12px 0 0; font-size:13.5px; color:var(--ink-soft); }

.location__map{
  border-radius:var(--radius-lg);
  overflow:hidden;
  border:1px solid var(--line);
  box-shadow:var(--shadow-md);
  background:var(--off-white);
}
.location__map iframe{
  display:block; width:100%; height:100%;
  min-height:420px; border:0;
}
.mapfallback{ padding:24px; text-align:center; }

/* ============================================================
   เรื่องของเรา
   ============================================================ */
.storygrid{
  display:grid; gap:clamp(22px,4vw,36px);
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
}

.storycard{
  background:var(--paper-cream);
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  overflow:hidden;
  box-shadow:var(--shadow-sm);
}
.storycard img{ width:100%; aspect-ratio:4/3; object-fit:cover; }
.storycard__body{ padding:22px 24px 26px; }
.storycard__title{ font-size:21px; margin:0 0 8px; }
.storycard__text{ margin:0; color:var(--ink-soft); font-size:16px; }

/* ============================================================
   CTA ปิดท้าย
   ============================================================ */
.cta{
  background:var(--heart-red);
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.045) 0 18px, transparent 18px 36px),
    repeating-linear-gradient(0deg,  rgba(255,255,255,.045) 0 18px, transparent 18px 36px);
  color:var(--off-white);
}
.cta__inner{ text-align:center; }
.cta__title{ color:var(--off-white); font-size:clamp(25px,4vw,36px); margin-bottom:12px; }
.cta__lead{ margin:0 auto 26px; max-width:48ch; color:rgba(253,249,244,.9); }
.cta__btns{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.cta__btns .btn--primary{ background:var(--off-white); color:var(--heart-red); }
.cta__btns .btn--primary:hover{ background:#fff; }
.cta__note{ margin:22px 0 0; font-size:15px; color:var(--dusty-rose); }

/* ============================================================
   Footer
   ============================================================ */
.footer{ background:var(--deep-brick); color:var(--dusty-rose); padding:44px 0 40px; text-align:center; }
.footer__logo{ width:66px; height:66px; margin:0 auto 16px; border-radius:50%; opacity:.95; }
.footer__tag{ font-family:var(--font-head); font-weight:600; color:var(--off-white); margin:0 0 8px; font-size:17px; }
.footer__addr{ margin:0 0 6px; font-size:15px; }
.footer__socials{ display:flex; justify-content:center; flex-wrap:wrap; gap:18px; margin:0 0 14px; }
.footer__socials:empty{ display:none; }
.footer__socials a{
  color:var(--off-white); text-decoration:none; font-size:15px; font-weight:600;
  border-bottom:1px solid rgba(253,249,244,.45); padding-bottom:2px;
}
.footer__socials a:hover{ border-bottom-color:var(--off-white); }
.footer__meta{ margin:0; font-size:13px; opacity:.7; letter-spacing:.14em; }

/* ============================================================
   ปุ่มลอยสำหรับมือถือ
   ============================================================ */
.dock{ display:none; }

@media (max-width:720px){
  :root{ --dock-h:74px; }

  .dock{
    display:grid; grid-template-columns:1fr 1fr; gap:10px;
    position:fixed; left:0; right:0; bottom:0; z-index:80;
    padding:11px 14px calc(11px + env(safe-area-inset-bottom));
    background:rgba(253,249,244,.96);
    backdrop-filter:blur(10px);
    border-top:1px solid var(--line);
  }
  .dock__btn{
    display:flex; align-items:center; justify-content:center;
    padding:13px 8px; border-radius:999px;
    font-weight:600; font-size:16px; text-decoration:none;
  }
  .dock__btn--call{ background:var(--heart-red); color:var(--off-white); }
  .dock__btn--nav{ background:var(--off-white); color:var(--heart-red); border:2px solid var(--heart-red); }

  .topbar__cta{ display:none; }
  .hero__logo{ width:84px; height:84px; }
  .menugrid{ grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); gap:14px; }
  .card__body{ padding:12px 13px 16px; }
  .card__name{ font-size:16.5px; }
  .card__nameth{ font-size:13.5px; }
  .card__desc{ font-size:13px; }
  .pricetag{ font-size:13.5px; padding:4px 11px; }
  .location__map iframe{ min-height:320px; }
}

@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  .card,.btn{ transition:none; }
}
