/*
Theme Name: Qniesse Food Service
Theme URI: https://qniessefood.com/
Author: Qniesse Food Service
Description: Custom bilingual website theme for Qniesse catering, popiah skin supply, and popiah stall licensing.
Version: 1.2.0
Text Domain: qniesse-food
*/

:root {
  --teal: #0f8d83;
  --teal-dark: #09665f;
  --maroon: #7a2438;
  --maroon-dark: #541727;
  --cream: #fbf5ea;
  --paper: #fffdf8;
  --ink: #231f20;
  --muted: #6e6564;
  --line: rgba(35, 31, 32, .14);
  --shadow: 0 30px 80px rgba(59, 38, 31, .12);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "DM Sans", "Noto Sans SC", sans-serif; line-height: 1.55; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }

.site-header {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  gap: 28px; min-height: 82px; padding: 12px clamp(22px, 5vw, 78px); background: rgba(255,253,248,.9);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 50%; background: var(--maroon); color: white; font: 700 25px/1 "Playfair Display", serif; }
.brand strong, .brand small { display: block; line-height: 1.05; }
.brand strong { font: 700 20px/1 "Playfair Display", serif; }
.brand small { margin-top: 5px; color: var(--muted); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.desktop-nav { display: flex; gap: clamp(18px, 2.3vw, 34px); }
.desktop-nav a { position: relative; text-decoration: none; font-size: 14px; font-weight: 600; }
.desktop-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 2px; background: var(--teal); transition: right .25s ease; }
.desktop-nav a:hover::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.language-toggle { display: flex; gap: 2px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: white; cursor: pointer; }
.language-toggle span { padding: 5px 8px; border-radius: 999px; color: var(--muted); font-size: 11px; font-weight: 700; }
.language-toggle .active { background: var(--teal); color: white; }

.section-shell { width: min(1180px, calc(100% - 44px)); margin-inline: auto; }
.section-space { padding-block: clamp(78px, 10vw, 138px); }
.hero { min-height: 720px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(30px, 6vw, 90px); padding-block: 80px; }
.eyebrow { margin: 0 0 18px; color: var(--teal-dark); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
h1, h2 { margin: 0; font-family: "Playfair Display", "Noto Sans SC", serif; line-height: .98; letter-spacing: -.035em; }
h1 { max-width: 720px; font-size: clamp(56px, 7vw, 96px); }
h2 { font-size: clamp(45px, 5vw, 70px); }
h1 em, h2 em { color: var(--maroon); font-weight: inherit; }
.hero-intro { max-width: 630px; margin: 30px 0; color: var(--muted); font-size: clamp(18px, 2vw, 22px); }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-bottom: 36px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 52px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--maroon); color: white; cursor: pointer; text-decoration: none; font-weight: 700; box-shadow: 0 12px 25px rgba(122,36,56,.18); transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); background: var(--maroon-dark); }
.button-small { min-height: 42px; padding-inline: 18px; font-size: 13px; }
.text-link { color: var(--teal-dark); font-weight: 700; text-underline-offset: 5px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-row span { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; }

.hero-art { position: relative; min-height: 570px; display: grid; place-items: center; }
.hero-photo-frame { position: relative; width: min(100%, 540px); height: 570px; overflow: hidden; border-radius: 260px 260px 34px 34px; background: var(--cream); box-shadow: var(--shadow); }
.hero-photo-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(50,20,28,.24)); pointer-events: none; }
.hero-photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 48% center; transform: scale(1.02); }
.floating-note { position: absolute; min-width: 135px; padding: 15px 18px; border: 1px solid rgba(255,255,255,.55); border-radius: 18px; background: rgba(255,255,255,.85); box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.floating-note strong, .floating-note span { display: block; }
.floating-note strong { color: var(--muted); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.floating-note span { margin-top: 3px; font: 700 17px/1.2 "Playfair Display", serif; }
.note-one { left: -10px; top: 110px; }.note-two { right: -5px; bottom: 105px; }

.marquee { overflow: hidden; padding: 14px 0; background: var(--teal); color: white; }
.marquee div { display: flex; width: max-content; gap: 25px; align-items: center; font-size: 12px; font-weight: 700; letter-spacing: .13em; animation: march 22s linear infinite; }
.marquee span, .marquee b { white-space: nowrap; }
@keyframes march { to { transform: translateX(-35%); } }

.section-heading { max-width: 770px; margin-bottom: 55px; }
.section-heading p:last-child { max-width: 590px; margin: 24px 0 0; color: var(--muted); font-size: 18px; }
.section-heading.compact { margin-bottom: 45px; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card { position: relative; min-height: 500px; display: flex; flex-direction: column; padding: 34px; border-radius: var(--radius); overflow: hidden; scroll-margin-top: 105px; }
.card-photo { width: calc(100% + 68px); height: 190px; margin: -34px -34px 28px; object-fit: cover; border-bottom: 1px solid rgba(255,255,255,.25); }
#licensing .card-photo { object-position: center 18%; }
#catering .card-photo { object-position: center 55%; }
.skin-visual { position: relative; width: calc(100% + 68px); height: 190px; margin: -34px -34px 28px; overflow: hidden; background: linear-gradient(145deg, rgba(255,255,255,.15), rgba(255,255,255,.02)); border-bottom: 1px solid rgba(255,255,255,.25); }
.skin-visual span { position: absolute; display: block; width: 170px; height: 170px; border-radius: 50%; background: #f4dfbd; border: 4px solid rgba(255,255,255,.55); box-shadow: 0 18px 38px rgba(0,0,0,.15); }
.skin-visual span:nth-child(1) { left: 18%; top: 32px; transform: rotate(-8deg); }
.skin-visual span:nth-child(2) { left: 36%; top: 8px; background: #f7e8cb; transform: rotate(4deg); }
.skin-visual span:nth-child(3) { left: 54%; top: 38px; background: #eed5aa; transform: rotate(12deg); }
.card-maroon { background: var(--maroon); color: white; }.card-teal { background: var(--teal); color: white; }.card-cream { background: var(--cream); border: 1px solid var(--line); }
.card-number { position: absolute; right: 24px; top: 20px; font: 700 54px/1 "Playfair Display", serif; opacity: .15; }
.card-icon { display: grid; place-items: center; width: 58px; height: 58px; border: 1px solid currentColor; border-radius: 50%; font-size: 23px; opacity: .9; }
.service-card h3 { margin: 24px 0 12px; font: 700 29px/1.1 "Playfair Display", "Noto Sans SC", serif; }
.service-card p { margin: 0 0 25px; opacity: .8; }
.service-card > a { margin-top: auto; font-weight: 700; text-underline-offset: 6px; }
.service-actions { display: grid; gap: 11px; margin-top: auto; }
.service-actions > a { font-weight: 700; text-underline-offset: 6px; }
.whatsapp-service-link { display: inline-flex; width: fit-content; align-items: center; min-height: 38px; padding: 0 15px; border: 1px solid currentColor; border-radius: 999px; text-decoration: none; font-size: 13px; transition: transform .2s ease, background .2s ease, color .2s ease; }
.whatsapp-service-link:hover { transform: translateY(-2px); }
.card-cream .whatsapp-service-link { border-color: #178b55; background: #178b55; color: white; }
.card-teal .whatsapp-service-link, .card-maroon .whatsapp-service-link { border-color: rgba(255,255,255,.65); background: rgba(255,255,255,.12); color: white; }

.story { display: grid; grid-template-columns: 1fr 1fr; min-height: 720px; background: var(--cream); }
.story-visual { min-height: 620px; padding: clamp(30px, 6vw, 90px); display: grid; place-items: center; background: linear-gradient(140deg, var(--teal), var(--teal-dark)); }
.story-photo { position: relative; width: min(560px, 100%); margin: 0; overflow: hidden; border-radius: 220px 220px 35px 35px; box-shadow: var(--shadow); }
.story-photo img { display: block; width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 61% center; }
.story-photo figcaption { position: absolute; left: 18px; right: 18px; bottom: 18px; padding: 12px 15px; border-radius: 14px; background: rgba(255,255,255,.86); color: var(--ink); font-size: 12px; font-weight: 700; backdrop-filter: blur(10px); }
.story-copy { align-self: center; max-width: 640px; padding: clamp(55px, 8vw, 120px); }
.story-copy p:not(.eyebrow) { color: var(--muted); font-size: 18px; }

.step-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.step-list li { display: grid; grid-template-columns: 100px 1fr; gap: 20px; align-items: start; padding: 30px 10px; border-bottom: 1px solid var(--line); }
.step-list > li > span { color: var(--teal); font: 700 29px/1 "Playfair Display", serif; }
.step-list h3 { margin: 0 0 7px; font: 700 23px/1.2 "Playfair Display", "Noto Sans SC", serif; }
.step-list p { margin: 0; color: var(--muted); }

.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 8vw, 120px); padding-inline: max(22px, calc((100vw - 1180px)/2)); background: var(--maroon); color: white; }
.contact-copy { align-self: center; }.eyebrow.light { color: #efc8a8; }
.contact-copy h2 em { color: #efc8a8; }
.contact-copy > p:not(.eyebrow) { max-width: 520px; color: rgba(255,255,255,.72); font-size: 18px; }
.contact-details { display: grid; gap: 11px; margin-top: 36px; color: rgba(255,255,255,.85); }
.contact-details div { display: flex; gap: 20px; }.contact-details a { text-underline-offset: 4px; }
.contact-form { display: grid; gap: 18px; padding: clamp(28px, 5vw, 55px); border-radius: var(--radius); background: white; color: var(--ink); box-shadow: var(--shadow); }
.contact-form label { display: grid; gap: 7px; font-size: 13px; font-weight: 700; }
.catering-fields { display: grid; gap: 18px; padding: 20px; border: 1px solid rgba(15,141,131,.22); border-radius: 16px; background: rgba(15,141,131,.06); }
.catering-fields[hidden] { display: none; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 13px 14px; border: 1px solid rgba(35,31,32,.2); border-radius: 12px; background: #fffdfa; color: var(--ink); outline: none; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,141,131,.12); }
.button-light { background: var(--teal); box-shadow: none; }.button-light:hover { background: var(--teal-dark); }
.form-status { min-height: 22px; margin: 0; color: var(--teal-dark); font-size: 13px; }

.whatsapp-float { position: fixed; right: clamp(16px, 2.5vw, 34px); bottom: clamp(16px, 2.5vw, 32px); z-index: 40; display: inline-flex; align-items: center; gap: 11px; min-height: 62px; padding: 9px 18px 9px 9px; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; background: #178b55; color: white; box-shadow: 0 16px 38px rgba(17,94,57,.3); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.whatsapp-float:hover { transform: translateY(-3px); box-shadow: 0 20px 45px rgba(17,94,57,.38); }
.whatsapp-float-icon { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; background: white; color: #178b55; font-size: 12px; font-weight: 800; letter-spacing: -.04em; }
.whatsapp-float-copy { display: grid; line-height: 1.08; }
.whatsapp-float-copy strong { font-size: 14px; }
.whatsapp-float-copy small { margin-top: 4px; color: rgba(255,255,255,.78); font-size: 11px; }

.site-footer { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 30px; padding: 25px clamp(22px, 5vw, 78px); background: #1d1819; color: rgba(255,255,255,.7); font-size: 12px; }
.footer-logo-wrap { width: 96px; height: 96px; overflow: hidden; border-radius: 8px; background: white; }
.footer-logo-wrap img { display: block; width: 100%; height: 100%; object-fit: contain; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 60px; }
  .hero-art { min-height: 520px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 380px; }
  .story, .contact { grid-template-columns: 1fr; }
  .story-copy { max-width: none; }
  .site-footer { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .site-header { min-height: 70px; padding-inline: 16px; }
  .brand strong { font-size: 17px; }.brand small { font-size: 8px; }.brand-mark { width: 39px; height: 39px; }
  .header-actions .button { display: none; }
  .section-shell { width: min(100% - 28px, 1180px); }
  .hero { min-height: auto; padding-block: 58px; }
  h1 { font-size: 51px; }.hero-intro { font-size: 17px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-art { min-height: 430px; }.hero-photo-frame { width: 100%; height: 430px; }
  .floating-note { min-width: 112px; padding: 11px 13px; }.note-one { left: 0; top: 50px; }.note-two { right: 0; bottom: 50px; }
  .service-card { padding: 27px; }
  .story-visual { min-height: 510px; padding: 30px; }.story-copy { padding: 65px 25px; }
  .step-list li { grid-template-columns: 58px 1fr; }
  .contact { padding-inline: 18px; }.contact-form { padding: 25px 20px; }
  body { padding-bottom: 74px; }
  .whatsapp-float { right: 14px; bottom: 12px; min-height: 56px; padding: 7px 16px 7px 7px; }
  .whatsapp-float-icon { width: 42px; height: 42px; flex-basis: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Dedicated service landing pages */
.service-page .site-header { position: sticky; }
.service-hero { min-height: 690px; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(35px, 7vw, 90px); align-items: center; padding-block: clamp(70px, 9vw, 120px); }
.service-hero h1 { font-size: clamp(52px, 6.4vw, 88px); }
.service-hero-copy { max-width: 720px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 38px; color: var(--muted); font-size: 12px; }
.breadcrumbs a { color: var(--teal-dark); text-underline-offset: 4px; }
.service-hero-photo { position: relative; margin: 0; overflow: hidden; border-radius: 240px 240px 32px 32px; box-shadow: var(--shadow); }
.service-hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 62%, rgba(40,18,24,.22)); }
.service-hero-photo img { display: block; width: 100%; min-height: 570px; max-height: 650px; object-fit: cover; }
.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.benefit-card { min-height: 220px; padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: var(--cream); }
.benefit-card span { color: var(--teal); font: 700 30px/1 "Playfair Display", serif; }
.benefit-card p { margin: 50px 0 0; font: 700 19px/1.35 "Playfair Display", "Noto Sans SC", serif; }
.service-local { background: var(--maroon); color: white; }
.service-local-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(45px, 9vw, 130px); align-items: center; }
.service-local h2 em { color: #efc8a8; }
.service-local-inner > div:last-child { color: rgba(255,255,255,.78); font-size: 18px; }
.service-local-inner a { display: inline-block; margin-top: 16px; color: white; font-weight: 700; text-underline-offset: 5px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 27px 48px 27px 4px; cursor: pointer; list-style: none; font: 700 21px/1.35 "Playfair Display", "Noto Sans SC", serif; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 7px; top: 22px; color: var(--teal); font: 500 30px/1 sans-serif; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 820px; margin: -3px 0 27px 4px; color: var(--muted); font-size: 17px; }
.service-final-cta { padding-block: clamp(70px, 9vw, 115px); background: var(--teal-dark); color: white; text-align: center; }
.service-final-cta h2 { max-width: 780px; margin-inline: auto; }
.service-final-cta .hero-actions { justify-content: center; margin: 34px 0 0; }
.light-link { color: white; }
.site-footer a { text-underline-offset: 4px; }

@media (max-width: 980px) {
  .service-hero, .service-local-inner { grid-template-columns: 1fr; }
  .service-hero-photo img { min-height: 480px; }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .service-hero { min-height: auto; padding-block: 48px 65px; }
  .service-hero h1 { font-size: 48px; }
  .service-hero-photo img { min-height: 410px; }
  .benefit-grid { grid-template-columns: 1fr; }
  .benefit-card { min-height: 170px; }
  .benefit-card p { margin-top: 28px; }
  .service-final-cta .hero-actions { align-items: center; }
}
