/* ===== Custom Properties ===== */
:root {
    --terracotta-500: #C65D3E;
    --terracotta-100: #FADDD3;
    --sand-100: #FAF5EB;
    --sand-300: #EDD9B5;
    --gray-900: #111827;
    --gray-700: #374151;
    --gray-600: #4B5563;
    --gray-500: #6B7280;
    --gray-400: #9CA3AF;
    --gray-200: #E5E7EB;
    --gray-100: #F3F4F6;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ===== Geometric Background Shapes ===== */
.geo-shapes {
    z-index: 0;
}

.geo-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
}

.geo-circle--1 {
    width: 400px;
    height: 400px;
    background: var(--terracotta-500);
    top: 10%;
    right: -100px;
}

.geo-circle--2 {
    width: 250px;
    height: 250px;
    background: var(--sand-400);
    bottom: 20%;
    left: -80px;
}

.geo-triangle {
    position: absolute;
    opacity: 0.1;
}

.geo-triangle--1 {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 60px 100px 60px;
    border-color: transparent transparent var(--terracotta-500) transparent;
    top: 35%;
    left: 5%;
    transform: rotate(-15deg);
}

.geo-square {
    position: absolute;
    opacity: 0.1;
    border-radius: 12px;
}

.geo-square--1 {
    width: 80px;
    height: 80px;
    background: var(--sand-400);
    top: 60%;
    right: 8%;
    transform: rotate(45deg);
}

.geo-dots {
    position: absolute;
    opacity: 0.08;
}

.geo-dots--1 {
    width: 120px;
    height: 120px;
    top: 45%;
    left: 15%;
    background-image: radial-gradient(circle, var(--terracotta-500) 2px, transparent 2px);
    background-size: 16px 16px;
}

/* ===== Navigation ===== */
.nav {
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-inner {
    position: relative;
    z-index: 10;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--terracotta-500);
    transition: width 0.3s ease;
}

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

/* Mobile Menu */
.nav-mobile {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, var(--sand-50) 0%, #fef8f3 50%, var(--sand-100) 100%);
    position: relative;
    overflow: hidden;
}

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

.hero-badge {
    animation: fadeInUp 0.6s ease forwards;
}

.hero-badge-dot {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-headline {
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-underline {
    bottom: -4px;
}

.hero-description {
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-cta {
    animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-trust {
    animation: fadeInUp 0.6s ease 0.4s both;
}

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

.hero-image-wrapper {
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-image-accent {
    transition: transform 0.4s ease;
}

.hero-image-wrapper:hover .hero-image-accent {
    transform: translate(8px, -8px);
}

.hero-float-card {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* ===== Buttons ===== */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::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.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

/* ===== Sections ===== */
.section {
    position: relative;
    z-index: 1;
}

.section-label {
    font-weight: 600;
}

.section-title {
    margin-bottom: 1rem;
}

.section-desc {
    margin-bottom: 0;
}

/* ===== Services ===== */
.services {
    background: linear-gradient(180deg, var(--sand-50) 0%, white 100%);
}

.service-card {
    perspective: 1000px;
}

.service-card-inner {
    transform-style: preserve-3d;
}

.service-icon-svg {
    transition: stroke 0.4s ease;
}

/* ===== About ===== */
.about {
    background: white;
}

.about-image-accent1 {
    animation: floatSlow 6s ease-in-out infinite;
}

.about-image-accent2 {
    animation: floatSlow 4s ease-in-out infinite reverse;
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
}

.about-float-card {
    animation: float 3.5s ease-in-out infinite;
}

/* ===== Why Us ===== */
.why-us {
    background: linear-gradient(180deg, white 0%, var(--sand-50) 100%);
}

.why-us-card {
    position: relative;
    overflow: hidden;
}

.why-us-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--terracotta-500), var(--sand-400));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.why-us-card:hover::before {
    transform: scaleX(1);
}

/* ===== CTA Banner ===== */
.cta-banner {
    position: relative;
}

/* ===== Contact ===== */
.contact {
    background: linear-gradient(180deg, var(--sand-50) 0%, white 100%);
}

.contact-form-card {
    position: relative;
}

.form-label {
    font-weight: 500;
}

.form-input {
    transition: all 0.2s ease;
}

.form-input:focus {
    box-shadow: 0 0 0 3px rgba(198, 93, 62, 0.15);
}

.form-input:hover:not(:focus) {
    border-color: var(--terracotta-200);
}

.form-submit {
    position: relative;
    overflow: hidden;
}

.form-submit::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.form-submit:hover::after {
    transform: translateX(100%);
}

.form-success {
    animation: fadeInUp 0.5s ease;
}

/* ===== Footer ===== */
.footer {
    position: relative;
    z-index: 1;
}

.footer-heading {
    margin-bottom: 1rem;
}

.footer-link {
    text-decoration: none;
}

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .geo-circle--1 {
        width: 250px;
        height: 250px;
    }
    
    .geo-circle--2 {
        width: 150px;
        height: 150px;
    }
    
    .hero {
        min-height: auto;
        padding: 6rem 0 4rem;
    }
    
    .hero-image-wrapper {
        order: 0;
    }
    
    .hero-float-card {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 1rem;
        display: inline-flex;
    }
    
    .about-float-card {
        position: relative;
        top: auto;
        right: auto;
        margin-top: 1rem;
        display: inline-flex;
    }
}

@media (max-width: 640px) {
    .hero-headline {
        font-size: 2.75rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .why-us-grid {
        grid-template-columns: 1fr;
    }
}
