/* CraftReports public site — SketchUp-inspired design system.
   Brand red #CE0C0C sampled from logo.png; hexagon motif echoes the mark. */

:root {
    --brand: #ce0c0c;
    --brand-dark: #a80a0a;
    --brand-tint: #fdf2f2;

    --ink: #16181d;
    --ink-soft: #3f454f;
    --muted: #6b7280;

    --bg: #ffffff;
    --bg-alt: #f6f7f9;
    --border: #e3e6ea;

    --radius: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(22, 24, 29, .07);
    --shadow: 0 6px 24px rgba(22, 24, 29, .09);
    --shadow-lg: 0 18px 48px rgba(22, 24, 29, .14);

    --hex: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
    line-height: 1.15;
    letter-spacing: -.02em;
    margin: 0 0 .5em;
    font-weight: 800;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }

p { margin: 0 0 1.1em; color: var(--ink-soft); }

a { color: var(--brand); }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -.02em;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
}

/* Scaled with the wordmark so the mark and text stay optically balanced. */
.brand img { width: 30px; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--ink-soft);
    text-decoration: none;
    font-size: .95rem;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background .15s, color .15s;
}

.nav-links a:hover { color: var(--brand); background: var(--brand-tint); }
.nav-links a.btn { margin-left: 8px; }
.nav-links a.btn:hover { background: var(--brand); color: #fff; }

/* ---------- Language switcher ---------- */

/* A pair of plain links in a segmented control. Two languages do not justify a
   dropdown: one tap switches, and the current language is readable at a glance
   without opening anything. */
.lang-switch {
    display: inline-flex;
    margin-left: 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}

.nav-links .lang-option {
    padding: 6px 11px;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .04em;
    border-radius: 0;
    color: var(--muted);
}
.nav-links .lang-option:hover { background: var(--brand-tint); color: var(--brand); }
.nav-links .lang-option.is-active {
    background: var(--ink);
    color: #fff;
}
.nav-links .lang-option.is-active:hover { background: var(--ink); color: #fff; }

/* ---------- Burger (mobile only) ---------- */

.nav-burger {
    display: none;  /* shown by the mobile media query below */
    flex: none;
    width: 44px;    /* comfortable tap target */
    height: 44px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    position: relative;
}

.nav-burger:hover { border-color: var(--brand); background: var(--brand-tint); }
.nav-burger:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
/* Suppress the grey flash Android/iOS paint over tapped controls. */
.nav-burger { -webkit-tap-highlight-color: transparent; }

/* Open state is tinted rather than solid: a white button on the near-white
   header read as a stray outline, but a fully red block was far heavier than
   anything else in the header. */
.nav-burger.is-open,
.nav-burger.is-open:hover {
    background: var(--brand-tint);
    border-color: var(--brand);
}

/* Three bars from one element: the span is the middle bar, ::before/::after
   are the outer two, so opening can collapse them into an X. */
.nav-burger-bars,
.nav-burger-bars::before,
.nav-burger-bars::after {
    position: absolute;
    left: 50%;
    width: 20px;
    height: 2px;
    margin-left: -10px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .2s ease, background-color .15s ease;
}

.nav-burger-bars { top: 50%; margin-top: -1px; }
.nav-burger-bars::before { content: ""; margin-left: -10px; top: -6px; }
.nav-burger-bars::after { content: ""; margin-left: -10px; top: 6px; }

/* Collapse the outer bars into an X. */
.nav-burger.is-open .nav-burger-bars::before { top: 0; transform: rotate(45deg); }
.nav-burger.is-open .nav-burger-bars::after { top: 0; transform: rotate(-45deg); }

/* Bar colour on hover. */
.nav-burger:hover .nav-burger-bars,
.nav-burger:hover .nav-burger-bars::before,
.nav-burger:hover .nav-burger-bars::after { background: var(--brand); }

/* Red cross on the light tint when open. */
.nav-burger.is-open .nav-burger-bars::before,
.nav-burger.is-open .nav-burger-bars::after { background: var(--brand); }

/* The middle bar is hidden with a transparent background, NOT opacity:
   opacity on this element also fades ::before/::after, which made the whole
   cross disappear. Declared last so it also wins while hovered. */
.nav-burger.is-open .nav-burger-bars,
.nav-burger.is-open:hover .nav-burger-bars { background: transparent; }

/* ---------- Buttons ---------- */

.btn {
    display: inline-block;
    padding: 13px 26px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform .12s, background .15s, box-shadow .15s, color .15s;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 6px 18px rgba(206, 12, 12, .28);
}

.btn-primary:hover { background: var(--brand-dark); }

.btn-outline {
    border-color: var(--border);
    color: var(--ink);
    background: #fff;
}

.btn-outline:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- Hero ---------- */

.hero {
    position: relative;
    overflow: hidden;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 0;
    max-width: none;
}

.hero-media {
    position: absolute;
    inset: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 62%;
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg,
        rgba(255, 255, 255, .97) 0%,
        rgba(255, 255, 255, .93) 42%,
        rgba(255, 255, 255, .55) 68%,
        rgba(255, 255, 255, .25) 100%);
}

.hero-inner {
    position: relative;
    max-width: 1140px;
    margin: 0 auto;
    padding: clamp(72px, 11vw, 132px) 24px;
}

.hero-copy { max-width: 620px; }

.eyebrow {
    display: inline-block;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--brand);
    background: var(--brand-tint);
    border: 1px solid rgba(206, 12, 12, .18);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 22px;
}

.hero h1 { color: var(--ink); }

.hero .lead {
    font-size: clamp(1.05rem, 1.7vw, 1.3rem);
    color: var(--ink-soft);
    margin-bottom: 32px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-note {
    margin: 26px 0 0;
    font-size: .9rem;
    color: var(--muted);
}

/* ---------- Sections ---------- */

.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }

.section-head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-head p { font-size: 1.08rem; margin-bottom: 0; }

/* ---------- Feature grid ---------- */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.feature-grid li,
.feature-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px;
    box-shadow: var(--shadow-sm);
    transition: transform .16s, box-shadow .16s, border-color .16s;
}

.feature-grid li:hover,
.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: #d6dae0;
}

.feature-grid li strong { display: block; color: var(--ink); margin-bottom: 6px; font-size: 1.05rem; }

.feature-card { font-weight: 600; color: var(--ink); }

/* Numbered hex badge */
.hex-badge {
    width: 44px;
    height: 48px;
    clip-path: var(--hex);
    background: var(--brand);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    margin-bottom: 16px;
    font-size: 1.05rem;
}

/* ---------- Split (image + copy) ---------- */

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 6vw, 72px);
    align-items: center;
}

.split + .split { margin-top: clamp(56px, 8vw, 96px); }
.split-reverse .split-media { order: 2; }

/* fit-content so the box hugs the image exactly — the hexagon clip-path below
   is applied to this container, and any extra width would clip empty space
   instead of the photo. */
.split-media {
    width: fit-content;
    max-width: min(100%, 400px);
    margin-inline: auto;
}

/* width:auto, not 100%: the smallest of these images is 331px wide, and
   stretching it to fill a ~510px column upscaled it by half and made it soft.
   Capped at 400px above, images are only ever shown at or below native size. */
.split-media img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
}

.split-media.plain img { border-radius: 0; }

.split ul { padding-left: 1.15em; color: var(--ink-soft); }
.split li { margin-bottom: .5em; }

.hex-photo {
    clip-path: var(--hex);
    background: var(--bg-alt);
}

.hex-photo img { border-radius: 0 !important; }

/* ---------- Page (inner content) ---------- */

.page { padding: clamp(48px, 7vw, 80px) 24px clamp(64px, 9vw, 104px); max-width: 820px; }
.page h2 { margin-top: 2em; }
.page ul { color: var(--ink-soft); padding-left: 1.15em; }
.page li { margin-bottom: .45em; }

.page-hero {
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: clamp(44px, 6vw, 72px) 0;
    text-align: center;
}

.page-hero h1 { margin-bottom: .3em; }
.page-hero p { max-width: 640px; margin: 0 auto; font-size: 1.08rem; }

/* ---------- Pricing ---------- */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 760px;
    margin: 0 auto;
}

.pricing-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 34px 28px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.pricing-card-highlight {
    border-color: var(--brand);
    box-shadow: var(--shadow);
}

.pricing-card h3 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

.pricing-card .price {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--ink);
    margin: 10px 0 22px;
}

.pricing-card .price span { display: block; font-size: .9rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 26px;
    text-align: left;
    color: var(--ink-soft);
}

.pricing-card li { padding: 8px 0 8px 26px; position: relative; border-top: 1px solid var(--border); }
.pricing-card li:first-child { border-top: 0; }

.pricing-card li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 50%;
    width: 12px;
    height: 13px;
    transform: translateY(-50%);
    clip-path: var(--hex);
    background: var(--brand);
}

.pricing-card .btn { width: 100%; }

.ribbon {
    position: absolute;
    top: 16px;
    right: -34px;
    transform: rotate(38deg);
    background: var(--brand);
    color: #fff;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 5px 34px;
}

.fine-print { color: var(--muted); font-size: .92rem; }

.payments { margin: 40px auto 0; max-width: 300px; opacity: .8; }

/* ---------- FAQ ---------- */

.faq-list { display: flex; flex-direction: column; gap: 10px; }

.faq-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s;
}

.faq-item[open] { border-color: #d6dae0; box-shadow: var(--shadow); }

.faq-item summary {
    /* list-style removes the default triangle in modern browsers;
       ::-webkit-details-marker covers older WebKit. */
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 22px;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -.01em;
    color: var(--ink);
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--brand); }
.faq-item summary:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: -2px;
}

/* Chevron drawn in CSS so no icon font or SVG is needed. */
.faq-item summary::after {
    content: "";
    flex: none;
    width: 9px;
    height: 9px;
    margin-left: auto;
    margin-top: .45em;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg);
    transition: transform .18s ease, border-color .15s;
}

.faq-item[open] summary::after {
    transform: rotate(-135deg);
    border-color: var(--brand);
}

.faq-answer { padding: 0 22px 20px; }
.faq-answer p { margin-bottom: .8em; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer img {
    margin-top: 14px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

/* Keep a linked-to answer visually obvious after the jump. */
.faq-item:target { border-color: var(--brand); }

.faq-footnote { text-align: center; margin: 28px 0 0; color: var(--muted); }

/* ---------- Contact channels ---------- */

.channel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.channel-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: var(--ink);
    transition: transform .16s, box-shadow .16s, border-color .16s;
}

.channel-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--brand);
}

.channel-icon {
    flex: none;
    width: 42px;
    height: 46px;
    clip-path: var(--hex);
    background: var(--brand);
    color: #fff;
    display: grid;
    place-items: center;
}

.channel-icon svg { width: 21px; height: 21px; display: block; }

.channel-body { display: flex; flex-direction: column; min-width: 0; }
.channel-body strong { font-size: 1.02rem; letter-spacing: -.01em; }
.channel-detail { color: var(--brand); font-weight: 600; font-size: .92rem; overflow-wrap: anywhere; }
.channel-note { color: var(--muted); font-size: .85rem; margin-top: 4px; }

/* Anchored answers must not land under the sticky header. */
.faq-item { scroll-margin-top: 90px; }
#faq { scroll-margin-top: 70px; }

/* ---------- CTA band ---------- */

.cta {
    background: var(--ink);
    color: #fff;
    text-align: center;
    padding: clamp(56px, 8vw, 88px) 24px;
}

.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .74); max-width: 560px; margin: 0 auto 28px; }

/* ---------- Footer ---------- */

.site-footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 40px 0;
    color: var(--muted);
    font-size: .93rem;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}

.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.footer-brand img { width: 22px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--brand); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
    .split { grid-template-columns: 1fr; }
    .split-reverse .split-media { order: 0; }
    .hero-media::after {
        background: linear-gradient(180deg,
            rgba(255, 255, 255, .96) 0%,
            rgba(255, 255, 255, .9) 55%,
            rgba(255, 255, 255, .7) 100%);
    }
}

@media (max-width: 720px) {
    body { font-size: 16px; }

    .navbar { padding: 10px 20px; }
    .brand { font-size: 1.15rem; }
    .brand img { width: 26px; }

    .nav-burger { display: block; }

    /* The menu drops out of the header as a full-width panel instead of
       stacking inside it — a stacked list made the sticky header tall enough
       to eat a third of a phone screen.

       Collapsing only happens when JS is available (html.js). Without it the
       panel stays in flow and the site remains navigable. */
    html.js .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 10px 16px 16px;
        background: #fff;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }

    html.js .nav-links.is-open { display: flex; }

    .nav-links a {
        padding: 12px 10px;
        font-size: 1rem;
        border-radius: 8px;
    }

    .nav-links a.btn {
        margin: 8px 0 0;
        text-align: center;
        padding: 12px 20px;
    }

    /* In the dropped-down mobile panel the switcher must not stretch to full
       width like the menu links around it. */
    .lang-switch {
        align-self: flex-start;
        margin: 8px 0 0;
    }
    .nav-links .lang-option { padding: 9px 16px; font-size: .85rem; }

    /* Anchor for the absolutely positioned panel. */
    .site-header { position: sticky; }

    .hero-actions .btn { width: 100%; text-align: center; }
}

/* No-JS fallback: keep the old stacked layout so every link stays reachable. */
@media (max-width: 720px) {
    html:not(.js) .navbar { flex-direction: column; align-items: flex-start; gap: 8px; }
    html:not(.js) .nav-burger { display: none; }
    html:not(.js) .nav-links { flex-wrap: wrap; gap: 0; }
    html:not(.js) .nav-links a { padding: 8px 10px; font-size: .9rem; }
}
