/**
 * Ratolani Construction - Main Stylesheet
 * Design System with 12-column grid and 4px spacing units
 * Version: 1.0.1 (Cleaned)
 */

/* ========================================
   CSS Custom Properties (Design Tokens)
   ======================================== */
:root {
    /* Colors */
    --color-alto: #E0E0E0;
    --color-moon-mist: #D9D6C8;
    --color-crimson: #ED1C24;
    --color-tuatara: #2B2B28;
    --color-woodsmoke: #080A0B;

    /* Extended Color Palette */
    --color-crimson-dark: #C91920;
    --color-crimson-light: #FF3A42;
    --color-overlay-dark: rgba(8, 10, 11, 0.85);

    /* Spacing System */
    --space-4: 4px;
    --space-8: 8px;
    --space-12: 12px;
    --space-16: 16px;
    --space-20: 20px;
    --space-24: 24px;
    --space-32: 32px;
    --space-40: 40px;
    --space-48: 48px;
    --space-64: 64px;
    --space-80: 80px;
    --space-120: 120px;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Outfit', 'Inter', sans-serif;

    --text-xs: 12px;
    --text-sm: 14px;
    --text-base: 16px;
    --text-lg: 18px;
    --text-2xl: 24px;
    --text-3xl: 32px;
    --text-4xl: 40px;
    --text-5xl: 48px;
    --text-6xl: 64px;
    --text-7xl: 80px;

    --line-height-tight: 1.1;
    --line-height-snug: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;

    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-black: 900;

    /* Layout */
    --navbar-height: 124px;
    --container-max: 1440px;
    --container-padding: var(--space-48);

    /* Grid */
    --grid-columns: 12;
    --grid-gutter: var(--space-24);

    /* Transitions */
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-glow: 0 0 40px rgba(237, 28, 36, 0.4);
}

/* ========================================
   CSS Reset & Base Styles
   ======================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: var(--line-height-normal);
    color: var(--color-tuatara);
    background-color: var(--color-alto);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ========================================
   12-Column Grid System
   ======================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--grid-gutter);
}


.col-1 {
    grid-column: span 1;
}

.col-2 {
    grid-column: span 2;
}

.col-3 {
    grid-column: span 3;
}

.col-4 {
    grid-column: span 4;
}

.col-5 {
    grid-column: span 5;
}

.col-6 {
    grid-column: span 6;
}

.col-7 {
    grid-column: span 7;
}

.col-8 {
    grid-column: span 8;
}

.col-9 {
    grid-column: span 9;
}

.col-10 {
    grid-column: span 10;
}

.col-11 {
    grid-column: span 11;
}

.col-12 {
    grid-column: span 12;
}

/* Responsive Grid */
@media (max-width: 1024px) {
    :root {
        --container-padding: var(--space-32);
    }

    .col-lg-6 {
        grid-column: span 6;
    }

    .col-lg-12 {
        grid-column: span 12;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: var(--space-24);
        --grid-gutter: var(--space-16);
    }

    .col-md-6 {
        grid-column: span 6;
    }

    .col-md-12 {
        grid-column: span 12;
    }
}

@media (max-width: 480px) {
    :root {
        --container-padding: var(--space-16);
    }
}

/* ========================================
   Typography Classes
   ======================================== */
.heading-1 {
    font-family: var(--font-display);
    font-size: var(--text-7xl);
    font-weight: var(--font-weight-black);
    line-height: var(--line-height-tight);
    letter-spacing: -2px;
}

.heading-2 {
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    letter-spacing: -1px;
}

.body-large {
    font-size: var(--text-lg);
    line-height: var(--line-height-relaxed);
}

.label {
    font-size: var(--text-sm);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Responsive Typography */
@media (max-width: 1024px) {
    .heading-1 {
        font-size: var(--text-6xl);
    }

    .heading-2 {
        font-size: var(--text-4xl);
    }
}

@media (max-width: 768px) {
    .heading-1 {
        font-size: var(--text-5xl);
    }

    .heading-2 {
        font-size: var(--text-3xl);
    }
}

@media (max-width: 480px) {
    .heading-1 {
        font-size: var(--text-4xl);
        letter-spacing: -1px;
    }

    .heading-2 {
        font-size: var(--text-2xl);
    }
}

/* ========================================
   Button Styles
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-12);
    padding: var(--space-16) var(--space-32);
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--color-crimson);
    color: white;
    border-color: var(--color-crimson);
}

.btn-primary:hover {
    background: var(--color-crimson-dark);
    border-color: var(--color-crimson-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-outline-light {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-outline-light:hover {
    background: white;
    color: var(--color-woodsmoke);
    transform: translateY(-2px);
}

.btn-large {
    padding: var(--space-20) var(--space-40);
    font-size: var(--text-base);
}

.btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--color-woodsmoke);
    overflow: hidden;
    padding-top: var(--navbar-height);
    padding-bottom: 140px;
    /* Added to clear bottom content from overlap */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(8, 10, 11, 0.95) 0%,
            rgba(8, 10, 11, 0.85) 30%,
            rgba(8, 10, 11, 0.4) 60%,
            rgba(8, 10, 11, 0.2) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: var(--space-80) 0;
}

.hero-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--space-32);
}

/* Content Box with Frame */
.hero-content-box {
    position: relative;
    padding: var(--space-48);
    max-width: 600px;
}

.hero-content-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 4px solid var(--color-crimson);
    background: linear-gradient(135deg, rgba(237, 28, 36, 0.15) 0%, rgba(8, 10, 11, 0.9) 50%);
    transform: translateX(-20px) translateY(-20px);
    z-index: -1;
    transition: transform var(--transition-slow);
    /* Clip-path to create cutout on RIGHT side */
    clip-path: polygon(0% 0%, 100% 0%, 100% 12%, calc(100% - 20px) 12%, calc(100% - 20px) 60%, 100% 60%, 100% 100%, 0% 100%);
}

.hero-content-box:hover::before {
    transform: translateX(-12px) translateY(-12px);
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-8);
    color: var(--color-crimson);
    margin-bottom: var(--space-16);
}

.hero-label::before {
    content: '';
    width: 40px;
    height: 3px;
    background: var(--color-crimson);
}

.hero-title {
    color: white;
    margin-bottom: var(--space-24);
}

.hero-title .highlight {
    color: var(--color-crimson);
    position: relative;
    display: inline-block;
}

.hero-description {
    color: var(--color-alto);
    margin-bottom: var(--space-32);
    max-width: 480px;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-16);
}

/* Trust Badges */
.hero-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-16);
    margin-top: var(--space-48);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: var(--space-12);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-12) var(--space-20);
    backdrop-filter: blur(8px);
    transition: all var(--transition-base);
}

.trust-badge:hover {
    background: rgba(237, 28, 36, 0.1);
    border-color: rgba(237, 28, 36, 0.3);
    transform: translateY(-2px);
}

.trust-badge-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-crimson);
    border-radius: 50%;
}

.trust-badge-icon svg {
    width: 16px;
    height: 16px;
    fill: white;
}

.trust-badge-text {
    color: white;
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
}

.trust-badge-text span {
    display: block;
    color: var(--color-alto);
    font-size: var(--text-xs);
    font-weight: var(--font-weight-normal);
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: var(--space-48);
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-8);
    color: var(--color-alto);
    font-size: var(--text-sm);
    opacity: 0.7;
    transition: opacity var(--transition-base);
    cursor: pointer;
}

.hero-scroll-indicator:hover {
    opacity: 1;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--color-alto);
    border-radius: 12px;
    position: relative;
}

.scroll-mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--color-crimson);
    border-radius: 2px;
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateX(-50%) translateY(12px);
        opacity: 0.3;
    }
}

/* ========================================
   Animation Utilities
   ======================================== */
.animate-fade-up {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 0.8s ease forwards;
}

.animate-fade-up.delay-3 {
    animation-delay: 0.3s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Responsive Hero
   ======================================== */
@media (max-width: 1024px) {
    .hero-content-box {
        padding: var(--space-40);
    }

    .hero-content-box::before {
        transform: translateX(-16px) translateY(-16px);
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding-top: calc(var(--navbar-height) + var(--space-32));
        padding-bottom: var(--space-64);
    }

    .hero-overlay {
        background: linear-gradient(180deg, rgba(8, 10, 11, 0.9) 0%, rgba(8, 10, 11, 0.8) 50%, rgba(8, 10, 11, 0.7) 100%);
    }

    .hero-content {
        padding: var(--space-48) 0;
    }

    .hero-content-box {
        padding: var(--space-32);
        max-width: 100%;
        margin: 0 auto;
    }

    .hero-content-box::before {
        transform: none;
        top: -8px;
        left: -8px;
        right: -8px;
        bottom: -8px;
        width: auto;
        height: auto;
        clip-path: none;
    }

    .hero-trust-badges {
        flex-direction: column;
    }

    .hero-scroll-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-content-box {
        padding: var(--space-24);
    }

    .hero-content-box::before {
        transform: none;
        top: -6px;
        left: -6px;
        right: -6px;
        bottom: -6px;
        width: auto;
        height: auto;
    }

    .hero-cta-group {
        flex-direction: column;
    }

    .hero-cta-group .btn {
        width: 100%;
    }

    .cta-heading {
        font-size: var(--text-3xl);
    }
}

/* ========================================
   Utility Classes (Only Used/Core)
   ======================================== */
.text-center {
    text-align: center;
}

.text-tuatara {
    color: var(--color-tuatara);
}

.text-white {
    color: white;
}

.text-crimson {
    color: var(--color-crimson);
}

.text-alto {
    color: var(--color-alto);
}

.bg-alto {
    background-color: var(--color-alto);
}

.mt-24 {
    margin-top: var(--space-24);
}

.py-120 {
    padding-top: var(--space-120);
    padding-bottom: var(--space-120);
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    background-color: var(--color-crimson);
    color: white;
    padding: var(--space-80) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 50%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.1) 75%, transparent 75%, transparent);
    background-size: 40px 40px;
    opacity: 0.3;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.cta-heading {
    font-size: var(--text-5xl);
    font-weight: 900;
    margin-bottom: var(--space-24);
    letter-spacing: -1px;
}

.cta-text {
    font-size: var(--text-lg);
    opacity: 0.9;
    margin-bottom: var(--space-40);
}

/* CTA Responsive */
@media (max-width: 768px) {
    .cta-section {
        padding: var(--space-64) 0;
    }

    .cta-heading {
        font-size: var(--text-4xl);
    }

    .cta-text {
        font-size: var(--text-base);
    }
}

/* ========================================
   Component Shims
   ======================================== */
ratolani-footer {
    display: block;
    background-color: #000000 !important;
}