/* =========================================================================
   Hark Tech — main stylesheet
   Single external sheet shared by every page on the site.

   Sections:
     1.  CSS variables (colours, spacing, typography)
     2.  Reset & base elements
     3.  Layout helpers (container, sections)
     4.  Buttons
     5.  Sticky navigation + mobile menu
     6.  Hero
     7.  Trust signals strip
     8.  Service cards
     9.  How-it-works steps
    10.  Generic page header (sub-pages)
    11.  Two-column content blocks (repair / printing detail pages)
    12.  Process step list
    13.  Contact / quote form
    14.  Footer
    15.  404 page
    16.  Responsive (tablet + mobile)
   ========================================================================= */


/* -------------------------------------------------------------------------
   1. CSS variables
   ------------------------------------------------------------------------- */
:root {
    /* Colour palette */
    --color-bg:           #ffffff;
    --color-text:         #2b2b3a;
    --color-muted:        #6b6b7b;
    --color-charcoal:     #1a1a2e;   /* Headers, nav, footer */
    --color-charcoal-2:   #242438;   /* Slightly lighter charcoal */
    --color-accent:       #0066cc;   /* Electric blue — CTAs, links, highlights */
    --color-accent-dark:  #0052a3;   /* Hover state */
    --color-border:       #e3e3ec;
    --color-soft-bg:      #f6f7fb;   /* Section alt background */

    /* Typography */
    --font-body:    'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --font-heading: 'Poppins', 'Inter', system-ui, sans-serif;

    /* Spacing scale */
    --space-xs:  0.5rem;
    --space-sm:  1rem;
    --space-md:  2rem;
    --space-lg:  4rem;
    --space-xl:  6rem;

    /* Layout */
    --max-width: 1140px;
    --radius:    10px;
    --shadow:    0 4px 18px rgba(20, 20, 50, 0.06);
    --shadow-lg: 0 10px 30px rgba(20, 20, 50, 0.10);
}


/* -------------------------------------------------------------------------
   2. Reset & base
   ------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;       /* Smooth in-page scrolling */
    scroll-padding-top: 80px;      /* Stop short of sticky nav */
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-charcoal);
    line-height: 1.25;
    margin: 0 0 var(--space-sm);
    font-weight: 600;
}

h1 { font-size: clamp(2rem, 4vw + 1rem, 3.4rem); letter-spacing: -0.5px; }
h2 { font-size: clamp(1.6rem, 2vw + 1rem, 2.3rem); }
h3 { font-size: 1.25rem; }

p {
    margin: 0 0 var(--space-sm);
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.18s ease;
}
a:hover { color: var(--color-accent-dark); }

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

ul {
    padding-left: 1.25rem;
}


/* -------------------------------------------------------------------------
   3. Layout helpers
   ------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

section {
    padding: var(--space-xl) 0;
}

.section-alt {
    background: var(--color-soft-bg);
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-md);
}
.section-title p {
    color: var(--color-muted);
    max-width: 640px;
    margin: 0.5rem auto 0;
}


/* -------------------------------------------------------------------------
   4. Buttons
   ------------------------------------------------------------------------- */
.btn {
    display: inline-block;
    padding: 0.85rem 1.6rem;
    font-family: var(--font-heading);
    font-size: 0.97rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
    text-align: center;
    line-height: 1.2;
}

.btn-primary {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}
.btn-primary:hover {
    background: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--color-accent);
    border-color: var(--color-accent);
}
.btn-secondary:hover {
    background: var(--color-accent);
    color: #fff;
    transform: translateY(-2px);
}

/* On dark hero, secondary needs to be visible */
.btn-secondary.on-dark {
    color: #ffffff;
    border-color: #ffffff;
}
.btn-secondary.on-dark:hover {
    background: #ffffff;
    color: var(--color-charcoal);
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}


/* -------------------------------------------------------------------------
   5. Sticky navigation
   ------------------------------------------------------------------------- */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-charcoal);
    color: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.35rem;
    color: #fff;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}
.nav-logo .logo-mark {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    object-fit: cover;
    display: block;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: var(--space-md);
    margin: 0;
    padding: 0;
}
.nav-links a {
    color: #e6e6f0;
    font-weight: 500;
    font-size: 0.97rem;
    padding: 0.4rem 0;
    border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
    border-bottom-color: var(--color-accent);
}

/* Mobile hamburger button — hidden by default, shown on small screens */
.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
    padding: 0.3rem 0.5rem;
    line-height: 1;
}


/* -------------------------------------------------------------------------
   6. Hero
   ------------------------------------------------------------------------- */
.hero {
    background:
        radial-gradient(circle at 20% 20%, rgba(0,102,204,0.22), transparent 55%),
        radial-gradient(circle at 80% 70%, rgba(0,102,204,0.12), transparent 60%),
        var(--color-charcoal);
    color: #fff;
    padding: clamp(4rem, 8vw, 7rem) 0;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-md);
    align-items: center;
}

.hero h1 {
    color: #fff;
    margin-bottom: var(--space-sm);
}

.hero .tagline {
    font-size: 1.15rem;
    color: #c8c8d8;
    max-width: 540px;
    margin-bottom: var(--space-md);
}

.hero-illustration {
    width: 100%;
    max-width: 420px;
    margin-left: auto;
}

/* Real brand logo used in the hero (replaces the old SVG illustration).
   Portrait image, so max-width is tighter than the SVG version was. */
.hero-logo {
    display: block;
    width: 100%;
    max-width: 320px;
    height: auto;
    margin-left: auto;
    border-radius: 10px;
    /* Subtle glow so the logo feels part of the dark hero rather than
       a rectangle pasted on top. */
    box-shadow: 0 0 60px rgba(0, 102, 204, 0.25),
                0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Logo displayed next to the founder bio on the About page */
.about-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md) 0;
}
.about-logo img {
    display: block;
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(20, 20, 50, 0.15);
}


/* -------------------------------------------------------------------------
   7. Trust signals strip
   ------------------------------------------------------------------------- */
.trust-strip {
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-md) 0;
}
.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    text-align: center;
}
.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.trust-item svg {
    width: 36px;
    height: 36px;
    color: var(--color-accent);
}
.trust-item strong {
    font-family: var(--font-heading);
    color: var(--color-charcoal);
    font-size: 1.05rem;
}
.trust-item span {
    color: var(--color-muted);
    font-size: 0.9rem;
}


/* -------------------------------------------------------------------------
   8. Service cards
   ------------------------------------------------------------------------- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.service-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: var(--space-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}
.service-card .icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(0,102,204,0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-sm);
    color: var(--color-accent);
}
.service-card .icon svg { width: 30px; height: 30px; }
.service-card h3 { margin-bottom: 0.5rem; }
.service-card p { color: var(--color-muted); flex: 1; }
.service-card .card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    margin-top: var(--space-sm);
}
.service-card .card-link::after {
    content: '\2192';
    transition: transform 0.18s ease;
}
.service-card:hover .card-link::after {
    transform: translateX(4px);
}


/* -------------------------------------------------------------------------
   9. How-it-works step grid
   ------------------------------------------------------------------------- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-md);
}
.step {
    text-align: center;
    padding: var(--space-md) var(--space-sm);
}
.step .num {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-accent);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-sm);
    box-shadow: 0 6px 16px rgba(0,102,204,0.30);
}
.step h3 { margin-bottom: 0.4rem; }
.step p { color: var(--color-muted); font-size: 0.95rem; }


/* -------------------------------------------------------------------------
   10. Generic page header (used on sub-pages)
   ------------------------------------------------------------------------- */
.page-header {
    background: var(--color-charcoal);
    color: #fff;
    padding: var(--space-lg) 0 var(--space-md);
    text-align: center;
}
.page-header h1 { color: #fff; margin-bottom: 0.5rem; }
.page-header p { color: #c8c8d8; max-width: 640px; margin: 0 auto; }


/* -------------------------------------------------------------------------
   11. Two-column content (sub-page intro blocks)
   ------------------------------------------------------------------------- */
.content-block {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: var(--space-lg);
    align-items: start;
}
.content-block h2 { margin-top: 0; }
.content-block ul {
    padding-left: 1.1rem;
}
.content-block ul li {
    margin-bottom: 0.5rem;
}
.content-block .side-illustration {
    background: var(--color-soft-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
}
.content-block .side-illustration svg { max-width: 220px; }


/* -------------------------------------------------------------------------
   12. Process step list (numbered, vertical)
   ------------------------------------------------------------------------- */
.process-list {
    list-style: none;
    padding: 0;
    margin: var(--space-md) 0 0;
    counter-reset: step;
}
.process-list li {
    position: relative;
    padding: 1.2rem 1.2rem 1.2rem 4.5rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    margin-bottom: 0.9rem;
    counter-increment: step;
}
.process-list li::before {
    content: counter(step);
    position: absolute;
    left: 1.2rem;
    top: 1.1rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--color-accent);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,102,204,0.25);
}
.process-list li strong {
    display: block;
    color: var(--color-charcoal);
    font-family: var(--font-heading);
    margin-bottom: 0.2rem;
}
.process-list li span {
    color: var(--color-muted);
    font-size: 0.97rem;
}

/* Callout box (warranty / no-walk-in notes) */
.callout {
    margin-top: var(--space-md);
    padding: 1.2rem 1.4rem;
    border-left: 4px solid var(--color-accent);
    background: rgba(0,102,204,0.06);
    border-radius: 6px;
}
.callout strong { color: var(--color-charcoal); }


/* -------------------------------------------------------------------------
   13. Contact / quote form
   ------------------------------------------------------------------------- */
.form-wrap {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: var(--space-lg);
    align-items: start;
}

.contact-form {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: var(--space-md);
    box-shadow: var(--shadow);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}
.form-field {
    margin-bottom: var(--space-sm);
}
.form-field label {
    display: block;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--color-charcoal);
    margin-bottom: 0.35rem;
}
.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--color-border);
    border-radius: 7px;
    font-family: var(--font-body);
    font-size: 0.97rem;
    color: var(--color-text);
    background: #fff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(0,102,204,0.15);
}
.form-field textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-side {
    background: var(--color-soft-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: var(--space-md);
}
.contact-side h3 { margin-top: 0; }
.contact-side .info-item {
    display: flex;
    gap: 0.85rem;
    margin-bottom: var(--space-sm);
}
.contact-side .info-item svg {
    width: 22px;
    height: 22px;
    color: var(--color-accent);
    flex-shrink: 0;
    margin-top: 0.15rem;
}
.contact-side .info-item strong {
    display: block;
    color: var(--color-charcoal);
    font-family: var(--font-heading);
}
.contact-side .info-item span,
.contact-side .info-item a {
    color: var(--color-muted);
    font-size: 0.95rem;
    word-break: break-word;
}


/* -------------------------------------------------------------------------
   14. Footer
   ------------------------------------------------------------------------- */
.site-footer {
    background: var(--color-charcoal);
    color: #c8c8d8;
    padding: var(--space-md) 0 var(--space-sm);
    margin-top: var(--space-lg);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.3fr;  /* four columns: brand + services + company + legal */
    gap: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid #2d2d44;
}

/* Trader / legal block inside the brand column */
.footer-trader {
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid #2d2d44;
    font-size: 0.82rem;
    line-height: 1.55;
    color: #8b8ba0;
}
.footer-grid h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 0.7rem;
}
.footer-grid p,
.footer-grid li {
    font-size: 0.92rem;
    color: #aeaec0;
    line-height: 1.6;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: 0.35rem; }
.footer-grid a { color: #aeaec0; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    padding-top: var(--space-sm);
    color: #888899;
}


/* -------------------------------------------------------------------------
   15. 404 page
   ------------------------------------------------------------------------- */
.notfound {
    text-align: center;
    padding: var(--space-xl) var(--space-md);
}
.notfound .big {
    font-family: var(--font-heading);
    font-size: clamp(5rem, 14vw, 9rem);
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
    margin: 0;
}
.notfound h1 { margin-top: var(--space-sm); }
.notfound p { color: var(--color-muted); max-width: 480px; margin: 0 auto var(--space-md); }


/* -------------------------------------------------------------------------
   15b. About page — values grid
   ------------------------------------------------------------------------- */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-md);
}
.value-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: var(--space-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.value-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}
.value-card .value-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(0, 102, 204, 0.10);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-sm);
}
.value-card .value-icon svg { width: 24px; height: 24px; }
.value-card h3 { margin-bottom: 0.4rem; }
.value-card p { color: var(--color-muted); margin: 0; font-size: 0.94rem; }

.muted-center {
    color: var(--color-muted);
    max-width: 560px;
    margin: 0 auto var(--space-md);
}


/* -------------------------------------------------------------------------
   15c. Pricing guide (repair.html + printing.html)
   ------------------------------------------------------------------------- */
.pricing-promises {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
    margin: var(--space-md) 0;
}
.pricing-promise {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    background: var(--color-soft-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1rem 1.1rem;
}
.pricing-promise svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    color: var(--color-accent);
    margin-top: 0.1rem;
}
.pricing-promise strong {
    display: block;
    font-family: var(--font-heading);
    color: var(--color-charcoal);
    font-size: 1rem;
}
.pricing-promise span {
    color: var(--color-muted);
    font-size: 0.88rem;
}

.pricing-subhead {
    margin-top: var(--space-md);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--color-charcoal);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}
.pricing-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.1rem 1.2rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.pricing-card:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow);
}
.pricing-card h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--color-charcoal);
    margin: 0 0 0.35rem;
}
.pricing-range {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-accent);
    margin: 0 0 0.4rem;
    letter-spacing: -0.3px;
}
.pricing-note {
    color: var(--color-muted);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}


/* -------------------------------------------------------------------------
   15d. FAQ — native <details>/<summary> accordion
   ------------------------------------------------------------------------- */
.faq-container {
    max-width: 800px;
}
.faq-group-heading {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-accent);
    margin: var(--space-md) 0 var(--space-sm);
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--color-border);
}
.faq-group-heading:first-child { margin-top: 0; }

.faq-item {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    margin-bottom: 0.7rem;
    overflow: hidden;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.faq-item:hover { border-color: var(--color-accent); }
.faq-item[open] {
    border-color: var(--color-accent);
    box-shadow: var(--shadow);
}
.faq-item summary {
    list-style: none;
    padding: 1rem 1.2rem;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-charcoal);
    position: relative;
    padding-right: 3rem;
    user-select: none;
}
/* Hide the default disclosure triangle */
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ''; }

/* Custom chevron */
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--color-accent);
    transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
    content: '\2212';  /* minus sign */
}
.faq-item p {
    padding: 0 1.2rem 1.1rem;
    margin: 0;
    color: var(--color-text);
    font-size: 0.95rem;
}


/* -------------------------------------------------------------------------
   15e. Legal pages (privacy.html + terms.html) — long-form text
   ------------------------------------------------------------------------- */
.legal-content {
    max-width: 780px;
}
.legal-content h2 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-top: var(--space-md);
    margin-bottom: 0.6rem;
    color: var(--color-charcoal);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--color-border);
}
.legal-content h2:first-of-type {
    padding-top: 0;
    border-top: 0;
    margin-top: 0;
}
.legal-content p,
.legal-content li {
    line-height: 1.7;
}
.legal-content ul {
    padding-left: 1.25rem;
    margin-bottom: var(--space-sm);
}
.legal-content li { margin-bottom: 0.35rem; }


/* -------------------------------------------------------------------------
   16. Responsive — tablet + mobile
   ------------------------------------------------------------------------- */
@media (max-width: 1000px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;   /* two columns on tablet */
    }
    .values-grid,
    .pricing-grid,
    .pricing-promises {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .hero .container,
    .content-block,
    .form-wrap {
        grid-template-columns: 1fr;
    }
    .hero-illustration { margin: var(--space-md) auto 0; }
    .hero-logo         { margin: var(--space-md) auto 0; max-width: 240px; }
    .service-grid,
    .steps-grid,
    .trust-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }
    .values-grid,
    .pricing-grid,
    .pricing-promises {
        grid-template-columns: 1fr;
    }
    section { padding: var(--space-lg) 0; }
}

@media (max-width: 720px) {
    /* Show mobile menu toggle, hide list (until activated) */
    .nav-toggle { display: block; }

    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--color-charcoal-2);
        flex-direction: column;
        gap: 0;
        padding: var(--space-sm) 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
    }
    .nav-links.open {
        max-height: 400px;
    }
    .nav-links li {
        text-align: center;
    }
    .nav-links a {
        display: block;
        padding: 0.85rem 1rem;
        border-bottom: 1px solid #2d2d44;
    }
    .nav-links a:hover,
    .nav-links a.active {
        border-bottom-color: #2d2d44;
        background: rgba(255,255,255,0.04);
    }

    .form-row { grid-template-columns: 1fr; }
}

/* =========================================================================
   17. POLISH PASS — extended visual upgrades
   (Appended separately; original design system above remains authoritative.)
   ========================================================================= */


/* -------------------------------------------------------------------------
   17a. New semantic variables + dark-mode palette
   ------------------------------------------------------------------------- */
:root {
    --color-card:     #ffffff;
    --color-input:    #ffffff;
    --grid-pattern:   rgba(0, 0, 0, 0.04);
    --hero-circuit:   rgba(0, 130, 220, 0.18);
    --accent-glow:    0 0 0 rgba(0, 102, 204, 0);
}

html[data-theme="dark"] {
    --color-bg:          #0c0c18;
    --color-text:        #e6e6f0;
    --color-muted:       #9b9bb5;
    --color-charcoal:    #050510;
    --color-charcoal-2:  #15152b;
    --color-border:      #26263d;
    --color-soft-bg:     #14142a;
    --color-card:        #1a1a2e;
    --color-input:       #14142a;
    --grid-pattern:      rgba(255, 255, 255, 0.04);
    --hero-circuit:      rgba(80, 170, 255, 0.28);
    --shadow:            0 4px 18px rgba(0, 0, 0, 0.35);
    --shadow-lg:         0 12px 36px rgba(0, 0, 0, 0.5);
}

/* Smooth palette crossfade when toggling theme */
html { transition: background-color 0.35s ease, color 0.35s ease; }
body,
.site-nav,
.service-card,
.value-card,
.pricing-card,
.faq-item,
.contact-form,
.contact-side,
.process-list li,
.form-field input,
.form-field select,
.form-field textarea,
.site-footer,
.trust-strip {
    transition: background-color 0.35s ease,
                border-color     0.35s ease,
                color            0.35s ease,
                box-shadow       0.35s ease;
}


/* -------------------------------------------------------------------------
   17b. Dark-mode overrides for hardcoded backgrounds
   ------------------------------------------------------------------------- */
html[data-theme="dark"] .service-card,
html[data-theme="dark"] .value-card,
html[data-theme="dark"] .pricing-card,
html[data-theme="dark"] .faq-item,
html[data-theme="dark"] .contact-form,
html[data-theme="dark"] .process-list li {
    background: var(--color-card);
    border-color: var(--color-border);
}
html[data-theme="dark"] .contact-side,
html[data-theme="dark"] .pricing-promise {
    background: var(--color-soft-bg);
    border-color: var(--color-border);
}
html[data-theme="dark"] .form-field input,
html[data-theme="dark"] .form-field select,
html[data-theme="dark"] .form-field textarea {
    background: var(--color-input);
    color: var(--color-text);
    border-color: var(--color-border);
}
html[data-theme="dark"] .trust-strip        { background: var(--color-bg);        border-bottom-color: var(--color-border); }
html[data-theme="dark"] .callout            { background: rgba(80,170,255,0.08); }
html[data-theme="dark"] .legal-content h2   { border-top-color: var(--color-border); }
html[data-theme="dark"] .nav-links a        { color: #cfcfe2; }
html[data-theme="dark"] .hero-logo          { box-shadow: 0 0 80px rgba(80,170,255,0.25), 0 20px 60px rgba(0,0,0,0.6); }


/* -------------------------------------------------------------------------
   17c. Theme toggle button (inside nav)
   ------------------------------------------------------------------------- */
.theme-toggle {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
    margin-left: var(--space-sm);
}
.theme-toggle:hover {
    border-color: var(--color-accent);
    background: rgba(0, 102, 204, 0.18);
    transform: rotate(12deg);
}
.theme-toggle svg       { width: 18px; height: 18px; }
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
html[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }


/* -------------------------------------------------------------------------
   17d. Sticky-nav: backdrop-blur when scrolled
   ------------------------------------------------------------------------- */
.site-nav.scrolled {
    background: rgba(10, 10, 22, 0.78);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    box-shadow: 0 6px 26px rgba(0, 0, 0, 0.35);
}
html[data-theme="dark"] .site-nav.scrolled {
    background: rgba(5, 5, 16, 0.82);
}


/* -------------------------------------------------------------------------
   17e. Animated circuit-board hero background
   A layered SVG pattern (thin blue traces + connection dots) fades in over
   the existing radial-gradient hero. Dots pulse gently. Respects
   prefers-reduced-motion.
   ------------------------------------------------------------------------- */
.hero {
    position: relative;
    isolation: isolate;          /* keep stacking clean */
}
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
/* Layer 1 — subtle grid/traces */
.hero::before {
    background-image:
        linear-gradient(to right, var(--hero-circuit) 1px, transparent 1px),
        linear-gradient(to bottom, var(--hero-circuit) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    opacity: 0.7;
}
/* Layer 2 — floating glow dots */
.hero::after {
    background-image:
        radial-gradient(circle 2px at 12% 22%, rgba(80,170,255,0.9), transparent 60%),
        radial-gradient(circle 2px at 88% 18%, rgba(80,170,255,0.7), transparent 60%),
        radial-gradient(circle 3px at 22% 78%, rgba(80,170,255,0.9), transparent 60%),
        radial-gradient(circle 2px at 72% 82%, rgba(80,170,255,0.75), transparent 60%),
        radial-gradient(circle 2px at 55% 46%, rgba(80,170,255,0.85), transparent 60%),
        radial-gradient(circle 2px at 40% 12%, rgba(80,170,255,0.7), transparent 60%),
        radial-gradient(circle 3px at 92% 62%, rgba(80,170,255,0.9), transparent 60%);
    animation: hero-pulse 4.5s ease-in-out infinite;
}
.hero > .container { position: relative; z-index: 1; }

@keyframes hero-pulse {
    0%, 100% { opacity: 0.55; }
    50%      { opacity: 1.0;  }
}
@media (prefers-reduced-motion: reduce) {
    .hero::after { animation: none; opacity: 0.75; }
}


/* -------------------------------------------------------------------------
   17f. Hero "status pill" — small live-availability badge above h1
   ------------------------------------------------------------------------- */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.8rem 0.35rem 0.65rem;
    background: rgba(0, 200, 120, 0.14);
    border: 1px solid rgba(0, 200, 120, 0.4);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6ee7a9;
    letter-spacing: 0.2px;
    margin-bottom: var(--space-sm);
    font-family: var(--font-heading);
}
.status-pill .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #26d97e;
    box-shadow: 0 0 0 0 rgba(38, 217, 126, 0.6);
    animation: status-ping 2.2s ease-out infinite;
}
@keyframes status-ping {
    0%   { box-shadow: 0 0 0 0   rgba(38, 217, 126, 0.6); }
    70%  { box-shadow: 0 0 0 10px rgba(38, 217, 126, 0); }
    100% { box-shadow: 0 0 0 0   rgba(38, 217, 126, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .status-pill .dot { animation: none; }
}


/* -------------------------------------------------------------------------
   17g. Hero heading — subtle gradient underline
   ------------------------------------------------------------------------- */
.hero h1 {
    position: relative;
    display: inline-block;
}
.hero h1::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.5rem;
    width: 72px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), transparent);
    border-radius: 2px;
}


/* -------------------------------------------------------------------------
   17h. Workshop capabilities strip (replaces "photos coming" void)
   A full-width horizontally-scrolling row of capability chips with small
   icons. On desktop it's static; on mobile it scrolls naturally.
   ------------------------------------------------------------------------- */
.capabilities-strip {
    background: var(--color-charcoal-2);
    color: #cfcfe2;
    padding: 1.1rem 0;
    border-top: 1px solid #2a2a44;
    border-bottom: 1px solid #2a2a44;
    overflow: hidden;
}
.capabilities-track {
    display: flex;
    gap: var(--space-md);
    align-items: center;
    flex-wrap: nowrap;
    animation: cap-scroll 40s linear infinite;
    width: max-content;
}
.capabilities-strip:hover .capabilities-track { animation-play-state: paused; }
@keyframes cap-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .capabilities-track { animation: none; flex-wrap: wrap; justify-content: center; }
}

.capability {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.92rem;
    font-weight: 500;
    font-family: var(--font-heading);
    white-space: nowrap;
    color: #cfcfe2;
    opacity: 0.85;
}
.capability svg {
    width: 18px;
    height: 18px;
    color: var(--color-accent);
    flex-shrink: 0;
}
.capability-sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #555570;
    flex-shrink: 0;
}


/* -------------------------------------------------------------------------
   17i. Service cards — gradient-border hover + arrow slide
   ------------------------------------------------------------------------- */
.service-card {
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, transparent, var(--color-accent), transparent);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.service-card:hover::before { opacity: 1; }

/* subtle shine sweep on hover */
.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(0, 102, 204, 0.07) 50%,
        transparent 100%
    );
    transition: transform 0.85s ease;
    transform: translateX(0) skewX(-18deg);
    pointer-events: none;
}
.service-card:hover::after { transform: translateX(340%) skewX(-18deg); }


/* -------------------------------------------------------------------------
   17j. How-it-works — connecting line between numbered steps
   ------------------------------------------------------------------------- */
.steps-grid {
    position: relative;
}
.steps-grid::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 14%;
    right: 14%;
    height: 2px;
    background: repeating-linear-gradient(
        to right,
        var(--color-accent) 0 8px,
        transparent 8px 16px
    );
    opacity: 0.55;
    z-index: 0;
}
.step { position: relative; z-index: 1; }
.step .num {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.step:hover .num {
    transform: scale(1.08);
    box-shadow: 0 10px 28px rgba(0,102,204,0.45);
}
@media (max-width: 900px) {
    .steps-grid::before { display: none; }
}


/* -------------------------------------------------------------------------
   17k. Buttons — shine sweep on primary
   ------------------------------------------------------------------------- */
.btn-primary {
    position: relative;
    overflow: hidden;
    z-index: 0;
}
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        100deg,
        transparent 0%,
        rgba(255,255,255,0.22) 50%,
        transparent 100%
    );
    transition: transform 0.6s ease;
    z-index: -1;
}
.btn-primary:hover::after { transform: translateX(200%); }


/* -------------------------------------------------------------------------
   17l. Scroll-reveal entrance animation
   ------------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    will-change: opacity, transform;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
/* Stagger children when the parent reveals */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-stagger.visible > *              { opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.18s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.31s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.44s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.57s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.70s; }

@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
}


/* -------------------------------------------------------------------------
   17m. Sub-page header — animated gradient accent underline
   ------------------------------------------------------------------------- */
.page-header {
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, var(--hero-circuit) 1px, transparent 1px),
        linear-gradient(to bottom, var(--hero-circuit) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    opacity: 0.55;
    pointer-events: none;
}
.page-header > .container { position: relative; z-index: 1; }
.page-header h1 {
    display: inline-block;
    position: relative;
}
.page-header h1::after {
    content: '';
    display: block;
    width: 56px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), transparent);
    margin: 0.8rem auto 0;
    border-radius: 2px;
}


/* -------------------------------------------------------------------------
   17n. Footer polish — subtle gradient top border + social slots
   ------------------------------------------------------------------------- */
.site-footer {
    position: relative;
}
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--color-accent) 40%,
        var(--color-accent) 60%,
        transparent 100%);
    opacity: 0.55;
}
.footer-social {
    display: flex;
    gap: 0.55rem;
    margin-top: var(--space-sm);
}
.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #aeaec0;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.footer-social a:hover {
    background: rgba(0, 102, 204, 0.18);
    border-color: var(--color-accent);
    color: #ffffff;
}
.footer-social svg { width: 16px; height: 16px; }


/* -------------------------------------------------------------------------
   17o. Trust-strip counter number emphasis
   ------------------------------------------------------------------------- */
.trust-item strong {
    position: relative;
    display: inline-block;
}
.trust-item { padding: 0.4rem 0; }
.trust-item:hover svg {
    transform: rotate(-6deg) scale(1.1);
    transition: transform 0.3s ease;
}


/* -------------------------------------------------------------------------
   17p. Print & repair pricing — "from" price emphasis on cards
   ------------------------------------------------------------------------- */
.pricing-card {
    position: relative;
    overflow: hidden;
}
.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), transparent);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.pricing-card:hover::before { opacity: 1; }


/* -------------------------------------------------------------------------
   17q. Contact form — file drop zone visual
   ------------------------------------------------------------------------- */
.file-drop {
    border: 2px dashed var(--color-border);
    border-radius: var(--radius);
    padding: 1.2rem;
    text-align: center;
    color: var(--color-muted);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
    font-size: 0.92rem;
    background: var(--color-soft-bg);
}
.file-drop:hover,
.file-drop.dragover {
    border-color: var(--color-accent);
    background: rgba(0, 102, 204, 0.06);
    color: var(--color-charcoal);
}
.file-drop svg {
    width: 24px;
    height: 24px;
    color: var(--color-accent);
    margin-bottom: 0.35rem;
}
.file-drop-filename {
    display: block;
    margin-top: 0.4rem;
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.9rem;
    word-break: break-all;
}
.char-counter {
    display: block;
    text-align: right;
    font-size: 0.78rem;
    color: var(--color-muted);
    margin-top: 0.25rem;
}
.char-counter.over { color: #d14343; }


/* -------------------------------------------------------------------------
   17r. Tiny utilities
   ------------------------------------------------------------------------- */
.text-accent { color: var(--color-accent); }
.dots-bg {
    background-image: radial-gradient(circle, var(--grid-pattern) 1px, transparent 1px);
    background-size: 22px 22px;
}


/* -------------------------------------------------------------------------
   17s. Responsive tweaks for the new pieces
   ------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .theme-toggle { margin-left: auto; margin-right: 0.5rem; order: 1; }
    .nav-toggle   { order: 2; }
    .capabilities-track { animation-duration: 28s; }
}


/* -------------------------------------------------------------------------
   18. Dark-mode text-colour fixes
   Many elements use var(--color-charcoal) as a text colour (headings,
   labels, strong emphases). In dark mode --color-charcoal is remapped
   to a nav/footer-background shade (almost black), which makes those
   texts invisible against the dark page background. Force them light.
   ------------------------------------------------------------------------- */
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6,
html[data-theme="dark"] .service-card h3,
html[data-theme="dark"] .value-card h3,
html[data-theme="dark"] .pricing-card h4,
html[data-theme="dark"] .trust-item strong,
html[data-theme="dark"] .pricing-promise strong,
html[data-theme="dark"] .process-list li strong,
html[data-theme="dark"] .contact-side .info-item strong,
html[data-theme="dark"] .contact-side h3,
html[data-theme="dark"] .form-field label,
html[data-theme="dark"] .pricing-subhead,
html[data-theme="dark"] .faq-item summary,
html[data-theme="dark"] .callout strong,
html[data-theme="dark"] .legal-content h2,
html[data-theme="dark"] .section-title h2,
html[data-theme="dark"] .footer-grid h4,
html[data-theme="dark"] .page-header h1,
html[data-theme="dark"] .hero h1,
html[data-theme="dark"] .file-drop:hover,
html[data-theme="dark"] .file-drop.dragover {
    color: var(--color-text);
}

/* Subtle body text tweaks in dark mode */
html[data-theme="dark"] .tagline,
html[data-theme="dark"] .trust-item span,
html[data-theme="dark"] .step p,
html[data-theme="dark"] .service-card p,
html[data-theme="dark"] .value-card p,
html[data-theme="dark"] .pricing-note,
html[data-theme="dark"] .pricing-promise span,
html[data-theme="dark"] .contact-side .info-item span,
html[data-theme="dark"] .contact-side .info-item a,
html[data-theme="dark"] .section-title p,
html[data-theme="dark"] .muted-center,
html[data-theme="dark"] .process-list li span,
html[data-theme="dark"] .char-counter,
html[data-theme="dark"] .file-drop {
    color: var(--color-muted);
}

/* Trust-strip icons + section-alt background need more contrast in dark */
html[data-theme="dark"] .section-alt {
    background: var(--color-soft-bg);
}
html[data-theme="dark"] .faq-item p {
    color: var(--color-text);
}
html[data-theme="dark"] .faq-group-heading {
    border-bottom-color: var(--color-border);
}

/* Legal page H2 separator lines */
html[data-theme="dark"] .legal-content h2 {
    border-top-color: var(--color-border);
}

/* Footer "trader" small-print block is deliberately muted */
html[data-theme="dark"] .footer-trader {
    color: #8b8ba0;
    border-top-color: var(--color-border);
}
