/* Theme tokens.
   Dark is the default and stays the look the site launched with. Light is
   opt-in via the toggle or the visitor's OS setting. Every colour below goes
   through a variable so a page never has to know which theme it is in. */
:root {
    --accent: #d97706;
    --accent-2: #f59e0b;
    --accent-ink: #d97706;
    /* accent used as TEXT — needs a different value per theme for contrast */
    --on-accent: #08101a;
    --maxw: 1100px;
}

/* ---------- dark (default) ---------- */
:root,
:root[data-theme="dark"] {
    --page-bg: linear-gradient(180deg, #071020 0%, #071726 45%, #0b1220 100%);
    --text: #ffffff;
    --text-soft: #d1d5db;
    --muted: #9ca3af;
    --card: #0b1220;
    --surface: rgba(255, 255, 255, .02);
    --surface-2: rgba(255, 255, 255, .03);
    --border: rgba(255, 255, 255, .06);
    --border-strong: rgba(255, 255, 255, .12);
    --rule: rgba(255, 255, 255, .08);
    --logo-bg: linear-gradient(135deg, #111827, #1f2937);
    --shadow: 0 8px 30px rgba(0, 0, 0, .6);
    --shadow-sm: 0 6px 18px rgba(0, 0, 0, .6);
    --accent-ink: #f0a640;
}

/* ---------- light ---------- */
:root[data-theme="light"] {
    --page-bg: linear-gradient(180deg, #faf8f5 0%, #f3efe9 45%, #efeae3 100%);
    --text: #16202e;
    --text-soft: #3d4855;
    --muted: #5c6675;
    --card: #ffffff;
    --surface: rgba(22, 32, 46, .03);
    --surface-2: #ffffff;
    --border: rgba(22, 32, 46, .12);
    --border-strong: rgba(22, 32, 46, .22);
    --rule: rgba(22, 32, 46, .14);
    --logo-bg: linear-gradient(135deg, #1f2937, #374151);
    --shadow: 0 8px 26px rgba(22, 32, 46, .12);
    --shadow-sm: 0 4px 14px rgba(22, 32, 46, .12);
    --accent-ink: #92400e;
}

/* Visitors who have never touched the toggle follow their OS. The toggle
   writes data-theme onto <html>, and the rules above beat this one. */
@media (prefers-color-scheme: light) {
    :root:not([data-theme]) {
        --page-bg: linear-gradient(180deg, #faf8f5 0%, #f3efe9 45%, #efeae3 100%);
        --text: #16202e;
        --text-soft: #3d4855;
        --muted: #5c6675;
        --card: #ffffff;
        --surface: rgba(22, 32, 46, .03);
        --surface-2: #ffffff;
        --border: rgba(22, 32, 46, .12);
        --border-strong: rgba(22, 32, 46, .22);
        --rule: rgba(22, 32, 46, .14);
        --logo-bg: linear-gradient(135deg, #1f2937, #374151);
        --shadow: 0 8px 26px rgba(22, 32, 46, .12);
        --shadow-sm: 0 4px 14px rgba(22, 32, 46, .12);
        --accent-ink: #92400e;
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Open Sans", system-ui, sans-serif;
    background: var(--page-bg);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.55;
}

.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 28px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    gap: 16px;
}

.brand {
    display: flex;
    gap: 12px;
    align-items: center;
}

.logo {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: var(--logo-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Montserrat, sans-serif;
    font-weight: 700;
    color: var(--accent-2);
    box-shadow: var(--shadow-sm);
    flex: none;
}

.brand h1,
.brand .brandname {
    font-family: Montserrat, sans-serif;
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.brand a {
    color: inherit;
    text-decoration: none;
}

.tagline {
    color: var(--muted);
    font-size: 13px;
}

nav.mainnav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    justify-content: flex-end;
}

.nav-link {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    transition: color .2s;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--accent-ink);
}

.phone a {
    color: var(--on-accent);
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-family: Montserrat, sans-serif;
    white-space: nowrap;
}

.hero {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 28px;
    align-items: start;
    padding: 28px 0;
}

.hero-left h1,
.hero-left h2 {
    font-family: Montserrat, sans-serif;
    font-size: 34px;
    line-height: 1.2;
    margin: 0 0 12px;
}

.hero-left p.lede {
    color: var(--text-soft);
    margin: 0 0 18px;
    font-size: 17px;
}

.ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color: var(--on-accent);
    padding: 14px 20px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    font-family: Montserrat, sans-serif;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-ghost {
    border: 2px solid var(--border-strong);
    color: var(--text);
    padding: 12px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
}

.hero-right {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 18px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.hero-right h3 {
    font-family: Montserrat, sans-serif;
    margin: 0 0 8px;
}

input,
textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-strong);
    background: var(--surface-2);
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
}

input::placeholder,
textarea::placeholder {
    color: var(--muted);
}

.field {
    margin-bottom: 12px;
}

.small {
    font-size: 13px;
    color: var(--muted);
    margin-top: 6px;
    display: block;
}

.trust {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 18px 0;
}

.badge {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 14px;
    border-radius: 10px;
    flex: 1;
    min-width: 160px;
}

.badge h3 {
    margin: 0;
    color: var(--accent-ink);
    font-family: Montserrat, sans-serif;
    font-size: 16px;
}

.badge p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
}

section.block {
    border-top: 1px solid var(--rule);
    padding-top: 26px;
    margin-top: 34px;
}

section.block h2 {
    font-family: Montserrat, sans-serif;
    font-size: 26px;
    margin: 0 0 14px;
}

section.block h3 {
    font-family: Montserrat, sans-serif;
    font-size: 18px;
    margin: 22px 0 8px;
    color: var(--accent-ink);
}

section.block p,
section.block li {
    color: var(--text-soft);
    font-size: 16px;
}

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

section.block ul {
    padding-left: 20px;
}

section.block li {
    margin-bottom: 8px;
}

.cardgrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
}

.card h3 {
    margin: 0 0 6px;
    font-family: Montserrat, sans-serif;
    font-size: 17px;
}

.card h3 a {
    color: var(--accent-ink);
    text-decoration: none;
}

.card h3 a:hover {
    text-decoration: underline;
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.jobcard {
    background: var(--surface);
    border-left: 3px solid var(--accent);
    border-radius: 0 10px 10px 0;
    padding: 14px 18px;
    margin-bottom: 14px;
}

.jobcard h3 {
    margin: 0 0 6px;
    font-size: 16px;
    font-family: Montserrat, sans-serif;
    color: var(--text);
}

.jobcard p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

.arealist {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 12px;
}

.arealist a,
.arealist span {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
}

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

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.gallery-grid figure {
    margin: 0;
    border-radius: 10px;
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--border);
}

.gallery-grid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.gallery-grid figcaption {
    padding: 10px 12px;
    font-size: 13px;
    color: var(--muted);
}

/* Before/after and job sequences. Each figure carries its own stage label so
   the story reads without the caption having to say "left"/"right" — the grid
   reflows to one column on a phone. */
.ba-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.ba-grid figure {
    position: relative;
    margin: 0;
    border-radius: 10px;
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--border);
}

.ba-grid img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.ba-grid figcaption {
    padding: 10px 12px;
    font-size: 13px;
    color: var(--muted);
}

.stage {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(8, 16, 26, .82);
    color: #fff;
    font-family: Montserrat, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.stage.is-after {
    background: var(--accent);
    color: var(--on-accent);
}

footer {
    margin: 44px 0 20px;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
    border-top: 1px solid var(--rule);
    padding-top: 20px;
}

footer a {
    color: var(--muted);
}

.callbar {
    display: none;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 14px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .45);
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    z-index: 60;
}

.callbar a,
.callbar div {
    color: var(--on-accent);
    font-weight: 800;
    text-decoration: none;
    font-family: Montserrat, sans-serif;
}

/* ---------- theme toggle ---------- */
.theme-toggle {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 1100;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 6px 12px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: var(--card);
    color: var(--text);
    box-shadow: var(--shadow-sm);
    font-family: "Open Sans", system-ui, sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.theme-toggle:hover {
    border-color: var(--accent);
}

.theme-toggle svg {
    width: 16px;
    height: 16px;
    flex: none;
}

/* The language switcher also pins top-right. Its offsets live in
   accessibility.css, which loads after this file and would win the cascade. */

/* ---------- photo picker + in-place submit ---------- */
.visually-hidden-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.photo-drop {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 74px;
    padding: 12px;
    border: 2px dashed var(--border-strong);
    border-radius: 10px;
    color: var(--muted);
    font-size: 13px;
    cursor: pointer;
    transition: border-color .15s, color .15s, background .15s;
}

.photo-drop:hover,
.photo-drop:focus-visible,
.photo-drop.is-over {
    border-color: var(--accent);
    color: var(--accent-ink);
    background: var(--surface);
}

.photo-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.photo-thumb {
    position: relative;
    margin: 0;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    line-height: 1;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, .65);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
}

.photo-remove:hover {
    background: #b91c1c;
}

.photo-note.is-error,
.form-status.is-error {
    color: #f97316;
}

.form-status {
    margin: 10px 0 0;
    font-size: 13px;
    color: var(--muted);
}

.form-success {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 10px;
    padding: 18px;
}

.form-success h3 {
    margin: 0 0 8px;
    font-family: Montserrat, sans-serif;
    color: var(--accent-ink);
    font-size: 18px;
}

.form-success p {
    margin: 0;
    color: var(--text-soft);
    font-size: 15px;
}

button[disabled] {
    opacity: .55;
    cursor: not-allowed;
}

/* Above this width the content column is narrow enough that the two fixed
   pills sit beside it. Below it they overlap the header, so reserve the room. */
@media (max-width:1160px) {
    header {
        padding-top: 100px;
    }
}

@media (max-width:980px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-right {
        order: 2;
    }

    .hero-left {
        order: 1;
    }

    .hero-left h1,
    .hero-left h2 {
        font-size: 28px;
    }
}

@media (max-width:720px) {
    .wrap {
        padding: 16px;
    }

    header {
        flex-wrap: wrap;
    }

    .brand h1,
    .brand .brandname {
        font-size: 15px;
    }

    .callbar {
        display: flex;
    }

    nav.mainnav {
        display: none;
    }

    body {
        padding-bottom: 70px;
    }

    .theme-toggle {
        top: 8px;
        right: 8px;
    }
}
