/* ============================================================
 * Collective Commerce Group Limited — styles.css
 * A single, self-contained stylesheet. No @import. No external
 * resources. British English throughout.
 * ========================================================== */

/* ==== 1. Custom properties (colour palette) ==== */
:root {
    --primary:   #0d3b5f;   /* deep slate-blue — trust, stability, tech */
    --accent:    #1fb3b0;   /* teal — modern, digital, forward motion */
    --bg:        #f8fafc;   /* light paper base */
    --text-dark: #1e293b;   /* near-black for body copy */
    --text-light: #64748b;  /* muted secondary */
    --border:    #d1d9e6;   /* soft separators */
}

/* ==== 2. Reset + base ==== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 100%;            /* 1rem = 16px */
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.625;
    color: var(--text-dark);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, picture, svg { display: block; max-width: 100%; }
svg { fill-rule: evenodd; }

/* ==== 3. Layout helpers ==== */
.container {
    width: min(90%, 1200px);
    margin-inline: auto;
    padding-block: 2.5rem;
}

h1, .h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.015em;
}
h2, .h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 700;
    line-height: 1.2;
}
h3, .h3 {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
}

p { margin-block: 1rem; }

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.18s ease, border-color 0.18s ease;
}

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

ul { list-style: none; }

/* ==== 4. Buttons ==== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6875rem 1.5rem;
    border-radius: 6px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    transition: background-color 0.18s ease,
                border-color 0.18s ease,
                color 0.18s ease,
                opacity 0.18s ease;
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.btn-primary:hover {
    background: #082740;
    border-color: #082740;
    opacity: 0.9;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    opacity: 0.9;
}

/* ==== 5. Navbar ==== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--border);
    backdrop-filter: saturate(180%);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 1rem;
}

/* logo */
.logo {
    display: flex;
    align-items: baseline;
    gap: 0.15em;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}
.logo-text { color: var(--primary); }
.logo-accent {
    color: var(--accent);
    letter-spacing: 0.02em;
}

/* nav menu (desktop) */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    border-bottom: 2px solid transparent;
    padding: 0.25rem 0;
    transition: border-color 0.18s ease, color 0.18s ease;
}
.nav-link:hover {
    color: var(--accent);
    border-color: var(--accent);
}
.nav-link.active {
    color: var(--primary);
    border-color: var(--primary);
}

/* nav cta button pushed to the right */
.nav-cta { margin-left: auto; }

/* nav toggle (mobile only) */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
}
.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.18s ease;
    content: "";
}
.hamburger::before { transform: translateY(-8px); }
.hamburger::after  { transform: translateY(6px); }

/* ==== 6. Hero ==== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #0b2f4d 100%);
    color: #fff;
    padding-block: 4.5rem 3.5rem;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2 2.5rem;
}

.hero-text {
    display: flex;
    flex-direction: column;
}
.hero-text h1 {
    color: #fff;
    font-size: clamp(2rem, 4.5vw, 2.6rem);
}
.hero-sub {
    font-size: 1.05rem;
    max-width: 40rem;
    margin-block: 1.2rem;
    opacity: 0.92;
}
.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.4rem;
}

.hero-graphic {
    justify-self: center;
}

/* ==== 7. Value props ==== */
.value-props {
    background: #fff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding-block: 2.5rem;
}
#value-heading {
    text-align: center;
    margin-bottom: 1.8rem;
    color: var(--primary);
}
.props-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.4rem;
}
.prop-item {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
}
.prop-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}
.prop-text { font-size: 0.95rem; }

/* ==== 8. Services grid ==== */
.services {
    padding-block: 4rem 2.5rem;
}
#services-heading {
    text-align: center;
    color: var(--primary);
    margin-bottom: 0.6rem;
}
.services-sub {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    font-size: 1rem;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.8rem;
}
.service-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.8rem 1.5rem;
    text-align: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    display: flex;
    flex-direction: column;
}
.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(13, 59, 95, 0.08);
    border-color: var(--accent);
}
.service-icon {
    margin-inline: auto;
    margin-bottom: 1rem;
}
.service-title {
    color: var(--primary);
    margin-bottom: 0.8rem;
}
.service-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    flex-grow: 1;
}

/* ==== 9. About strip ==== */
.about-strip {
    background: #fff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.about-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}
.about-text h2 { color: var(--primary); }
.about-text p { color: var(--text-light); }
.about-graphic { justify-self: center; }

/* ==== 10. Credentials ==== */
.credentials {
    background: #ffffff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.creds-inner { padding-block: 1.3rem; }
.cred-line {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

/* ==== 11. CTA banner ==== */
.cta-banner {
    background: linear-gradient(135deg, var(--accent) 0%, #189a97 100%);
    color: #fff;
    text-align: center;
    padding-block: 3.2rem;
}
.cta-banner h2 {
    font-size: clamp(1.5rem, 3.2vw, 2rem);
    color: #fff;
}
.cta-banner p {
    max-width: 42rem;
    margin-inline: auto;
    margin-block: 1rem;
    opacity: 0.94;
}

/* ==== 12. Footer ==== */
.footer {
    background: var(--primary);
    color: #e2e8f0;
    padding-block: 3rem;
}
.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
}
.footer-logo {
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
}
.footer-blurb {
    font-size: 0.85rem;
    margin-block: 0.9rem;
    opacity: 0.88;
}
.footer-copy {
    font-size: 0.78rem;
    opacity: 0.7;
    margin-top: 0.5rem;
}
.footer-title {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.9rem;
}
.footer-list { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-list a {
    color: #cbd5e1;
    font-size: 0.9rem;
    transition: color 0.18s ease;
}
.footer-list a:hover { color: var(--accent); }

/* ==== 13. Responsive breakpoint ==== */
@media (max-width: 768px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .hero-text { align-items: center; }
    .hero-ctas { justify-content: center; }

    .about-inner {
        text-align: center;
    }

    /* mobile nav: toggle revealed */
    .nav-toggle { display: block; }
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        gap: 0;
        border-bottom: 1px solid var(--border);
        padding: 1rem 1.2rem;
        clip-path: inset(100% 0 0 0);
        opacity: 0;
        visibility: hidden;
        transition: clip-path 0.2s ease, opacity 0.2s ease, visibility 0.2s;
    }
    .nav-menu.open {
        clip-path: inset(0 0 0 0);
        opacity: 1;
        visibility: visible;
    }
    .nav-menu.open .nav-cta {
        margin-left: 0;
        margin-top: 1rem;
    }
    .nav-link {
        padding: 0.6rem 0;
        border-bottom: 1px solid var(--border);
    }
    .nav-link:last-child { border: none; }

    .hamburger.open {
        transform: rotate(90deg);
    }
}
