/* The demonstration websites (/demos/): fictional businesses that show a self-employed visitor what Atlas Digital
   builds. One structure here; each demo's theme.css sets its colours and fonts. Same CSP as the site: no inline style. */
*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --radius: 0.75rem;
    --gap: clamp(1rem, 3vw, 2rem);
    --max: 68rem;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
}

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

a {
    color: var(--accent-ink);
}

h1,
h2,
h3 {
    margin: 0;
    font-family: var(--font-title);
    line-height: 1.15;
}

p {
    margin: 0;
}

.wrap {
    width: min(100% - 2rem, var(--max));
    margin-inline: auto;
}

.skip {
    position: absolute;
    left: -100vw;
}

.skip:focus {
    left: 1rem;
    top: 1rem;
    z-index: 10;
    padding: 0.5rem 1rem;
    background: var(--surface);
}

/* The notice every demo page carries, first: a fictional business, made by Atlas Digital. */
.demo-notice {
    background: #1e1e1e;
    color: #f5f3ee;
    font-family: system-ui, sans-serif;
    font-size: 0.875rem;
}

.demo-notice .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
    padding-block: 0.6rem;
}

.demo-notice a {
    color: #e4c56c;
    font-weight: 600;
}

.top {
    position: sticky;
    top: 0;
    z-index: 5;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.top .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4.25rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--ink);
    font-family: var(--font-title);
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
}

.brand svg {
    width: 2rem;
    height: 2rem;
    color: var(--accent);
}

.nav {
    display: none;
    gap: 1.5rem;
}

.nav a {
    color: var(--ink);
    text-decoration: none;
}

@media (min-width: 900px) {
    .nav {
        display: flex;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0.6rem 1.2rem;
    border: 2px solid var(--accent);
    border-radius: 999px;
    background: var(--accent);
    color: var(--on-accent);
    font-weight: 600;
    text-decoration: none;
}

.top .btn {
    flex: none;
    white-space: nowrap;
}

/* On a phone the header's call button keeps its icon: the number is its accessible name (aria-label). */
@media (max-width: 519px) {
    .top .btn span {
        display: none;
    }

    .top .btn {
        padding-inline: 0.8rem;
    }
}

.btn--ghost {
    background: transparent;
    color: var(--accent-ink);
}

.btn svg {
    width: 1.1rem;
    height: 1.1rem;
}

.hero {
    padding-block: clamp(3rem, 9vw, 6.5rem);
    background: var(--hero-bg);
}

.hero .wrap {
    display: grid;
    gap: var(--gap);
    align-items: center;
}

@media (min-width: 860px) {
    .hero .wrap {
        grid-template-columns: 1.2fr 1fr;
    }
}

.hero__tag {
    margin-bottom: 0.75rem;
    color: var(--accent-ink);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1 {
    font-size: clamp(2.25rem, 6vw, 3.75rem);
}

.hero__lead {
    max-width: 34rem;
    margin-top: 1rem;
    color: var(--muted);
    font-size: 1.15rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.hero__art {
    color: var(--accent);
}

.hero__art svg {
    width: min(100%, 22rem);
    margin-inline: auto;
}

@media (max-width: 859px) {
    .hero__art svg {
        width: 9rem;
        margin-inline: 0;
    }

    .hero__art {
        order: -1;
    }
}

.section {
    padding-block: clamp(3rem, 8vw, 5rem);
}

.section--alt {
    background: var(--surface);
}

.section__head {
    max-width: 40rem;
    margin-bottom: 2rem;
}

.section__head h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.section__head p {
    margin-top: 0.75rem;
    color: var(--muted);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
    gap: 1.25rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.card {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg);
}

.section--alt .card {
    background: var(--surface-2);
}

.card svg {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--accent);
}

.card h3 {
    font-size: 1.25rem;
}

.card p {
    color: var(--muted);
}

.split {
    display: grid;
    gap: var(--gap);
}

@media (min-width: 860px) {
    .split {
        grid-template-columns: 1fr 1fr;
    }
}

.facts {
    display: grid;
    gap: 0.75rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

.facts li {
    display: flex;
    gap: 0.75rem;
}

.facts svg {
    flex: none;
    width: 1.5rem;
    height: 1.5rem;
    color: var(--accent);
}

.hours {
    width: 100%;
    border-collapse: collapse;
}

.hours th,
.hours td {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.hours td {
    text-align: right;
    color: var(--muted);
}

.panel {
    padding: 1.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg);
}

.panel h3 {
    margin-bottom: 1rem;
    font-size: 1.35rem;
}

.contact {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.foot {
    padding-block: 2rem;
    background: var(--foot-bg);
    color: var(--foot-ink);
    font-size: 0.9375rem;
}

.foot .wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
}

.foot a {
    color: inherit;
}

/* An outline icon (Tabler), drawn by the stylesheet: <svg class="i" viewBox="0 0 24 24" aria-hidden="true">. */
.i {
    flex: none;
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* The phone menu: a <details> in the header, below the width where the header's navigation shows. */
.m-menu {
    margin-left: auto;
}

.m-menu summary {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 2.75rem;
    padding: 0.5rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    font-weight: 600;
    list-style: none;
    cursor: pointer;
}

.m-menu summary::-webkit-details-marker {
    display: none;
}

.m-menu nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    padding: 0.5rem 1rem 1rem;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgb(0 0 0 / 0.08);
}

.m-menu nav a {
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
}

.m-menu nav a:last-child {
    border-bottom: 0;
}

@media (min-width: 900px) {
    .m-menu {
        display: none;
    }
}

/* The language switch of a bilingual demo (FR | NL): in the header from 520 px, in the phone menu below. */
.lang {
    display: none;
    gap: 0.25rem;
    margin: 0 0 0 auto;
}

.lang + .m-menu {
    margin-left: 0;
}

.lang a {
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    color: var(--ink);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.lang a[aria-current='page'] {
    background: var(--accent);
    color: var(--on-accent);
}

@media (min-width: 520px) {
    .lang {
        display: flex;
    }

    .m-menu nav a[hreflang] {
        display: none;
    }
}
