/* Design tokens for C.L.P. Electrical. Every colour, font and spacing value lives here and nowhere else. */

:root {
    --color-bg-primary: #383838;     /* middle dark grey page background */
    --color-bg-secondary: #2f2f2f;   /* header, footer, trust bar, call-to-action band */
    --color-bg-tertiary: #424242;    /* cards, raised surfaces */
    --color-accent: #f28c28;         /* orange - buttons, labels, accents */
    --color-accent-hover: #f9a14d;   /* lighter orange on hover */
    --color-text-primary: #f2f2f2;   /* body text and headings */
    --color-text-secondary: #bdbdbd; /* footer text, captions, secondary copy */
    --color-text-inverted: #1c1c1c;  /* text on orange */
    --color-border: #4f4f4f;         /* hairlines, card and field borders */
    --color-overlay: rgba(0, 0, 0, 0.55); /* dark layer over hero photos */
    --color-success: #4caf50;        /* success states (reserved, not used yet) */

    --color-logo-badge: #f5f5f5;     /* light rounded badge behind the logo */
    --color-placeholder-bg: #7a7a7a; /* flat grey block for missing photos */
    --color-placeholder-text: #1c1c1c; /* text on placeholder blocks and tags */
    --color-placeholder-tag: #ffd54a; /* PLACEHOLDER tag background, deliberately loud */
    --color-focus: #ffffff;          /* focus ring, visible on dark and orange */

    /* Typography families */
    --font-heading: "Lora", Georgia, "Times New Roman", serif;       /* headings */
    --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; /* body and UI */

    /* Fluid type scale (minimum 1rem = 16px everywhere) */
    --text-base: 1.0625rem;                            /* body copy */
    --text-small: 1rem;                                /* labels, footer, nav - never below 16px */
    --text-lead: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem); /* intro and sub text */
    --text-h3: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
    --text-h2: clamp(1.625rem, 1.3rem + 1.6vw, 2.5rem);
    --text-h1: clamp(2rem, 1.4rem + 3vw, 3.75rem);
    --text-hero: clamp(2rem, 1.2rem + 3.6vw, 4.25rem); /* hero headline */
    --text-quote-mark: 5rem;                           /* large orange quotation mark */

    --weight-regular: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --line-body: 1.65;
    --line-heading: 1.2;
    --tracking-label: 0.12em;                          /* uppercase nav and labels */

    /* Spacing scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --space-8: 4.5rem;
    --space-9: 6.5rem;
    --section-space: clamp(var(--space-7), 8vw, var(--space-9)); /* vertical padding of each section */
    --gutter: clamp(var(--space-4), 4vw, var(--space-6));        /* page side padding */

    /* Layout */
    --container-max: 72rem;     /* main content width */
    --container-narrow: 46rem;  /* reading column */
    --header-height: 5rem;      /* fixed header, also used for scroll-margin-top */
    --hero-min-height: 36rem;   /* hero never gets shorter than this */
    --tap-min: 2.75rem;         /* minimum tap target, 44px */
    --list-column: 20rem;       /* minimum column width for wide lists */
    --gallery-height: 26rem;    /* tallest a gallery row gets */
    --lightbox-max: 56rem;      /* enlarged photo width on desktop, about double */
    --lightbox-phone-height: 70vh; /* enlarged photo height on portrait phones */
    --logo-width: 5.5rem;       /* logo display width, below natural 132px */
    --logo-height: 3.5rem;      /* logo display height, below natural 84px */

    /* Shape and motion */
    --radius: 8px;              /* cards, buttons, badges */
    --radius-badge: 12px;       /* logo badge */
    --border-width: 1px;
    --accent-line: 4px;         /* orange card accent line, nav underline */
    --focus-width: 3px;
    --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.25); /* raised card shadow */
    --duration-fade: 0.8s;      /* hero cross-fade */
    --duration-reveal: 0.5s;    /* scroll reveal */
    --duration-ui: 0.2s;        /* hovers and menu */
    --reveal-distance: 1.25rem; /* fade-up travel */
}
