/* ===================================
   CSS Reset & Base Styles
   =================================== */

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

:root {
    /* Color Palette - Architecture & Carpentry Theme */
    --primary-color: #39B54A;
    --primary-dark: #6B5537;
    --primary-light: #A68B66;
    --secondary-color: #2C3E50;
    --accent-color: #D4A574;
    --accent-dark: #9f7446;
    
    
    
    /* --primary-color: #8B6F47;
    --primary-dark: #6B5537;
    --primary-light: #A68B66;
    --secondary-color: #2C3E50;
    --accent-color: #D4A574; */
    
    --text-dark: #2C2C2C;
    --text-medium: #555555;
    --text-light: #777777;
    
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --bg-gray: #F5F5F5;
    --bg-dark: #2C3E50;
    
    --border-color: #E5E5E5;
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.12);
    --shadow-dark: rgba(0, 0, 0, 0.16);
    
    /* Typography */
    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-heading: 'Poppins', sans-serif;
    /* --font-heading: 'Playfair Display', serif; */
    
    /* Spacing */
    --container-width: 1200px;
    --section-padding: 5rem 0;
    --section-padding-mobile: 3rem 0;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Z-index layers */
    --z-fixed: 100;
    --z-modal: 1000;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

/* ===================================
   Typography
   =================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-medium);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-medium);
}

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

ul {
    list-style: none;
}

/* ===================================
   Container & Layout
   =================================== */

.container {
    max-width: var(--container-width);
    width: 90%;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: var(--section-padding);
}

.section--gray {
    background-color: var(--bg-gray);
}

.section--dark {
    background-color: var(--bg-dark);
    color: var(--bg-white);
}

.section--dark h2,
.section--dark h3,
.section--dark p {
    color: var(--bg-white);
}

/* Section Headers */
.section__header {
    text-align: center;
    margin-bottom: 3rem;
}

.section__title {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

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

.section__subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-top: 1.5rem;
}

.section__footer {
    text-align: center;
    margin-top: 3rem;
}

/* ===================================
   Header & Navigation
   =================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px var(--shadow-light);
    z-index: var(--z-fixed);
    transition: var(--transition-medium);
}

.header.scroll-header {
    box-shadow: 0 2px 15px var(--shadow-medium);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav__logo .logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav__menu {
    display: flex;
    align-items: center;
}

.nav__list {
    display: flex;
    gap: 2rem;
}

.nav__link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 0.5rem 0;
}

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

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav__link:hover,
.nav__link.active {
    color: var(--primary-color);
}

.nav__toggle,
.nav__close {
    display: none;
    cursor: pointer;
    color: var(--text-dark);
}

/* ===================================
   Buttons
   =================================== */

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-medium);
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-medium);
}

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

.btn-secondary:hover {
    background-color: var(--text-dark);
    border-color: var(--text-dark);

    color: var(--bg-white);
}

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

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

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

/* ===================================
   Hero Section
   =================================== */

.hero {
    position: relative;
    min-height: 65vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    margin: 0 4rem;
    border-radius: 16px;
    overflow: hidden;
    margin-top: 68px;
}

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

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

.hero__overlay {
    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%);
    z-index: 2;
}

.hero__container {
    position: relative;
    z-index: 3;
    max-width: 86.666%;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero__content {
    padding: 3rem 0;
    color: var(--bg-white);
}

.hero__title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--bg-white);
}

.hero__title .highlight {
    color: var(--accent-color);
    display: block;
}

.hero__description {
    font-size: 1.25rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 700px;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero__scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: var(--bg-white);
    animation: bounce 2s infinite;
    cursor: pointer;
}

.hero__scroll-indicator svg {
    width: 32px;
    height: 32px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ===================================
   Services Preview
   =================================== */

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

.service-card {
    background-color: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow-light);
    transition: var(--transition-medium);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.service-card__image {
    overflow: hidden;
    /* Reserve space to prevent CLS */
    aspect-ratio: 3 / 2;
}

.service-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.service-card:hover .service-card__image img {
    transform: scale(1.1);
}

.service-card__content {
    padding: 2rem;
}

.service-card__title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-card__description {
    color: var(--text-medium);
    line-height: 1.7;
}

/* ===================================
   Projects Preview
   =================================== */

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

.project-card {
    background-color: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow-light);
    transition: var(--transition-medium);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.project-card__image {
    overflow: hidden;
    /* Reserve space to prevent CLS */
    aspect-ratio: 7 / 5;
}

.project-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.project-card:hover .project-card__image img {
    transform: scale(1.05);
}

.project-card__content {
    padding: 2rem;
}

.project-card__title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.project-card__description {
    color: var(--text-medium);
    margin-bottom: 1.25rem;
}

.project-card__link {
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition-medium);
}

.project-card__link:hover {
    color: var(--primary-dark);
}

/* ===================================
   About Preview
   =================================== */

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

.about-preview__text {
    padding: 2rem 0;
}

.about-preview__description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-medium);
    margin-bottom: 1.5rem;
}

.about-preview__image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-medium);
    /* Reserve space to prevent CLS */
    aspect-ratio: 6 / 7;
}

.about-preview__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===================================
   Contact CTA
   =================================== */

.contact-cta {
    text-align: center;
}

.contact-cta__content {
    max-width: 700px;
    margin: 0 auto;
}

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

.contact-cta__description {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* ===================================
   Footer
   =================================== */

.footer {
    background-color: var(--secondary-color);
    color: var(--bg-white);
    padding: 4rem 0 2rem;
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer__title {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.footer__text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer__heading {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--bg-white);
}

.footer__links li {
    margin-bottom: 0.75rem;
}

.footer__links a,
.footer__contact li {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-medium);
}

.footer__links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer__contact li {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.footer__bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* ===================================
   Fixed Contact Buttons
   =================================== */

.fixed-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: var(--z-fixed);
    opacity: 1;
    visibility: visible;
    transition: var(--transition-medium);
}

.fixed-contact__btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px var(--shadow-dark);
    transition: var(--transition-medium);
    cursor: pointer;
}

.fixed-contact__btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px var(--shadow-dark);
}

.fixed-contact__btn.whatsapp {
    background-color: #25D366;
    color: var(--bg-white);
}

.fixed-contact__btn.email {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.fixed-contact__btn svg {
    width: 28px;
    height: 28px;
}

/* ===================================
   Page Header (Internal Pages)
   =================================== */

.page-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-dark) 100%);
    color: var(--bg-white);
    padding: 8rem 0 4rem;
    margin-top: 80px;
    text-align: center;
}

.page-header__title {
    font-size: 3rem;
    color: var(--bg-white);
    margin-bottom: 1rem;
}

.page-header__subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ===================================
   Services Detail Page
   =================================== */

.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 5rem;
}

.service-detail:last-child {
    margin-bottom: 0;
}

.service-detail--reverse {
    direction: rtl;
}

.service-detail--reverse > * {
    direction: ltr;
}

.service-detail__image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 25px var(--shadow-medium);
    /* Reserve space to prevent CLS */
    aspect-ratio: 4 / 3;
}

.service-detail__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-detail__content {
    padding: 1rem 0;
}

.service-detail__title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-detail__description {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.service-detail__features {
    margin-top: 2rem;
}

.service-detail__features-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.service-detail__list {
    list-style: none;
    padding-left: 0;
}

.service-detail__list li {
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    position: relative;
    color: var(--text-medium);
}

.service-detail__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* CTA Section */
.cta-section {
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content__title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content__description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* ===================================
   Projects Gallery Page
   =================================== */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.project-item {
    background-color: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow-light);
    transition: var(--transition-medium);
    position: relative;
}

.project-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px var(--shadow-medium);
}

.project-item__gallery {
    position: relative;
    background-color: var(--bg-gray);
}

.project-item__main {
    position: relative;
    overflow: hidden;
    /* Reserve space to prevent CLS */
    aspect-ratio: 4 / 3;
    background-color: var(--bg-gray);
}

.project-item__main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.project-item__thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding: 0.75rem;
    background-color: var(--bg-white);
}

.project-item__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-medium);
    /* Reserve space to prevent CLS */
    aspect-ratio: 4 / 3;
    border: 2px solid transparent;
    position: relative;
}

.project-item__thumb:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px var(--shadow-medium);
    z-index: 2;
}

.project-item__thumb.active {
    border-color: var(--primary-color);
    opacity: 0.7;
}

.project-item__info {
    padding: 6px;
    position: absolute;
    bottom: 0px;
    background: #ffffff99;
    width: 100%;
}

.project-item__title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-dark);
    font-family: var(--font-heading);
}

.project-item__tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    padding: 1px 7px;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 20px;
    transition: var(--transition-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag--design {
    background-color: rgba(139, 111, 71, 0.1);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.tag--design:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.tag--production {
    background-color: rgba(44, 62, 80, 0.1);
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}

.tag--production:hover {
    background-color: var(--secondary-color);
    color: var(--bg-white);
}

.tag--application {
    background-color: rgba(212, 165, 116, 0.1);
    color: var(--accent-dark);
    border: 1px solid var(--accent-dark);
}

.tag--application:hover {
    background-color: var(--accent-dark);
    color: var(--bg-white);
}

/* Responsive for Projects Grid */
@media screen and (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media screen and (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .project-item__thumbs {
        gap: 0.4rem;
        padding: 0.6rem;
    }
}

/* Old project-full styles - Keep for backward compatibility if needed */

.project-full__gallery {
    margin-bottom: 2.5rem;
}

.project-full__main-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 25px var(--shadow-medium);
    margin-bottom: 1.5rem;
    /* Reserve space to prevent CLS */
    aspect-ratio: 3 / 2;
}

.project-full__main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-full__thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.project-full__thumbnails img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-medium);
    /* Reserve space to prevent CLS */
    aspect-ratio: 3 / 2;
}

.project-full__thumbnails img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px var(--shadow-medium);
}

.project-full__content {
    max-width: 900px;
}

.project-full__title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.project-full__meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.project-full__category,
.project-full__location,
.project-full__year {
    padding: 0.5rem 1rem;
    background-color: var(--bg-light);
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-color);
}

.project-full__description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-medium);
    margin-bottom: 2rem;
}

.project-full__details h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.project-full__details ul {
    list-style: none;
}

.project-full__details li {
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    position: relative;
    color: var(--text-medium);
}

.project-full__details li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* ===================================
   About Page
   =================================== */

.about-story__content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: start;
}

.about-story__text p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-story__image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-medium);
    position: sticky;
    top: 120px;
    /* Reserve space to prevent CLS */
    aspect-ratio: 6 / 7;
}

.about-story__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Values */
.values__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.value-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background-color: var(--bg-white);
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--shadow-light);
    transition: var(--transition-medium);
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.value-card__icon {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.value-card__title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.value-card__description {
    color: var(--text-medium);
    line-height: 1.7;
}

/* Statistics */
.statistics__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.stat-card {
    text-align: center;
}

.stat-card__number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

.stat-card__label {
    font-size: 1.1rem;
    color: var(--text-medium);
    font-weight: 500;
}

/* Team */
.team__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
}

.team-card {
    background-color: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow-light);
    transition: var(--transition-medium);
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.team-card__image {
    overflow: hidden;
    /* Reserve space to prevent CLS */
    aspect-ratio: 1 / 1;
}

.team-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.team-card:hover .team-card__image img {
    transform: scale(1.1);
}

.team-card__content {
    padding: 1.75rem;
    text-align: center;
}

.team-card__name {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.team-card__role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-card__description {
    color: var(--text-medium);
    font-size: 0.95rem;
}

/* Why Us */
.why-us__content {
    max-width: 900px;
    margin: 0 auto;
}

.why-us__item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
}

.why-us__item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.why-us__number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-heading);
    opacity: 0.3;
}

.why-us__text h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.why-us__text p {
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ===================================
   Contact Page
   =================================== */

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

.contact__info-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact__info-description {
    font-size: 1.05rem;
    color: var(--text-medium);
    margin-bottom: 2.5rem;
}

.contact__info-items {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact__info-item {
    display: flex;
    gap: 1.5rem;
}

.contact__info-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
    border-radius: 50%;
    color: var(--primary-color);
}

.contact__info-content h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.contact__info-content p {
    color: var(--text-medium);
    margin-bottom: 0.25rem;
}

.contact__info-content a {
    color: var(--primary-color);
    transition: var(--transition-medium);
}

.contact__info-content a:hover {
    color: var(--primary-dark);
}

/* Contact Map */
.contact__map {
    height: 600px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

/* Contact Form */
.contact__form-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact__form-description {
    font-size: 1.05rem;
    color: var(--text-medium);
    margin-bottom: 2rem;
}

.contact__form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form__group {
    display: flex;
    flex-direction: column;
}

.form__group--full {
    grid-column: 1 / -1;
}

.form__label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.form__input,
.form__textarea {
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition-medium);
    background-color: var(--bg-white);
}

.form__input:focus,
.form__textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 111, 71, 0.1);
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

.contact__form .btn {
    grid-column: 1 / -1;
    justify-self: start;
}

/* Map Section */
.map-section {
    /* Reserve space to prevent CLS */
    min-height: 450px;
}

.map__container {
    width: 100%;
    /* Reserve space to prevent CLS */
    height: 450px;
}

.map__container iframe {
    width: 100%;
    height: 100%;
}

/* ===================================
   Responsive Design
   =================================== */

@media screen and (max-width: 992px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .section {
        padding: var(--section-padding-mobile);
    }
    
    .section__title {
        font-size: 1.875rem;
    }
    
    /* Hero */
    .hero__container {
        max-width: 100%;
        padding: 0 1.5rem;
    }
    
    .hero__title {
        font-size: 2.5rem;
    }
    
    .hero__description {
        font-size: 1.125rem;
    }
    
    /* Services */
    .services__grid {
        grid-template-columns: 1fr;
    }
    
    /* Projects */
    .projects__grid {
        grid-template-columns: 1fr;
    }
    
    /* About Preview */
    .about-preview__content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    /* Service Detail */
    .service-detail,
    .service-detail--reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
        direction: ltr;
    }
    
    /* Project Thumbnails */
    .project-full__thumbnails {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* About Story */
    .about-story__content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .about-story__image {
        position: static;
    }
    
    /* Why Us */
    .why-us__item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .why-us__number {
        font-size: 2.5rem;
    }
    
    /* Contact */
    .contact__grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact__map {
        height: 450px;
    }
}

@media screen and (max-width: 768px) {
    /* Hero */
    .hero {
        min-height: 70vh;
        margin: 0 1rem;
        border-radius: 12px;
    }
    
    .hero__container {
        padding: 0 1rem;
        max-width: 100%;
    }
    
    .hero__title {
        font-size: 2rem;
    }
    
    .hero__description {
        font-size: 1rem;
    }
    
    .hero__scroll-indicator {
        bottom: 1rem;
    }
    
    .hero__scroll-indicator svg {
        width: 24px;
        height: 24px;
    }
    
    /* Navigation Mobile */
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: var(--bg-white);
        padding: 5rem 2rem 2rem;
        box-shadow: -2px 0 10px var(--shadow-medium);
        transition: var(--transition-medium);
        z-index: calc(var(--z-fixed) + 1);
    }
    
    .nav__menu.show-menu {
        right: 0;
    }
    
    .nav__list {
        width: 100%;
        flex-direction: column;
        gap: 0;
    }
    
    .nav__item {
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav__link {
        display: block;
        padding: 1.25rem 0;
    }
    
    .nav__close {
        display: block;
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        font-size: 1.5rem;
    }
    
    .nav__toggle {
        display: block;
        font-size: 1.5rem;
    }
    
    /* Page Header */
    .page-header {
        padding: 6rem 0 3rem;
    }
    
    .page-header__title {
        font-size: 2rem;
    }
    
    /* Contact CTA */
    .contact-cta__title,
    .cta-content__title {
        font-size: 1.75rem;
    }
    
    /* Form */
    .contact__form {
        grid-template-columns: 1fr;
    }
    
    /* Team */
    .team__grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    
    /* Values */
    .values__grid {
        grid-template-columns: 1fr;
    }
    
    /* Statistics */
    .statistics__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .stat-card__number {
        font-size: 2.5rem;
    }
    
    /* Fixed Contact */
    .fixed-contact {
        bottom: 20px;
        right: 20px;
        gap: 12px;
    }
    
    .fixed-contact__btn {
        width: 50px;
        height: 50px;
    }
    
    .fixed-contact__btn svg {
        width: 24px;
        height: 24px;
    }
}

@media screen and (max-width: 480px) {
    .hero__title {
        font-size: 1.875rem;
    }
    
    .hero__buttons {
        flex-direction: column;
    }
    
    .hero__buttons .btn {
        width: 100%;
    }
    
    .services__grid,
    .projects__grid {
        grid-template-columns: 1fr;
    }
    
    .project-full__thumbnails {
        grid-template-columns: 1fr;
    }
    
    .statistics__grid {
        grid-template-columns: 1fr;
    }
    
    .footer__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ===================================
   Performance & Accessibility
   =================================== */

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Smooth scrolling for anchor links */
html {
    scroll-padding-top: 100px;
}

/* Loading optimization */
img[loading="lazy"] {
    background-color: var(--bg-light);
}

/* Print styles */
@media print {
    .header,
    .fixed-contact,
    .nav__toggle,
    .nav__close {
        display: none;
    }
    
    .hero,
    .section {
        page-break-inside: avoid;
    }
}