:root {
    --primary: #2563eb;
    --secondary: #1e293b;
    --accent: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #475569;
    --border-color: #e2e8f0;
    --grid-line: rgba(30, 41, 59, 0.1);
    --transition-base: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
    cursor: default;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--accent);
    overflow-x: hidden;
    line-height: 1.6;
    font-size: 16px; /* Ensure base readability */
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Default for better handling */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--accent);
}
::-webkit-scrollbar-thumb {
    background: var(--secondary);
}

/* Architectural Grid Layout */
.grid-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
    padding: 0 2rem;
}

/* Typography Overrides */
h1, h2, h3 {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
}

/* Custom Buttons */
.btn-architect {
    position: relative;
    padding: 1rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid var(--secondary);
    background: transparent;
    color: var(--secondary);
    transition: var(--transition-base);
    overflow: hidden;
    cursor: pointer;
}

.btn-architect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--secondary);
    transition: var(--transition-base);
    z-index: -1;
}

.btn-architect:hover {
    color: white;
}

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

.btn-primary-custom {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.btn-primary-custom::before {
    background: var(--secondary);
}

/* Navigation */
nav {
    border-bottom: 1px solid var(--border-color);
    background: white;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--secondary);
    transition: color 0.3s ease;
    padding: 1rem 0.75rem; /* Increased for better touch target (min 44px height) */
    position: relative;
    display: inline-block;
}

.btn-architect {
    position: relative;
    padding: 1rem 2rem;
    min-height: 44px; /* Minimum touch target height */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid var(--secondary);
    background: transparent;
    color: var(--secondary);
    transition: var(--transition-base);
    overflow: hidden;
    cursor: pointer;
}

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

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

/* Cards */
.arch-card {
    background: white;
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.arch-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 20px 20px 0px rgba(37, 99, 235, 0.05);
}

/* Hero Section Custom Styling */
.hero-split {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-image-frame {
    position: relative;
    overflow: hidden;
    box-shadow: 40px 40px 0px var(--secondary);
}

/* Section Dividers */
.arch-divider {
    width: 100%;
    height: 1px;
    background: var(--grid-line);
    margin: 4rem 0;
}

#mobile-menu-btn, #close-menu {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

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

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

/* Pricing Toggle */
.pricing-card.featured {
    border: 2px solid var(--primary);
    position: relative;
}

.featured-tag {
    position: absolute;
    top: -12px;
    left: 20px;
    background: var(--primary);
    color: white;
    padding: 2px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Forms */
.form-input {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    background: white;
    transition: var(--transition-base);
    border-radius: 0;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

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

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

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
    
    .hero-image-frame {
        box-shadow: 20px 20px 0px var(--secondary);
    }
}
