/* CSS VARIABLES */
:root {
    --color-primary: #3d3229;
    --color-secondary: #6b5d52;
    --color-accent: #b8926e;
    --color-terracotta: #c77d4a;
    --color-white: #ffffff;
    --color-cream: #faf8f5;
    --color-light-beige: #f5f1ec;
    --color-text-dark: #3d3229;
    --color-text-medium: #6b5d52;
    --color-border: #e8e3dc;
    --font-family: 'Inter', -apple-system, sans-serif;
    --container-max-width: 1200px;
    --container-padding: 24px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font-family);
    font-size: 18px;
    line-height: 1.7;
    color: var(--color-text-dark);
    background: var(--color-cream);
}

h1, h2, h3, h4 { color: var(--color-primary); line-height: 1.2; font-weight: 600; }
h1 { font-size: 48px; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 36px; letter-spacing: -0.01em; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }

p { margin-bottom: 24px; }
a { color: var(--color-secondary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--color-accent); }

.container { max-width: var(--container-max-width); margin: 0 auto; padding: 0 var(--container-padding); }
.section { padding: 100px 0; }
.section-alt { background: var(--color-light-beige); }

.section-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.section-header { text-align: center; max-width: 800px; margin: 0 auto 60px; }
.section-headline { font-size: 40px; margin-bottom: 16px; }
.section-subheadline { font-size: 18px; color: var(--color-text-medium); }

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    transition: all var(--transition-normal);
    cursor: pointer;
}

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

.btn-primary:hover {
    background: #b36a3a;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(199, 125, 74, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-large { padding: 18px 40px; font-size: 18px; }

/* NAVIGATION */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
}

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

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 50px; width: auto; }

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-menu a {
    color: var(--color-primary);
    font-size: 15px;
    font-weight: 500;
    position: relative;
}

.nav-menu a.active { color: var(--color-accent); }

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition-normal);
}

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

.nav-cta {
    padding: 10px 24px;
    background: var(--color-terracotta);
    color: var(--color-white) !important;
    border-radius: var(--radius-md);
}

.nav-cta:hover {
    background: #b36a3a;
    transform: translateY(-1px);
}

.nav-cta::after { display: none; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.nav-toggle span {
    width: 28px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
}

.header-spacer { height: 73px; }

/* HERO */
.hero {
    padding: 80px 0 100px;
    background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-light-beige) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(184, 146, 110, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-headline {
    font-size: 56px;
    margin-bottom: 16px;
}

.hero-subheadline {
    font-size: 24px;
    color: var(--color-text-medium);
    margin-bottom: 48px;
    font-weight: 500;
}

/* SERVICE CARDS */
.services-overview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    background: var(--color-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(61, 50, 41, 0.1);
    border-color: var(--color-accent);
}

.service-icon { font-size: 56px; margin-bottom: 24px; }
.service-title { font-size: 24px; margin-bottom: 16px; }
.service-description { font-size: 16px; margin-bottom: 24px; flex-grow: 1; }

.service-link {
    color: var(--color-secondary);
    font-weight: 600;
    font-size: 15px;
}

.service-card:hover .service-link { color: var(--color-accent); }

/* WHY CARDS */
.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.why-card {
    background: var(--color-cream);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    position: relative;
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--color-accent);
    transition: height var(--transition-normal);
}

.why-card:hover::before { height: 100%; }

.why-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--color-accent);
    opacity: 0.3;
    margin-bottom: 16px;
}

.why-title { font-size: 22px; margin-bottom: 12px; }
.why-description { font-size: 16px; line-height: 1.7; margin: 0; }

/* TEAM */
.team-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.team-member-small { text-align: center; }

.team-photo-small {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 3px solid var(--color-accent);
    overflow: hidden;
}

.team-photo-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.team-member-small h4 { font-size: 20px; margin-bottom: 8px; }
.team-member-small p { font-size: 14px; color: var(--color-text-medium); margin: 0; }

/* CTA SECTION */
.cta-section {
    background: var(--color-primary);
    background-image: url('background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--color-white);
    padding: 80px 0;
    text-align: center;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(61, 50, 41, 0.85);
    z-index: 1;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 40px;
    color: var(--color-white);
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .cta-content h2 .desktop-text { display: none; }
    .cta-content h2 .mobile-text { display: inline; }
}

@media (min-width: 769px) {
    .cta-content h2 .desktop-text { display: inline; }
    .cta-content h2 .mobile-text { display: none; }
}

.cta-content p {
    font-size: 20px;
    margin-bottom: 32px;
    color: var(--color-white);
}

.cta-section .btn-primary {
    background: var(--color-white);
    color: var(--color-primary);
}

/* FOOTER */
.footer {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-title {
    font-size: 18px;
    color: var(--color-white);
    margin-bottom: 20px;
}

.footer-text {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
}

.footer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-list a {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-list a:hover { color: var(--color-accent); }

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

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

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

.hero-content {
    animation: fadeInUp 1s ease-out;
}

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

/* MOBILE */
@media (max-width: 768px) {
    h1 { font-size: 32px; }
    h2 { font-size: 28px; }
    .hero {
        padding: 40px 0 50px;
    }
    .hero-headline { font-size: 30px; }
    .hero-subheadline { font-size: 18px; margin-bottom: 28px; }
    .services-overview, .why-grid, .team-preview, .footer-grid { grid-template-columns: 1fr; }
    
    .nav-menu {
        display: flex;
        position: fixed;
        top: 73px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 24px;
        border-bottom: 1px solid var(--color-border);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
        padding: 16px 0;
        border-bottom: 1px solid var(--color-border);
    }
    
    .nav-menu li:last-child { border-bottom: none; }
    
    .nav-toggle { display: flex; }
    
    .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translateY(10px); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translateY(-10px); }
}

/* SCROLL TO TOP BUTTON */
.scroll-top {
    position: fixed;
    bottom: 32px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: var(--color-terracotta);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(199, 125, 74, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 500;
    text-decoration: none;
}

.scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-top:hover {
    background: #b36a3a;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(199, 125, 74, 0.5);
}

/* SCROLL INDICATOR */
.scroll-indicator {
    display: none;
    flex-direction: column;
    align-items: center;
    margin-top: 24px;
    color: var(--color-text-medium);
    font-size: 13px;
    font-weight: 500;
    gap: 8px;
    opacity: 0.7;
    text-decoration: none;
    cursor: pointer;
    transition: opacity var(--transition-fast);
}

.scroll-indicator:hover {
    opacity: 1;
    color: var(--color-accent);
}

.scroll-indicator .arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--color-accent);
    border-bottom: 2px solid var(--color-accent);
    transform: rotate(45deg);
    animation: scrollBounce 1.5s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(6px); }
}

@media (max-width: 768px) {
    .scroll-indicator {
        display: flex;
    }
}

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 24px 32px;
    z-index: 9999;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

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

.cookie-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 260px;
}

.cookie-text h4 {
    color: var(--color-white);
    font-size: 16px;
    margin-bottom: 8px;
}

.cookie-text p {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    margin: 0;
    line-height: 1.6;
}

.cookie-text a {
    color: var(--color-accent);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.cookie-accept {
    padding: 12px 28px;
    background: var(--color-terracotta);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-family);
    transition: background var(--transition-fast);
}

.cookie-accept:hover {
    background: #b36a3a;
}

.cookie-decline {
    padding: 12px 28px;
    background: transparent;
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font-family);
    transition: all var(--transition-fast);
}

.cookie-decline:hover {
    border-color: rgba(255,255,255,0.7);
    color: white;
}

@media (max-width: 768px) {
    .cookie-banner {
        padding: 20px 20px;
    }
    .cookie-inner {
        flex-direction: column;
        gap: 16px;
    }
    .cookie-buttons {
        width: 100%;
    }
    .cookie-accept, .cookie-decline {
        flex: 1;
        text-align: center;
    }
}
