/* Make Sense Digital — site styles.
 *
 * EXTRACTED FROM index.html ON 2026-08-12, and the move is not cosmetic. `check-markup` reads the
 * four mobile render rules out of `.css` files, so while this lived in a `<style>` block THREE OF
 * THE FOUR RAN AGAINST AN EMPTY STRING and reported nothing — which reads exactly like passing.
 * A full-height rule using the wrong viewport unit sat here the whole time, uncaught.
 * (Not written literally: the check reads comments too, and would flag this line. Reported as
 * engineering-handbook#56; fixed here by giving the rules something to read.)
 *
 * Cache invalidation is manual: there is no build, so no content-addressed filenames. The `?v=` in
 * the markup comes from `config.assetVersion` and nowhere else, and the two are checked against
 * each other by `check-config`. Bump both together or a returning visitor gets this file cached
 * against new markup.
 */

/* --- CSS VARIABLES & RESET --- */
:root {
    --primary-black: #000000;
    --accent-yellow: #EED464; /* RGB(238,212,100) */
    --accent-yellow-dark: #d6b93f;
    --text-grey: #4a4a4a;
    --muted-grey: #6a6a6a; /* 4.9:1 on --light-bg; #7a7a7a was 4.2:1 and failed AA */
    --light-bg: #f4f4f4;
    --white: #ffffff;
    --card-shadow: 0 10px 30px rgba(0,0,0,0.08);
    --hover-shadow: 0 15px 35px rgba(238, 212, 100, 0.2);
    --glass-bg: rgba(255,255,255,0.07);
    --hero-gradient: radial-gradient(circle at top left, rgba(238,212,100,0.15), transparent 60%);
    
    /* Interactive target minimum (§26, render rule 4) */
    --tap-min: 44px;

    /* Typography */
    --font-title: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-grey);
    line-height: 1.7;
    background-color: #fcfcfc;
    background-image: linear-gradient(180deg, rgba(238,212,100,0.04), rgba(0,0,0,0));
    overflow-x: hidden;
    min-height: 100dvh; /* not vh: browser chrome makes vh taller than the visible viewport, putting the CTA below the fold on first render */
}

h1, h2, h3, h4 {
    font-family: var(--font-title);
    color: var(--primary-black);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

a:focus-visible,
button:focus-visible,
.lang-switch:focus-visible {
    outline: 2px dashed var(--accent-yellow);
    outline-offset: 4px;
}

ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

/* --- ANIMATIONS (Scroll Reveal) --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    background-color: var(--accent-yellow);
    color: var(--primary-black);
    padding: 15px 40px;
    font-family: var(--font-title);
    font-weight: 600;
    border-radius: 50px; /* Rounded Pill Shape */
    border: 2px solid var(--accent-yellow);
    box-shadow: 0 5px 15px rgba(238, 212, 100, 0.4);
    transform: translateY(0);
}

.btn:hover {
    background-color: transparent;
    border: 2px solid var(--accent-yellow);
    color: var(--accent-yellow);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(238, 212, 100, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.25);
    box-shadow: none;
}

.btn-secondary:hover {
    border-color: var(--accent-yellow);
    color: var(--accent-yellow);
}

/* --- HEADER --- */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

nav ul {
    display: flex;
    gap: 35px;
    align-items: center;
}

nav a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-yellow);
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

.lang-switch {
    cursor: pointer;
    font-weight: 700;
    font-size: 0.8rem;
    background: var(--primary-black);
    color: var(--accent-yellow);
    padding: 8px 16px;
    border-radius: 20px;
    transition: transform 0.2s;
}

.lang-switch:hover {
    transform: scale(1.05);
}

/* --- HERO SECTION --- */
.hero {
    background-color: var(--primary-black);
    background-image: var(--hero-gradient);
    color: var(--white);
    padding: 140px 0 160px 0;
    text-align: left;
    position: relative;
    /* Curved bottom for less "square" look */
    border-bottom-left-radius: 50px; 
    border-bottom-right-radius: 50px;
    overflow: hidden;
}

/* Abstract background decoration */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(238,212,100,0.1) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: center;
    gap: 60px;
}

.hero-text {
    max-width: 640px;
}

.hero h1 {
    color: var(--accent-yellow);
    font-size: 3.5rem;
    margin-bottom: 25px;
    font-weight: 700;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    max-width: 750px;
    margin: 0 0 30px 0;
    font-weight: 300;
    opacity: 0.9;
}

.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    color: var(--muted-grey);
    margin-bottom: 18px;
    font-weight: 600;
}

.hero-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.hero-pill {
    background: rgba(255,255,255,0.08);
    color: var(--white);
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.12);
}

.cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.hero-card {
    background: var(--glass-bg);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 35px;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
    backdrop-filter: blur(18px);
}

.hero-card h2 {
    color: var(--accent-yellow);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.hero-card p {
    margin-bottom: 25px;
    font-size: 1rem;
    opacity: 0.85;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 20px;
}

.metric {
    padding: 15px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.15);
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-yellow);
}

.metric-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

/* --- ABOUT --- */
.about {
    padding: 100px 0;
}

.about-card {
    background: var(--white);
    padding: 50px;
    border-radius: 30px;
    box-shadow: var(--card-shadow);
    text-align: center;
    max-width: 900px;
    margin: -80px auto 0 auto; /* Overlap effect */
    position: relative;
    z-index: 2;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.highlight-card {
    padding: 20px;
    border-radius: 18px;
    border: 1px solid rgba(0,0,0,0.05);
    background: #fafafa;
}

.highlight-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-black);
}

.highlight-label {
    display: block;
    font-size: 0.9rem;
    color: var(--muted-grey);
}

/* --- SERVICES --- */
.services {
    padding: 80px 0 120px 0;
    background-color: var(--light-bg);
    /* Soft curve separator */
    clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 95%); 
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--muted-grey);
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 2.8rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-yellow);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-description {
    max-width: 680px;
    margin: 15px auto 0;
    color: var(--muted-grey);
    font-size: 1rem;
}

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

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px; /* Round corners */
    box-shadow: var(--card-shadow);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border-top: 0 solid var(--accent-yellow);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
    border-top: 5px solid var(--accent-yellow);
}

.service-number {
    font-size: 3rem;
    font-weight: 700;
    color: #f0f0f0;
    position: absolute;
    top: 10px;
    right: 20px;
    z-index: 0;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.service-card p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

/* --- CTA BANNER --- */
.cta-banner {
    padding: 90px 0;
    background: #0d0d0d;
    color: var(--white);
}

.cta-banner .cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.cta-banner h2 {
    color: var(--accent-yellow);
    margin-bottom: 15px;
}

.cta-banner p {
    color: rgba(255,255,255,0.82);
    max-width: 620px;
}


/* --- FAQS --- */
.faqs {
    padding: 100px 0;
}

.faq-item {
    max-width: 800px;
    margin: 0 auto 25px auto;
    border-radius: 15px;
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.faq-question {
    padding: 25px;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    text-align: left;
    color: inherit;
}

.faq-question:hover {
    background-color: #fafafa;
}

.icon-plus {
    font-size: 1.5rem;
    color: var(--accent-yellow);
    transition: transform 0.3s;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 25px;
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 300px; /* Arbitrary large height */
    padding-bottom: 25px;
    opacity: 1;
}

.faq-item.active .icon-plus {
    transform: rotate(45deg);
}

.faq-item.active {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-color: transparent;
}

/* --- CONTACT --- */
.contact {
    padding: 100px 0;
    background-color: var(--primary-black);
    color: var(--white);
    text-align: center;
    border-top-left-radius: 60px;
    border-top-right-radius: 60px;
}

.contact h2 {
    color: var(--accent-yellow);
    margin-bottom: 15px;
}

.contact p {
    margin-bottom: 50px;
    font-size: 1.2rem;
    opacity: 0.8;
}

.contact-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-card {
    background: rgba(255,255,255,0.05);
    padding: 30px 50px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    transition: 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
}

.contact-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-5px);
}

.contact-label {
    display: block;
    color: var(--accent-yellow);
    font-weight: 700;
    font-family: var(--font-title);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.contact-value {
    font-size: 1.1rem;
}

/* --- FOOTER --- */
footer {
    background-color: #0a0a0a; /* Slightly lighter than black */
    color: #a8a8a8; /* 8.3:1 on #0a0a0a; #555 was 2.6:1 and failed AA badly */
    text-align: center;
    padding: 40px 0;
    font-size: 0.9rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 20px;
    }
    .hero {
        padding: 100px 0;
        border-radius: 0 0 30px 30px;
        text-align: center;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero-pill-list {
        justify-content: center;
    }
    .cta-group {
        justify-content: center;
    }
    .hero-card {
        text-align: center;
    }
    .hero-metrics {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }
    .about-card {
        padding: 30px 20px;
        margin-top: -50px;
    }
    .about-highlights {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
    .cta-banner .cta-content {
        flex-direction: column;
        text-align: center;
    }
    .contact-container {
        flex-direction: column;
        gap: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* --- SKIP LINK (§6c) ---
 * The first focusable element in the document. Without it a keyboard user tabs the whole
 * navigation before reaching the content, on every visit. Visible only when focused, but never
 * `display: none` — that removes it from the tab order and makes it decoration.
 */
.skip-link {
    position: absolute;
    left: 8px;
    top: -60px;
    z-index: 999;
    background: var(--primary-black);
    color: var(--white);
    padding: 12px 20px;
    border-radius: 0 0 8px 8px;
    font-family: var(--font-title);
    font-weight: 600;
    min-height: var(--tap-min);
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

/* --- INTERACTIVE TARGET SIZE (§26, render rule 4) ---
 * 44px minimum with spacing between adjacent targets. Below it, an ordinary thumb hits the wrong
 * control, and the control this matters most for is the one that converts.
 */
.btn,
.faq-question,
.lang-switch,
.contact-card,
nav ul li a {
    min-height: var(--tap-min);
}

nav ul li a,
.lang-switch {
    display: inline-flex;
    align-items: center;
    padding: 0 4px;
}

nav ul {
    gap: 8px;
}
