/* =========================================================
   Cubetek Solutions – Global Styles
   File: solutions.css
   Notes:
   - Mobile-first, accessible, and performant
   - Dark mode via prefers-color-scheme
   - Reduced-motion friendly
   - Clean design tokens and consistent spacing/typography
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
    /* Palette (light) */
    --black: #000000;
    --white: #ffffff;
    --blue-slate: #1e3a5f; /* Brand */
    --accent: #0d6efd; /* Accent/CTA (Bootstrap blue) */
    --dark-grey: #2e2e2e;
    --mid-grey: #444444;
    --muted: #6b7280; /* Slate-ish neutral */
    --light-grey: #f5f5f5; /* Section surface */
    --border: #e5e7eb; /* Light border */
    /* Surfaces & overlays */
    --surface: #ffffff;
    --elevated: #fafafa;
    --overlay-dark: rgba(0, 0, 0, 0.5); /* For hero text readability */
    /* Effects */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow: 0 6px 16px rgba(0,0,0,0.15);
    --shadow-lg: 0 12px 26px rgba(0,0,0,0.20);
    --radius-sm: 10px;
    --radius: 14px;
    --radius-pill: 999px;
    /* Dimensions */
    --maxw: 1100px;
    --container-pad: 20px;
    /* Typography */
    --font-sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --leading: 1.6;
    /* Spacing scale */
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    /* Hero & strip backgrounds (update paths if local) */
    --hero-img: url('https://wallpaperaccess.com/full/741452.jpg');
    --strip-img: url('https://wallpaperaccess.com/full/317501.jpg');
}

/* ---------- Dark Mode ---------- */
@media (prefers-color-scheme: dark) {
    :root {
        --white: #0b1220;
        --surface: #0f172a; /* Deep slate */
        --elevated: #111827;
        --mid-grey: #e5e7eb; /* Light text */
        --muted: #cbd5e1; /* Muted text */
        --light-grey: #111827; /* Section surface (dark) */
        --border: #1f2937;
        --overlay-dark: rgba(0, 0, 0, 0.55);
        --shadow: 0 6px 18px rgba(0,0,0,0.35);
        --shadow-lg: 0 12px 28px rgba(0,0,0,0.40);
    }
}

/* ---------- Base / Reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    line-height: var(--leading);
    color: var(--mid-grey);
    background: var(--white);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* Remove default margins on common block elements */
h1, h2, h3, h4, p, ul {
    margin: 0;
}

/* Better focus visibility */
:focus-visible {
    outline: 3px solid rgba(13, 110, 253, 0.6);
    outline-offset: 2px;
    border-radius: 6px;
}

/* Links */
a {
    color: var(--accent);
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

/* Typography scale (fluid) */
h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.25;
}

h3 {
    font-size: clamp(1.125rem, 2.3vw, 1.25rem);
    line-height: 1.3;
}

p, li {
    color: var(--muted);
}

/* Lists */
ul {
    padding-left: 1.2rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Container */
main {
    max-width: var(--maxw);
    margin: var(--space-10) auto;
    padding: 0 var(--container-pad);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 100px var(--container-pad);
    color: #fff;
    background: linear-gradient(var(--overlay-dark), var(--overlay-dark)), var(--hero-img) center/cover no-repeat;
}

    .hero h1 {
        font-weight: 700;
        text-shadow: 0 2px 6px rgba(0,0,0,0.6);
    }


    .hero p {
        margin-top: var(--space-4);
        font-size: 1.125rem;
        max-width: 65ch;
        text-shadow: 0 1px 3px rgba(0,0,0,0.25);
        color: #ffffff;
    }


/* CTA Button */
.cta {
    display: inline-block;
    margin-top: var(--space-6);
    background: var(--blue-slate);
    color: #fff;
    padding: 12px 22px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
    text-decoration: none;
}

    .cta:hover {
        background: var(--accent);
        transform: translateY(-1px);
        box-shadow: var(--shadow-lg);
    }

    .cta:active {
        transform: translateY(0);
    }

/* ---------- Sections ---------- */
.section {
    background: var(--light-grey);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: var(--space-8);
    margin-bottom: var(--space-8);
}

    .section h2 {
        color: var(--blue-slate);
        margin-bottom: var(--space-4);
    }

    .section p {
        line-height: var(--leading);
    }

/* ---------- Grid & Cards ---------- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-6);
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: var(--space-6);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

    .card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
        border-color: rgba(13, 110, 253, 0.35);
    }

    .card h3 {
        color: var(--blue-slate);
        margin-bottom: var(--space-3);
    }

    .card p {
        margin: 0;
    }

/* ---------- Image Strip (Callout Band) ---------- */
.strip {
    position: relative;
    color: #fff;
    text-align: center;
    padding: 70px var(--container-pad);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin: var(--space-6) 0;
    background: linear-gradient(var(--overlay-dark), var(--overlay-dark)), var(--strip-img) center/cover no-repeat;
}

    .strip h2 {
        font-size: clamp(1.5rem, 3.2vw, 1.8rem);
        text-shadow: 0 2px 6px rgba(0,0,0,0.6);
    }

    .strip p {
        max-width: 800px;
        margin: var(--space-3) auto 0;
        text-shadow: none;
        color: #ffffff; /* Pure white */
    }

/* ---------- Contact (optional section) ---------- */
.contact {
    max-width: var(--maxw);
    margin: var(--space-12) auto;
    padding: 50px 40px;
    background: linear-gradient(135deg, #f9f9f9, #ececec);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

    .contact h2 {
        text-align: center;
        color: var(--blue-slate);
        margin-bottom: var(--space-3);
    }

.contact-intro {
    text-align: center;
    margin-bottom: var(--space-6);
    color: var(--dark-grey);
    font-size: 1rem;
}

.contact form {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.contact label {
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--blue-slate);
}

.contact input,
.contact textarea {
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: var(--radius);
    font: inherit;
    font-size: 1rem;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

    .contact input:focus,
    .contact textarea:focus {
        border-color: var(--blue-slate);
        box-shadow: 0 0 6px rgba(30,58,95,0.3);
        outline: none;
    }

.contact button {
    align-self: start;
    background: var(--blue-slate);
    color: #fff;
    padding: 14px 20px;
    border: none;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
    box-shadow: var(--shadow);
}

    .contact button:hover {
        background: var(--accent);
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }

/* ---------- Footer ---------- */
footer {
    margin-top: var(--space-8);
    text-align: center;
    padding: var(--space-6) var(--container-pad);
    background: var(--blue-slate);
    color: #fff;
}

    footer p {
        margin: 0;
    }

/* ---------- Utilities ---------- */
.hidden {
    display: none !important;
}

.center {
    text-align: center;
}

.max-w {
    max-width: var(--maxw);
    margin-inline: auto;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
    .hero {
        padding: 80px var(--container-pad);
    }

    .contact {
        padding: 30px 24px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .cta, .card, .contact button {
        transition: none;
    }
}

/* ---------- Print (basic) ---------- */
@media print {
    .hero, .strip {
        background: none !important;
        color: var(--mid-grey);
    }

    .cta {
        box-shadow: none;
        background: transparent;
        color: var(--mid-grey);
    }

    footer {
        background: transparent;
        color: var(--mid-grey);
    }
}

