/* ===== LOCAL GOOGLE FONTS =====
   Place the downloaded Google Font files in SRC/assets/fonts:
   - bebas-neue-v14-latin_latin-ext-regular.woff2
   - space-grotesk-v16-latin_latin-ext-300.woff2
   - space-grotesk-v16-latin_latin-ext-500.woff2
   - space-grotesk-v16-latin_latin-ext-700.woff2
   External Google Fonts imports have been removed from HTML. */
@font-face {
    font-family: 'Bebas Neue Local';
    src: url('../fonts/bebas-neue-v14-latin_latin-ext-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Space Grotesk Local';
    src: url('../fonts/space-grotesk-v16-latin_latin-ext-300.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Space Grotesk Local';
    src: url('../fonts/space-grotesk-v16-latin_latin-ext-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Space Grotesk Local';
    src: url('../fonts/space-grotesk-v16-latin_latin-ext-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ===== CSS RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Brand Colors */
    --color-orange: #F5A623;
    --color-orange-dark: #D18F1A;
    --color-orange-glow: rgba(245, 166, 35, 0.3);
    
    /* Light Theme */
    --color-bg: #FFFFFF;
    --color-surface: #F8F9FA;
    --color-surface-elevated: #FFFFFF;
    --color-text: #1A1A2E;
    --color-text-muted: #6B7280;
    --color-border: #E5E7EB;
    --color-shadow: rgba(0, 0, 0, 0.1);
    --color-overlay: rgba(26, 26, 46, 0.75);
    
    /* Typography */
    --font-display: 'Bebas Neue Local', 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
    --font-body: 'Space Grotesk Local', 'Space Grotesk', Arial, sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    --spacing-xxl: 8rem;
    
    /* Effects */
    --radius: 4px;
    --transition: 0.3s ease;
    --blur-glass: blur(12px);
}

[data-theme="dark"] {
    --color-bg: #0F0F1E;
    --color-surface: #1A1A2E;
    --color-surface-elevated: #25253E;
    --color-text: #F8F9FA;
    --color-text-muted: #9CA3AF;
    --color-border: #2D2D44;
    --color-shadow: rgba(0, 0, 0, 0.4);
    --color-overlay: rgba(15, 15, 30, 0.85);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    transition: background-color var(--transition), color var(--transition);
    overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

h1 { font-size: clamp(2.5rem, 8vw, 6rem); }
h2 { font-size: clamp(2rem, 6vw, 4.5rem); }
h3 { font-size: clamp(1.5rem, 4vw, 3rem); }
h4 { font-size: clamp(1.25rem, 3vw, 2rem); }

p {
    font-weight: 300;
    max-width: 70ch;
}

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

a:hover {
    color: var(--color-orange);
}

/* ===== UTILITIES ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

@media (min-width: 640px) {
    .container {
        padding: 0 var(--spacing-md);
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--color-surface-elevated);
    backdrop-filter: var(--blur-glass);
    border-bottom: 1px solid var(--color-border);
    transition: all var(--transition);
}

.header.scrolled {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: var(--blur-glass);
    box-shadow: 0 4px 20px var(--color-shadow);
}

[data-theme="light"] .header.scrolled .brand-name,
[data-theme="light"] .header.scrolled .nav-link {
    color: #F8F9FA;
}

[data-theme="light"] .header.scrolled .menu-toggle span {
    background: #F8F9FA;
}

[data-theme="light"] .header.scrolled .theme-toggle svg {
    fill: #F8F9FA;
}

[data-theme="dark"] .header.scrolled {
    background: rgba(15, 15, 30, 0.95);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    gap: var(--spacing-md);
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 2px 8px var(--color-orange-glow));
}

.brand-name {
    font-family: var(--font-display);
    font-size: 1.75rem;
    letter-spacing: 0.05em;
    color: var(--color-text);
}

.nav-main {
    display: none;
    gap: var(--spacing-md);
}

@media (min-width: 1024px) {
    .nav-main {
        display: flex;
    }
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-orange);
    transition: width var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.lang-switcher {
    display: flex;
    gap: 0.25rem;
    background: var(--color-surface);
    padding: 0.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
}

.lang-btn {
    padding: 0.4rem 0.8rem;
    background: transparent;
    border: none;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    cursor: pointer;
    border-radius: calc(var(--radius) - 2px);
    transition: all var(--transition);
}

.lang-btn.active {
    background: var(--color-orange);
    color: white;
}

.theme-toggle {
    width: 44px;
    height: 44px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.theme-toggle:hover {
    background: var(--color-orange);
    border-color: var(--color-orange);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    fill: var(--color-text);
    transition: fill var(--transition);
}

.theme-toggle:hover svg {
    fill: white;
}

.menu-toggle {
    display: flex;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

@media (min-width: 1024px) {
    .menu-toggle {
        display: none;
    }
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: all var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-surface-elevated);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all var(--transition);
    padding: var(--spacing-md);
    overflow-y: auto;
    z-index: 900;
    pointer-events: none;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

body.menu-open {
    overflow: hidden;
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.mobile-menu .nav-link {
    font-size: 1.5rem;
    padding: var(--spacing-sm);
    border-bottom: 1px solid var(--color-border);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #1A1A2E;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(26, 26, 46, 0.7) 50%, rgba(245, 166, 35, 0.1) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-sm);
    animation: heroFadeIn 1.2s ease-out;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-tagline {
    color: var(--color-orange);
    font-size: clamp(0.875rem, 2vw, 1.125rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: var(--spacing-sm);
    animation: heroFadeIn 1.2s ease-out 0.2s backwards;
}

.hero-title {
    color: white;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: heroFadeIn 1.2s ease-out 0.4s backwards;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
    animation: heroFadeIn 1.2s ease-out 0.6s backwards;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 1.25rem 3rem;
    background: var(--color-orange);
    color: white;
    font-family: var(--font-display);
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--radius);
    box-shadow: 0 8px 30px rgba(245, 166, 35, 0.4);
    transition: all var(--transition);
    animation: heroFadeIn 1.2s ease-out 0.8s backwards;
}

.hero-cta:hover {
    background: var(--color-orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(245, 166, 35, 0.5);
}

/* ===== SECTIONS ===== */
.section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

@media (min-width: 1024px) {
    .section {
        padding: var(--spacing-xxl) 0;
    }
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: var(--spacing-sm);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--color-orange);
}

.section-subtitle {
    color: var(--color-text-muted);
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto;
}

/* ===== ABOUT SECTION ===== */
.about-grid {
    display: grid;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-xl);
    }
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.about-content p {
    font-size: 1.125rem;
    line-height: 1.8;
}

.about-subtitle {
    font-family: var(--font-display);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text);
}

.about-list {
    list-style: disc;
    padding-left: 1.5rem;
    display: grid;
    gap: 0.5rem;
}

.about-list li {
    font-size: 1.05rem;
    line-height: 1.7;
}

.about-highlight {
    background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-elevated) 100%);
    padding: var(--spacing-md);
    border-left: 4px solid var(--color-orange);
    border-radius: var(--radius);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.stat-card {
    background: var(--color-surface);
    padding: var(--spacing-md);
    border-radius: var(--radius);
    border-left: 4px solid var(--color-orange);
    transition: all var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px var(--color-shadow);
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--color-orange);
    line-height: 1;
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

/* ===== PRODUCTS SECTION ===== */
.products-grid {
    display: grid;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

@media (min-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.product-card {
    background: var(--color-surface);
    border-radius: var(--radius);
    overflow: hidden;
    border-left: 4px solid var(--color-orange);
    transition: all var(--transition);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px var(--color-shadow);
}

.product-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.product-content {
    padding: var(--spacing-md);
}

.product-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.product-description {
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-sm);
}

.product-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.product-list li::before {
    content: '▸';
    color: var(--color-orange);
    font-weight: 700;
    flex-shrink: 0;
}

/* ===== GALLERY SECTION ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 46, 0.9) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition);
    display: flex;
    align-items: flex-end;
    padding: var(--spacing-md);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-caption {
    color: white;
    font-size: 1.125rem;
    font-weight: 500;
}



/* ===== VIDEO GALLERY SECTION ===== */
.video-section {
    margin-top: var(--spacing-xl);
}

.video-section-header {
    margin-bottom: var(--spacing-md);
}

.video-title {
    font-size: clamp(1.75rem, 4vw, 3rem);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

@media (min-width: 640px) {
    .video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .video-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.video-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 1 / 1;
    background: #0F0F1E;
    cursor: pointer;
    box-shadow: none;
    border: none;
}

.gallery-video {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    background: #0F0F1E;
    object-fit: cover;
}

.video-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 46, 0.9) 0%, rgba(26, 26, 46, 0.25) 42%, transparent 72%);
    opacity: 1;
    pointer-events: none;
    transition: opacity var(--transition);
}

.video-card:hover .gallery-video {
    transform: scale(1.04);
}

.gallery-video {
    transition: transform 0.6s ease;
}

.video-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    max-width: none;
    padding: var(--spacing-md);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.35;
    pointer-events: none;
}

/* ===== CONTACT SECTION ===== */
.contact-grid {
    display: grid;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-xl);
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-form-wrapper {
    grid-column: 1 / -1;
}

.contact-form {
    background: var(--color-surface);
    border-radius: var(--radius);
    border-left: 4px solid var(--color-orange);
    padding: var(--spacing-lg);
    display: grid;
    gap: var(--spacing-md);
}

.contact-form-header {
    display: grid;
    gap: var(--spacing-xs);
}

.contact-form-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    text-transform: uppercase;
}

.contact-form-description {
    color: var(--color-text-muted);
}

.contact-form-grid {
    display: grid;
    gap: var(--spacing-sm);
}

@media (min-width: 768px) {
    .contact-form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-field label {
    font-weight: 500;
    color: var(--color-text);
}

.form-field input,
.form-field textarea {
    padding: 0.85rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-surface-elevated);
    color: var(--color-text);
    font-family: var(--font-body);
}

.form-field textarea {
    min-height: 140px;
    resize: vertical;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    align-items: center;
}

.form-actions .hero-cta {
    border: none;
    cursor: pointer;
}

.form-note {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.calculator-section {
    padding-top: 120px;
}

.calculator-card {
    background: var(--color-surface);
    border-radius: var(--radius);
    border-left: 4px solid var(--color-orange);
    padding: clamp(1.5rem, 4vw, 3rem);
    box-shadow: 0 8px 30px var(--color-shadow);
    display: grid;
    gap: var(--spacing-md);
}

.calculator-grid {
    display: grid;
    gap: var(--spacing-md);
}

@media (min-width: 768px) {
    .calculator-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.calculator-result {
    background: var(--color-surface-elevated);
    border-radius: var(--radius);
    padding: var(--spacing-md);
    display: grid;
    gap: 0.35rem;
    border: 1px solid var(--color-border);
}

.calculator-result strong {
    font-size: 1.35rem;
    color: var(--color-orange);
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    padding: var(--spacing-md);
    background: var(--color-surface);
    border-radius: var(--radius);
    border-left: 4px solid var(--color-orange);
}

.contact-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

.contact-value {
    font-size: 1.25rem;
    font-weight: 500;
}

.contact-value a {
    color: var(--color-orange);
}

.map-wrapper {
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 400px;
    background: var(--color-surface);
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-placeholder {
    text-align: center;
    padding: var(--spacing-lg);
}

.map-placeholder a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--color-orange);
    color: white;
    border-radius: var(--radius);
    font-weight: 500;
    margin-top: var(--spacing-sm);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--color-surface);
    border-top: 4px solid var(--color-orange);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    gap: var(--spacing-lg);
}

@media (min-width: 1024px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
        gap: var(--spacing-xl);
    }
}

.footer-section h4 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.footer-section p,
.footer-section li {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--color-orange);
}

.footer-social-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
    color: var(--color-orange);
}

.footer-social-icon {
    width: 0.95em;
    height: 0.95em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 0.95em;
    color: currentColor;
    transition: transform var(--transition), color var(--transition);
}

.footer-social-icon svg {
    width: 0.95em;
    height: 0.95em;
    display: block;
    fill: currentColor;
}

.footer-social-link:hover .footer-social-icon,
.footer-social-link:focus-visible .footer-social-icon {
    transform: translateY(-1px);
    color: var(--color-orange);
}

.footer-bottom {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--color-border);
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}
		
		.footer-bottom p {
  max-width: none;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

/* ===== FLOATING CTA ===== */
.floating-cta {
    position: fixed;
    bottom: var(--spacing-md);
    right: var(--spacing-md);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

@media (min-width: 1024px) {
    .floating-cta {
        display: none;
    }
}

.cta-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--color-orange);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(245, 166, 35, 0.4);
    transition: all var(--transition);
}

.cta-button:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(245, 166, 35, 0.5);
}

.cta-button svg {
    width: 28px;
    height: 28px;
    fill: white;
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== SKIP LINK ===== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-orange);
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}
/* ===== RU typography fix ===== */
html[lang="ru"] h1 {
  font-size: clamp(1.9rem, 4.6vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
}

html[lang="ru"] h2 {
  font-size: clamp(1.6rem, 3.8vw, 3rem);
  line-height: 1.1;
}

html[lang="ru"] h3 {
  font-size: clamp(1.25rem, 2.8vw, 2rem);
  line-height: 1.15;
}

html[lang="ru"] .hero-title {
  font-size: clamp(2rem, 4.8vw, 4rem);
  line-height: 1.08;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

html[lang="ru"] .hero-tagline {
  font-size: clamp(0.75rem, 1.3vw, 1rem);
  letter-spacing: 0.18em;
}

html[lang="ru"] .hero-subtitle {
  font-size: clamp(0.9rem, 1.5vw, 1.15rem);
  line-height: 1.5;
  max-width: 850px;
}

html[lang="ru"] .hero-cta {
  font-size: 1.05rem;
  padding: 1rem 2.4rem;
}

html[lang="ru"] .section-subtitle {
  font-size: 1rem;
  line-height: 1.55;
}

html[lang="ru"] .product-title {
  font-size: 1.25rem;
  line-height: 1.15;
}

html[lang="ru"] .product-description,
html[lang="ru"] .product-list li {
  font-size: 0.9rem;
  line-height: 1.45;
}

html[lang="ru"] .nav-link {
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

html[lang="ru"] .mobile-menu .nav-link {
  font-size: 1.15rem;
}

@media (max-width: 640px) {
  html[lang="ru"] .hero-title {
    font-size: clamp(1.75rem, 8.5vw, 2.55rem);
    line-height: 1.08;
  }

  html[lang="ru"] h2 {
    font-size: clamp(1.55rem, 7vw, 2.25rem);
  }

  html[lang="ru"] .hero-subtitle {
    font-size: 0.95rem;
  }

  html[lang="ru"] .hero-cta {
    font-size: 0.95rem;
    padding: 0.9rem 1.4rem;
  }
}

.stat-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.stat-card-link:hover {
  color: inherit;
}

.stat-card-link:focus-visible {
  outline: 3px solid var(--color-orange);
  outline-offset: 4px;
}

.stat-card-with-image {
  overflow: hidden;
  padding: 0;
}

.stat-card-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.stat-card-with-image .stat-number,
.stat-card-with-image .stat-label {
  padding-left: var(--spacing-md);
  padding-right: var(--spacing-md);
}

.stat-card-with-image .stat-number {
  padding-top: var(--spacing-md);
}

.stat-card-with-image .stat-label {
  padding-bottom: var(--spacing-md);
}


.social-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-orange);
  border-radius: var(--radius);
  color: var(--color-text);
  font-weight: 500;
  transition: all var(--transition);
}

.social-link:hover {
  background: var(--color-orange);
  border-color: var(--color-orange);
  color: white;
  transform: translateY(-2px);
}


/* ===== PRODUCTION FIXES: hosting-safe navigation, forms, calculator, delivery contrast ===== */

/* Header is intentionally dark in both themes to keep the logo and navigation readable
   and to avoid hosting/cache differences between default and scrolled states. */
.header,
.header.scrolled,
[data-theme="light"] .header,
[data-theme="light"] .header.scrolled,
[data-theme="dark"] .header,
[data-theme="dark"] .header.scrolled {
    background: rgba(15, 15, 30, 0.97) !important;
    border-bottom-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.header .brand-name,
.header.scrolled .brand-name,
[data-theme="light"] .header .brand-name,
[data-theme="light"] .header.scrolled .brand-name,
[data-theme="dark"] .header .brand-name,
[data-theme="dark"] .header.scrolled .brand-name,
.header .nav-main .nav-link,
.header.scrolled .nav-main .nav-link,
[data-theme="light"] .header .nav-main .nav-link,
[data-theme="light"] .header.scrolled .nav-main .nav-link,
[data-theme="dark"] .header .nav-main .nav-link,
[data-theme="dark"] .header.scrolled .nav-main .nav-link {
    color: #F8F9FA !important;
}

.header .nav-main .nav-link:hover,
.header .nav-main .nav-link:focus-visible,
.header .nav-main .nav-link.active {
    color: #FFFFFF !important;
}

.header .nav-main .nav-link::after,
.mobile-menu .nav-link::after {
    background: var(--color-orange) !important;
}

.header .menu-toggle span,
.header.scrolled .menu-toggle span,
[data-theme="light"] .header .menu-toggle span,
[data-theme="light"] .header.scrolled .menu-toggle span,
[data-theme="dark"] .header .menu-toggle span,
[data-theme="dark"] .header.scrolled .menu-toggle span {
    background: #F8F9FA !important;
}

.header .theme-toggle,
.header.scrolled .theme-toggle {
    background: #FFFFFF !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
}

.header .theme-toggle svg,
.header.scrolled .theme-toggle svg,
[data-theme="light"] .header.scrolled .theme-toggle svg {
    fill: #1A1A2E !important;
}

.header .theme-toggle:hover {
    background: var(--color-orange) !important;
    border-color: var(--color-orange) !important;
}

.header .theme-toggle:hover svg {
    fill: #FFFFFF !important;
}

.header .lang-switcher {
    background: #F8F9FA !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
}

.header .lang-btn {
    color: #6B7280 !important;
}

.header .lang-btn.active {
    color: #FFFFFF !important;
}

/* Mobile navigation: full viewport height, no clipping, scrollable on small screens. */
@media (max-width: 1023px) {
    .mobile-menu,
    [data-theme="light"] .mobile-menu,
    [data-theme="dark"] .mobile-menu {
        position: fixed !important;
        top: 80px !important;
        left: 0 !important;
        right: 0 !important;
        bottom: auto !important;
        height: calc(100vh - 80px) !important;
        height: calc(100dvh - 80px) !important;
        max-height: calc(100vh - 80px) !important;
        max-height: calc(100dvh - 80px) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        padding: 1.5rem 1rem calc(2rem + env(safe-area-inset-bottom)) !important;
        background: #0F0F1E !important;
        color: #F8F9FA !important;
        z-index: 1001 !important;
    }

    .mobile-menu.active {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
    }

    .mobile-menu nav {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.25rem !important;
        min-height: max-content;
    }

    .mobile-menu .nav-link,
    .mobile-menu .nav-link:visited,
    [data-theme="light"] .mobile-menu .nav-link,
    [data-theme="dark"] .mobile-menu .nav-link {
        display: block !important;
        width: 100% !important;
        color: #F8F9FA !important;
        font-size: clamp(1.1rem, 5vw, 1.45rem) !important;
        line-height: 1.25 !important;
        padding: 1rem 0.75rem !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    }

    .mobile-menu .nav-link:hover,
    .mobile-menu .nav-link:focus-visible,
    .mobile-menu .nav-link.active {
        color: #FFFFFF !important;
        background: rgba(245, 166, 35, 0.08) !important;
    }

    body.menu-open {
        overflow: hidden !important;
        touch-action: none;
    }

    .nav-controls {
        gap: 0.5rem !important;
    }

    .lang-btn {
        padding: 0.35rem 0.65rem !important;
    }
}

/* Forms/calculator: production-safe selectors with sufficient specificity. */
.contact-form-wrapper,
.calculator-card {
    width: 100%;
}

.contact-form,
main .contact-form,
#contact .contact-form {
    width: 100% !important;
    background: var(--color-surface) !important;
    border-left: 4px solid var(--color-orange) !important;
    border-radius: var(--radius) !important;
    padding: clamp(1.5rem, 4vw, 3rem) !important;
    display: grid !important;
    gap: var(--spacing-md) !important;
    box-shadow: 0 8px 30px var(--color-shadow);
}

.contact-form-grid,
main .contact-form-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: var(--spacing-sm) !important;
}

@media (min-width: 768px) {
    .contact-form-grid,
    main .contact-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

.form-field,
main .form-field {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.35rem !important;
    width: 100% !important;
}

.form-field label,
main .form-field label {
    font-weight: 700 !important;
    color: var(--color-text) !important;
}

.form-field input,
.form-field textarea,
.calculator-card input {
    width: 100% !important;
    min-height: 44px !important;
    padding: 0.85rem 1rem !important;
    border: 1px solid var(--color-border) !important;
    border-radius: var(--radius) !important;
    background: var(--color-surface-elevated) !important;
    color: var(--color-text) !important;
    font-family: var(--font-body) !important;
    font-size: 1rem !important;
    appearance: none;
}

.form-field textarea {
    min-height: 140px !important;
    resize: vertical !important;
}

.form-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: var(--spacing-sm) !important;
}

.form-actions .hero-cta {
    border: 0 !important;
    cursor: pointer !important;
}

.calculator-section {
    padding-top: 120px !important;
}

.calculator-card,
main .calculator-card {
    width: 100% !important;
    background: var(--color-surface) !important;
    border-radius: var(--radius) !important;
    border-left: 4px solid var(--color-orange) !important;
    padding: clamp(1.5rem, 4vw, 3rem) !important;
    box-shadow: 0 8px 30px var(--color-shadow) !important;
    display: grid !important;
    gap: var(--spacing-md) !important;
}

.calculator-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: var(--spacing-md) !important;
}

@media (min-width: 768px) {
    .calculator-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

.calculator-result {
    background: var(--color-surface-elevated) !important;
    border: 1px solid var(--color-border) !important;
}

/* Piegāde hero contrast. */
.delivery-section,
#delivery {
    position: relative;
    overflow: hidden;
    background: #0F0F1E;
    min-height: 100vh;
    padding-top: 140px;
}

#delivery .hero-bg {
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
}

#delivery .hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(15, 15, 30, 0.78) 0%, rgba(15, 15, 30, 0.66) 42%, rgba(15, 15, 30, 0.9) 100%),
        rgba(0, 0, 0, 0.35);
    z-index: 1;
}

#delivery .hero-bg img {
    filter: saturate(0.95) contrast(0.95) brightness(0.8);
}

#delivery .section-header,
#delivery .products-grid {
    position: relative;
    z-index: 2;
}

#delivery .section-header {
    padding-left: var(--spacing-sm);
    padding-right: var(--spacing-sm);
}

#delivery .hero-title,
#delivery .hero-subtitle {
    color: #FFFFFF !important;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.9), 0 1px 2px rgba(0, 0, 0, 1) !important;
}

#delivery .hero-subtitle {
    display: inline-block;
    max-width: 900px;
    padding: 0.65rem 1rem;
    background: rgba(15, 15, 30, 0.62);
    border-left: 4px solid var(--color-orange);
    border-radius: var(--radius);
}

/* Product list readability and separate list items. */
.product-list {
    align-items: stretch;
}

.product-list li {
    line-height: 1.55;
}

/* Active menu underline fallback for all pages. */
.nav-link.active::after,
.nav-link[aria-current="page"]::after {
    width: 100% !important;
}

.nav-link:focus-visible,
.lang-btn:focus-visible,
.theme-toggle:focus-visible,
.menu-toggle:focus-visible,
.hero-cta:focus-visible {
    outline: 3px solid var(--color-orange);
    outline-offset: 3px;
}

/* Very small screens. */
@media (max-width: 480px) {
    .logo {
        height: 40px;
    }

    .brand-name {
        font-size: 1.35rem;
    }

    .theme-toggle,
    .menu-toggle {
        width: 40px;
        height: 40px;
    }

    .contact-form,
    .calculator-card {
        padding: 1.25rem !important;
    }
}


/* ===== CONTENT UPDATE FIXES 2026-05-29 ===== */
/* Keep the Par mums statistic cards square instead of stretched rectangles. */
#about .stats-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    align-content: start;
}

#about .stat-card {
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 0;
}

@media (max-width: 520px) {
    #about .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-sm);
    }

    #about .stat-card {
        padding: var(--spacing-sm);
    }
}

.gallery-clients {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.gallery-clients p {
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
}

.gallery-clients-list {
    list-style-position: inside;
    display: grid;
    gap: 0.25rem;
    margin-top: 0.75rem;
    padding-left: 0;
}

#delivery .hero-subtitle {
    max-width: min(960px, calc(100% - 2rem));
    line-height: 1.55;
}

/* ===== CONTACT FORM SERVER SUBMIT STATUS ===== */
.form-honeypot,
.form-honeypot[hidden] {
    display: none !important;
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.consent-field {
    margin-top: -0.25rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--color-text);
    font-weight: 500;
    line-height: 1.5;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 0.2rem;
    accent-color: var(--color-orange);
    cursor: pointer;
}

.privacy-link {
    color: var(--color-orange);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.privacy-link:hover,
.privacy-link:focus {
    color: var(--color-orange-dark);
}

.form-status {
    min-height: 1.5rem;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.form-status.is-success {
    color: #1f8f4d;
    font-weight: 600;
}

.form-status.is-error {
    color: #d03939;
    font-weight: 600;
}

.contact-form .hero-cta:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}


/* ===== FIX 2026-05-29: CONSENT CHECKBOX AND PLAYABLE VIDEO GRID ===== */
/* Keep the anti-spam honeypot permanently hidden in all browsers/hosting environments. */
.contact-form .form-honeypot,
.contact-form .form-honeypot[hidden],
#contactForm .form-honeypot,
#contactForm .form-honeypot[hidden] {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    min-width: 1px !important;
    min-height: 1px !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* The privacy checkbox must not inherit full-width text-input styling. */
.contact-form .consent-field,
#contactForm .consent-field {
    display: block !important;
    width: 100% !important;
    margin-top: 0 !important;
}

.contact-form .consent-field .checkbox-label,
#contactForm .consent-field .checkbox-label {
    display: grid !important;
    grid-template-columns: 20px minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 0.75rem !important;
    width: 100% !important;
    color: var(--color-text) !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;
    cursor: pointer !important;
}

.contact-form .consent-field input[type="checkbox"],
#contactForm .consent-field input[type="checkbox"],
.form-field.consent-field input[type="checkbox"] {
    appearance: auto !important;
    -webkit-appearance: checkbox !important;
    display: inline-block !important;
    width: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    height: 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;
    padding: 0 !important;
    margin: 0.2rem 0 0 0 !important;
    border: 1px solid var(--color-border) !important;
    border-radius: 2px !important;
    background: var(--color-surface-elevated) !important;
    color: var(--color-orange) !important;
    accent-color: var(--color-orange) !important;
    cursor: pointer !important;
    flex: 0 0 18px !important;
}

.contact-form .consent-field .checkbox-label > span,
#contactForm .consent-field .checkbox-label > span {
    display: block !important;
    min-width: 0 !important;
}

.contact-form .privacy-link,
#contactForm .privacy-link {
    color: var(--color-orange) !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
    text-underline-offset: 0.18em !important;
}

/* Make the video section match the photo grid: square items, 4 per row on desktop, playable controls. */
.video-grid {
    display: grid !important;
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    gap: var(--spacing-md) !important;
    align-items: start !important;
}

@media (min-width: 640px) {
    .video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 1024px) {
    .video-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

.video-card {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: visible !important;
    aspect-ratio: auto !important;
    background: transparent !important;
    border-radius: 0 !important;
    cursor: default !important;
}

.video-card::after {
    display: none !important;
    content: none !important;
}

.gallery-video {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    border-radius: var(--radius) !important;
    background: #0F0F1E !important;
    cursor: pointer !important;
    transform: none !important;
    transition: box-shadow var(--transition), transform var(--transition) !important;
    pointer-events: auto !important;
}

.video-card:hover .gallery-video {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 30px var(--color-shadow) !important;
}

.video-caption {
    position: static !important;
    z-index: auto !important;
    max-width: none !important;
    padding: 0.75rem 0 0 !important;
    color: var(--color-text) !important;
    background: transparent !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    pointer-events: none !important;
}

/* ===== CLIENT REQUEST UPDATE: SOCIAL COLORS, CERTIFICATE CARD, SECTION SPACING ===== */
/* Reduce the oversized gap between the end of "Par mums / О нас" and the "Kontakti / Контакты" block. */
#about {
    padding-bottom: clamp(2.25rem, 5vw, 4rem) !important;
}

#contact {
    padding-top: clamp(2.25rem, 5vw, 4rem) !important;
}

#about .about-grid {
    margin-bottom: 0 !important;
}

/* Certificate showcase inspired by the provided Kiwa card. */
.cert-showcase-cta {
    display: block;
    color: inherit;
    text-decoration: none;
}

.cert-showcase-cta:hover,
.cert-showcase-cta:focus-visible {
    color: inherit;
}

.cert-showcase-cta:focus-visible {
    outline: 3px solid var(--color-orange);
    outline-offset: 5px;
    border-radius: 26px;
}

.cert-showcase {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(120px, 170px) minmax(0, 1fr);
    gap: clamp(1rem, 3vw, 1.5rem);
    align-items: center;
    padding: clamp(1rem, 3vw, 1.55rem);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 28px;
    background:
        radial-gradient(circle at 12% 18%, rgba(37, 99, 235, 0.12), transparent 32%),
        linear-gradient(135deg, rgba(247, 251, 255, 0.98) 0%, rgba(255, 248, 238, 0.97) 100%);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.1);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.cert-showcase::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: repeating-linear-gradient(135deg, rgba(37, 99, 235, 0.06) 0 2px, transparent 2px 12px);
    opacity: 0.55;
}

.cert-showcase::after {
    content: '';
    position: absolute;
    right: -70px;
    bottom: -90px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.2), transparent 68%);
    z-index: -1;
}

.cert-showcase-cta:hover .cert-showcase,
.cert-showcase-cta:focus-visible .cert-showcase {
    transform: translateY(-3px);
    border-color: rgba(245, 166, 35, 0.48);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

.cert-showcase-preview {
    position: relative;
    min-height: 152px;
    border-radius: 22px;
    background: linear-gradient(145deg, #FFFFFF 0%, #EAF3FF 100%);
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.18);
    transform: rotate(-1deg);
}

.cert-preview-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 72px;
    height: 54px;
    display: grid;
    place-items: center;
    padding: 0.4rem;
    border-radius: 12px;
    background: #1D5FD8;
    color: #FFFFFF;
    line-height: 1;
    text-transform: uppercase;
    box-shadow: 0 10px 18px rgba(29, 95, 216, 0.24);
}

.cert-preview-badge strong {
    font-family: var(--font-body);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-transform: lowercase;
}

.cert-preview-badge span {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.cert-preview-paper {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 78px;
    height: 104px;
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 16px 12px;
    border-radius: 10px;
    background: #FFFFFF;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.16);
}

.cert-preview-paper span {
    display: block;
    height: 4px;
    border-radius: 999px;
    background: rgba(29, 95, 216, 0.18);
}

.cert-preview-paper span:nth-child(1) {
    width: 60%;
    background: rgba(245, 166, 35, 0.55);
}

.cert-preview-paper span:nth-child(2) {
    width: 88%;
}

.cert-preview-paper span:nth-child(3) {
    width: 76%;
}

.cert-preview-paper span:nth-child(4) {
    width: 48%;
}

.cert-preview-seal {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #FFFFFF;
    color: #1D5FD8;
    font-size: 0.6rem;
    font-weight: 700;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.18);
}

.cert-showcase-body {
    min-width: 0;
}

.cert-kicker {
    display: inline-block;
    margin-bottom: 0.35rem;
    color: #1D5FD8;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.24em;
    line-height: 1.2;
    text-transform: uppercase;
}

.cert-title {
    margin: 0 0 0.35rem;
    color: #1A1A2E;
    font-family: var(--font-body);
    font-size: clamp(1.4rem, 3.4vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    text-transform: none;
}

.cert-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.7rem;
    max-width: none;
    margin: 0 0 0.75rem;
    color: #4B5563;
    font-size: 0.92rem !important;
    line-height: 1.35 !important;
    font-weight: 600;
}

.cert-meta span:not(:last-child)::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 0.7rem;
    border-radius: 50%;
    background: var(--color-orange);
    vertical-align: middle;
}

.cert-copy {
    max-width: none;
    margin: 0 0 1rem;
    color: #4B5563;
    font-size: 1rem !important;
    line-height: 1.55 !important;
}

.cert-download {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 100%;
    padding: 0.75rem 1.05rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #FF7A18 0%, #E85D04 100%);
    color: #FFFFFF;
    box-shadow: 0 12px 26px rgba(232, 93, 4, 0.28);
}

.cert-download svg {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.cert-download span {
    display: grid;
    line-height: 1.1;
}

.cert-download strong {
    font-size: 0.95rem;
    font-weight: 800;
}

.cert-download small {
    margin-top: 0.15rem;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    opacity: 0.9;
}

[data-theme="dark"] .cert-showcase {
    border-color: rgba(96, 165, 250, 0.28);
    background:
        radial-gradient(circle at 12% 18%, rgba(96, 165, 250, 0.18), transparent 32%),
        linear-gradient(135deg, rgba(31, 41, 65, 0.98) 0%, rgba(37, 37, 62, 0.98) 100%);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.34);
}

[data-theme="dark"] .cert-title {
    color: #F8F9FA;
}

[data-theme="dark"] .cert-meta,
[data-theme="dark"] .cert-copy {
    color: #D1D5DB;
}

@media (max-width: 640px) {
    .cert-showcase {
        grid-template-columns: 1fr;
        border-radius: 22px;
    }

    .cert-showcase-preview {
        min-height: 132px;
        max-width: 220px;
    }

    .cert-kicker {
        letter-spacing: 0.16em;
    }

    .cert-download {
        width: 100%;
        justify-content: center;
        border-radius: 18px;
    }
}

/* Colored social icons on the main page footer. */
.footer-social-link--facebook .footer-social-icon svg {
    fill: #1877F2 !important;
}

.footer-social-link--facebook > span:last-child {
    color: #1877F2;
}

.footer-social-link--instagram .footer-social-icon svg {
    fill: url(#instagram-gradient) !important;
}

.footer-social-link--instagram > span:last-child {
    background: linear-gradient(135deg, #FEDA75 0%, #FA7E1E 28%, #D62976 55%, #962FBF 78%, #4F5BD5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-social-link--facebook:hover,
.footer-social-link--facebook:focus-visible,
.footer-social-link--instagram:hover,
.footer-social-link--instagram:focus-visible {
    color: var(--color-text-muted);
}

.footer-social-link--facebook:hover .footer-social-icon,
.footer-social-link--facebook:focus-visible .footer-social-icon,
.footer-social-link--instagram:hover .footer-social-icon,
.footer-social-link--instagram:focus-visible .footer-social-icon {
    color: inherit;
    transform: translateY(-1px) scale(1.08);
}



/* ===== CLIENT REQUEST UPDATE 2: 2026 certificate image, compact sections/footer, goal card ===== */
#about {
    padding-bottom: clamp(0.75rem, 2vw, 1.5rem) !important;
}

#contact {
    padding-top: clamp(0.75rem, 2vw, 1.5rem) !important;
}

#contact .section-header {
    margin-bottom: clamp(1.25rem, 3vw, 2rem) !important;
}

.advantages-heading-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
    align-items: stretch;
}

.advantages-heading-row .about-subtitle {
    display: flex;
    align-items: center;
    margin: 0;
}

.about-goal-card {
    display: flex;
    align-items: center;
    min-height: 132px;
    padding: var(--spacing-md);
    border-left: 4px solid var(--color-orange);
    border-radius: var(--radius);
    background: var(--color-surface);
    color: var(--color-text-muted);
    box-shadow: 0 8px 30px var(--color-shadow);
    font-size: 1.02rem;
    font-weight: 300;
    line-height: 1.6;
}

@media (min-width: 760px) {
    .advantages-heading-row {
        grid-template-columns: minmax(160px, 1fr) minmax(320px, 2fr);
    }
}

.cert-showcase {
    grid-template-columns: minmax(145px, 190px) minmax(0, 1fr);
}

.cert-showcase-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    min-height: 212px;
    padding: 0.85rem;
}

.cert-preview-badge {
    position: relative;
    top: auto;
    left: auto;
    align-self: flex-start;
    z-index: 2;
}

.cert-preview-image {
    display: block;
    width: min(118px, 82%);
    height: 136px;
    object-fit: cover;
    object-position: top center;
    border-radius: 10px;
    background: #FFFFFF;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
}

.cert-preview-paper {
    display: none !important;
}

.cert-preview-seal {
    right: 14px;
    bottom: 14px;
    z-index: 3;
}

.footer {
    padding: clamp(1.25rem, 3vw, 2rem) 0 0.75rem !important;
}

.footer-content {
    gap: clamp(1rem, 2vw, 1.5rem) !important;
}

@media (min-width: 1024px) {
    .footer-content {
        gap: clamp(1.25rem, 2vw, 2rem) !important;
    }
}

.footer-section h4 {
    margin-bottom: 0.5rem !important;
}

.footer-section p,
.footer-section li {
    line-height: 1.45 !important;
}

.footer-links {
    gap: 0.25rem !important;
}

.footer-social-list {
    gap: 0.35rem !important;
}

.footer-bottom {
    margin-top: 0.7rem !important;
    padding-top: 0.55rem !important;
}

@media (max-width: 640px) {
    .cert-showcase {
        grid-template-columns: 1fr;
    }

    .cert-showcase-preview {
        min-height: 205px;
        max-width: 240px;
    }

    .about-goal-card {
        min-height: auto;
        padding: 1.25rem;
    }
}


/* ===== CLIENT REQUEST UPDATE 3: card placement, certificate overlay, compact gaps ===== */
#about {
    padding-bottom: clamp(0.25rem, 1vw, 0.75rem) !important;
}

#contact {
    padding-top: clamp(0.25rem, 1vw, 0.75rem) !important;
}

#contact .section-header {
    margin-bottom: clamp(0.9rem, 2vw, 1.35rem) !important;
}

#about .about-content {
    gap: clamp(1rem, 2vw, 1.5rem) !important;
}

#about .about-subtitle {
    margin-top: 0;
    margin-bottom: 0;
}

#about .about-list {
    margin-top: -0.25rem;
}

#about .stats-grid {
    align-content: start;
}

@media (min-width: 1024px) {
    #about .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--spacing-md);
    }
}

#about .stats-grid .stat-card {
    min-height: 132px;
}

#about .stats-grid .about-goal-card {
    grid-column: 1 / -1;
    min-height: 132px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: var(--spacing-md);
    border-left: 4px solid var(--color-orange);
    border-radius: var(--radius);
    background: var(--color-surface);
    color: var(--color-text-muted);
    box-shadow: 0 8px 30px var(--color-shadow);
    font-size: clamp(0.92rem, 1.05vw, 1.02rem);
    font-weight: 300;
    line-height: 1.5;
}

.cert-showcase-preview {
    position: relative;
    display: block !important;
    min-height: 216px !important;
    padding: 0 !important;
    overflow: hidden;
    background: #FFFFFF;
}

.cert-preview-image {
    display: block;
    width: 100% !important;
    height: 216px !important;
    object-fit: cover;
    object-position: top center;
    border-radius: 22px !important;
    border: 0 !important;
    box-shadow: none !important;
}

.cert-preview-badge {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    z-index: 4;
    align-self: auto !important;
}

.cert-preview-seal {
    right: 12px !important;
    bottom: 12px !important;
    z-index: 4;
}

.delivery-subtitle-line {
    display: block;
    margin-top: 0.55rem;
    font-weight: 700;
}

.footer {
    padding: clamp(0.9rem, 2vw, 1.35rem) 0 0.4rem !important;
}

.footer-content {
    gap: clamp(0.7rem, 1.5vw, 1rem) !important;
}

.footer-bottom {
    margin-top: 0.2rem !important;
    padding-top: 0.2rem !important;
}

.footer-section h4 {
    margin-bottom: 0.35rem !important;
}

.footer-section p,
.footer-section li {
    line-height: 1.35 !important;
}

@media (max-width: 640px) {
    #about .stats-grid .about-goal-card {
        min-height: auto;
    }

    .cert-preview-image {
        height: 205px !important;
    }
}


/* ===== CLIENT REQUEST UPDATE 4: certificate proportions and equal goal-card height ===== */
/* Make the certificate preview taller and align its top with the text column. */
.cert-showcase {
    align-items: start !important;
}

.cert-showcase-preview {
    min-height: 248px !important;
    height: 248px !important;
}

.cert-preview-image {
    height: 248px !important;
    object-fit: cover;
    object-position: top center;
}

/* Keep the goal block one row high: same height as the four square statistic cards. */
#about .stats-grid .about-goal-card {
    aspect-ratio: 2.08 / 1 !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    padding: clamp(1rem, 1.8vw, 1.35rem) !important;
    overflow: visible;
    font-size: clamp(0.84rem, 0.95vw, 0.98rem) !important;
    line-height: 1.38 !important;
}

@media (max-width: 640px) {
    .cert-showcase-preview {
        min-height: 230px !important;
        height: 230px !important;
    }

    .cert-preview-image {
        height: 230px !important;
    }

    #about .stats-grid .about-goal-card {
        aspect-ratio: auto !important;
        height: auto !important;
        max-height: none !important;
        min-height: auto !important;
        font-size: 0.92rem !important;
        line-height: 1.45 !important;
    }
}

/* ===== TYPOGRAPHY UPDATE 5: softer corporate font system =====
   Goal: keep JC BETONS industrial and reliable, but reduce the aggressive poster effect.
   We use the already bundled Space Grotesk for headings/body and keep Bebas Neue only as an accent
   for the logo wordmark and large statistic numbers. No external font imports are added. */
:root {
    --font-accent: 'Bebas Neue Local', 'Bebas Neue', 'Arial Narrow', Arial, sans-serif;
    --font-display: 'Space Grotesk Local', 'Space Grotesk', 'Segoe UI', Arial, sans-serif;
    --font-body: 'Space Grotesk Local', 'Space Grotesk', 'Segoe UI', Arial, sans-serif;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    letter-spacing: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.035em;
    text-transform: none;
}

h1 { font-size: clamp(2.25rem, 6.2vw, 4.9rem); }
h2 { font-size: clamp(1.85rem, 4.7vw, 3.7rem); }
h3 { font-size: clamp(1.35rem, 3.2vw, 2.45rem); }
h4 { font-size: clamp(1.15rem, 2.4vw, 1.75rem); }

p,
li {
    font-weight: 400;
}

.brand-name,
.stat-number {
    font-family: var(--font-accent);
    font-weight: 400;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.brand-name {
    font-size: 1.7rem;
}

.hero-title,
.section-title,
.product-title,
.video-title,
.contact-form-title,
.about-subtitle,
.footer-section h4 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.03em;
    text-transform: none;
}

.hero-title {
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.04;
}

.section-title {
    line-height: 1.06;
}

.product-title,
.video-title,
.contact-form-title,
.about-subtitle {
    line-height: 1.18;
}

.hero-cta {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.nav-link,
.hero-tagline,
.stat-label,
.contact-label,
.cert-kicker,
.cert-preview-badge {
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
}

.nav-link {
    letter-spacing: 0.04em;
}

.hero-tagline {
    letter-spacing: 0.14em;
}

.stat-label,
.contact-label {
    letter-spacing: 0.04em;
}

.cert-kicker {
    letter-spacing: 0.16em;
}

.cert-title {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.footer-section h4 {
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
}

/* Latvian/Russian text reads better with less condensed spacing and no forced uppercase. */
html[lang="ru"] h1,
html[lang="ru"] h2,
html[lang="ru"] h3,
html[lang="ru"] h4,
html[lang="ru"] h5,
html[lang="ru"] h6 {
    letter-spacing: -0.03em;
    text-transform: none;
}

html[lang="ru"] h1,
html[lang="ru"] .hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.08;
}

html[lang="ru"] h2 {
    font-size: clamp(1.65rem, 3.8vw, 3.1rem);
    line-height: 1.1;
}

html[lang="ru"] h3 {
    font-size: clamp(1.3rem, 2.8vw, 2.25rem);
    line-height: 1.14;
}

html[lang="ru"] .nav-link {
    letter-spacing: 0.02em;
}

@media (max-width: 640px) {
    h1 { font-size: clamp(2rem, 11vw, 3.15rem); }
    h2 { font-size: clamp(1.7rem, 8.5vw, 2.65rem); }
    h3 { font-size: clamp(1.25rem, 6.5vw, 2rem); }

    .hero-cta {
        font-size: 0.98rem;
        padding: 1rem 1.6rem;
    }

    html[lang="ru"] h1,
    html[lang="ru"] .hero-title {
        font-size: clamp(1.85rem, 9vw, 2.75rem);
    }
}

/* ===== CLIENT REQUEST UPDATE 6: taller certificate preview + compact goal card ===== */
/* Stretch the certificate image vertically so its top aligns with the text column and its bottom aligns with the PDF button. */
.cert-showcase {
    align-items: stretch !important;
}

.cert-showcase-body {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    min-height: clamp(300px, 26vw, 330px) !important;
}

.cert-download {
    margin-top: auto !important;
}

.cert-showcase-preview {
    align-self: stretch !important;
    min-height: clamp(300px, 26vw, 330px) !important;
    height: 100% !important;
}

.cert-preview-image {
    width: 100% !important;
    height: 100% !important;
    min-height: clamp(300px, 26vw, 330px) !important;
    object-fit: cover !important;
    object-position: top center !important;
}

/* Make the long goal block about two times lower than before while keeping it in the same right-side position. */
#about .stats-grid .about-goal-card {
    aspect-ratio: auto !important;
    min-height: clamp(68px, 5.6vw, 78px) !important;
    height: clamp(68px, 5.6vw, 78px) !important;
    max-height: 78px !important;
    padding: clamp(0.45rem, 0.9vw, 0.65rem) clamp(0.65rem, 1.15vw, 0.9rem) !important;
    overflow: hidden !important;
    font-size: clamp(0.68rem, 0.78vw, 0.78rem) !important;
    line-height: 1.18 !important;
}

@media (max-width: 640px) {
    .cert-showcase-body {
        min-height: auto !important;
    }

    .cert-showcase-preview {
        min-height: 270px !important;
        height: 270px !important;
    }

    .cert-preview-image {
        min-height: 270px !important;
        height: 270px !important;
    }

    #about .stats-grid .about-goal-card {
        height: auto !important;
        max-height: none !important;
        min-height: auto !important;
        padding: 0.9rem !important;
        overflow: visible !important;
        font-size: 0.86rem !important;
        line-height: 1.35 !important;
    }
}

/* ===== CLIENT REQUEST UPDATE 7: center copyright line across full footer width ===== */
.footer-bottom {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    justify-self: stretch !important;
    text-align: center !important;
}

.footer-bottom p {
    max-width: none !important;
    width: 100% !important;
    margin: 0 auto !important;
    text-align: center !important;
}

/* ===== CLIENT REQUEST UPDATE 8: natural certificate height + normal goal text size ===== */
/* Keep the certificate image tall, but reduce the previous stretch slightly so it looks more natural. */
.cert-showcase-body {
    min-height: clamp(276px, 24vw, 304px) !important;
}

.cert-showcase-preview {
    min-height: clamp(276px, 24vw, 304px) !important;
    height: 100% !important;
}

.cert-preview-image {
    min-height: clamp(276px, 24vw, 304px) !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: top center !important;
}

/* Use the same readable body-text size as the rest of the site and let the card fit the text safely. */
#about .stats-grid .about-goal-card {
    min-height: clamp(92px, 7vw, 108px) !important;
    height: auto !important;
    max-height: none !important;
    padding: clamp(0.7rem, 1.1vw, 0.9rem) clamp(0.85rem, 1.3vw, 1.1rem) !important;
    overflow: visible !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    font-weight: 300 !important;
}

@media (max-width: 640px) {
    .cert-showcase-preview {
        min-height: 250px !important;
        height: 250px !important;
    }

    .cert-preview-image {
        min-height: 250px !important;
        height: 250px !important;
    }

    #about .stats-grid .about-goal-card {
        min-height: auto !important;
        height: auto !important;
        padding: 0.9rem !important;
        font-size: 1rem !important;
        line-height: 1.5 !important;
    }
}

/* ===== CLIENT REQUEST UPDATE 9: light theme header uses light background and dark text ===== */
[data-theme="light"] .header,
[data-theme="light"] .header.scrolled {
    background: rgba(255, 255, 255, 0.96) !important;
    border-bottom-color: var(--color-border) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .header .brand-name,
[data-theme="light"] .header.scrolled .brand-name,
[data-theme="light"] .header .nav-main .nav-link,
[data-theme="light"] .header.scrolled .nav-main .nav-link {
    color: var(--color-text) !important;
}

[data-theme="light"] .header .nav-main .nav-link:hover,
[data-theme="light"] .header .nav-main .nav-link:focus-visible,
[data-theme="light"] .header .nav-main .nav-link.active,
[data-theme="light"] .header.scrolled .nav-main .nav-link:hover,
[data-theme="light"] .header.scrolled .nav-main .nav-link:focus-visible,
[data-theme="light"] .header.scrolled .nav-main .nav-link.active {
    color: var(--color-orange) !important;
}

[data-theme="light"] .header .menu-toggle span,
[data-theme="light"] .header.scrolled .menu-toggle span {
    background: var(--color-text) !important;
}

[data-theme="light"] .header .theme-toggle,
[data-theme="light"] .header.scrolled .theme-toggle {
    background: var(--color-surface) !important;
    border-color: var(--color-border) !important;
}

[data-theme="light"] .header .theme-toggle svg,
[data-theme="light"] .header.scrolled .theme-toggle svg {
    fill: var(--color-text) !important;
}

[data-theme="light"] .header .theme-toggle:hover,
[data-theme="light"] .header.scrolled .theme-toggle:hover {
    background: var(--color-orange) !important;
    border-color: var(--color-orange) !important;
}

[data-theme="light"] .header .theme-toggle:hover svg,
[data-theme="light"] .header.scrolled .theme-toggle:hover svg {
    fill: #FFFFFF !important;
}

[data-theme="light"] .header .lang-switcher {
    background: var(--color-surface) !important;
    border-color: var(--color-border) !important;
}

/* ===== CLIENT REQUEST UPDATE 10: match about goal text brightness and weight ===== */
#about .stats-grid .about-goal-card {
    color: var(--color-text) !important;
    font-weight: 400 !important;
}

/* ===== CLIENT REQUEST UPDATE 11: interactive certificate preview and moved quality text ===== */
/* The certificate card is slightly angled by default and gently straightens on hover/focus. */
.cert-showcase {
    overflow: visible !important;
}

.cert-showcase-preview {
    transform: perspective(900px) rotateY(-7deg) rotateZ(-2deg) translateY(2px) !important;
    transform-origin: center center !important;
    transition: transform 0.45s cubic-bezier(0.2, 0.85, 0.25, 1), box-shadow 0.45s ease, filter 0.45s ease !important;
    will-change: transform;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16) !important;
}

.cert-showcase-cta:hover .cert-showcase-preview,
.cert-showcase-cta:focus-visible .cert-showcase-preview {
    transform: perspective(900px) rotateY(0deg) rotateZ(0deg) translateY(0) scale(1.015) !important;
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.22) !important;
    filter: saturate(1.04) contrast(1.02);
}

.cert-showcase-cta:hover .cert-preview-badge,
.cert-showcase-cta:focus-visible .cert-preview-badge {
    transform: translateY(-1px);
}

.cert-preview-badge {
    transition: transform 0.35s ease !important;
}

/* The quality-standard paragraph was removed from the certificate card and placed into the goal card. */
.cert-copy {
    display: none !important;
}

#about .stats-grid .about-goal-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 0.65rem !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    color: var(--color-text) !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
}

#about .stats-grid .about-goal-card .about-goal-main,
#about .stats-grid .about-goal-card .about-goal-note {
    display: block;
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
}

#about .stats-grid .about-goal-card .about-goal-note {
    padding-top: 0.65rem;
    border-top: 1px solid var(--color-border);
}

@media (prefers-reduced-motion: reduce) {
    .cert-showcase-preview,
    .cert-showcase-cta:hover .cert-showcase-preview,
    .cert-showcase-cta:focus-visible .cert-showcase-preview {
        transform: none !important;
        transition: none !important;
    }
}

@media (max-width: 640px) {
    .cert-showcase-preview,
    .cert-showcase-cta:hover .cert-showcase-preview,
    .cert-showcase-cta:focus-visible .cert-showcase-preview {
        transform: none !important;
    }

    #about .stats-grid .about-goal-card {
        gap: 0.55rem !important;
    }

    #about .stats-grid .about-goal-card .about-goal-note {
        padding-top: 0.55rem;
    }
}



/* ===== CLIENT REQUEST UPDATE 12: compact certificate card + hover only on photo ===== */
/* The certificate card itself no longer jumps on hover; only the certificate preview straightens. */
.cert-showcase-cta:hover .cert-showcase,
.cert-showcase-cta:focus-visible .cert-showcase {
    transform: none !important;
}

.cert-showcase {
    overflow: hidden !important;
    grid-template-columns: minmax(124px, 148px) minmax(0, 1fr) !important;
    align-items: center !important;
    gap: clamp(0.9rem, 2vw, 1.35rem) !important;
    padding: clamp(0.85rem, 2vw, 1.15rem) !important;
    min-height: 0 !important;
    border-radius: 24px !important;
}

.cert-showcase-body {
    min-height: 0 !important;
    height: auto !important;
    justify-content: center !important;
}

.cert-kicker {
    margin-bottom: 0.28rem !important;
    font-size: 0.74rem !important;
    letter-spacing: 0.2em !important;
}

.cert-title {
    margin-bottom: 0.28rem !important;
    font-size: clamp(1.25rem, 2.35vw, 1.72rem) !important;
    line-height: 1.08 !important;
}

.cert-meta {
    margin-bottom: 0.65rem !important;
    font-size: 0.86rem !important;
    line-height: 1.3 !important;
}

.cert-download {
    margin-top: 0 !important;
    padding: 0.66rem 0.98rem !important;
    gap: 0.65rem !important;
    box-shadow: 0 10px 22px rgba(232, 93, 4, 0.24) !important;
}

.cert-download svg {
    width: 20px !important;
    height: 20px !important;
    flex-basis: 20px !important;
}

.cert-download strong {
    font-size: 0.9rem !important;
}

.cert-download small {
    font-size: 0.7rem !important;
}

.cert-showcase-preview {
    position: relative !important;
    display: block !important;
    align-self: center !important;
    width: clamp(122px, 14vw, 148px) !important;
    height: clamp(170px, 19vw, 200px) !important;
    min-height: 0 !important;
    max-width: none !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 18px !important;
    background: #FFFFFF !important;
    transform: perspective(780px) rotateY(-7deg) rotateZ(-1.5deg) translateY(1px) !important;
    transform-origin: center center !important;
    transition: transform 0.45s cubic-bezier(0.2, 0.85, 0.25, 1), box-shadow 0.45s ease, filter 0.45s ease !important;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18) !important;
    will-change: transform;
}

.cert-showcase-cta:hover .cert-showcase-preview,
.cert-showcase-cta:focus-visible .cert-showcase-preview {
    transform: perspective(780px) rotateY(0deg) rotateZ(0deg) translateY(0) scale(1.018) !important;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.22) !important;
    filter: saturate(1.03) contrast(1.02);
}

.cert-preview-image {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    object-fit: cover !important;
    object-position: top center !important;
    border-radius: inherit !important;
    border: 0 !important;
    box-shadow: none !important;
}

.cert-preview-badge {
    top: 9px !important;
    left: 9px !important;
    width: 68px !important;
    height: 48px !important;
    border-radius: 9px !important;
}

.cert-preview-badge strong {
    font-size: 0.88rem !important;
}

.cert-preview-badge span {
    font-size: 0.56rem !important;
}

.cert-preview-seal {
    right: 9px !important;
    bottom: 9px !important;
    width: 32px !important;
    height: 32px !important;
}

@media (max-width: 640px) {
    .cert-showcase {
        grid-template-columns: 1fr !important;
        padding: 1rem !important;
    }

    .cert-showcase-preview {
        width: min(148px, 70vw) !important;
        height: 200px !important;
        margin: 0 auto !important;
        transform: none !important;
    }

    .cert-showcase-cta:hover .cert-showcase-preview,
    .cert-showcase-cta:focus-visible .cert-showcase-preview {
        transform: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cert-showcase-preview,
    .cert-showcase-cta:hover .cert-showcase-preview,
    .cert-showcase-cta:focus-visible .cert-showcase-preview {
        transform: none !important;
        transition: none !important;
    }
}


/* ===== FAQ PAGE ===== */
.logo-home {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.faq-page {
    padding-top: calc(80px + var(--spacing-lg));
    background: var(--color-bg);
}

.faq-intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.faq-info-card {
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-orange);
    border-radius: var(--radius);
    padding: clamp(1rem, 2vw, 1.5rem);
    box-shadow: 0 8px 24px var(--color-shadow);
}

.faq-info-card h2 {
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.faq-info-card p {
    color: var(--color-text-muted);
    font-weight: 300;
    max-width: none;
}

.faq-list {
    display: grid;
    gap: 0.85rem;
    max-width: 980px;
    margin: 0 auto;
}

.faq-item {
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px var(--color-shadow);
    overflow: hidden;
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 1.1rem 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    position: relative;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-orange);
    font-size: 1.4rem;
    line-height: 1;
}

.faq-item[open] summary::after {
    content: '–';
}

.faq-item p,
.faq-inline-link {
    margin: 0 1.25rem 1.1rem;
}

.faq-item p {
    color: var(--color-text-muted);
    max-width: none;
}

.faq-inline-link {
    display: inline-flex;
    color: var(--color-orange);
    font-weight: 700;
}

.faq-cta {
    margin: var(--spacing-md) auto 0;
    max-width: 980px;
    background: linear-gradient(135deg, var(--color-surface-elevated), var(--color-surface));
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: clamp(1.25rem, 3vw, 2rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
    box-shadow: 0 8px 24px var(--color-shadow);
}

.faq-cta p {
    font-weight: 500;
    color: var(--color-text);
    max-width: none;
}

@media (max-width: 768px) {
    .faq-cta {
        flex-direction: column;
        align-items: flex-start;
    }
}
