/* InnoAu custom styles
   Loaded after css/main.css to override / extend the Bientot template. */


/* --- Hero typography ---
   Template default is 94px / 40px which collides with the centred .h-logo
   and overflows narrower viewports. clamp() scales between the bounds.
   Hero is h1 (was h2 in the template) for proper page heading hierarchy. */

.page-home .content h1,
.page-home .content h2 {
    font-family: 'Asap', sans-serif;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    font-size: clamp(36px, 6vw, 64px);
    text-align: left;
    line-height: 1em;
    margin: 0;
}

.page-home .content h3 {
    font-size: clamp(20px, 3vw, 36px);
    max-width: 360px;
}


/* --- Hero h-left / h-right layout ---
   Template puts them side-by-side on desktop (display: inline-block).
   We want them stacked vertically AND horizontally centred as a group.
   Flex column + align-items: center shrinks each block to its content width
   and centres them on the cross axis. */

.page-home .content .header {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-home .content .h-right {
    margin-top: 1.5rem;
}


/* --- Section subtitle (under h2 in .p-title) --- */

.section-sub {
    color: rgba(255, 255, 255, 0.72);
    font-family: 'Opensans', sans-serif;
    font-size: 16px;
    line-height: 1.55;
    max-width: 560px;
    margin: 0.75rem auto 0;
    text-align: center;
}


/* Template constrains .page-cent .content to 720px (good for prose, too
   narrow for 3-card grids). Widen it for the sections that show cards
   or multi-column content. */
.page-services .content,
.page-cases .content,
.page-faq .content {
    width: 100%;
    max-width: 1100px;
    padding-top: 48px;
    padding-bottom: 48px;
}


/* --- FAQ grid: 2 columns on desktop with the last item spanning both
   (so the asymmetric 5th doesn't leave an empty cell), 1 col on mobile --- */

.faq-list {
    max-width: 900px;
    margin: 1.25rem auto 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 2rem;
    text-align: left;
}

.faq-item:last-child {
    grid-column: 1 / -1;
}

.faq-item h4 {
    font-family: 'Asap', sans-serif;
    font-weight: bold;
    font-size: 16px;
    color: #fff;
    text-transform: none;
    letter-spacing: -0.005em;
    margin: 0 0 0.45rem;
    line-height: 1.3;
}

.page-faq .faq-item p {
    font-family: 'Opensans', sans-serif;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13.5px;
    line-height: 1.55;
    margin: 0;
}

@media (max-width: 720px) {
    .faq-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .faq-item:last-child {
        grid-column: auto;
    }
    .faq-item h4 { font-size: 15px; }
    .page-faq .faq-item p { font-size: 13px; }
}


/* --- Services & Case Studies card grids ---
   Both use CSS Grid for equal heights + reliable gap. Override Foundation
   .row/.columns float layout inside these containers. */

.services-grid,
.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    max-width: 1100px;
    margin: 2rem auto 2.5rem;
}

/* Foundation .row uses :before/:after as a clearfix; under display:grid
   those become extra grid items and push cards out of place. Neutralize them. */
.services-grid::before,
.services-grid::after,
.cases-grid::before,
.cases-grid::after {
    display: none;
}

.services-grid > .columns,
.cases-grid > .columns {
    width: auto;
    padding: 0;
    margin: 0;
    display: flex;
}

/* --- Service cards: liquid-glass tile with image on top --- */

.service-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-decoration: none;
    text-align: left;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.10),
        rgba(255, 255, 255, 0.04)
    );
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: none;
    border-radius: 18px;
    padding: 0;
    overflow: hidden;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 0 0 1px rgba(255, 255, 255, 0.06),
        0 8px 28px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover,
.service-card:focus {
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        inset 0 0 0 1px rgba(246, 178, 27, 0.28),
        0 14px 36px rgba(0, 0, 0, 0.26);
}

.service-card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    background-color: rgba(0, 0, 0, 0.28);
    background-image: linear-gradient(135deg, rgba(246, 178, 27, 0.22), rgba(246, 178, 27, 0.04));
    background-size: cover;
    background-position: center;
}

.service-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card-body {
    padding: 2rem 1.75rem 2.25rem;
}

.service-card h4 {
    font-family: 'Asap', sans-serif;
    font-weight: bold;
    font-size: 22px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.service-card p {
    font-family: 'Opensans', sans-serif;
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 0;
}


/* --- Case cards: text-only with amber top accent (distinct from Services) --- */

.case-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-decoration: none;
    text-align: left;
    background: rgba(255, 255, 255, 0.04);
    border-top: 3px solid #F6B21B;
    border-radius: 0 0 6px 6px;
    padding: 1.75rem 1.5rem 2rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.case-card:hover,
.case-card:focus {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

/* Selectors scoped under .case-card so they beat template's
   `.page p { font-size: 20px }` (specificity 0,0,1,1). */
.case-card .case-meta {
    color: #F6B21B;
    font-family: 'Asap', sans-serif;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 0.6rem;
}

.case-card h4 {
    font-family: 'Asap', sans-serif;
    font-weight: bold;
    font-size: 18px;
    color: #fff;
    text-transform: none;
    letter-spacing: -0.01em;
    margin: 0 0 0.65rem;
    line-height: 1.3;
}

.case-card .case-summary {
    font-family: 'Opensans', sans-serif;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    line-height: 1.55;
    margin: 0;
}

.case-card .case-features {
    list-style: none;
    margin: 0.85rem 0 0;
    padding: 0;
}

.case-card .case-features li {
    font-family: 'Opensans', sans-serif;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12.5px;
    line-height: 1.5;
    padding-left: 0.9rem;
    margin-bottom: 0.3rem;
    position: relative;
}

.case-card .case-features li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 4px;
    height: 4px;
    background: #F6B21B;
    border-radius: 50%;
}

.case-card .case-stack {
    margin: 0.9rem 0 0;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-family: 'Asap', sans-serif;
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.case-card-placeholder {
    opacity: 0.5;
    border-top-color: rgba(246, 178, 27, 0.45);
}
.case-card-placeholder:hover,
.case-card-placeholder:focus {
    opacity: 0.75;
}


/* --- Mobile --- */

@media (max-width: 640px) {
    .services-grid,
    .cases-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1rem;
    }
    .service-card-body {
        padding: 1.5rem 1.25rem 1.75rem;
    }
    .case-card {
        padding: 1.5rem 1.25rem 1.75rem;
    }
    .service-card h4 {
        font-size: 18px;
    }
    .case-card h4 {
        font-size: 17px;
    }
    .service-card p {
        font-size: 14px;
    }
    .section-sub {
        font-size: 14px;
    }
}


/* --- Contact form: brighter placeholders / typed text against the dark bg --- */

.send_message_form input,
.send_message_form textarea {
    color: #fff;
}

.send_message_form input::placeholder,
.send_message_form textarea::placeholder {
    color: rgba(255, 255, 255, 0.62);
    opacity: 1;
}

.send_message_form input::-webkit-input-placeholder,
.send_message_form textarea::-webkit-input-placeholder {
    color: rgba(255, 255, 255, 0.62);
}

.send_message_form input::-moz-placeholder,
.send_message_form textarea::-moz-placeholder {
    color: rgba(255, 255, 255, 0.62);
    opacity: 1;
}


/* --- WhatsApp floating CTA ---
   Fixed bottom-right. Pulse ring via animated box-shadow (no extra DOM). */

.wa-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 200;
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.28),
        0 0 0 0 rgba(37, 211, 102, 0.5);
    animation: wa-pulse 2.4s ease-out infinite;
    transition: transform 0.25s ease;
}

.wa-float svg {
    width: 32px;
    height: 32px;
    display: block;
}

.wa-float:hover,
.wa-float:focus {
    transform: translateY(-3px) scale(1.04);
    animation: none;
    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.34),
        0 0 0 8px rgba(37, 211, 102, 0.22);
}

@keyframes wa-pulse {
    0%   { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28), 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70%  { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28), 0 0 0 18px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28), 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 640px) {
    .wa-float {
        width: 52px;
        height: 52px;
        right: 16px;
        bottom: 16px;
    }
    .wa-float svg {
        width: 28px;
        height: 28px;
    }
}


/* ==========================================================================
   Case study detail page (case-studies/<slug>.html)
   Scrolling page — overrides the home template's fullPage.js body lock.
   ========================================================================== */

body.case-study-page {
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100vh;
    background-color: #14110d;
    background-image:
        linear-gradient(180deg, rgba(20, 17, 13, 0.42), rgba(20, 17, 13, 0.58)),
        url('../img/bg-default.jpg');
    background-size: auto, cover;
    background-position: center, center;
    background-attachment: fixed, fixed;
    background-repeat: no-repeat, no-repeat;
    color: #fff;
    font-family: 'Opensans', sans-serif;
}

.cs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2.5rem;
    position: sticky;
    top: 0;
    background: rgba(20, 17, 13, 0.38);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 10;
}

.cs-header .cs-logo img {
    height: 32px;
    display: block;
}

.cs-back {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-family: 'Asap', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.cs-back:hover { color: #F6B21B; }
.cs-back i { font-size: 18px; }

.cs-contact-link {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-family: 'Asap', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.cs-contact-link:hover { color: #F6B21B; }

.cs-hero {
    max-width: 900px;
    margin: 0 auto;
    padding: 5rem 2rem 2.5rem;
    text-align: center;
}
.cs-hero--banner {
    max-width: none;
    padding: 0;
    position: relative;
    background-size: cover;
    background-position: center;
    background-color: #1a1d24;
}
.cs-hero--banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 16, 22, 0.55) 0%, rgba(13, 16, 22, 0.72) 55%, rgba(13, 16, 22, 0.9) 100%);
}
.cs-hero--banner .cs-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 8rem 2rem 5rem;
    text-align: center;
}
.cs-meta-label {
    color: #F6B21B;
    font-family: 'Asap', sans-serif;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin: 0 0 1.25rem;
}
.cs-hero h1 {
    font-family: 'Asap', sans-serif;
    font-size: clamp(34px, 5vw, 56px);
    font-weight: bold;
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: #fff;
    margin: 0 0 1.5rem;
}
.cs-outcome {
    font-family: 'Opensans', sans-serif;
    font-size: clamp(17px, 1.7vw, 20px);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.82);
    max-width: 720px;
    margin: 0 auto;
}

.cs-meta-strip {
    max-width: 900px;
    margin: 1rem auto 2rem;
    padding: 1.5rem 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.cs-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.cs-meta-key {
    color: rgba(255, 255, 255, 0.55);
    font-family: 'Asap', sans-serif;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.cs-meta-val {
    color: #fff;
    font-family: 'Asap', sans-serif;
    font-size: 15px;
    font-weight: bold;
}
.cs-meta-val a {
    color: #F6B21B;
    text-decoration: none;
}
.cs-meta-val a:hover { text-decoration: underline; }

.cs-section {
    max-width: 760px;
    margin: 0 auto;
    padding: 2.75rem 2rem;
}
.cs-section h2 {
    font-family: 'Asap', sans-serif;
    font-size: clamp(24px, 2.8vw, 32px);
    font-weight: bold;
    color: #fff;
    margin: 0 0 1.25rem;
    letter-spacing: -0.01em;
}
.cs-section h3 {
    font-family: 'Asap', sans-serif;
    font-size: 13px;
    font-weight: bold;
    color: #F6B21B;
    margin: 2rem 0 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.cs-section p {
    font-family: 'Opensans', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
    margin: 0 0 1.25rem;
}

.cs-section a {
    color: #F6B21B;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-decoration-color: rgba(246, 178, 27, 0.5);
    transition: text-decoration-color 0.2s ease, color 0.2s ease;
}

.cs-section a:hover,
.cs-section a:focus {
    text-decoration-color: #F6B21B;
    color: #ffd166;
}

/* In-page video embed: rounded container + soft shadow to match the
   liquid-glass aesthetic. Autoplay needs muted + playsinline to work. */
.cs-video {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    margin: 1.25rem 0 0.5rem;
    background: #000;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.10),
        0 14px 36px rgba(0, 0, 0, 0.32);
}

.cs-video-el {
    width: 100%;
    height: auto;
    display: block;
    background: #000;
}
.cs-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
    gap: 1rem;
    margin: 1.25rem 0 0.5rem;
}
.cs-figure {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #d9dadc;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.10),
        0 14px 36px rgba(0, 0, 0, 0.32);
}
.cs-figure img {
    width: 100%;
    height: auto;
    display: block;
}
.cs-figure figcaption {
    font-family: 'Opensans', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    padding: 0.65rem 0.9rem;
    background: rgba(0, 0, 0, 0.28);
}
@media only screen and (max-width: 640px) {
    .cs-gallery { grid-template-columns: 1fr; }
}
.cs-section ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}
.cs-section li {
    font-family: 'Opensans', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
    padding-left: 1.5rem;
    margin-bottom: 0.6rem;
    position: relative;
}
.cs-section li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 6px;
    height: 6px;
    background: #F6B21B;
    border-radius: 50%;
}

.cs-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0 1.75rem;
}
.cs-stat {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04));
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 14px;
    padding: 1.75rem 1.25rem;
    text-align: center;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.cs-stat-number {
    display: block;
    font-family: 'Asap', sans-serif;
    font-weight: bold;
    color: #F6B21B;
    font-size: clamp(26px, 3.2vw, 38px);
    line-height: 1;
    letter-spacing: -0.02em;
}
.cs-stat-unit {
    font-size: 0.55em;
    color: rgba(246, 178, 27, 0.7);
    margin-left: 0.15em;
}
.cs-stat-label {
    display: block;
    font-family: 'Opensans', sans-serif;
    color: rgba(255, 255, 255, 0.65);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.85rem;
    line-height: 1.4;
}

.cs-cta {
    max-width: 760px;
    margin: 1rem auto 0;
    padding: 4rem 2rem;
    text-align: center;
}
.cs-cta h2 {
    font-family: 'Asap', sans-serif;
    font-size: clamp(28px, 3.2vw, 40px);
    font-weight: bold;
    color: #fff;
    margin: 0 0 1rem;
    letter-spacing: -0.015em;
}
.cs-cta p {
    font-family: 'Opensans', sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
    max-width: 560px;
    margin: 0 auto 2rem;
}
.cs-cta-button {
    display: inline-block;
    background: #F6B21B;
    color: #1a1a1a;
    font-family: 'Asap', sans-serif;
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 1.1rem 2.5rem;
    border-radius: 999px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cs-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(246, 178, 27, 0.32);
}

.cs-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.75rem 2rem;
    text-align: center;
}
.cs-footer p {
    font-family: 'Opensans', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
}
.cs-footer a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    margin: 0 0.5rem;
}
.cs-footer a:hover { color: #F6B21B; }

@media (max-width: 720px) {
    .cs-header { padding: 1rem 1.25rem; }
    .cs-back { font-size: 11px; }
    .cs-contact-link { font-size: 11px; }
    .cs-hero { padding: 3rem 1.25rem 2rem; }
    .cs-hero--banner { padding: 0; }
    .cs-hero--banner .cs-hero-inner { padding: 5rem 1.25rem 3rem; }
    .cs-meta-strip {
        grid-template-columns: 1fr 1fr;
        padding: 1.25rem;
        gap: 1rem;
    }
    .cs-section { padding: 2rem 1.25rem; }
    .cs-stats { grid-template-columns: 1fr; gap: 0.75rem; }
    .cs-stat { padding: 1.25rem 1rem; }
    .cs-cta { padding: 3rem 1.25rem; }
}
