/* Reset y base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --color-primary: #b38865;
    --color-brown: #8b6b4f;
    --color-dark: #222;
    --color-gray: #888;
    --color-light: #f9f7fa;
    --color-white: #fff;
    --color-overlay: rgba(0, 0, 0, 0.5);
    --font-heading: 'Abril Fatface', serif;
    --font-subheading: 'Exo 2', sans-serif;
    --font-body: 'Raleway', sans-serif;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--color-dark);
    background: var(--color-light);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Header */
.header {
    background: transparent;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 25px 0;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: fixed !important;
}

.header.scrolled .logo-img {
    width: 140px;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.header.scrolled .logo-text,
.header.scrolled .nav-link {
    color: var(--color-dark);
}

.header.scrolled .nav-link:hover,
.header.scrolled .nav-link.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.header-inner {
    padding: 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    max-width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    width: 180px;
    height: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--color-white);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 10px 0;
    display: block;
    opacity: 0.9;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-white);
    opacity: 1;
    border-bottom: 1px solid var(--color-white);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
}

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: -1;
}

.hero-content {
    color: var(--color-white);
    padding: 20px;
    max-width: 900px;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-family: var(--font-subheading);
    font-size: 1.2rem;
    font-weight: 200;
    margin-bottom: 20px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 400;
    margin-bottom: 50px;
    line-height: 1.1;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

.hero-title strong {
    font-weight: 400;
}

.hero-content .btn {
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.8s;
    opacity: 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 45px;
    background: transparent;
    color: var(--color-white);
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid var(--color-white);
    border-radius: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    position: relative;
    overflow: hidden;
}

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

.btn:hover {
    color: var(--color-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.btn-center {
    text-align: center;
    margin-top: 50px;
}

/* Features */
.features {
    padding: 100px 0;
    background: var(--color-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 50px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    padding: 30px;
    background: var(--color-light);
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    background: var(--color-white);
}

.feature-img {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: var(--color-primary);
    border-radius: 50%;
    padding: 12px;
    transition: transform 0.3s ease;
}

.feature-item:hover .feature-img {
    transform: scale(1.1);
}

.feature-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.feature-content {
    flex: 1;
}

.feature-content h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 10px;
    color: var(--color-dark);
}

.feature-content p {
    color: var(--color-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Testimonials */
.testimonials {
    position: relative;
    padding: 120px 0;
    color: var(--color-white);
}

.testimonials-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.testimonials-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonials-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.testimonials-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 400;
    animation: fadeInUp 0.8s ease forwards;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.testimonial-item {
    text-align: center;
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: calc(var(--delay, 0) * 0.2s);
}

.testimonial-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.testimonial-img {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
}

.testimonial-img img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid var(--color-primary);
    padding: 3px;
    background: var(--color-white);
}

.testimonial-item blockquote {
    font-size: 1.05rem;
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.8;
    font-family: var(--font-body);
}

.testimonial-item h3 {
    font-family: var(--font-subheading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
}

/* Gallery */
.gallery {
    padding: 100px 0;
    background: var(--color-white);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    font-weight: 400;
    animation: fadeInUp 0.8s ease forwards;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.gallery-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-footer {
    display: flex;
    margin-top: 30px;
    align-items: center;
}

.gallery-spacer {
    flex: 1;
}

.gallery-more {
    text-align: right;
}

.gallery-more a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.gallery-more a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.gallery-more a:hover::after {
    width: 100%;
}

/* CTA */
.cta {
    position: relative;
    padding: 120px 0;
    color: var(--color-white);
    text-align: center;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.cta-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease forwards;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 50px;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Footer */
.footer {
    background: var(--color-dark);
    color: var(--color-white);
    padding: 30px 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-brand {
    font-family: var(--font-subheading);
    font-size: 1rem;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.footer-copy {
    font-size: 0.85rem;
    opacity: 0.8;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.footer-credit {
    font-size: 0.85rem;
    opacity: 0.8;
}

.footer-credit a {
    color: var(--color-white);
    text-decoration: none;
}

.footer-cookies a {
    color: var(--color-white);
    text-decoration: none;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Page Hero */
.page-hero {
    position: relative;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    background: var(--color-dark);
}

.page-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.page-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.page-hero-content {
    color: var(--color-white);
    text-align: center;
    z-index: 1;
}

.page-hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 400;
    animation: fadeInUp 1s ease forwards;
}

/* Services */
.services {
    padding: 100px 0;
    background: var(--color-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-item {
    padding: 40px 30px;
    background: var(--color-light);
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    background: var(--color-white);
}

.service-item h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 15px;
    color: var(--color-dark);
    transition: color 0.3s ease;
}

.service-item:hover h2 {
    color: var(--color-primary);
}

.service-item p {
    color: var(--color-gray);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Contact */
.contact {
    padding: 80px 0;
    background: var(--color-white);
}

.contact-grid {
    max-width: 600px;
    margin: 0 auto;
}

.contact-info {
    text-align: right;
}

.contact-title {
    font-family: var(--font-subheading);
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 10px;
}

.contact-phone {
    font-family: var(--font-subheading);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.contact-phone small {
    font-size: 2rem;
    font-weight: 300;
}

.contact-desc {
    color: var(--color-gray);
    margin-bottom: 30px;
}

.contact-details {
    color: var(--color-dark);
    font-size: 1.1rem;
}

.contact-details p {
    margin-bottom: 5px;
}

/* About */
.about {
    padding: 80px 0;
    background: var(--color-white);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
}

.about-item h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 20px;
    color: var(--color-dark);
}

.about-item p {
    color: var(--color-gray);
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

/* Work Gallery */
.work-gallery {
    padding: 100px 0;
    background: var(--color-white);
}

.section-desc {
    text-align: center;
    color: var(--color-gray);
    max-width: 700px;
    margin: -30px auto 50px;
    font-size: 1rem;
}

/* Scroll animations */
.feature-item,
.gallery-item,
.section-title,
.cta-content,
.testimonial-item,
.service-item,
.about-item,
.contact-info {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.feature-item.animate,
.gallery-item.animate,
.section-title.animate,
.cta-content.animate,
.testimonial-item.animate,
.service-item.animate,
.about-item.animate,
.contact-info.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Page Transition */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-primary);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.page-transition.active {
    transform: translateY(0);
}

.page-transition.out {
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }
    
    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--color-white);
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .features-grid,
    .testimonials-grid,
    .gallery-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .testimonials-title,
    .cta-title,
    .section-title {
        font-size: 2rem;
    }
    
    .contact-phone {
        font-size: 2rem;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-right {
        align-items: center;
    }
}

