/* ============================================================
   CUSTOM CONCIERGE FITNESS — style.css
   UIKit 3 overrides + custom components
   Aesthetic: Warm luxury, editorial fitness, refined & inviting
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
    /* Palette: Royal Blue, Periwinkle Gray, Lynch, Cloud Burst, Perano */
    --ccf-royal: #4083e5; /* Royal Blue — primary accent */
    --ccf-periwinkle: #d0dbea; /* Periwinkle Gray — surfaces, borders */
    --ccf-lynch: #6f819e; /* Lynch — muted secondary text */
    --ccf-cloud: #21324d; /* Cloud Burst — dark text & dark sections */
    --ccf-perano: #a0bde7; /* Perano — light accents on dark bg */
    --ccf-ice: #f0f4fa; /* derived near-white page background */

    --ccf-font-display: "Cormorant Garamond", Georgia, serif;
    --ccf-font-body: "Outfit", system-ui, sans-serif;

    --ccf-radius: 30px;
    --ccf-radius-pill: 999px;
    --ccf-transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--ccf-font-body);
    font-weight: 300;
    color: var(--ccf-cloud);
    background-color: var(--ccf-ice);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--ccf-font-display);
    font-weight: 500;
    color: var(--ccf-cloud);
    line-height: 1.2;
}

a {
    color: var(--ccf-royal);
    text-decoration: none;
    transition: color var(--ccf-transition);
}

a:hover {
    color: var(--ccf-cloud);
}

p {
    margin-bottom: 1.25em;
    color: var(--ccf-cloud);
    opacity: 0.85;
}

/* ============================================================
   HEADER / NAVBAR — single row, logo left, nav right
   ============================================================ */
.ccf-header {
    position: relative;
    z-index: 1000;
    transition: all var(--ccf-transition);
}

.ccf-header-sticky {
    background: rgba(240, 244, 250, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.ccf-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.ccf-logo {
    display: flex;
    align-items: center;
    gap: 12px; /* Doubled from 12px */
    text-decoration: none !important;
    min-height: auto !important;
    padding: 8px 0 !important;
}

/* For SVG or PNG image logo */
.ccf-logo-mark {
    display: block;
    height: 42px;
    width: auto;
    flex-shrink: 0;
}

.ccf-logo-text {
    font-family: var(--ccf-font-display);
    font-weight: 600;
    font-size: 1.6rem;
    color: #21324d;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.ccf-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ccf-nav-link {
    font-family: var(--ccf-font-body);
    font-weight: 400;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ccf-cloud) !important;
    padding: 8px 16px;
    border-radius: var(--ccf-radius-pill);
    transition: all var(--ccf-transition);
    text-decoration: none !important;
}

.ccf-nav-link:hover {
    color: var(--ccf-royal) !important;
    background: var(--ccf-periwinkle);
}

.ccf-nav-link.ccf-nav-active {
    color: var(--ccf-royal) !important;
    background: var(--ccf-periwinkle);
}

/* Custom hamburger */
.ccf-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    transition: background var(--ccf-transition);
}

.ccf-hamburger:hover {
    background: var(--ccf-periwinkle);
}

.ccf-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--ccf-cloud);
    border-radius: 2px;
    transition: all var(--ccf-transition);
}

.ccf-hamburger span:nth-child(2) {
    width: 70%;
}

/* Offcanvas mobile nav */
.ccf-offcanvas {
    background: var(--ccf-cloud) !important;
}

.ccf-offcanvas .uk-nav a {
    font-family: var(--ccf-font-display);
    font-size: 1.6rem;
    color: var(--ccf-periwinkle) !important;
    padding: 10px 0;
}

.ccf-offcanvas .uk-nav a:hover {
    color: var(--ccf-perano) !important;
}

.ccf-offcanvas-contact {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.ccf-offcanvas-contact p {
    color: var(--ccf-lynch);
    font-size: 0.9rem;
    margin-bottom: 6px;
}

/* ============================================================
   HERO (Home Page)
   ============================================================ */
.ccf-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 90px 0 70px;
}

.ccf-hero-bg {
    position: absolute;
    inset: 0;
    background-image: url("/images/hero.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.ccf-hero-bg-2 {
    position: absolute;
    inset: 0;
    background-image: url("/images/hero2.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.ccf-hero-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    /* Gradient overlay: solid on the text side, fading to transparent on the image side */
    background: linear-gradient(
        to right,
        rgba(33, 50, 77, 0.82) 0%,
        rgba(33, 50, 77, 0.65) 45%,
        rgba(33, 50, 77, 0.25) 75%,
        transparent 100%
    );
}

/* Subtle color wash on top of the overlay */
.ccf-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 20% 80%,
            rgba(64, 131, 229, 0.12) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 80% 20%,
            rgba(160, 189, 231, 0.08) 0%,
            transparent 50%
        );
}

.ccf-hero-overlay {
    position: absolute;
    inset: 0;
    /* This overlay could sit on top of a future background image */
}

.ccf-hero .uk-container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.ccf-hero-content {
    max-width: none;
}

.ccf-hero-tagline {
    font-family: var(--ccf-font-body);
    font-weight: 400;
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ccf-perano);
    margin-bottom: 14px;
    opacity: 1;
}

.ccf-hero-title {
    font-family: var(--ccf-font-display);
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 600;
    line-height: 1.08;
    color: #fff;
    margin-bottom: 14px;
    letter-spacing: 0.03em;
}

.ccf-hero-subtitle {
    font-family: var(--ccf-font-body);
    font-weight: 300;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    opacity: 1;
    margin-bottom: 20px;
}

.ccf-hero-certs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 8px;
}

.ccf-cert-badge-img {
    display: block;
    height: 84px;
    width: auto;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

.ccf-cert-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    display: inline-block;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.ccf-btn {
    display: inline-block;
    font-family: var(--ccf-font-body);
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 10px 26px;
    border-radius: var(--ccf-radius-pill);
    border: none;
    cursor: pointer;
    transition: all var(--ccf-transition);
    text-decoration: none !important;
}

.ccf-btn-primary {
    background: var(--ccf-royal);
    color: #fff !important;
}

.ccf-btn-primary:hover {
    background: var(--ccf-cloud);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(64, 131, 229, 0.3);
    color: #fff !important;
}

.ccf-btn-light {
    background: #fff;
    color: var(--ccf-cloud) !important;
}

.ccf-btn-light:hover {
    background: var(--ccf-periwinkle);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    color: var(--ccf-cloud) !important;
}

.ccf-btn-full {
    width: 100%;
    text-align: center;
}

.ccf-link-arrow {
    font-family: var(--ccf-font-body);
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ccf-royal) !important;
    display: inline-block;
    margin-top: 8px;
    transition: all var(--ccf-transition);
}

.ccf-link-arrow:hover {
    letter-spacing: 0.18em;
    color: var(--ccf-cloud) !important;
}

/* ============================================================
   SECTIONS (Generic)
   ============================================================ */
.ccf-section {
    padding: 80px 0;
}

.ccf-section-alt {
    background-color: var(--ccf-periwinkle);
}

.ccf-section-label {
    font-family: var(--ccf-font-body);
    font-weight: 500;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ccf-royal);
    margin-bottom: 8px;
}

.ccf-section-heading {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    margin-bottom: 16px;
}

/* ============================================================
   ALTERNATING IMAGE / TEXT SECTIONS (Home)
   ============================================================ */
.ccf-alt-img {
    position: relative;
}

.ccf-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--ccf-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ccf-font-body);
    font-weight: 400;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    overflow: hidden;
    position: relative;
    /* Responsive images: constrain height on mobile */
    max-height: 480px;
}

.ccf-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit; /* This ensures the image follows the parent's radius */
    display: block; /* Removes any inline spacing issues */
}

.ccf-img span {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.15);
    padding: 8px 16px;
    border-radius: var(--ccf-radius-pill);
    font-size: 0.7rem;
}

.ccf-img-portrait {
    aspect-ratio: 3 / 4;
}

.ccf-alt-text {
    padding: 20px 0;
}

/* Mobile: center text when image stacks on top */
@media (max-width: 959px) {
    .ccf-alt-text {
        text-align: center;
        padding: 24px 0 0;
    }

    .ccf-alt-text .ccf-btn {
        margin-top: 4px;
    }
}

@media (min-width: 960px) {
    .ccf-alt-text {
        padding: 20px 40px;
    }
}

/* ============================================================
   CTA BAND
   ============================================================ */
.ccf-cta-band {
    padding: 80px 0;
    background: var(--ccf-cloud);
    position: relative;
    overflow: hidden;
}

.ccf-cta-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 30% 50%,
            rgba(64, 131, 229, 0.15) 0%,
            transparent 60%
        ),
        radial-gradient(
            circle at 70% 50%,
            rgba(160, 189, 231, 0.1) 0%,
            transparent 60%
        );
}

.ccf-cta-heading {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--ccf-periwinkle) !important;
    margin-bottom: 12px;
    position: relative;
}

.ccf-cta-sub {
    color: var(--ccf-lynch) !important;
    font-size: 1.05rem;
    margin-bottom: 28px;
    position: relative;
    opacity: 1 !important;
}

.ccf-cta-band .ccf-btn {
    position: relative;
}

/* ============================================================
   PAGE HEADER (Interior pages)
   ============================================================ */
.ccf-page-header {
    padding: 100px 0 60px;
    background: linear-gradient(
        160deg,
        var(--ccf-periwinkle) 0%,
        var(--ccf-periwinkle) 100%
    );
    text-align: center;
}

.ccf-page-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 12px;
}

.ccf-page-intro {
    font-size: 1.1rem;
    color: var(--ccf-lynch);
    max-width: 500px;
    margin: 0 auto;
    opacity: 1 !important;
}

/* ============================================================
   SERVICES ACCORDION
   ============================================================ */
.ccf-accordion {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ccf-accordion > li {
    scroll-margin-top: 84px;
    margin-bottom: 16px;
    border: 1px solid var(--ccf-periwinkle);
    border-radius: var(--ccf-radius);
    overflow: hidden;
    transition:
        border-color var(--ccf-transition),
        box-shadow var(--ccf-transition);
}

.ccf-accordion > li:hover,
.ccf-accordion > li.uk-open {
    border-color: var(--ccf-perano);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.ccf-accordion-title {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px !important;
    background: var(--ccf-ice);
    text-decoration: none !important;
    transition: background var(--ccf-transition);
}

.ccf-accordion-title:hover {
    background: var(--ccf-periwinkle);
}

.ccf-acc-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ccf-acc-badge {
    font-family: var(--ccf-font-body);
    font-weight: 600;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: var(--ccf-royal);
    color: #fff;
    padding: 5px 12px;
    border-radius: var(--ccf-radius-pill);
}

.ccf-acc-name {
    font-family: var(--ccf-font-display);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--ccf-cloud);
}

.ccf-acc-icon {
    color: var(--ccf-lynch);
    transition: transform var(--ccf-transition);
}

.uk-open > .ccf-accordion-title .ccf-acc-icon {
    transform: rotate(180deg);
}

.ccf-accordion-content {
    padding: 0;
}

.ccf-acc-body {
    padding: 8px 28px 32px;
}

.ccf-acc-body h3 {
    font-size: 1.2rem;
    color: var(--ccf-cloud);
    margin-bottom: 12px;
}

.ccf-acc-body h4 {
    font-size: 0.85rem;
    font-family: var(--ccf-font-body);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ccf-cloud);
    margin-bottom: 10px;
}

.ccf-service-features {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--ccf-periwinkle);
}

.ccf-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ccf-check-list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 8px;
    font-size: 0.92rem;
    color: var(--ccf-cloud);
    opacity: 0.8;
}

.ccf-check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--ccf-royal);
    font-weight: 600;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.ccf-about-white {
    background: var(--ccf-ice);
}

.ccf-about-portrait {
    position: relative;
}

.ccf-about-portrait::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    right: 10px;
    bottom: 10px;
    border: 2px solid var(--ccf-perano);
    border-radius: var(--ccf-radius);
    z-index: 0;
}

.ccf-about-portrait .ccf-img {
    position: relative;
    z-index: 1;
}

.ccf-about-certs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.ccf-cert-card {
    background: var(--ccf-periwinkle);
    border: 1px solid var(--ccf-periwinkle);
    border-radius: var(--ccf-radius);
    padding: 12px 18px;
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.ccf-cert-label {
    display: block;
    font-family: var(--ccf-font-body);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--ccf-royal);
    margin-bottom: 2px;
}

.ccf-cert-desc {
    display: block;
    font-size: 0.72rem;
    color: var(--ccf-lynch);
}

/* Colored inset block */
.ccf-about-colored-block {
    background: linear-gradient(
        135deg,
        var(--ccf-royal) 0%,
        var(--ccf-perano) 100%
    );
    border-radius: var(--ccf-radius);
    padding: 48px 48px;
    position: relative;
    overflow: hidden;
}

.ccf-about-colored-block::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.ccf-about-colored-block h2 {
    font-size: 2rem;
    color: #fff !important;
    margin-bottom: 20px;
}

.ccf-about-colored-block p {
    color: rgba(255, 255, 255, 0.85) !important;
    opacity: 1 !important;
    max-width: 640px;
}

/* Why cards */
.ccf-why-card {
    text-align: center;
    padding: 32px 20px;
    border-radius: var(--ccf-radius);
    border: 1px solid var(--ccf-periwinkle);
    transition: all var(--ccf-transition);
    height: 100%;
}

.ccf-why-card:hover {
    border-color: var(--ccf-perano);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    transform: translateY(-4px);
}

.ccf-why-icon {
    color: var(--ccf-royal);
    margin-bottom: 16px;
}

.ccf-why-card h4 {
    font-family: var(--ccf-font-display);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.ccf-why-card p {
    font-size: 0.9rem;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */

/* Pill-shaped inputs */
.ccf-contact-form {
    max-width: 520px;
}

.ccf-form-group {
    margin-bottom: 16px;
}

.ccf-input-pill {
    width: 100%;
    padding: 14px 24px;
    border: 1.5px solid var(--ccf-periwinkle);
    border-radius: var(--ccf-radius-pill);
    font-family: var(--ccf-font-body);
    font-weight: 300;
    font-size: 0.95rem;
    color: var(--ccf-cloud);
    background: var(--ccf-ice);
    outline: none;
    transition: all var(--ccf-transition);
    -webkit-appearance: none;
    appearance: none;
}

.ccf-input-pill::placeholder {
    color: var(--ccf-lynch);
    opacity: 0.7;
}

.ccf-input-pill:focus {
    border-color: var(--ccf-royal);
    box-shadow: 0 0 0 3px rgba(64, 131, 229, 0.15);
}

.ccf-select-pill {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23A8998A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    padding-right: 48px;
}

.ccf-select-pill option {
    font-family: var(--ccf-font-body);
}

.ccf-textarea-pill {
    border-radius: 24px;
    resize: vertical;
    min-height: 120px;
}

/* Contact info */
.ccf-contact-info {
    margin-bottom: 32px;
}

.ccf-contact-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--ccf-periwinkle);
}

.ccf-contact-row:last-child {
    border-bottom: none;
}

.ccf-contact-icon {
    color: var(--ccf-royal);
    flex-shrink: 0;
    margin-top: 2px;
}

.ccf-contact-row h4 {
    font-family: var(--ccf-font-body);
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ccf-lynch);
    margin-bottom: 2px;
}

.ccf-contact-row a,
.ccf-contact-row p {
    font-size: 0.95rem;
    margin-bottom: 0;
    opacity: 1;
}

/* Map */
.ccf-map-wrapper {
    border-radius: var(--ccf-radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--ccf-periwinkle);
}

/* ============================================================
   FOOTER
   ============================================================ */
.ccf-footer {
    background: var(--ccf-cloud);
    color: var(--ccf-lynch);
}

/* Prefooter: link columns */
.ccf-prefooter {
    padding: 48px 0 36px;
}

.ccf-prefooter-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.ccf-prefooter-logo {
    height: 56px;
    width: auto;
}

.ccf-prefooter-title {
    font-family: var(--ccf-font-display);
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--ccf-periwinkle);
    letter-spacing: 0.03em;
    line-height: 1.2;
}

.ccf-prefooter-tagline {
    font-family: var(--ccf-font-body);
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ccf-perano);
    opacity: 0.8;
    margin-bottom: 14px;
}

.ccf-prefooter-blurb {
    font-size: 0.85rem;
    color: var(--ccf-lynch);
    opacity: 0.8;
    max-width: 340px;
    margin-bottom: 0;
}

.ccf-prefooter-heading {
    font-family: var(--ccf-font-body);
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ccf-periwinkle);
    margin-bottom: 14px;
}

.ccf-prefooter-links,
.ccf-prefooter-creds {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ccf-prefooter-links li {
    margin-bottom: 8px;
}

.ccf-prefooter-links a {
    font-size: 0.85rem;
    color: var(--ccf-lynch);
    text-decoration: none;
    transition: color var(--ccf-transition);
}

.ccf-prefooter-links a:hover {
    color: var(--ccf-perano);
}

.ccf-prefooter-creds li {
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ccf-lynch);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--ccf-radius-pill);
    padding: 4px 12px;
    margin: 0 6px 8px 0;
}

/* Footer cert badges — mirrors hero badges, smaller */
.ccf-prefooter-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.ccf-prefooter-badges .ccf-cert-badge-img {
    height: 84px;
    filter: none;
}

/* Bottom bar: left/right */
.ccf-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 0;
}

.ccf-footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.ccf-footer-copy,
.ccf-footer-note {
    font-size: 0.75rem;
    color: var(--ccf-lynch);
    opacity: 0.6;
    margin: 0;
}

/* Footer mobile */
@media (max-width: 959px) {
    .ccf-prefooter .uk-grid > div {
        margin-bottom: 28px;
    }
    .ccf-prefooter .uk-grid > div:last-child {
        margin-bottom: 0;
    }
    .ccf-prefooter-badges {
        justify-content: center;
    }
    .ccf-footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* Footer phone: logo only, centered */
@media (max-width: 639px) {
    .ccf-prefooter-title {
        display: none;
    }
    .ccf-prefooter-brand {
        justify-content: center;
    }
}

/* ============================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================ */

/* --- Tablet (960px and below) --- */
@media (max-width: 959px) {
    .ccf-section {
        padding: 56px 0;
    }

    .ccf-hero {
        padding: 84px 0 60px;
        min-height: 55vh;
    }

    .ccf-cta-band {
        padding: 56px 0;
    }

    .ccf-page-header {
        padding: 110px 0 48px;
    }

    /* Tame UIKit uk-grid-large gutters on tablet */
    .uk-grid-large {
        margin-left: -25px;
    }
    .uk-grid-large > * {
        padding-left: 25px;
    }
    .uk-grid-large > .uk-grid-margin {
        margin-top: 25px;
    }

    /* Images: slightly less landscape on tablet */
    .ccf-img {
        aspect-ratio: 5 / 3;
    }

    /* About portrait: reduce offset border */
    .ccf-about-portrait::before {
        top: -6px;
        left: -6px;
        right: 6px;
        bottom: 6px;
    }

    /* Footer: brand column full width on tablet */
    .ccf-prefooter .uk-grid > div:first-child {
        width: 100%;
        margin-bottom: 24px;
    }
}

/* --- Small Tablet / Large Phone (768px and below) --- */
@media (max-width: 768px) {
    .ccf-hero {
        padding: 80px 0 48px;
        min-height: auto;
        text-align: center;
    }

    .ccf-hero-content {
        max-width: 100%;
    }

    .ccf-hero-certs {
        justify-content: center;
    }

    /* On mobile, darken from top so centered text is legible */
    .ccf-hero-bg::before {
        background: linear-gradient(
            to bottom,
            rgba(33, 50, 77, 0.85) 0%,
            rgba(33, 50, 77, 0.65) 50%,
            rgba(33, 50, 77, 0.35) 100%
        );
    }

    /* Images: squarer so they don't eat viewport height */
    .ccf-img {
        aspect-ratio: 3 / 2;
        max-height: 360px;
    }

    /* Portrait: squarer on tablet */
    .ccf-img-portrait {
        aspect-ratio: 1 / 1;
    }

    /* Buttons: slightly more compact */
    .ccf-btn {
        padding: 9px 22px;
        font-size: 0.75rem;
    }

    /* Accordion: let badge + name wrap */
    .ccf-acc-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .ccf-acc-name {
        font-size: 1.2rem;
    }

    /* Why cards: 1 column */
    .ccf-why-grid > div {
        width: 100% !important;
    }

    /* Contact: stack form and info */
    .ccf-contact-form {
        max-width: 100%;
    }

    /* Map: shorter on small screens */
    .ccf-map-wrapper iframe {
        height: 240px;
    }

    /* About: center text when portrait stacks on top */
    .ccf-about-white .uk-grid > div {
        text-align: center;
    }

    .ccf-about-certs {
        justify-content: center;
    }

    /* Footer: single column */
    .ccf-prefooter .uk-grid > div {
        width: 100% !important;
    }

    .ccf-prefooter {
        padding: 40px 0 28px;
        text-align: center;
    }

    .ccf-prefooter-brand {
        justify-content: center;
    }

    .ccf-prefooter-blurb {
        margin-left: auto;
        margin-right: auto;
    }
}

/* ============================================================
   404 PAGE
   ============================================================ */
.ccf-404 {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 0 80px;
    background: linear-gradient(
        160deg,
        var(--ccf-periwinkle) 0%,
        var(--ccf-periwinkle) 50%,
        var(--ccf-periwinkle) 100%
    );
    position: relative;
    overflow: hidden;
}

.ccf-404::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 30% 70%,
            rgba(123, 123, 204, 0.08) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 70% 30%,
            rgba(204, 204, 255, 0.1) 0%,
            transparent 50%
        );
}

.ccf-404-content {
    position: relative;
    max-width: 560px;
}

.ccf-404-number {
    font-family: var(--ccf-font-display);
    font-size: clamp(7rem, 18vw, 12rem);
    font-weight: 700;
    line-height: 1;
    color: var(--ccf-perano);
    opacity: 0.35;
    margin-bottom: -20px;
    letter-spacing: -0.03em;
}

.ccf-404-heading {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    color: var(--ccf-cloud);
    margin-bottom: 16px;
}

.ccf-404-text {
    font-size: 1.05rem;
    color: var(--ccf-lynch);
    opacity: 1 !important;
    margin-bottom: 32px;
    line-height: 1.7;
}

.ccf-404-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.ccf-btn-outline {
    background: transparent;
    color: var(--ccf-royal) !important;
    border: 1.5px solid var(--ccf-royal);
}

.ccf-btn-outline:hover {
    background: var(--ccf-royal);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(64, 131, 229, 0.3);
}

.ccf-404-links {
    padding-top: 24px;
    border-top: 1px solid var(--ccf-perano);
}

.ccf-404-links p {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ccf-lynch);
    margin-bottom: 10px;
}

.ccf-404-links a {
    font-family: var(--ccf-font-body);
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--ccf-royal);
}

.ccf-404-links a:hover {
    color: var(--ccf-cloud);
}

.ccf-404-dot {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--ccf-perano);
    vertical-align: middle;
    margin: 0 10px;
}

/* ============================================================
   SUCCESS MODAL
   ============================================================ */
.ccf-success-dialog {
    border-radius: var(--ccf-radius);
    padding: 48px 40px;
    max-width: 440px;
}

.ccf-success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--ccf-perano);
    color: var(--ccf-cloud);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.ccf-success-heading {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.ccf-success-text {
    color: var(--ccf-lynch);
    margin-bottom: 24px;
}

/* --- Mobile (639px and below) --- */
.ccf-about-certs-badges {
    margin-top: 28px;
}

.ccf-about-certs-badges .ccf-cert-badge-img {
    height: 84px;
}

@media (max-width: 639px) {
    .ccf-hero {
        padding: 76px 0 44px;
    }

    .ccf-hero-title {
        font-size: 2rem;
        margin-bottom: 12px;
    }

    .ccf-hero-subtitle {
        font-size: 1rem;
    }

    .ccf-hero-tagline {
        font-size: 0.7rem;
        letter-spacing: 0.2em;
        margin-bottom: 12px;
    }

    .ccf-logo-text {
        font-size: 1.25rem;
    }

    .ccf-logo-mark {
        height: 34px;
    }

    .ccf-page-header {
        padding: 88px 0 32px;
    }

    .ccf-page-title {
        font-size: 2rem;
    }

    .ccf-page-intro {
        font-size: 0.95rem;
    }

    .ccf-section {
        padding: 36px 0;
    }

    .ccf-section-heading {
        font-size: 1.5rem;
    }

    .ccf-cta-band {
        padding: 40px 0;
    }

    .ccf-cta-heading {
        font-size: 1.6rem;
    }

    /* Images: near-square on phone, never too tall */
    .ccf-img {
        aspect-ratio: 4 / 3;
        max-height: 280px;
        border-radius: 8px;
    }

    .ccf-img-portrait {
        aspect-ratio: 3 / 4;
        max-height: 380px;
    }

    /* Buttons: full-width in content sections */
    .ccf-alt-text .ccf-btn {
        display: block;
        width: 100%;
        text-align: center;
    }

    /* About: portrait offset border is too tight on mobile */
    .ccf-about-portrait::before {
        display: none;
    }

    .ccf-about-portrait {
        max-width: 280px;
        margin: 0 auto 24px;
    }

    .ccf-about-certs:not(.ccf-about-certs-badges) {
        flex-direction: column;
    }

    .ccf-about-certs-badges {
        justify-content: center;
    }

    .ccf-about-colored-block {
        padding: 28px 20px;
        border-radius: 8px;
    }

    .ccf-about-colored-block h2 {
        font-size: 1.5rem;
    }

    /* Accordion: compact on mobile */
    .ccf-accordion-title {
        padding: 16px 18px !important;
    }

    .ccf-acc-badge {
        font-size: 0.6rem;
        padding: 4px 10px;
    }

    .ccf-acc-name {
        font-size: 1rem;
    }

    .ccf-acc-body {
        padding: 8px 18px 24px;
    }

    .ccf-acc-body h3 {
        font-size: 1.05rem;
    }

    /* Service features: stack to 1 column */
    .ccf-service-features .uk-grid > div {
        width: 100% !important;
    }

    .ccf-service-features .uk-grid > div + div {
        margin-top: 20px;
    }

    /* Accordion CTA buttons: full width on mobile */
    .ccf-acc-body .ccf-btn {
        display: block;
        width: 100%;
        text-align: center;
    }

    /* Contact: inputs slightly smaller */
    .ccf-input-pill {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .ccf-textarea-pill {
        min-height: 100px;
    }

    .ccf-contact-row {
        padding: 12px 0;
    }

    /* Why cards: tighter padding */
    .ccf-why-card {
        padding: 24px 16px;
    }
}

/* --- Small Mobile (400px and below) --- */
@media (max-width: 400px) {
    .ccf-hero-title {
        font-size: 2.2rem;
    }

    .ccf-logo-text {
        font-size: 1.05rem;
    }

    .ccf-logo-mark {
        height: 30px;
    }

    .ccf-section-heading {
        font-size: 1.35rem;
    }

    .ccf-btn {
        padding: 9px 16px;
        font-size: 0.72rem;
        letter-spacing: 0.1em;
    }

    .ccf-acc-header {
        gap: 6px;
    }

    .ccf-acc-badge {
        font-size: 0.55rem;
    }

    .ccf-acc-name {
        font-size: 0.9rem;
    }

    .ccf-img {
        max-height: 220px;
    }
}

/* ============================================================
   TOUCH TARGET & INTERACTION IMPROVEMENTS
   ============================================================ */

/* Ensure minimum 44px tap targets on all interactive elements */
@media (pointer: coarse) {
    .ccf-nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .ccf-hamburger {
        width: 44px;
        height: 44px;
    }

    .ccf-offcanvas .uk-nav a {
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    .ccf-accordion-title {
        min-height: 56px;
    }

    .ccf-btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .ccf-input-pill {
        min-height: 48px;
    }

    .ccf-contact-row a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

/* Disable hover effects on touch (prevents sticky hover states) */
@media (hover: none) {
    .ccf-btn-primary:hover {
        transform: none;
        box-shadow: none;
    }

    .ccf-btn-light:hover {
        transform: none;
        box-shadow: none;
    }

    .ccf-why-card:hover {
        transform: none;
        box-shadow: none;
        border-color: var(--ccf-periwinkle);
    }
}

/* ============================================================
   UIKit OVERRIDES
   ============================================================ */

/* Remove default UIkit accordion styling */
.uk-accordion-title::before {
    display: none !important;
}

/* Smoother accordion animation */
.uk-accordion-content {
    transition: max-height 0.4s ease;
}

/* Override UIKit sticky navbar background */
