/* ------------------------
   CSS VARIABLES - DESIGN SYSTEM
------------------------ */
:root {
    /* Colors (Off-white, beige, sand, light gray, taupe) */
    --color-bg: #FAFAF7;          /* Off-white */
    --color-bg-light: #F2F0EA;    /* Very light warm grey / pearl */
    --color-accent: #E8E4D9;      /* Sand/Beige */
    --color-taupe: #8C847B;       /* Medium Taupe */
    --color-taupe-dark: #59544D;  /* Dark Taupe for text */
    --color-text: #2C2A28;        /* Very dark brownish-gray for text */
    --color-text-light: #6E6A66;
    --color-white: #FFFFFF;
    
    /* Typography */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    
    /* Header height */
    --header-height: 80px;
}

/* ------------------------
   RESET & BASE STYLES
------------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-text);
}

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

ul {
    list-style: none;
}

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

/* ------------------------
   UTILITY CLASSES
------------------------ */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 8rem 0;
}

.grid {
    display: grid;
    gap: 3rem;
}

.bg-light { background-color: var(--color-bg-light); }
.bg-accent { background-color: var(--color-accent); }

.center { text-align: center; }

.section-subtitle {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-taupe);
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 3rem;
    color: var(--color-text);
}

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

.mb-lg { margin-bottom: 3rem; }

/* ------------------------
   BUTTONS
------------------------ */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: all var(--transition-base);
}

.btn-primary {
    background-color: var(--color-taupe-dark);
    color: var(--color-white);
}

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

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--color-taupe-dark);
    color: var(--color-taupe-dark);
}

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

.btn-outline-light {
    background-color: transparent;
    border: 1px solid var(--color-white);
    color: var(--color-white);
}

.btn-outline-light:hover {
    background-color: var(--color-white);
    color: var(--color-taupe-dark);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* ------------------------
   HEADER & NAVIGATION
------------------------ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 100;
    transition: background-color var(--transition-base), box-shadow var(--transition-base), padding var(--transition-base);
    display: flex;
    align-items: center;
}

.header.scrolled {
    background-color: rgba(250, 250, 247, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-white);
    transition: color var(--transition-base);
}

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

.nav {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-list {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.95rem;
    color: var(--color-white);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: currentColor;
    transition: width var(--transition-base);
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    flex-direction: column;
    justify-content: space-between;
    z-index: 101;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-white);
    transition: all var(--transition-fast);
}

.header.scrolled .mobile-menu-btn span {
    background-color: var(--color-text);
}

/* ------------------------
   HERO SECTION
------------------------ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    color: var(--color-white);
    overflow: hidden;
}

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

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 100%);
}

.hero-container {
    max-width: 800px;
    margin: 0;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.hero-title {
    font-size: 4.5rem;
    color: var(--color-white);
    margin-bottom: 2rem;
}

.hero-text {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    max-width: 600px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

/* ------------------------
   ABOUT SECTION
------------------------ */
.about-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 5rem;
}

.about-image-container {
    position: relative;
}

.about-image-container::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 40%;
    height: 40%;
    background-color: var(--color-accent);
    z-index: -1;
}

.about-img {
    width: 100%;
    height: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

/* ------------------------
   SERVICES SECTION
------------------------ */
.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background-color: var(--color-bg);
    padding: 3rem 2rem;
    border: 1px solid rgba(0,0,0,0.03);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.04);
}

.service-icon {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-taupe);
    margin-bottom: 1.5rem;
}

.service-title {
    font-family: var(--font-body);
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

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

/* ------------------------
   PORTFOLIO SECTION
------------------------ */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/5;
    cursor: pointer;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.portfolio-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-taupe-dark);
    font-family: var(--font-heading);
    font-size: 1.5rem;
}

.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--color-white);
    transform: translateY(20px);
    opacity: 0;
    transition: all var(--transition-base);
}

.portfolio-title {
    color: var(--color-white);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.portfolio-category {
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.05);
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
    opacity: 1;
}

/* ------------------------
   METHOD SECTION
------------------------ */
.method-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    position: relative;
}

.method-timeline::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 5%;
    width: 90%;
    height: 1px;
    background-color: rgba(0,0,0,0.1);
    z-index: 1;
}

.method-step {
    position: relative;
    z-index: 2;
}

.step-num {
    width: 50px;
    height: 50px;
    background-color: var(--color-taupe-dark);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.step-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.step-desc {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* ------------------------
   TESTIMONIALS SECTION
------------------------ */
.testimo-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.testimo-card {
    background-color: var(--color-white);
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.quote {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    line-height: 1.6;
    font-style: italic;
    color: var(--color-text);
    margin-bottom: 2rem;
}

.client-name {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
}

.client-project {
    font-size: 0.85rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ------------------------
   CONTACT SECTION
------------------------ */
.contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-details {
    margin-top: 3rem;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-taupe-dark);
    margin-bottom: 0.5rem;
}

.contact-link, .contact-text {
    font-size: 1.1rem;
    color: var(--color-text);
    font-weight: 500;
}

.contact-form {
    background-color: var(--color-white);
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.row {
    display: flex;
    gap: 1.5rem;
}

.input-wrap {
    flex: 1;
}

form label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-light);
}

form input, form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(0,0,0,0.1);
    background-color: var(--color-bg);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text);
    transition: border-color var(--transition-fast);
}

form input:focus, form textarea:focus {
    outline: none;
    border-color: var(--color-taupe-dark);
}

/* ------------------------
   FOOTER
------------------------ */
.footer {
    background-color: var(--color-text);
    color: rgba(255, 255, 255, 0.7);
    padding: 5rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer .logo {
    display: inline-block;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.footer h4 {
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer ul li {
    margin-bottom: 0.8rem;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.legal-links {
    display: flex;
    gap: 2rem;
}

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

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

/* ------------------------
   RESPONSIVE DESIGN
------------------------ */
@media (max-width: 992px) {
    .section-title { font-size: 2.3rem; }
    .hero-title { font-size: 3.5rem; }
    
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid, .testimo-grid {
        grid-template-columns: 1fr;
    }

    .method-timeline::before {
        display: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--color-bg);
        flex-direction: column;
        justify-content: center;
        transition: right 0.4s ease;
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .nav-link {
        color: var(--color-text);
        font-size: 1.2rem;
    }
    
    .nav .btn {
        margin-top: 2rem;
    }

    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background-color: var(--color-text);
    }
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background-color: var(--color-text);
    }

    .hero-title { font-size: 2.5rem; }
    .hero-text { font-size: 1.1rem; }
    
    .form-group.row {
        flex-direction: column;
        gap: 0;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .legal-links {
        justify-content: center;
    }
}
