/* DW MarketingOS — public website theme. Colours, fonts and corner radius come from CSS variables set per site. */
*, *::before, *::after { box-sizing: border-box; }
:root {
    --c-primary: #4f46e5; --c-secondary: #0ea5e9; --c-accent: #f59e0b;
    --f-heading: 'Manrope'; --f-body: 'Inter'; --radius: 10px;
    --ink: #1f2430; --ink-soft: #5b6272; --line: #e6e8ee; --bg: #ffffff; --bg-alt: #f6f7fa;
    --shadow: 0 1px 2px rgb(16 24 40 / .06), 0 4px 16px rgb(16 24 40 / .06);
}
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-body), system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: var(--c-primary); }
h1, h2, h3 { font-family: var(--f-heading), var(--f-body), system-ui, sans-serif; line-height: 1.2; margin: 0 0 .5em; color: inherit; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: min(1140px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.small { font-size: .875rem; }
.prose p:last-child, .card p:last-child { margin-bottom: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.5rem; border-radius: var(--radius); border: 2px solid var(--c-primary);
    background: var(--c-primary); color: #fff; font-weight: 600; text-decoration: none; cursor: pointer; font: inherit; font-weight: 600; transition: filter .15s, transform .15s; }
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-outline { background: transparent; color: var(--c-primary); }
.btn-light { background: #fff; border-color: #fff; color: var(--c-primary); }

/* Header */
.preview-bar { background: #fef3c7; color: #92400e; font-size: .8rem; text-align: center; padding: .35rem; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgb(255 255 255 / .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.h-dark .site-header { background: #111827; border-color: #111827; color: #fff; }
.h-brand .site-header { background: var(--c-primary); border-color: transparent; color: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { text-decoration: none; color: inherit; display: flex; align-items: center; }
.brand-logo { max-height: 46px; width: auto; }
.brand-name { font-family: var(--f-heading), sans-serif; font-weight: 700; font-size: 1.25rem; }
.nav { display: flex; gap: .25rem; flex-wrap: wrap; }
.nav a, .nav-mobile a { color: inherit; text-decoration: none; padding: .45rem .8rem; border-radius: var(--radius); font-weight: 500; font-size: .95rem; opacity: .85; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; background: rgb(127 127 127 / .12); }
.nav-toggle { display: none; position: relative; }
.nav-toggle summary { list-style: none; cursor: pointer; display: grid; gap: 5px; padding: 10px; }
.nav-toggle summary::-webkit-details-marker { display: none; }
.nav-toggle summary span { display: block; width: 22px; height: 2px; background: currentColor; }
.nav-mobile { position: absolute; right: 0; top: 100%; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 200px; padding: .5rem; display: grid; }
@media (max-width: 760px) { .nav { display: none; } .nav-toggle { display: block; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(4rem, 10vw, 7.5rem) 0; background: linear-gradient(135deg, color-mix(in srgb, var(--c-primary) 12%, #fff), color-mix(in srgb, var(--c-secondary) 12%, #fff)); }
.hero .lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 40rem; }
.hero-center .hero-inner { text-align: center; }
.hero-center .lead { margin-inline: auto; }
.hero-center.has-image { color: #fff; background: #111; }
.hero-center.has-image .lead { color: rgb(255 255 255 / .9); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.hero-inner { position: relative; }
.hero-split .hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: calc(var(--radius) * 1.5); box-shadow: var(--shadow); }
@media (max-width: 860px) { .hero-split .hero-inner { grid-template-columns: 1fr; } }

/* Sections */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 46rem; margin: 0 auto 2.5rem; }
.grid.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.card-img { width: calc(100% + 3rem); max-width: none; margin: -1.5rem -1.5rem 1.25rem; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split.no-media { grid-template-columns: 1fr; max-width: 760px; }
.split-reverse .split-media { order: 2; }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: calc(var(--radius) * 1.5); }
.split-text .btn { margin-top: .5rem; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split-reverse .split-media { order: 0; } }
.gallery { columns: 3 260px; column-gap: 1rem; }
.gallery figure { margin: 0 0 1rem; break-inside: avoid; }
.gallery img { width: 100%; border-radius: var(--radius); }
.gallery figcaption { font-size: .875rem; color: var(--ink-soft); margin-top: .35rem; }
.price-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.price-list li { display: flex; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px dashed var(--line); }
.price-list img { width: 84px; height: 84px; object-fit: cover; border-radius: var(--radius); flex-shrink: 0; }
.price-body { flex: 1; }
.price-row { display: flex; justify-content: space-between; gap: 1rem; font-weight: 600; }
.price { color: var(--c-primary); white-space: nowrap; }
.price-body p { margin: .2rem 0 0; font-size: .95rem; }
.quote blockquote { margin: 0 0 1rem; font-size: 1.05rem; }
.quote figcaption { font-size: .9rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.5rem; text-align: center; }
.stat-value { font-family: var(--f-heading), sans-serif; font-size: 2.6rem; font-weight: 700; color: var(--c-primary); margin: 0; }
.avatar { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; }
.role { color: var(--c-primary); font-weight: 600; margin-bottom: .5rem; }
.faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; }
.faq .prose { margin-top: .6rem; color: var(--ink-soft); }
.cta { padding: clamp(3rem, 6vw, 4.5rem) 0; background: var(--c-primary); color: #fff; }
.cta p { opacity: .92; max-width: 40rem; margin-inline: auto; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2rem; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info a { color: var(--c-primary); }
.map { width: 100%; height: 260px; border: 0; border-radius: var(--radius); margin-top: .5rem; }
.form { display: grid; gap: .9rem; }
.form label { display: grid; gap: .3rem; font-weight: 500; font-size: .95rem; }
.form input, .form textarea { font: inherit; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: calc(var(--radius) * .7); background: #fff; color: var(--ink); }
.form input:focus, .form textarea:focus { outline: 2px solid var(--c-primary); outline-offset: 1px; }
.form .err { color: #b42318; font-size: .85rem; margin-top: -.5rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { background: #ecfdf3; color: #067647; border-radius: var(--radius); padding: .8rem 1rem; }

/* Footer */
.site-footer { background: #111827; color: #d1d5db; padding: 3rem 0 1.5rem; }
.site-footer a { color: #fff; }
.site-footer .muted { color: #9ca3af; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.footer-name { font-family: var(--f-heading), sans-serif; font-size: 1.2rem; font-weight: 700; color: #fff; }
.footer-contact p { margin: 0 0 .4rem; }
.footer-social { display: flex; flex-wrap: wrap; gap: .75rem; align-content: start; }
.footer-bottom { border-top: 1px solid #1f2937; margin-top: 2rem; padding-top: 1.25rem; }
.wa-button { position: fixed; right: 20px; bottom: 20px; z-index: 30; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff;
    display: grid; place-items: center; box-shadow: 0 6px 20px rgb(0 0 0 / .25); }

/* Template styles */
.t-bold h1, .t-bold h2 { text-transform: uppercase; letter-spacing: .01em; }
.t-bold .hero { background: #0f172a; color: #fff; }
.t-bold .hero .lead { color: rgb(255 255 255 / .8); }
.t-bold .card { box-shadow: none; border-width: 2px; }
.t-elegant body, body.t-elegant { --bg-alt: #faf8f5; }
.t-elegant h1, .t-elegant h2 { font-weight: 600; letter-spacing: 0; }
.t-elegant .section-head h2::after { content: ''; display: block; width: 56px; height: 2px; background: var(--c-accent); margin: .9rem auto 0; }
.t-elegant .hero { background: #faf8f5; }
.t-elegant .card { box-shadow: none; }
.t-fresh .hero { background: linear-gradient(135deg, color-mix(in srgb, var(--c-primary) 22%, #fff), color-mix(in srgb, var(--c-accent) 25%, #fff)); }
.t-fresh .card { border: 0; }
.t-fresh .section.alt { background: color-mix(in srgb, var(--c-secondary) 8%, #fff); }
.t-minimal .hero { background: #fff; border-bottom: 1px solid var(--line); }
.t-minimal .card { box-shadow: none; }
.t-minimal .cta { background: var(--bg-alt); color: var(--ink); }
.t-minimal .cta .btn-light { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.t-corporate .hero { background: linear-gradient(120deg, color-mix(in srgb, var(--c-primary) 85%, #000), var(--c-primary)); color: #fff; }
.t-corporate .hero .lead { color: rgb(255 255 255 / .85); }
.t-corporate .hero .btn { background: #fff; border-color: #fff; color: var(--c-primary); }
.t-corporate .section-head { text-align: left; margin-left: 0; }

/* Phase 7: breadcrumbs and page titles for pages without a hero */
.breadcrumbs{padding-top:1rem}
.breadcrumbs a{color:inherit}
.page-title{padding-top:2rem}
.page-title h1{margin:0;font-size:clamp(1.8rem,4vw,2.6rem)}
.consent-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40; max-width: 560px; margin: 0 auto; padding: 14px 16px; border-radius: 12px; background: #111827; color: #fff; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.consent-bar p { margin: 0 0 10px; }
.consent-bar button { border: 0; border-radius: 8px; padding: 8px 14px; font: inherit; cursor: pointer; background: #fff; color: #111827; }
.consent-bar button[data-consent="no"] { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }
.consent-bar[hidden] { display: none; }
