/* ============================================================
   CHUDWORTH TECHNOLOGY SOLUTIONS — theme-purple.css
   Brand theme + component library for W3.CSS base
   ============================================================ */

/* ── FONTS ──────────────────────────────────────────────────── */
@font-face {
    font-family: 'MuseoSlab700';
    src: url('../assets/fonts/MuseoSlab-700.woff2') format('woff2'),
         url('../assets/fonts/MuseoSlab-700.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* ── W3.CSS THEME OVERRIDES ─────────────────────────────────── */
.w3-theme-l5 {color:#4D207A !important; background-color:#f0f0f0 !important}
.w3-theme-l4 {color:#4D207A !important; background-color:#cccccc !important}
.w3-theme-l3 {color:#fff !important; background-color:#999999 !important}
.w3-theme-l2 {color:#fff !important; background-color:#666666 !important}
.w3-theme-l1 {color:#fff !important; background-color:#333333 !important}
.w3-theme-d1 {color:#fff !important; background-color:#4D207A !important}
.w3-theme-d2 {color:#fff !important; background-color:#4D207A !important}
.w3-theme-d3 {color:#fff !important; background-color:#4D207A !important}
.w3-theme-d4 {color:#fff !important; background-color:#4D207A !important}
.w3-theme-d5 {color:#fff !important; background-color:#4D207A !important}
.w3-theme-light {color:#4D207A !important; background-color:#f0f0f0 !important}
.w3-theme-dark {color:#fff !important; background-color:#4D207A !important}
.w3-theme-action {color:#fff !important; background-color:#4D207A !important}
.w3-theme {color:#fff !important; background-color:#4D207A !important}
.w3-text-theme {color:#4D207A !important}
.w3-border-theme {border-color:#4D207A !important}
.w3-hover-theme:hover {color:#fff !important; background-color:#4D207A !important}
.w3-hover-text-theme:hover {color:#4D207A !important}
.w3-hover-border-theme:hover {border-color:#4D207A !important}

/* ── BASE ───────────────────────────────────────────────────── */
html {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    height: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h2, p { margin: 10px; }

/* ── FOCUS-VISIBLE ──────────────────────────────────────────── */
:focus { outline: none; }

:focus-visible {
    outline: 3px solid #4D207A;
    outline-offset: 3px;
    border-radius: 4px;
}

/* ── HEADER LOGO ────────────────────────────────────────────── */
.chud-header-logo {
    display: block;
    width: clamp(260px, 55vw, 680px);  
    height: auto;                       
    max-width: 80%;                     
    margin: 0 auto;                     
    object-fit: contain;
}

/* ── NAV ────────────────────────────────────────────────────── */
.chud-nav {
    background-color: #4D207A;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.chud-nav-left,
.chud-nav-right {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
}

.chud-nav a,
.chud-nav .dropbtn {
    display: flex;
    align-items: center;
    color: #E6E7E8;
    padding: 0 1.1rem;
    height: 48px;
    text-decoration: none;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
    border: none;
    background: none;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
}

@media (max-width: 600px) {
    .chud-nav a,
    .chud-nav .dropbtn {
        padding: 0 0.65rem;
        height: 44px;
        font-size: 0.82rem;
    }
}

.chud-nav a:hover,
.chud-nav .dropdown:hover .dropbtn {
    background-color: #E6E7E8;
    color: #4D207A;
}

.chud-nav a.chud-menuactive {
    background-color: #E6E7E8;
    color: #4D207A;
    font-family: MuseoSlab700;
}

.chud-nav .dropdown {
    position: relative;
    display: flex;
    align-items: stretch;
}

.chud-nav .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #E6E7E8;
    min-width: 220px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    z-index: 200;
}

.chud-nav .dropdown-content a {
    color: #333;
    height: auto;
    padding: 0.7rem 1rem;
    font-size: 0.88rem;
    display: block;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.chud-nav .dropdown-content a:last-child { border-bottom: none; }

.chud-nav .dropdown-content a:hover {
    background-color: #4D207A;
    color: #E6E7E8;
}

.chud-nav .dropdown:hover .dropdown-content { display: block; }

.chud-nav-icon {
    margin-right: 0.4rem;
    font-size: 0.85rem;
}

.chud-nav .dropdown-content .chud-nav-icon {
    margin-right: 0.5rem;
    opacity: 0.5;
    font-size: 1rem;
}

/* ── HEADER ─────────────────────────────────────────────────── */
.chud-header {
    background:
        linear-gradient(rgba(0,0,0,0.45), rgba(230,231,232,0.45)),
        url('../assets/img/cropped-banner.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding: 2rem 1rem;
    text-align: center;
}

.chud-header h1 {
    font-family: MuseoSlab700;
    color: #4D207A;
    text-shadow: 3px 3px 10px rgba(230,231,232,0.85);
    margin: 0;
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    letter-spacing: 0.02em;
}

.chud-header a { text-decoration: none; }

/* ── FOOTER ─────────────────────────────────────────────────── */
.chud-footer {
    margin-top: auto;
    background-color: #0d0d0d;
    color: #E6E7E8;
}

.chud-footer-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 2.5rem 1rem 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.chud-footer-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.chud-footer-cell i {
    font-size: 2rem;
    color: #4D207A;
    margin-bottom: 0.25rem;
}

.chud-footer-cell a {
    text-decoration: none;
    color: #E6E7E8;
    transition: color 0.15s;
}

.chud-footer-cell a:hover { color: #b89dd4; }

.chud-footer-cell p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(230,231,232,0.75);
}

.chud-footer-cell .footer-label {
    font-family: MuseoSlab700;
    color: #E6E7E8;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.1rem;
}

.chud-footer-bottom {
    border-top: 1px solid rgba(230,231,232,0.1);
    text-align: center;
    padding: 1rem;
    font-size: 0.8rem;
    color: rgba(230,231,232,0.35);
}

.chud-footer-bottom a {
    color: rgba(230,231,232,0.4);
    text-decoration: none;
}

.chud-footer-bottom a:hover { color: #b89dd4; }

.chud-back-to-top {
    display: block;
    text-align: center;
    padding: 0.6rem;
    background-color: rgba(77,32,122,0.6);
    color: #E6E7E8;
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.15s;
}

.chud-back-to-top:hover {
    background-color: #4D207A;
    color: #E6E7E8;
}

/* ── PAGE LAYOUT HELPERS ────────────────────────────────────── */
.chud-container {
    width: 75%;
    max-width: 1200px;
    margin: auto;
    box-sizing: border-box;
}

.chud-page-section {
    padding: 2.5rem 0 2rem;
    margin-left: 1rem;
    margin-right: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 900px) {
    .chud-container {
        width: 92%;
    }
}

@media (max-width: 600px) {
    .chud-container {
        width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .chud-page-section {
        margin-left: 0;
        margin-right: 0;
    }
}

/* ── HERO ───────────────────────────────────────────────────── */

.chud-page-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 12%;
    box-sizing: border-box;
    width: 100%;
    position: relative;
    z-index: 0;
    isolation: isolate;
}

@media (max-width: 600px) {
    .chud-page-hero {
        padding: 2.5rem 1rem;
    }
}

.chud-hero-card {
    background-color: rgba(230,231,232,0.88);
    border-radius: 25px;
    max-width: 680px;
    width: 100%;
    padding: 2rem;
    margin: 0;
    box-sizing: border-box;
    box-shadow: 0 4px 32px rgba(0,0,0,0.12);
    position: relative;
    z-index: 1;
}

/* ── HERO BACKGROUND IMAGES ─────────────────────────────────── */

.chud-hero-security {
    background:
        linear-gradient(rgba(40,20,60,0.45), rgba(40,20,60,0.55)),
        url('../assets/img/security.png');
    background-position: top right;
    background-repeat: no-repeat;
    background-size: cover;
}

.chud-hero-computing {
    background:
        linear-gradient(rgba(40,20,60,0.45), rgba(40,20,60,0.55)),
        url('../assets/img/computing.png');
    background-position: top right;
    background-repeat: no-repeat;
    background-size: cover;
}

.chud-hero-community {
    background:
        linear-gradient(rgba(40,20,60,0.45), rgba(40,20,60,0.55)),
        url('../assets/img/community.png');
    background-position: top right;
    background-repeat: no-repeat;
    background-size: cover;
}

.chud-hero-managed-it {
    background:
        linear-gradient(rgba(40,20,60,0.45), rgba(40,20,60,0.55)),
        url('../assets/img/computing.png');
    background-position: top right;
    background-repeat: no-repeat;
    background-size: cover;
}

/* ── BACKDROP BLUR (hero cards) ─────────────────────────────── */

.chud-hero-frosted {
    background-color: rgba(230,231,232,0.82) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.6);
}

.chud-hero-frosted-fog {
    background-color: rgba(220,232,240,0.82) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.55);
}

/* ── TRUST BAR ──────────────────────────────────────────────── */

.chud-trust-bar {
    background-color: #4D207A;
    padding: 0.9rem 1rem;
    position: relative;
    z-index: 1;
}

.chud-trust-bar-inner {
    width: 75%;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
    align-items: center;
    justify-content: center;
}

@media (max-width: 900px) {
    .chud-trust-bar-inner {
        width: 92%;
    }
}

@media (max-width: 600px) {
    .chud-trust-bar-inner {
        width: 100%;
        gap: 0.4rem 1rem;
    }
}

.chud-trust-item {
    color: #E6E7E8;
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.chud-trust-item i { margin-right: 0.4rem; }

/* ── SECTION CARDS ──────────────────────────────────────────── */

.chud-section-card {
    background-color: #E6E7E8;
    border-radius: 25px;
    padding: 2rem 2.5rem;
}

.chud-section-card-dark {
    background-color: #4D207A;
    border-radius: 25px;
    padding: 2rem 2.5rem;
}

.chud-cta-strip {
    background-color: #4D207A;
    border-radius: 25px;
    padding: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

@media (max-width: 600px) {
    .chud-section-card,
    .chud-section-card-dark {
        padding: 1.5rem 1.25rem;
        border-radius: 16px;
    }

    .chud-cta-strip {
        padding: 1.5rem 1.25rem;
        border-radius: 16px;
    }
}

/* ── TYPOGRAPHY ─────────────────────────────────────────────── */

.chud-eyebrow {
    font-family: MuseoSlab700;
    color: #4D207A;
    font-size: 0.78rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.chud-eyebrow-light {
    font-family: MuseoSlab700;
    color: rgba(230,231,232,0.6);
    font-size: 0.78rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.chud-section-heading {
    font-family: MuseoSlab700;
    color: #4D207A;
    margin-top: 0;
}

.chud-section-heading-light {
    font-family: MuseoSlab700;
    color: #E6E7E8;
    margin-top: 0;
}

.chud-card-title {
    font-family: MuseoSlab700;
    margin: 0.25rem 0 0.5rem;
}

.chud-card-title-purple {
    font-family: MuseoSlab700;
    color: #4D207A;
    margin: 0.25rem 0 0.5rem;
}

.chud-muted-light {
    color: rgba(230,231,232,0.8);
    margin: 0.4rem 0 0;
}

.chud-muted-light-sm {
    color: rgba(230,231,232,0.7);
    font-size: 0.92rem;
    margin: 0 0 0.75rem;
}

/* ── SERVICE / VALUE CARDS ──────────────────────────────────── */

.chud-service-card {
    border-radius: 25px;
    padding: 1.5rem;
}

.chud-value-card {
    border-radius: 25px;
    padding: 1.5rem;
    text-align: center;
}

.chud-icon-lg {
    font-size: 2.5rem;
    color: #4D207A;
    margin-bottom: 0.75rem;
    display: block;
}

.chud-icon-md {
    font-size: 1.8rem;
    color: #4D207A;
    margin-bottom: 0.5rem;
    display: block;
}

.chud-icon-sm {
    font-size: 2rem;
    color: #4D207A;
    margin-bottom: 0.75rem;
    display: block;
}

.chud-card-body { font-size: 0.92rem; }

/* ── GRIDS ──────────────────────────────────────────────────── */

.chud-grid-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.chud-grid-services-odd {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.chud-grid-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    text-align: left;
}

.chud-grid-values .chud-value-card { text-align: center; }

.chud-grid-brands {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    align-items: center;
    justify-items: center;
    padding: 1.5rem;
    filter: grayscale(0.4);
}

.chud-brand-logo {
    width: 100%;
    max-width: 110px;
    object-fit: contain;
}

/* ── CLIENT TAGS ────────────────────────────────────────────── */

.chud-client-tag {
    background-color: rgba(230,231,232,0.15);
    color: #E6E7E8;
    border: 1px solid rgba(230,231,232,0.35);
    border-radius: 25px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    display: inline-block;
}

.chud-client-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

/* ── FOOTNOTE / CALLOUT ─────────────────────────────────────── */

.chud-footnote {
    border-radius: 25px;
    padding: 1rem 1.5rem;
    background-color: #E6E7E8;
    border-left: 6px solid #4D207A;
    max-width: 520px;
    margin-top: 1.5rem;
}

.chud-callout-dark {
    background-color: rgba(77,32,122,0.1);
    border-radius: 25px;
    padding: 1.25rem 1.75rem;
    border-left: 4px solid rgba(77,32,122,0.4);
    margin-top: 1rem;
}

/* ── PARTNER CARDS (community page) ─────────────────────────── */

.chud-partner-card {
    border-radius: 25px;
    padding: 1.5rem;
    background-color: rgba(230,231,232,0.1);
    border: 1px solid rgba(230,231,232,0.2);
    text-decoration: none;
    display: block;
    transition: background-color 0.2s;
}

.chud-partner-card:hover { background-color: rgba(230,231,232,0.2); }

.chud-partner-card h5 {
    font-family: MuseoSlab700;
    color: #E6E7E8;
    margin: 0 0 0.5rem;
}

.chud-partner-url {
    color: rgba(230,231,232,0.5);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

/* ── HOMEPAGE PILLAR TILES ──────────────────────────────────── */

.chud-card {
    border-radius: 25px;
    min-height: 300px;
    display: grid;
    place-items: center;
    font-family: MuseoSlab700;
}

.chud-card-security {
    border-radius: 25px;
    height: 100%;
    display: grid;
    place-items: center;
    background:
        linear-gradient(rgba(230,231,232,0.7), rgba(230,231,232,0.7)),
        url('../assets/img/security.png');
    background-position: top right;
    background-repeat: no-repeat;
    background-size: cover;
    font-family: MuseoSlab700;
}

.chud-card-security:hover {
    background:
        linear-gradient(rgba(230,231,232,0.35), rgba(230,231,232,0.35)),
        url('../assets/img/security.png');
    background-position: top right;
    background-repeat: no-repeat;
    background-size: cover;
}

.chud-card-security:hover .chud-tile {
    background-color: #4D207A;
    color: #E6E7E8;
    box-shadow: 2px 2px 10px 5px rgba(0,0,0,0.5);
}

.chud-card-computing {
    border-radius: 25px;
    height: 100%;
    display: grid;
    place-items: center;
    background:
        linear-gradient(rgba(230,231,232,0.7), rgba(230,231,232,0.7)),
        url('../assets/img/computing.png');
    background-position: top right;
    background-repeat: no-repeat;
    background-size: cover;
    font-family: MuseoSlab700;
}

.chud-card-computing:hover {
    background:
        linear-gradient(rgba(230,231,232,0.35), rgba(230,231,232,0.35)),
        url('../assets/img/computing.png');
    background-position: top right;
    background-repeat: no-repeat;
    background-size: cover;
}

.chud-card-computing:hover .chud-tile {
    background-color: #4D207A;
    color: #E6E7E8;
    box-shadow: 2px 2px 10px 5px rgba(0,0,0,0.5);
}

.chud-card-community {
    border-radius: 25px;
    height: 100%;
    display: grid;
    place-items: center;
    background:
        linear-gradient(rgba(230,231,232,0.7), rgba(230,231,232,0.7)),
        url('../assets/img/community.png');
    background-position: top right;
    background-repeat: no-repeat;
    background-size: cover;
    font-family: MuseoSlab700;
}

.chud-card-community:hover {
    background:
        linear-gradient(rgba(230,231,232,0.35), rgba(230,231,232,0.35)),
        url('../assets/img/community.png');
    background-position: top right;
    background-repeat: no-repeat;
    background-size: cover;
}

.chud-card-community:hover .chud-tile {
    background-color: #4D207A;
    color: #E6E7E8;
    box-shadow: 2px 2px 10px 5px rgba(0,0,0,0.5);
}

/* ── BACKGROUND ─────────────────────────────────────────────── */

.chud-background {
    background-color: #E6E7E8;
    background-image:
        linear-gradient(rgba(230,231,232,0.6), rgba(0,0,0,0.6)),
        url('../assets/img/background.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top center;
    background-attachment: fixed;
}

/* iOS Safari doesn't support background-attachment:fixed on      */
/* non-body elements — fall back to scroll to avoid broken layout */
/* what the absolute shit */

@supports (-webkit-touch-callout: none) {
    .chud-background {
        background-attachment: scroll;
    }
}

/* ── TILE COMPONENT ─────────────────────────────────────────── */

.chud-tile {
    background-color: #E6E7E8;
    color: #4D207A;
    border-radius: 25px;
    text-decoration: none;
    font-family: MuseoSlab700;
    width: 75%
    transition: background-color 0.22s ease, color 0.22s ease,
                transform 0.22s ease, box-shadow 0.22s ease;
    will-change: transform;
}

.chud-tile:hover {
    background-color: #4D207A;
    color: #E6E7E8;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(77,32,122,0.22);
}

.chud-tile:hover h2,
.chud-tile:hover h3,
.chud-tile:hover h4,
.chud-tile:hover h5,
.chud-tile:hover h6,
.chud-tile:hover p,
.chud-tile:hover span,
.chud-tile:hover .chud-card-title,
.chud-tile:hover .chud-card-title-purple,
.chud-tile:hover .chud-card-body,
.chud-tile:hover .chud-icon-lg,
.chud-tile:hover .chud-icon-md,
.chud-tile:hover .chud-icon-sm {
    color: #E6E7E8;
}

.chud-tile:hover a { color: rgba(230,231,232,0.8); }
.chud-tile h2 { font-family: MuseoSlab700; }

/* ── BUTTONS ────────────────────────────────────────────────── */

.chud-contact-button {
    font-size: 1.3rem;
    font-family: MuseoSlab700;
    text-decoration: none;
    border-radius: 25px;
    background-color: #4D207A;
    color: #E6E7E8;
    box-shadow: 2px 2px 2px 2px rgba(0,0,0,0.5);
    border: none;
    display: inline-block;
    padding: 8px 16px;
    vertical-align: middle;
    overflow: hidden;
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.chud-contact-button:hover {
    color: #FFFFFF;
    text-shadow: 2px 2px 3px black;
}

.chud-contact-button-light {
    background-color: #E6E7E8;
    color: #4D207A;
    border-radius:25px;
}

.chud-contact-button-light:hover {
    color: #4D207A;
    text-shadow: none;
}

.chud-contact-button-outline {
    background-color: transparent;
    color: #4D207A;
    border: 2px solid #4D207A;
    box-shadow: none;
    border-radius:25px;
}

.chud-contact-button-outline:hover {
    background-color: #4D207A;
    color: #E6E7E8;
    text-shadow: none;
}

.chud-dual-button:hover .chud-contact-button {
    color: #FFFFFF;
    text-shadow: 2px 2px 3px black;
}

.chud-dual-button:hover .chud-contact-button-outline {
    background-color: #E6E7E8;
    color: #4D207A;
    text-shadow:none;
}

.chud-tile:hover .chud-contact-button {
    color: #FFFFFF;
    text-shadow: 2px 2px 3px black;
}

.chud-tile:hover .chud-contact-button-outline {
    background-color: #E6E7E8;
    color: #4D207A;
    text-shadow:none;
}

/* ── MISC EXISTING COMPONENTS ───────────────────────────────── */

.chud-menuactive {
    color: #4D207A;
    background-color: #E6E7E8;
}

.chud-imageblock {
    object-fit: contain;
    width: 15%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.chud-griddy {
    width: 100%;
    place-items: center;
    border-radius: 10px;
    flex: 1;
}

.chud-griddy:hover {
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
}

/* ── FORM COMPONENTS ────────────────────────────────────────── */

.contact-table {
    width: 75%;
    margin: auto;
    padding: 10px;
    display: grid;
    align-items: center;
    font-size: 1.1rem;
    box-sizing: border-box;
}

.form-header {
    font-weight: bold;
    font-size: 1.5rem;
    margin: auto;
    display: grid;
    align-items: center;
    padding: 10px;
    margin-top: 10px;
}

.form-label { font-size: 1.3rem; }

input, select {
    border-radius: 5px;
    border: 0.3rem outset lightgray;
}

textarea { border: 0.3rem outset lightgray; }

input:focus, textarea:focus { background-color: rgb(0 0 0 / 10%); }

.submit-button {
    background-color: #4D207A;
    color: #E6E7E8;
    border-radius: 5px;
    border: 10px;
    font-family: MuseoSlab700;
}

.submit-button:hover { color: #FFFFFF; }

/* ── SCROLL-DRIVEN FADE-IN ──────────────────────────────────── */
/* Cannot believe this works */

@keyframes chud-fadein-up {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

@supports (animation-timeline: view()) {
    .chud-fadein {
        opacity: 0;
        animation: chud-fadein-up 0.6s ease forwards;
        animation-timeline: view();
        animation-range: entry 0% entry 35%;
    }

    .chud-fadein-stagger > * {
        opacity: 0;
        animation: chud-fadein-up 0.55s ease forwards;
        animation-timeline: view();
        animation-range: entry 0% entry 40%;
	/* align-items: stretch; */
    }

    .chud-fadein-stagger > *:nth-child(1) { animation-delay: 0.00s; }
    .chud-fadein-stagger > *:nth-child(2) { animation-delay: 0.08s; }
    .chud-fadein-stagger > *:nth-child(3) { animation-delay: 0.16s; }
    .chud-fadein-stagger > *:nth-child(4) { animation-delay: 0.24s; }
    .chud-fadein-stagger > *:nth-child(5) { animation-delay: 0.32s; }
    .chud-fadein-stagger > *:nth-child(6) { animation-delay: 0.40s; }
    .chud-fadein-stagger > *:nth-child(7) { animation-delay: 0.48s; }
    .chud-fadein-stagger > *:nth-child(8) { animation-delay: 0.56s; }
}

.chud-pillars {
  display: flex;
}

.chud-staggerbox {
  padding: 10px;
  flex: 1;
}

@media (max-width: 700px) {
    .chud-pillars {
        flex-direction: column;
    }

    .chud-staggerbox {
        padding: 6px 0;
    }

    /* Override the inline style="width:75%;padding:3rem" on pillar inner tiles */
    .chud-card-security .chud-tile,
    .chud-card-computing .chud-tile,
    .chud-card-community .chud-tile {
        width: 90% !important;
    }

    .chud-card-security .chud-tile > div,
    .chud-card-computing .chud-tile > div,
    .chud-card-community .chud-tile > div {
        padding: 1.5rem !important;
    }
}

/* ── FOGBANK BRAND VARIABLES ────────────────────────────────── */

:root {
    --fog-dark:   #2e3f4f;   /* deep atlantic slate */
    --fog-mid:    #4a6478;   /* overcast blue-grey  */
    --fog-light:  #8fa9bc;   /* signal hill morning */
    --fog-pale:   #dce8f0;   /* salt mist           */
    --fog-accent: #6b9ab8;   /* harbour glass       */
}

/* ── FOGBANK ANIMATED GRADIENT ──────────────────────────────── */

@property --fog-gradient-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 135deg;
}

@keyframes fog-drift {
    0%   { --fog-gradient-angle: 120deg; }
    50%  { --fog-gradient-angle: 160deg; }
    100% { --fog-gradient-angle: 120deg; }
}

.fogbank-card {
    animation: fog-drift 10s ease-in-out infinite;
    background: linear-gradient(var(--fog-gradient-angle), var(--fog-dark) 0%, var(--fog-mid) 100%);
    border-radius: 25px;
    padding: 2rem 2.5rem;
    color: #fff;
}

.fogbank-card h3,
.fogbank-card h4,
.fogbank-card h5 {
    font-family: MuseoSlab700;
    color: #fff;
    margin-top: 0;
}

.fogbank-card p { color: rgba(255,255,255,0.82); }

/* When inside a stagger grid, let fadein control opacity first,  */
/* then fog-drift takes over once the card is visible.           */

@supports (animation-timeline: view()) {
    .chud-fadein-stagger > .fogbank-card {
        animation:
            chud-fadein-up 0.55s ease forwards,
            fog-drift 10s ease-in-out 0.6s infinite;
        animation-timeline: view(), auto;
        animation-range: entry 0% entry 40%, auto;
    }
}

/* ── FOGBANK COMPONENT CLASSES ──────────────────────────────── */

.fogbank-hero {
    background:
        linear-gradient(rgba(46,63,79,0.72), rgba(74,100,120,0.78)),
        url('../assets/img/background.png');
    background-size: cover;
    background-position: center;
}

.fogbank-feature-card {
    background-color: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 25px;
    padding: 1.5rem;
    transition: background-color 0.2s;
}

.fogbank-feature-card:hover { background-color: rgba(255,255,255,0.14); }

.fogbank-feature-card h5 {
    font-family: MuseoSlab700;
    color: #fff;
    margin: 0.25rem 0 0.5rem;
}

.fogbank-feature-card p {
    color: rgba(255,255,255,0.75);
    font-size: 0.92rem;
    margin: 0;
}

.fogbank-icon {
    font-size: 1.8rem;
    color: var(--fog-light);
    margin-bottom: 0.5rem;
    display: block;
}

.fogbank-tag {
    display: inline-block;
    background-color: var(--fog-accent);
    color: #fff;
    font-family: MuseoSlab700;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 0.25rem 0.8rem;
    border-radius: 25px;
    margin-bottom: 0.75rem;
}

.fogbank-price-box {
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 25px;
    padding: 1.5rem;
    text-align: center;
}

.fogbank-price-box .price {
    font-family: MuseoSlab700;
    color: #fff;
    font-size: 2rem;
    margin: 0;
    line-height: 1;
}

.fogbank-price-box .price-sub {
    color: rgba(255,255,255,0.6);
    font-size: 0.82rem;
    margin: 0.3rem 0 0;
}

.fogbank-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.15);
    margin: 1.5rem 0;
}

.fogbank-cta {
    background: linear-gradient(135deg, var(--fog-dark) 0%, var(--fog-mid) 100%);
    border-radius: 25px;
    padding: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.fogbank-cta h3 {
    font-family: MuseoSlab700;
    color: #fff;
    margin: 0;
}

.fogbank-cta p { color: rgba(255,255,255,0.75); margin: 0.4rem 0 0; }

.btn-fogbank {
    font-size: 1.1rem;
    font-family: MuseoSlab700;
    text-decoration: none;
    border-radius: 25px;
    background-color: var(--fog-pale);
    color: var(--fog-dark);
    box-shadow: 2px 2px 6px rgba(0,0,0,0.3);
    border: none;
    display: inline-block;
    padding: 10px 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s, color 0.15s;
}

.btn-fogbank:hover {
    background-color: #fff;
    color: var(--fog-dark);
}

/* ── CONTACT PAGE ───────────────────────────────────────────── */

.chud-hero-contact {
    background:
        linear-gradient(rgba(40,20,60,0.45), rgba(40,20,60,0.55)),
        url('../assets/img/background.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

@supports (-webkit-touch-callout: none) {
    .chud-hero-contact {
        background-attachment: scroll;
    }
}

.chud-contact-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 860px) {
    .chud-contact-layout {
        grid-template-columns: 1fr;
    }
}

.chud-contact-form-card {
    /* inherits chud-section-card padding */
}

/* ── FORM ELEMENTS ──────────────────────────────────────────── */

.chud-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.chud-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
}

.chud-form-label {
    font-family: MuseoSlab700;
    font-size: 0.88rem;
    color: #4D207A;
    letter-spacing: 0.05em;
}

.chud-form-input,
.chud-form-select,
.chud-form-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.65rem 0.85rem;
    border: 2px solid rgba(77,32,122,0.2);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: sans-serif;
    background-color: #fff;
    color: #222;
    transition: border-color 0.15s, box-shadow 0.15s;
    appearance: auto;
}

.chud-form-input:focus,
.chud-form-select:focus,
.chud-form-textarea:focus {
    outline: none;
    border-color: #4D207A;
    box-shadow: 0 0 0 3px rgba(77,32,122,0.12);
}

.chud-form-input::placeholder,
.chud-form-textarea::placeholder {
    color: #aaa;
}

.chud-form-textarea {
    resize: vertical;
    min-height: 120px;
}

.chud-form-submit-row {
    margin-top: 0.5rem;
}

.chud-form-submit {
    font-size: 1.1rem;
}

/* ── SUCCESS STATE ──────────────────────────────────────────── */

.chud-contact-success {
    text-align: center;
    padding: 2rem 1rem;
}

.chud-contact-success-icon {
    font-size: 3.5rem;
    color: #4D207A;
    display: block;
    margin-bottom: 1rem;
}

/* ── SIDEBAR ────────────────────────────────────────────────── */

.chud-contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chud-contact-info-card {
    /* inherits chud-section-card / chud-section-card-dark */
}

.chud-contact-info-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.chud-contact-info-row:last-child { margin-bottom: 0; }

.chud-contact-info-icon {
    color: #4D207A;
    font-size: 1rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
    width: 1.2rem;
    text-align: center;
}

.chud-contact-info-link {
    color: #333;
    text-decoration: none;
    font-size: 0.92rem;
    line-height: 1.6;
    transition: color 0.15s;
}

.chud-contact-info-link:hover { color: #4D207A; }

.chud-contact-quick-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.chud-contact-quick-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: rgba(230,231,232,0.85);
    text-decoration: none;
    font-size: 0.88rem;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    background-color: rgba(230,231,232,0.1);
    border: 1px solid rgba(230,231,232,0.15);
    transition: background-color 0.15s, color 0.15s;
}

.chud-contact-quick-link:hover {
    background-color: rgba(230,231,232,0.2);
    color: #fff;
}

.chud-contact-quick-link i {
    color: rgba(230,231,232,0.5);
    font-size: 0.9rem;
    width: 1rem;
    text-align: center;
    flex-shrink: 0;
}

.chud-contact-license {
    text-align: center;
}
