*, ::before, ::after {
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --secondary: #1e293b;
    --accent: #f8fafc;
    --grid-color: rgba(30, 41, 59, 0.05);
    --transition-speed: 0.4s;
    --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

@layer base {
    body {
        font-family: 'Inter', sans-serif;
        color: var(--secondary);
        background-color: #ffffff;
        overflow-x: hidden;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        font-size: 16px;
        line-height: 1.6;
    }

    img {
        max-width: 100%;
        height: auto;
        display: block;
    }
}

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}

/* --- Architectural Grid Background --- */
.grid-bg {
    background-image: 
        linear-gradient(to right, var(--grid-color) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* --- Custom Navigation --- */
nav {
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--grid-color);
    transition: all var(--transition-speed) var(--ease);
}

.nav-link {
    position: relative;
    padding: 0.5rem 0;
}

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

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

/* --- Buttons: The Slide-Fill --- */
.btn-premium {
    position: relative;
    padding: 0.75rem 2rem;
    border: 1px solid var(--secondary);
    color: var(--secondary);
    overflow: hidden;
    transition: color var(--transition-speed) var(--ease);
    display: inline-block;
    text-align: center;
    z-index: 1;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--primary);
    transition: left var(--transition-speed) var(--ease);
    z-index: -1;
}

.btn-premium:hover {
    color: white;
    border-color: var(--primary);
}

.btn-premium:hover::before {
    left: 0;
}

/* --- Hero Section --- */
.hero-asymmetric {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    min-height: 80vh;
    align-items: center;
}

.hero-text {
    grid-column: 1 / span 8;
    z-index: 10;
}

.hero-image-container {
    grid-column: 6 / span 7;
    grid-row: 1;
    position: relative;
    height: 60vh;
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
}

.hero-accent-box {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    background-color: var(--primary);
}

/* --- Card System: Floating Plane --- */
.card-plane {
    background: white;
    border: 1px solid var(--grid-color);
    padding: 2.5rem;
    transition: all var(--transition-speed) var(--ease);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-plane:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(30, 41, 59, 0.08);
    border-color: var(--primary);
}

.card-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

/* --- Typography --- */
h1, h2, h3 {
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.text-reveal {
    overflow: hidden;
}

.text-reveal span {
    display: block;
    transform: translateY(100%);
    animation: reveal 1s var(--ease) forwards;
}

@keyframes reveal {
    to { transform: translateY(0); }
}

/* --- Mobile Menu Toggle --- */
.mobile-menu-btn {
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    z-index: 60;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background-color: var(--secondary);
    transition: all 0.3s ease;
}

.mobile-menu-btn.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.mobile-menu-btn.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- Mobile Menu --- */
.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    color: var(--secondary);
    font-size: 2rem;
    font-weight: 700;
    margin: 1rem 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.mobile-menu a:hover {
    color: var(--primary);
}

/* --- Form Elements --- */
.input-group {
    border-bottom: 2px solid var(--grid-color);
    transition: border-color 0.3s ease;
}

.input-group:focus-within {
    border-color: var(--primary);
}

.input-field {
    width: 100%;
    padding: 1rem 0;
    background: transparent;
    border: none;
    outline: none;
}

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

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

/* --- Cookie Consent --- */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--secondary);
    color: white;
    padding: 1.5rem;
    z-index: 100;
    transform: translateY(100%);
    transition: transform 0.5s ease-out;
}

#cookie-banner.active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .hero-asymmetric {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .hero-text {
        grid-column: 1;
        margin-top: 4rem;
    }
    .hero-image-container {
        grid-column: 1;
        height: 40vh;
    }
    h1 {
        font-size: 3rem !important;
    }
    h2 {
        font-size: 2.25rem !important;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.5rem !important;
    }
    .max-w-7xl {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    .btn-premium {
        width: 100%;
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .quote-badge {
        position: static !important;
        margin-top: 1.5rem;
        max-width: 100% !important;
    }
}

/* Ensure all images in containers are responsive and covered */
.hero-image-container img,
.card-plane img,
.w-full.md\:w-1\/2 img,
.w-full.md\:w-3\/5 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Footer link touch targets */
footer ul li a {
    display: inline-block;
    padding: 0.5rem 0;
    min-height: 44px;
    display: flex;
    align-items: center;
}
