/* ============================================================
   CAS CONTRACTING — BRAND IDENTITY KIT
   styles.css  |  Full Responsive Refactor
   ============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --navy: #1B3A5C;
    --navy-dark: #0f2236;
    --navy-light: #2a5280;
    --orange: #E86A2B;
    --sand: #F2DFC0;
    --charcoal: #2E2E2E;
    --light-gray: #F5F5F5;
    --mid-gray: #D0D0D0;
    --white: #F8F7F4;

    --section-pad-y: clamp(40px, 7vw, 80px);
    --section-pad-x: clamp(20px, 5vw, 48px);
    --grid-gap: clamp(12px, 2.5vw, 24px);
    --card-radius: 14px;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: #e0e0e0;
    color: var(--charcoal);
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
    width: 100%;
}

/* ============================================================
   SCROLLBAR HIDING
   ============================================================ */
.scroll-x {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.scroll-x::-webkit-scrollbar {
    display: none;
}

/* ============================================================
   COVER
   ============================================================ */
.cover {
    background: var(--navy-dark);
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(40px, 8vw, 80px) clamp(20px, 6vw, 60px);
    position: relative;
    overflow: hidden;
}

.cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        rgba(255,255,255,0.015) 0px,
        rgba(255,255,255,0.015) 1px,
        transparent 1px,
        transparent 60px
    );
    pointer-events: none;
}

.cover::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: min(600px, 100vw);
    height: 600px;
    background: radial-gradient(circle, rgba(232,106,43,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.cover-logo-wrap {
    z-index: 1;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: clamp(12px, 2vw, 20px);
    padding: clamp(20px, 4vw, 36px) clamp(24px, 5vw, 52px);
    margin-bottom: clamp(24px, 5vw, 44px);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(232,106,43,0.2);
}

.cover-logo {
    width: min(300px, 68vw);
    display: block;
}

.cover h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(32px, 9vw, 80px);
    color: var(--white);
    letter-spacing: clamp(3px, 1vw, 6px);
    z-index: 1;
    line-height: 1.05;
}

.cover h2 {
    font-size: clamp(10px, 2.5vw, 16px);
    font-weight: 300;
    color: var(--sand);
    letter-spacing: clamp(2px, 0.8vw, 6px);
    text-transform: uppercase;
    margin-top: 10px;
    z-index: 1;
}

.cover-divider {
    width: 64px;
    height: 3px;
    background: var(--orange);
    margin: clamp(16px, 3.5vw, 28px) auto;
    z-index: 1;
}

.cover-meta {
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: clamp(16px, 3vw, 32px);
    z-index: 1;
}

/* ============================================================
   PAGE WRAPPERS
   ============================================================ */
.page       { background: var(--white);      margin-bottom: 4px; }
.page-alt   { background: var(--light-gray); margin-bottom: 4px; }
.page-dark  { background: var(--navy-dark);  margin-bottom: 4px; }

/* ============================================================
   SECTION WRAPPER
   ============================================================ */
.section {
    max-width: 1100px;
    margin: 0 auto;
    padding: var(--section-pad-y) var(--section-pad-x);
}

.section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 8px;
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(26px, 5.5vw, 52px);
    color: var(--navy);
    letter-spacing: 3px;
    margin-bottom: clamp(20px, 4vw, 40px);
    line-height: 1;
}

/* ============================================================
   SCROLL DOTS  (indicator dots shown on mobile)
   ============================================================ */
.scroll-dots {
    display: none;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.scroll-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(27,58,92,0.25);
    transition: background 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.scroll-dot.active {
    background: var(--orange);
    transform: scale(1.3);
}

/* ============================================================
   LOGO GRID  (section 01)
   ============================================================ */
.logo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--grid-gap);
}

.logo-card {
    border-radius: var(--card-radius);
    padding: clamp(28px, 4vw, 52px) clamp(16px, 3vw, 32px) clamp(16px, 2.5vw, 28px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.logo-card:hover { transform: translateY(-4px); }

.logo-card.white-bg {
    background: var(--white);
    border: 1.5px solid var(--mid-gray);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
.logo-card.white-bg:hover { box-shadow: 0 16px 48px rgba(27,58,92,0.15); }

.logo-card.light-bg {
    background: #eaeef3;
    border: 1.5px solid #c8d2de;
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}
.logo-card.light-bg:hover { box-shadow: 0 16px 48px rgba(27,58,92,0.12); }

.logo-card.dark-bg {
    background: var(--navy-dark);
    border: 1.5px solid rgba(232,106,43,0.3);
    box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}
.logo-card.dark-bg:hover { box-shadow: 0 16px 56px rgba(0,0,0,0.5), 0 0 0 1px rgba(232,106,43,0.4); }

.logo-card.navy-bg {
    background: var(--navy);
    border: 1.5px solid rgba(255,255,255,0.12);
    box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}
.logo-card.navy-bg:hover { box-shadow: 0 16px 56px rgba(0,0,0,0.4); }

.logo-card-img-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.logo-card img {
    max-width: 88%;
    max-height: 100px;
    object-fit: contain;
}

.logo-card img.invert { filter: brightness(0) invert(1); }

.logo-card-footer {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
    gap: 8px;
}

.logo-card.white-bg .logo-card-footer,
.logo-card.light-bg .logo-card-footer {
    border-top-color: var(--mid-gray);
}

.logo-card-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #888;
    line-height: 1.4;
}

.logo-card.dark-bg .logo-card-label,
.logo-card.navy-bg .logo-card-label {
    color: rgba(255,255,255,0.4);
}

.logo-card-badge {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: var(--orange);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ============================================================
   COLOR PALETTE  (section 02)
   ============================================================ */
.color-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--grid-gap);
}

.color-swatch {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}

.swatch-block {
    height: 110px;
    flex-shrink: 0;
}

.swatch-info {
    background: var(--white);
    padding: 12px;
    flex: 1;
}

.swatch-name {
    font-weight: 700;
    font-size: 12px;
    color: var(--charcoal);
    margin-bottom: 3px;
}

.swatch-hex {
    font-size: 11px;
    color: #888;
    font-family: monospace;
}

.swatch-use {
    font-size: 10px;
    color: #aaa;
    margin-top: 3px;
    line-height: 1.4;
}

/* ============================================================
   TYPOGRAPHY  (section 03)
   ============================================================ */
.type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(16px, 3vw, 32px);
}

.type-card {
    background: var(--white);
    border-radius: 12px;
    padding: clamp(20px, 3.5vw, 36px);
    border: 1px solid var(--mid-gray);
}

.type-card .font-display {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(32px, 5vw, 56px);
    color: var(--navy);
    line-height: 1;
    margin-bottom: 8px;
}

.type-card .font-display-sans {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(24px, 4vw, 40px);
    color: var(--navy);
    line-height: 1;
    margin-bottom: 8px;
}

.type-card .font-label {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--orange);
    font-weight: 600;
    margin-bottom: 6px;
}

.type-card .font-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 6px;
}

.type-card .font-use {
    font-size: 12px;
    color: #888;
    line-height: 1.6;
}

.type-sample {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--mid-gray);
}

.type-sample p {
    font-size: 13px;
    color: #555;
    line-height: 1.7;
}

/* ============================================================
   LOGO VERSIONS  (section 04)
   ============================================================ */
.versions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--grid-gap);
}

.version-card {
    border-radius: var(--card-radius);
    overflow: hidden;
    border: 1.5px solid var(--mid-gray);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s, transform 0.2s;
}

.version-card:hover {
    box-shadow: 0 12px 40px rgba(27,58,92,0.14);
    transform: translateY(-3px);
}

.version-preview {
    padding: clamp(28px, 4vw, 52px) clamp(16px, 3vw, 32px);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.version-preview img {
    max-width: 85%;
    max-height: 130px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.18));
}

.version-info {
    padding: 16px 20px;
    background: var(--white);
    border-top: 1.5px solid var(--mid-gray);
}

.version-info h4 {
    font-size: 12px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

.version-info p {
    font-size: 11px;
    color: #888;
    line-height: 1.6;
}

/* ============================================================
   USAGE RULES  (section 05)
   ============================================================ */
.rules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--grid-gap);
}

.rule-card {
    border-radius: 12px;
    padding: clamp(16px, 2.5vw, 28px);
}

.rule-card.do   { background: #edfaf1; border: 1px solid #a8e6c0; }
.rule-card.dont { background: #fdf0f0; border: 1px solid #f5b8b8; }

.rule-tag {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rule-tag i { font-size: 13px; }

.rule-card.do   .rule-tag { color: #2a9d5c; }
.rule-card.dont .rule-tag { color: #d94f4f; }

.rule-card h4 {
    font-size: 12px;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 6px;
}

.rule-card p {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
}

/* ============================================================
   MOCKUP STRIP  (section 06)
   ============================================================ */
.mockup-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--grid-gap);
}

.mockup-item {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--card-radius);
    padding: clamp(20px, 3vw, 36px) clamp(10px, 2vw, 20px) clamp(14px, 2.5vw, 28px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    transition: background 0.2s, border-color 0.2s;
}

.mockup-item:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(232,106,43,0.4);
}

.mockup-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(232,106,43,0.15);
    border: 1px solid rgba(232,106,43,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mockup-icon-wrap i {
    font-size: 20px;
    color: var(--orange);
}

.mockup-logo-wrap {
    width: 100%;
    background: rgba(255,255,255,0.07);
    border-radius: 10px;
    padding: 14px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
}

.mockup-logo-wrap img {
    max-width: 90%;
    max-height: 50px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.mockup-item span {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
}

/* ============================================================
   TAGLINES  (section 07)
   ============================================================ */
.tagline-samples {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--grid-gap);
    margin-top: 32px;
}

.tagline-sample-card {
    background: var(--navy-dark);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: clamp(18px, 3vw, 28px) clamp(14px, 2vw, 20px);
    text-align: center;
    transition: background 0.2s, border-color 0.2s;
}

.tagline-sample-card:hover {
    background: var(--navy);
    border-color: rgba(232,106,43,0.4);
}

.tagline-sample-card h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(13px, 2vw, 24px);
    color: var(--white);
    letter-spacing: 2px;
    margin-bottom: 8px;
    line-height: 1.2;
    word-break: break-word;
    white-space: normal;
}

.tagline-sample-card span {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--orange);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--charcoal);
    padding: clamp(24px, 4vw, 40px) var(--section-pad-x);
    text-align: center;
}

.footer p {
    font-size: 12px;
    color: rgba(255,255,255,0.3);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.footer strong { color: var(--orange); }

/* ============================================================
   RESPONSIVE — 1024px  (tablet landscape)
   ============================================================ */
@media (max-width: 1024px) {
    .logo-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .color-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .mockup-strip {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================================
   RESPONSIVE — 768px  (tablet portrait + all phones)
   ============================================================ */
@media (max-width: 768px) {

    /* Show scroll dots */
    .scroll-dots { display: flex; }

    /* --- Logo grid: horizontal scroll cards --- */
    .logo-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 14px;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }
    .logo-grid > * {
        min-width: 75vw;
        max-width: 300px;
        scroll-snap-align: start;
        flex-shrink: 0;
    }

    /* --- Color grid: 2 columns --- */
    .color-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* --- Typography: single column --- */
    .type-grid {
        grid-template-columns: 1fr;
    }

    /* --- Versions grid: 1 column --- */
    .versions-grid {
        grid-template-columns: 1fr;
    }

    /* --- Rules grids: 1 column --- */
    .rules-grid {
        grid-template-columns: 1fr;
    }

    /* --- Mockup strip: horizontal scroll --- */
    .mockup-strip {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 14px;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        grid-template-columns: unset;
    }
    .mockup-strip > * {
        min-width: 44vw;
        max-width: 180px;
        scroll-snap-align: start;
        flex-shrink: 0;
    }

    /* --- Taglines: horizontal scroll --- */
    .tagline-samples {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 14px;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        margin-top: 24px;
        grid-template-columns: unset;
    }
    .tagline-samples > * {
        min-width: 72vw;
        max-width: 260px;
        scroll-snap-align: start;
        flex-shrink: 0;
    }

    .tagline-sample-card h3 {
        font-size: clamp(15px, 4vw, 22px);
        white-space: normal;
        word-break: break-word;
        letter-spacing: 1px;
    }

    /* Reduce section padding on phones */
    :root {
        --section-pad-y: clamp(32px, 6vw, 60px);
        --section-pad-x: clamp(16px, 5vw, 32px);
    }

    .section-title {
        font-size: clamp(24px, 6.5vw, 42px);
        letter-spacing: 2px;
    }

    /* Reduce type card font sample so it doesn't overflow */
    .type-sample p[style] {
        font-size: 17px !important;
        letter-spacing: 2px !important;
    }

    /* Version cards: compact preview */
    .version-preview {
        min-height: 140px;
        padding: 20px 16px;
    }

    .version-preview img {
        max-height: 90px;
    }
}

/* ============================================================
   RESPONSIVE — 480px  (small phones — SE, older iPhones)
   ============================================================ */
@media (max-width: 480px) {

    /* Color grid: 3 compact columns */
    .color-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .swatch-block  { height: 72px; }
    .swatch-info   { padding: 7px 8px; }
    .swatch-name   { font-size: 9px; }
    .swatch-hex    { font-size: 8px; }
    .swatch-use    { display: none; }

    /* Slightly wider swipe cards on small phones */
    .logo-grid > * {
        min-width: 80vw;
    }
    .tagline-samples > * {
        min-width: 78vw;
    }
    .mockup-strip > * {
        min-width: 48vw;
    }
}
