/* Al Barak Kitchen – homepage styles (static HTML/CSS) */
:root {
    --background: #fcfaf6;
    --foreground: #1d1a17;
    --primary: #26221f;
    --primary-fg: #fcfaf6;
    --secondary: #efece6;
    --card: #ffffff;
    --accent: #d4b586;
    --muted-fg: #68625c;
    --border: #e1ddd8;
    --whatsapp: #36a15d;
    --whatsapp-fg: #fdfcf9;
    --radius-md: 6px;
    --radius-lg: 8px;
    --shadow-card: 0 1px 2px rgba(29, 26, 23, .06), 0 12px 32px rgba(29, 26, 23, .08);
    --font-sans: "Tajawal", system-ui, sans-serif;
    --font-display: "Almarai", "Tajawal", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.5;
    color: var(--foreground);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.ic { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic-3 { width: 14px; height: 14px; }
.ic-5 { width: 20px; height: 20px; }
.ic-6 { width: 24px; height: 24px; }
.accent { color: var(--accent); }

.container { width: 100%; max-width: 1248px; margin-inline: auto; padding-inline: 20px; }
.mt-1 { margin-top: 6px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 20px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 20px; border-radius: var(--radius-md); border: 1px solid transparent;
    font-size: 14px; line-height: 20px; font-weight: 700; white-space: nowrap;
    transition: color .15s cubic-bezier(.4,0,.2,1), background-color .15s cubic-bezier(.4,0,.2,1), border-color .15s cubic-bezier(.4,0,.2,1), opacity .15s;
}
.btn-wa { background: var(--whatsapp); color: var(--whatsapp-fg); border-color: var(--whatsapp); }
.btn-wa:hover { opacity: .9; }
.btn-dark { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); }
.btn-dark:hover { background: rgba(38, 34, 31, .9); }
.btn-light { background: #fff; color: var(--foreground); border-color: var(--border); }
.btn-light:hover { background: var(--secondary); }
.btn-ghost { background: transparent; color: var(--primary-fg); border-color: rgba(252, 250, 246, .3); }
.btn-ghost:hover { background: rgba(252, 250, 246, .1); }
.btn-dark-outline { background: transparent; color: var(--primary-fg); border-color: rgba(252, 250, 246, .3); }
.btn-dark-outline:hover { background: rgba(252, 250, 246, .1); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 40;
    background: rgba(252, 250, 246, .95);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.logo-slot { display: flex; align-items: center; }
.logo-ph {
    display: inline-flex; align-items: center; justify-content: center;
    height: 40px; min-width: 120px; padding: 0 12px;
    border: 1.5px dashed #b9ab95; border-radius: var(--radius-md);
    background: repeating-linear-gradient(135deg, rgba(212,181,134,.12) 0 6px, transparent 6px 12px);
    color: var(--muted-fg); font-size: 12px; font-weight: 700; white-space: nowrap;
}
.logo-ph-light { border-color: rgba(212,181,134,.6); color: rgba(252,250,246,.8); background: repeating-linear-gradient(135deg, rgba(212,181,134,.14) 0 6px, transparent 6px 12px); }

.main-nav { display: none; align-items: center; gap: 4px; }
.main-nav a {
    position: relative; padding: 8px 12px;
    font-size: 14px; line-height: 20px; font-weight: 700; color: var(--muted-fg);
    transition: color .15s cubic-bezier(.4,0,.2,1);
}
.main-nav a::after {
    content: ""; position: absolute; inset-inline: 12px; bottom: 4px; height: 2px; width: 0;
    background: var(--accent); transition: all .15s cubic-bezier(.4,0,.2,1);
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--foreground); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { width: calc(100% - 24px); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.header-wa { display: none; }
.menu-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border: 1px solid var(--border); border-radius: var(--radius-md);
    background: transparent; cursor: pointer;
}
.menu-btn .when-open { display: none; }
.menu-btn[aria-expanded="true"] .when-open { display: block; }
.menu-btn[aria-expanded="true"] .when-closed { display: none; }

.mobile-nav { display: none; border-top: 1px solid var(--border); background: var(--card); padding: 12px 20px; }
.mobile-nav.is-open { display: grid; }
.mobile-nav a { display: block; padding: 10px 12px; border-radius: var(--radius-md); font-size: 14px; font-weight: 700; }
.mobile-nav a + a { margin-top: 4px; }
.mobile-nav a[aria-current="page"], .mobile-nav a:hover { background: var(--secondary); }

@media (min-width: 640px) { .header-wa { display: inline-flex; } }
@media (min-width: 1024px) {
    .main-nav { display: flex; }
    .menu-btn, .mobile-nav { display: none !important; }
}
/* 7 menu items: keep each label on one line; tighten spacing on small laptops */
.main-nav a { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1199px) {
    .main-nav { gap: 0; }
    .main-nav a { padding-inline: 8px; font-size: 13.5px; }
    .main-nav a::after { inset-inline: 8px; }
    .main-nav a:hover::after, .main-nav a[aria-current="page"]::after { width: calc(100% - 16px); }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--primary); color: var(--primary-fg); }
.hero-img { position: absolute; inset: 0; z-index: -10; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.hero-inner { padding-block: 80px; }
.hero h1 { margin-top: 12px; max-width: 768px; font-size: 30px; line-height: 1.3; }
.hero-lead { margin-top: 20px; max-width: 672px; font-size: 16.8px; line-height: 1.95; opacity: .9; }
.hero-btns { margin-top: 32px; }
@media (min-width: 768px) {
    .hero-inner { padding-block: 112px; }
    .hero h1 { font-size: 48px; }
}

/* ---------- Generic sections ---------- */
/* Tight spacing on every page: each side ≈2.5% of the screen height, so ≈5% between two sections */
:root { --sec-pad: clamp(14px, 2.5vh, 26px); --block-gap: 20px; }
.section { padding-block: var(--sec-pad); }
.bg-secondary { background: var(--secondary); }
.bg-primary { background: var(--primary); color: var(--primary-fg); }
.section-head { max-width: 672px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; line-height: 1.95; font-weight: 700; color: var(--muted-fg); }
.eyebrow-accent { color: var(--accent); margin-bottom: 0; }
.bg-primary .eyebrow { color: var(--accent); }
h2 { font-size: 24px; line-height: 1.5; }
@media (min-width: 768px) { h2 { font-size: 30px; line-height: 1.2; } }
.section-sub { margin-top: 12px; font-size: 15.2px; line-height: 1.95; color: var(--muted-fg); }

.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.surface-card {
    display: block; background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 20px;
}
.surface-card h3 { font-size: 16px; line-height: 1.5; }
.surface-card p { font-size: 14px; line-height: 20px; color: var(--muted-fg); }

/* intro */
.section-intro { padding-block: var(--sec-pad); }
.intro-grid { display: grid; gap: var(--block-gap); }
@media (min-width: 1024px) { .intro-grid { grid-template-columns: 1.2fr .8fr; align-items: center; } }
.rule-accent { border-inline-start: 3px solid var(--accent); padding-inline-start: 14px; font-size: 16.8px; line-height: 1.95; color: var(--muted-fg); }

/* services */
.card-link { transition: border-color .15s cubic-bezier(.4,0,.2,1); }
.card-link:hover { border-color: var(--accent); }
.card-link p { margin-top: 8px; }
.card-link .more { margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--foreground); }
.card-link .more .ic { transition: transform .15s cubic-bezier(.4,0,.2,1); }
.card-link:hover .more .ic { transform: translateX(-4px); }

/* works */
.work { padding: 0; overflow: hidden; }
.work img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--secondary); }
.work figcaption { padding: 16px; font-size: 14px; font-weight: 700; }
.text-link { display: inline-block; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

/* systems */
.split { display: grid; gap: var(--block-gap); }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; align-items: center; } }
.links-row { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; font-weight: 700; }
.u-link { text-decoration: underline; text-underline-offset: 4px; }
.u-link:hover { color: var(--muted-fg); }

/* steps */
.steps li { border: 1px solid rgba(252, 250, 246, .15); border-radius: var(--radius-lg); padding: 20px; line-height: 1.95; }
.steps span { font-family: var(--font-display); font-size: 14px; font-weight: 800; color: var(--accent); }
.steps p { margin-top: 8px; font-weight: 700; }

/* areas */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { border: 1px solid var(--border); background: var(--card); border-radius: 9999px; padding: 6px 16px; font-size: 14px; line-height: 20px; }

/* contact cards */
.contact-card {
    display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px;
    transition: border-color .15s cubic-bezier(.4,0,.2,1);
}
.contact-card:hover { border-color: var(--accent); }
.contact-card .ic { margin-bottom: 8px; }
.contact-card .wa { color: var(--whatsapp); }
.cc-label { font-size: 13px; color: var(--muted-fg); font-weight: 700; }
.contact-card strong { font-family: var(--font-display); font-size: 18px; line-height: 1.5; }

/* faq + form */
.faq-grid { display: grid; gap: var(--block-gap); }
@media (min-width: 1024px) { .faq-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.faq-list { border-block: 1px solid var(--border); }
.faq-list details { padding-block: 16px; }
.faq-list details + details { border-top: 1px solid var(--border); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; font-size: 15.2px; line-height: 1.95; font-weight: 700; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: var(--accent); font-size: 20px; line-height: 1; transition: transform .15s cubic-bezier(.4,0,.2,1); }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { margin-top: 12px; font-size: 14px; line-height: 1.95; color: var(--muted-fg); }

.quote-form { padding: 20px; }
@media (min-width: 768px) { .quote-form { padding: 24px; } }
.form-title { font-size: 18px; line-height: 28px; }
.quote-form .form-sub { margin-top: 4px; font-size: 14px; line-height: 20px; color: var(--muted-fg); }
.form-grid { margin-top: 20px; display: grid; gap: 16px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .span-2 { grid-column: span 2; } }
.form-grid label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; }
.form-grid input, .form-grid select, .form-grid textarea {
    width: 100%; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--card);
    padding: 10px 12px; font-size: 14px; outline: none; transition: border-color .15s cubic-bezier(.4,0,.2,1);
}
.form-grid input[dir="ltr"] { text-align: right; }
.form-grid textarea { resize: vertical; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: var(--accent); }
.form-grid [aria-invalid="true"] { border-color: #c0392b; }
.form-note { margin-top: 16px; font-size: 13px; color: var(--muted-fg); }
.form-error { margin-top: 12px; font-size: 13px; font-weight: 700; color: #c0392b; }
.btn-submit {
    margin-top: 20px; width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border-radius: var(--radius-md); background: var(--primary); color: var(--primary-fg);
    padding: 12px 20px; font-size: 14px; font-weight: 700; cursor: pointer; transition: background-color .15s;
}
.btn-submit:hover { background: rgba(38, 34, 31, .9); }

/* cta */
.cta { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 24px; }
@media (min-width: 768px) { .cta { flex-direction: row; align-items: center; } }
.cta-sub { margin-top: 8px; font-size: 14px; line-height: 20px; opacity: .85; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 0; border-top: 1px solid var(--border); background: var(--primary); color: var(--primary-fg); padding-bottom: 96px; }
@media (min-width: 768px) { .site-footer { padding-bottom: 0; } }
.footer-grid { display: grid; gap: 40px; padding-block: 56px; }
/* Phones: the two service lists sit side by side; about + areas span the full width */
@media (max-width: 767px) {
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 20px; }
    .footer-grid > :first-child, .footer-grid > :last-child { grid-column: 1 / -1; }
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.footer-about { margin-top: 16px; font-size: 14px; line-height: 1.95; opacity: .8; }
.footer-contact { margin-top: 20px; display: grid; gap: 12px; font-size: 14px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 8px; }
.footer-contact .ic { margin-top: 3px; color: var(--accent); }
.footer-contact a:hover { text-decoration: underline; }
.site-footer h2 { font-size: 14px; line-height: 20px; color: var(--accent); }
.site-footer nav ul { margin-top: 16px; display: grid; gap: 10px; font-size: 14px; }
.site-footer nav a { opacity: .85; transition: opacity .15s; }
.site-footer nav a:hover { opacity: 1; text-decoration: underline; }
.footer-note { margin-top: 16px; font-size: 12px; line-height: 28px; opacity: .7; }
.footer-bottom { border-top: 1px solid rgba(252, 250, 246, .15); }
.footer-bottom-inner { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 8px; padding-block: 20px; font-size: 12px; opacity: .75; text-align: center; }
.footer-bottom-inner a:hover { text-decoration: underline; }
@media (min-width: 768px) { .footer-bottom-inner { flex-direction: row; text-align: start; } }

/* ---------- Mobile quick bar ---------- */
.quick-bar {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 50;
    display: flex; border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, .95); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    padding-bottom: env(safe-area-inset-bottom);
}
.quick-bar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding-block: 10px; font-size: 12px; font-weight: 700; }
.qb-wa { background: var(--whatsapp); color: var(--whatsapp-fg); }
.qb-call { background: var(--primary); color: var(--primary-fg); }
.qb-quote { background: var(--card); color: var(--foreground); }
@media (min-width: 768px) { .quick-bar { display: none; } }

/* =========================================================
   Inner pages
   ========================================================= */
.page-head { padding-top: var(--sec-pad); padding-bottom: var(--sec-pad); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 12px; color: var(--muted-fg); }
.breadcrumb li { display: flex; align-items: center; gap: 4px; }
.breadcrumb a:hover { color: var(--foreground); text-decoration: underline; }
.breadcrumb [aria-current] { font-weight: 700; color: var(--foreground); }
.breadcrumb .ic { width: 14px; height: 14px; }
.head-grid { margin-top: 16px; display: grid; gap: var(--block-gap); }
@media (min-width: 1024px) {
    .head-grid { grid-template-columns: 1.1fr .9fr; align-items: start; }
    .head-grid.even { grid-template-columns: 1fr 1fr; align-items: center; }
    .head-grid.contact { grid-template-columns: 1fr 1.05fr; }
}
.page-title { font-size: 30px; line-height: 1.375; }
@media (min-width: 768px) { .page-title { font-size: 36px; } }
.page-lead { margin-top: 16px; max-width: 576px; font-size: 16.3px; line-height: 1.95; color: var(--muted-fg); }
.page-lead.wide { max-width: 672px; }
.head-btns { margin-top: 28px; }
.head-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow-card); background: var(--secondary); }

/* image strip */
.strip { padding-block: var(--sec-pad); }
.strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); background: var(--card); }

/* article + aside layout */
.content-grid { display: grid; gap: var(--block-gap); }
@media (min-width: 1024px) { .content-grid { grid-template-columns: 1.1fr .9fr; align-items: start; } }
.articles { display: grid; gap: var(--block-gap); }
.articles h2 { font-size: 20px; line-height: 1.4; }
@media (min-width: 768px) { .articles h2 { font-size: 24px; } }
.articles h2.rule-accent { color: var(--foreground); line-height: 1.4; }
.articles p { margin-top: 12px; font-size: 15.2px; line-height: 1.95; color: var(--muted-fg); }
.dots { margin-top: 16px; display: grid; gap: 10px; }
.dots li { display: flex; gap: 10px; font-size: 15.2px; line-height: 1.95; color: var(--muted-fg); }
.dots li::before { content: ""; flex-shrink: 0; width: 6px; height: 6px; margin-top: 11px; border-radius: 9999px; background: var(--accent); }
.aside { padding: 24px; height: fit-content; }
@media (min-width: 1024px) { .aside { position: sticky; top: 88px; } }
.aside h2 { font-size: 18px; line-height: 28px; }
.aside ul { margin-top: 16px; display: grid; gap: 10px; font-size: 14px; }
.aside ul a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.aside ul a:hover { color: var(--muted-fg); }
.aside .btn-row { margin-top: 20px; }
.aside .btn { flex: 1 1 auto; }

/* product / project cards */
.media-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.media-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--secondary); }
.media-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.media-body .tag { font-size: 12px; font-weight: 700; color: var(--accent); }
.media-body h2, .media-body h3 { margin-top: 4px; font-size: 16px; line-height: 1.5; }
.media-body p { margin-top: 8px; flex: 1; }
.media-body .more { margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; }
.media-body .more:hover { text-decoration: underline; }
.grid.gap-5 { gap: 20px; }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
    border: 1px solid var(--border); background: var(--card); border-radius: 9999px;
    padding: 6px 16px; font-size: 14px; line-height: 20px; cursor: pointer;
    transition: border-color .15s, background-color .15s, color .15s;
}
.filters button:hover { border-color: var(--accent); }
.filters button[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--primary-fg); }
.is-hidden { display: none !important; }

/* about */
.value-card { padding: 24px; }
.value-card h2, .value-card h3 { font-size: 18px; line-height: 28px; }
.value-card p { margin-top: 8px; }
.grid-md-2 { display: grid; gap: 20px; }
@media (min-width: 768px) { .grid-md-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.facts { padding: 0; }
.facts dl { display: grid; }
.facts dl > div { display: grid; gap: 4px; padding: 16px 24px; border-top: 1px solid var(--border); }
.facts dl > div:first-child { border-top: 0; }
@media (min-width: 640px) { .facts dl > div { grid-template-columns: 180px 1fr; gap: 16px; } }
.facts dt { font-size: 14px; font-weight: 700; color: var(--muted-fg); }
.facts dd { font-size: 15.2px; font-weight: 700; }
.facts dd a { text-decoration: underline; text-underline-offset: 4px; }

/* contact */
.contact-layout { row-gap: 28px; }
@media (min-width: 1024px) {
    .contact-layout { grid-template-rows: auto 1fr; }
    .contact-layout .contact-intro { grid-column: 1; grid-row: 1; }
    .contact-layout .chat-slot { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 88px; }
    .contact-layout .contact-list-col { grid-column: 1; grid-row: 2; }
}
.contact-list-col .contact-rows { margin-top: 0; }
.contact-rows { margin-top: 28px; display: grid; gap: 12px; }
.contact-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); transition: border-color .15s; }
.contact-row:hover { border-color: var(--accent); }
.contact-row .ic { color: var(--accent); }
.contact-row .wa { color: var(--whatsapp); }
.contact-row small { display: block; font-size: 12px; font-weight: 700; color: var(--muted-fg); }
.contact-row strong { display: block; font-size: 16px; }
.map-frame { margin-top: 24px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); }
.map-frame iframe { display: block; width: 100%; height: 360px; border: 0; }

/* =========================================================
   Chat entry points (the chat itself lives on chat.html)
   ========================================================= */
.chat-card { padding: 22px; display: grid; gap: 16px; }
@media (min-width: 768px) { .chat-card { padding: 26px; } }
.chat-card-head { display: flex; align-items: center; gap: 12px; }
.chat-card-head strong { display: block; font-family: var(--font-display); font-size: 18px; line-height: 1.4; }
.chat-card-head small { display: block; font-size: 13px; color: var(--muted-fg); }
.chat-card-ic { width: 46px; height: 46px; border-radius: 9999px; background: #e7f6ec; color: var(--whatsapp); display: grid; place-items: center; flex-shrink: 0; }
.chat-card-bubble {
    background: #efeae2; border-radius: 10px; padding: 12px 14px; font-size: 14.5px; line-height: 1.8; color: #111b21;
    position: relative; box-shadow: inset 0 0 0 1px rgba(0,0,0,.03);
}
.chat-card-q { display: grid; gap: 8px; }
.chat-card-q a {
    display: block; background: #fff; border: 1px solid var(--border); border-radius: 9px; padding: 10px 12px;
    color: #027eb5; font-size: 14px; font-weight: 700; transition: border-color .15s;
}
.chat-card-q a:hover { border-color: var(--accent); }
.chat-card-btn { width: 100%; }

/* =========================================================
   (legacy) in-page chat overlay styles – no longer used by the pages
   ========================================================= */
.chat-fab {
    position: fixed; z-index: 60; inset-inline-end: auto; left: 20px; bottom: 24px;
    width: 58px; height: 58px; border-radius: 9999px; border: 0; cursor: pointer;
    display: grid; place-items: center; background: #25d366; color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .22); transition: transform .15s;
}
.chat-fab:hover { transform: scale(1.05); }
.chat-fab svg { width: 32px; height: 32px; }
.chat-fab-tip {
    position: absolute; left: 68px; white-space: nowrap; background: #fff; color: var(--foreground);
    font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 9999px; box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.chat-fab.is-hidden { display: none; }
.chat-fab .ic { width: 28px; height: 28px; }
/* Phones already have the chat in the bottom quick bar */
@media (max-width: 767px) { .chat-fab { display: none; } }

.chat {
    --wa-head: #008069; --wa-bg: #efeae2; --wa-in: #ffffff; --wa-out: #d9fdd3;
    --wa-text: #111b21; --wa-meta: #667781; --wa-accent: #00a884; --wa-bar: #f0f2f5;
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--wa-bg); color: var(--wa-text); font-family: var(--font-sans);
}
.chat:not(.chat--inline) {
    position: fixed; z-index: 70; left: 20px; bottom: 24px;
    width: 380px; height: min(640px, calc(100vh - 48px));
    border-radius: 14px; box-shadow: 0 18px 50px rgba(0, 0, 0, .3);
}
.chat--inline { position: relative; width: 100%; height: 600px; border-radius: 14px; border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.chat.is-full {
    position: fixed !important; inset: 0 !important; z-index: 200;
    width: 100% !important; height: 100% !important; height: 100dvh !important;
    border-radius: 0 !important; border: 0;
}
html.chat-lock, html.chat-lock body { overflow: hidden; }
@media (max-width: 767px) {
    .chat--inline { height: 470px; cursor: pointer; }
    .chat--inline:not(.is-full) .chat-back { visibility: hidden; }
}
@media (min-width: 768px) { .chat--inline .chat-back { display: none; } }

.chat-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--wa-head); color: #fff; flex-shrink: 0; }
.chat-back { width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: transparent; color: #fff; cursor: pointer; border-radius: 9999px; }
.chat-back:hover { background: rgba(255,255,255,.12); }
.chat-back svg { width: 22px; height: 22px; }
.chat-avatar { width: 40px; height: 40px; border-radius: 9999px; background: #dfe5e7; color: var(--wa-head); display: grid; place-items: center; flex-shrink: 0; }
.chat-avatar svg { width: 24px; height: 24px; }
.chat-who { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.chat-who strong { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-who small { font-size: 12.5px; opacity: .85; }

.chat-body {
    flex: 1; overflow-y: auto; padding: 12px 14px 16px; overscroll-behavior: contain;
    background-color: var(--wa-bg);
    background-image: radial-gradient(rgba(0,0,0,.035) 1px, transparent 1px), radial-gradient(rgba(0,0,0,.025) 1px, transparent 1px);
    background-size: 22px 22px, 22px 22px; background-position: 0 0, 11px 11px;
}
.chat-day { text-align: center; margin: 4px 0 10px; }
.chat-day span { display: inline-block; background: #fff; color: var(--wa-meta); font-size: 12px; padding: 4px 12px; border-radius: 8px; box-shadow: 0 1px .5px rgba(11,20,26,.13); }
.chat-note { margin: 0 auto 12px; max-width: 92%; text-align: center; background: #ffeecd; color: #54656f; font-size: 12px; line-height: 1.6; padding: 6px 10px; border-radius: 8px; }

.msg { display: flex; flex-direction: column; margin-bottom: 6px; }
.msg--bot { align-items: flex-start; }
.msg--me { align-items: flex-end; }
.bubble {
    position: relative; max-width: 85%; padding: 6px 9px 8px; border-radius: 8px;
    box-shadow: 0 1px .5px rgba(11,20,26,.13); font-size: 14.5px; line-height: 1.6;
}
.msg--bot .bubble { background: var(--wa-in); border-start-start-radius: 0; }
.msg--me .bubble { background: var(--wa-out); border-start-end-radius: 0; }
.bubble p { white-space: pre-line; overflow-wrap: anywhere; }
.bubble .meta { display: block; text-align: end; margin-top: 2px; font-size: 11px; color: var(--wa-meta); }
.msg--me .bubble .meta { color: #53bdeb; }
.bubble-link { display: block; margin-top: 8px; padding-top: 8px; border-top: 1px solid #e9edef; color: #027eb5; font-weight: 700; text-align: center; }

.handoff {
    display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px;
    background: #f0f2f5; border-radius: 8px; border: 1px solid #e3e6e8;
}
.handoff:hover { background: #e9edef; }
.handoff-ic { width: 36px; height: 36px; border-radius: 9999px; background: #25d366; color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.handoff-ic svg { width: 22px; height: 22px; }
.handoff-txt { flex: 1; display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.handoff-txt strong { font-size: 14px; }
.handoff-txt small { font-size: 12px; color: var(--wa-meta); text-align: right; }
.handoff-go { background: var(--wa-accent); color: #fff; font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 9999px; }

.quick { display: grid; gap: 4px; margin-top: 4px; width: 85%; max-width: 320px; }
.quick button {
    background: #fff; color: #027eb5; border: 0; border-radius: 8px; padding: 9px 10px;
    font-size: 14px; font-weight: 700; cursor: pointer; box-shadow: 0 1px .5px rgba(11,20,26,.13);
}
.quick button:hover { background: #f5f6f6; }

.typing { display: flex; gap: 4px; padding: 12px 14px; }
.typing i { width: 7px; height: 7px; border-radius: 9999px; background: #8696a0; animation: chat-dot 1.2s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes chat-dot { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.chat-input { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--wa-bar); flex-shrink: 0; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
.chat-input input { flex: 1; min-width: 0; border: 0; border-radius: 9999px; background: #fff; padding: 11px 16px; font-size: 16px; outline: none; }
.chat-input button { width: 44px; height: 44px; border-radius: 9999px; border: 0; background: var(--wa-accent); color: #fff; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.chat-input button svg { width: 22px; height: 22px; transform: scaleX(-1); }

@media (prefers-reduced-motion: reduce) { .typing i { animation: none; } }

@media (max-width: 480px) {
    .page-title { font-size: 1.9rem; line-height: 1.45; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.9rem; line-height: 1.45; }
    h2 { font-size: 1.45rem; line-height: 1.5; }
    .mobile-nav a { padding: 12px 0; }
    a, button { word-break: break-word; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
