:root {
    --primary: #8B4513;
    --primary-dark: #6B3410;
    --secondary: #D4A574;
    --accent: #2C1810;
    --light: #F5F0EB;
    --cream: #FAF7F2;
    --text: #2C1810;
    --text-light: #6B5B4F;
    --white: #FFFFFF;
    --shadow: 0 4px 20px rgba(44, 24, 16, 0.1);
    --shadow-lg: 0 10px 40px rgba(44, 24, 16, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background-color: var(--cream);
    overflow-x: hidden;
}

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

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.logo {
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-shrink: 0;
    min-width: 0;
    height: 76px;
}

.logo.has-image {
    gap: 0.9rem;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    overflow: hidden;
    flex-shrink: 0;
}

.logo.has-image .logo-icon {
    width: auto;
    height: 100%;
    max-height: 76px;
    background: transparent;
    border-radius: 0;
    padding: 6px 0;
}

.logo-icon img {
    display: block;
    width: auto;
    height: 100%;
    max-height: 64px;
    max-width: 220px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.1;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 1rem;
    list-style: none;
    margin-left: auto;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
    padding: 0.35rem 0;
}

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

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

.nav-links a:hover {
    color: var(--primary);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--light);
    color: var(--primary-dark);
    transform: translateY(-1px);
}

.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
    border-radius: 10px;
}

.mobile-menu-btn:hover {
    background: var(--light);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    padding: 2rem;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(44, 24, 16, 0.78), rgba(107, 52, 16, 0.72));
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero .subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    margin-left: 0;
}

.btn-outline:hover {
    background: var(--white);
    color: var(--accent);
}

section {
    padding: 5rem 2rem;
    scroll-margin-top: 90px;
}

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

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: clamp(2rem, 3vw, 2.8rem);
    color: var(--accent);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
}

.section-header p {
    color: var(--text-light);
    max-width: 600px;
    margin: 1.5rem auto 0;
    font-size: 1.1rem;
}

.about {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image,
.about-media {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img,
.about-media img,
.about-media video {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.about-content h3 {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.about-content p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 1.05rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--cream);
    border-radius: 15px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.services {
    background: var(--cream);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--light);
    position: relative;
}

.service-image img,
.service-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    flex: 1;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0;
    color: var(--accent);
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

.current-projects {
    background: var(--white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--cream);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    min-width: 0;
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-image img,
.project-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.project-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--light);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 1rem;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 10px;
}

.portfolio {
    background: var(--cream);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow);
}

.portfolio-item img,
.portfolio-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(44, 24, 16, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    text-align: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.portfolio-overlay p {
    color: var(--secondary);
}

.testimonials {
    background: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.testimonial-card {
    background: var(--cream);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.stars {
    color: #FFD700;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--text);
    line-height: 1.8;
    margin: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1.5rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    overflow: hidden;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.author-info {
    min-width: 0;
}

.author-info h4 {
    color: var(--accent);
    font-size: 1rem;
    margin: 0 0 0.2rem;
    line-height: 1.3;
}

.author-info span {
    color: var(--text-light);
    font-size: 0.85rem;
    display: block;
    line-height: 1.4;
}

.contact {
    background: linear-gradient(135deg, var(--accent), var(--primary-dark));
    color: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-info > p {
    margin-bottom: 2rem;
    opacity: 0.9;
    font-size: 1.1rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item h4 {
    margin-bottom: 0.25rem;
}

.contact-item p {
    opacity: 0.85;
    margin: 0;
    word-break: break-word;
}

.contact-item a {
    color: inherit;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-form .form-group {
    margin-bottom: 1.25rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    min-height: 48px;
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    font-family: inherit;
}

.contact-form select option {
    color: var(--text);
    background: white;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.15);
}

.spam-trap {
    position: absolute !important;
    left: -9999px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.form-success {
    margin-bottom: 1.25rem;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    background: rgba(212, 165, 116, 0.18);
    border: 1px solid rgba(212, 165, 116, 0.35);
    color: #fff;
}

.btn-submit {
    width: 100%;
    min-height: 48px;
    padding: 1rem;
    background: var(--secondary);
    color: var(--accent);
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-submit:hover {
    background: var(--white);
    transform: translateY(-2px);
}

.sticky-cta {
    position: fixed;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%) translateY(120%);
    width: calc(100% - 1.5rem);
    max-width: 560px;
    background: rgba(44, 24, 16, 0.96);
    color: white;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(44, 24, 16, 0.28);
    padding: 0.85rem;
    z-index: 1200;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.sticky-cta.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.sticky-cta-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.sticky-cta a {
    text-decoration: none;
    text-align: center;
    border-radius: 999px;
    padding: 0.95rem 1rem;
    font-weight: 700;
    transition: var(--transition);
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sticky-cta-primary {
    background: var(--secondary);
    color: var(--accent);
}

.sticky-cta-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.sticky-cta a:hover {
    transform: translateY(-1px);
}

.footer {
    background: var(--accent);
    color: white;
    padding: 3rem 2rem 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.footer-brand p {
    opacity: 0.8;
    line-height: 1.8;
}

.footer h4 {
    margin-bottom: 1rem;
    color: var(--secondary);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0.8;
}

.footer-contact span,
.footer-contact a {
    overflow-wrap: anywhere;
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 0.9rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

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

@media (max-width: 992px) {
    .nav-container {
        padding: 0 1rem;
    }

    .nav-links {
        gap: 0.75rem;
    }

    .social-links {
        display: none;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .portfolio-grid,
    .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-container {
        position: relative;
        padding: 0 1rem;
        min-height: 68px;
    }

    .logo {
        height: 68px;
        max-width: calc(100% - 56px);
    }

    .logo.has-image .logo-icon {
        max-height: 68px;
        padding: 8px 0;
    }

    .logo-icon img {
        max-height: 52px;
        max-width: min(42vw, 170px);
    }

    .logo-text {
        font-size: 1.15rem;
        white-space: normal;
        line-height: 1.15;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 1rem;
        right: 1rem;
        width: auto;
        background: white;
        flex-direction: column;
        align-items: stretch;
        padding: 0.75rem;
        box-shadow: var(--shadow-lg);
        border-radius: 16px;
        margin-left: 0;
        gap: 0.25rem;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 0.9rem 0.75rem;
        border-radius: 12px;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links a:hover {
        background: var(--light);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: inline-flex;
    }

    .hero {
        min-height: 100svh;
        padding: 6.5rem 1rem 3rem;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
    }

    .hero h1 {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .hero .subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-badges {
        gap: 0.75rem;
        flex-direction: column;
        align-items: stretch;
    }

    .badge {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        text-align: center;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 320px;
    }

    .btn-outline {
        margin-top: 0;
    }

    section {
        padding: 3.5rem 1rem;
    }

    .section-header {
        margin-bottom: 2.25rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    .about-image img,
    .about-media img,
    .about-media video {
        height: 320px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .services-grid,
    .projects-grid,
    .portfolio-grid,
    .testimonials-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .service-image {
        height: 200px;
    }

    .service-card-content,
    .project-content,
    .testimonial-card {
        padding: 1.25rem;
    }

    .project-image {
        height: 220px;
    }

    .contact-info h2 {
        font-size: 2rem;
    }

    .contact-info > p {
        font-size: 1rem;
    }

    .contact-details {
        gap: 1rem;
    }

    .contact-item {
        gap: 0.85rem;
    }

    .contact-icon {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    .contact-form {
        padding: 1.25rem;
        border-radius: 16px;
    }

    .sticky-cta {
        bottom: 0.75rem;
        width: calc(100% - 1rem);
    }

    .sticky-cta-inner {
        grid-template-columns: 1fr;
    }

    .footer {
        padding: 2.5rem 1rem 1rem;
    }

    .footer-grid {
        gap: 2rem;
    }

    .footer-bottom {
        margin-top: 2rem;
        padding-top: 1.25rem;
    }

    body {
        padding-bottom: 6.5rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        min-height: 64px;
    }

    .logo {
        height: 64px;
    }

    .logo.has-image .logo-icon {
        max-height: 64px;
    }

    .logo-icon img {
        max-height: 46px;
        max-width: min(46vw, 150px);
    }

    .hero {
        padding-top: 6rem;
    }

    .hero h1 {
        font-size: clamp(1.8rem, 9vw, 2.5rem);
    }

    .badge {
        font-size: 0.85rem;
        padding: 0.55rem 0.9rem;
    }

    .btn,
    .btn-submit,
    .sticky-cta a {
        font-size: 0.98rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .project-status {
        top: 0.75rem;
        right: 0.75rem;
        font-size: 0.78rem;
        padding: 0.35rem 0.75rem;
    }
}

@media (min-width: 769px) {
    .sticky-cta {
        display: none;
    }
}