/* -------------------------------------------------
   BASE STYLES / VARIABLES
------------------------------------------------- */
:root {
    --color-dark: #1a1a1a;
    --color-light: #f7f5f2;
    --color-muted: #6d6d6d;
    --color-accent: #c1a57b;

    --text-sm: 0.9rem;
    --text-md: 1rem;
    --text-lg: 1.2rem;

    --transition: all 0.3s ease;
}

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

body {
    font-family: "Inter", sans-serif;
    color: var(--color-dark);
    background-color: #fff;
    overflow-x: hidden;
    line-height: 1.6;
}

/* -------------------------------------------------
   NAVIGATION
------------------------------------------------- */

.nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: white;
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: "Libre Baskerville", serif;
    font-size: 1.4rem;
    font-weight: 700;
}

.nav-links a {
    margin-left: 2rem;
    text-decoration: none;
    color: var(--color-dark);
    font-weight: 500;
    transition: var(--transition);
}

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

/* -------------------------------------------------
   HERO
------------------------------------------------- */

.hero {
    position: relative;
    height: 85vh;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 5rem 2rem;
    color: white;
}

.hero-image-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: -2;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    filter: brightness(60%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.6));
    z-index: -1;
}

.hero-title {
    font-family: "Libre Baskerville", serif;
    font-size: 3.2rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* New hero tagline */
.hero-tagline {
    margin-top: 1rem;
    font-size: var(--text-sm);
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.9;
}

/* -------------------------------------------------
   SECTION COMMON STYLES
------------------------------------------------- */

.section-label {
    text-transform: uppercase;
    font-size: var(--text-sm);
    letter-spacing: 2px;
    color: var(--color-accent);
}

.section-heading {
    font-family: "Libre Baskerville", serif;
    font-size: 2.2rem;
    margin: 1rem 0 2rem;
}

/* -------------------------------------------------
   SERVICES SECTION
------------------------------------------------- */

.services {
    padding: 6rem 0;
    background: var(--color-light);
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.service-item {
    background: white;
    padding: 1.75rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: transform .25s ease, box-shadow .25s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.10);
}

.service-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--color-dark);
}

.service-text {
    font-size: var(--text-md);
    line-height: 1.6;
    color: var(--color-muted);
}

/* -------------------------------------------------
   ABOUT
------------------------------------------------- */

.about {
    padding: 6rem 0;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about-text p {
    margin-bottom: 1.2rem;
    color: var(--color-muted);
}

/* -------------------------------------------------
   PHILOSOPHY
------------------------------------------------- */

.philosophy {
    padding: 6rem 0;
    background: var(--color-light);
}

.philosophy-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 3rem;
    position: relative;
}

/* Text card */
.philosophy-content {
    position: relative;
    z-index: 2;
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-right: -3rem; /* creates the slight overlap over the image */
}

.philosophy-text p {
    margin-bottom: 1.2rem;
    color: var(--color-muted);
    line-height: 1.7;
}

/* Image column */
.philosophy-image {
    position: relative;
    height: 480px;
    overflow: hidden;
    border-radius: 8px;
}

.philosophy-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
    transition: transform 0.6s ease;
}

.philosophy-image:hover img {
    transform: scale(1.06);
}

/* Disable parallax transform on mobile */
@media (max-width: 900px) {
    .philosophy-image img {
        transform: none !important;
    }
    
    .philosophy-image:hover img {
        transform: scale(1.02);
    }
}

/* -------------------------------------------------
   GALLERY
------------------------------------------------- */

.gallery {
    padding: 6rem 0;
}

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

.gallery-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    min-height: 300px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    color: white;
}

.gallery-item-title {
    font-size: 1rem;
    font-weight: 600;
}

/* Tall / Wide helpers */
.gallery-item.tall {
    grid-row: span 2;
}

.gallery-item.wide {
    grid-column: span 2;
}

/* -------------------------------------------------
   PROCESS
------------------------------------------------- */

.process {
    padding: 6rem 0;
    background: var(--color-light);
}

.process-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: center;
}

.process-content {
    padding: 0 1rem;
}

.process-text p {
    margin-bottom: 1.2rem;
    color: var(--color-muted);
}

.process-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    height: 400px;
}

.process-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* -------------------------------------------------
   CONTACT
------------------------------------------------- */

.contact {
    padding: 6rem 0;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-text {
    margin: 1rem 0 2rem;
}

.contact-info {
    margin-top: 2rem;
}

.contact-link {
    display: block;
    text-decoration: none;
    color: var(--color-accent);
    font-weight: 600;
    margin-top: 0.5rem;
    font-size: 1.1rem;
}

.contact-link:hover {
    color: #a78b63;
}

/* -------------------------------------------------
   FOOTER
------------------------------------------------- */

.footer {
    background: #111;
    color: #eee;
    padding: 2rem 0;
    text-align: center;
}

.footer-container {
    padding: 0 2rem;
}

.footer p {
    font-size: 0.9rem;
    opacity: 0.85;
}

/* -------------------------------------------------
   MOBILE OPTIMIZATION - TABLET
------------------------------------------------- */

@media (max-width: 900px) {
    /* Philosophy section */
    .philosophy-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .philosophy-content {
        margin-right: 0;
    }

    .philosophy-image {
        height: 320px;
    }

    /* Process section */
    .process-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .process-image-wrapper {
        height: 300px;
    }

    .process-content {
        padding: 0;
    }

    /* Gallery - reduce to 2 columns */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .gallery-item {
        min-height: 250px;
    }

    /* Wide items become single column */
    .gallery-item.wide {
        grid-column: span 1;
    }
}

/* -------------------------------------------------
   MOBILE OPTIMIZATION - PHONE
------------------------------------------------- */

@media (max-width: 640px) {
    /* Navigation */
    .nav-container {
        padding: 0 1.5rem;
        flex-wrap: wrap;
    }

    .nav-logo {
        font-size: 1.1rem;
    }

    .nav-links {
        width: 100%;
        margin-top: 0.75rem;
        display: flex;
        justify-content: space-around;
    }

    .nav-links a {
        margin-left: 0;
        font-size: 0.85rem;
    }

    /* Hero */
    .hero {
        height: 70vh;
        padding: 3rem 1.5rem;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

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

    .hero-tagline {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }

    /* Section headings */
    .section-heading {
        font-size: 1.75rem;
    }

    .section-label {
        font-size: 0.8rem;
    }

    /* Services */
    .services {
        padding: 4rem 0;
    }

    .services-container {
        padding: 0 1.5rem;
    }

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

    .service-item {
        padding: 1.5rem;
    }

    .service-title {
        font-size: 1.15rem;
    }

    /* About */
    .about {
        padding: 4rem 0;
    }

    .about-container {
        padding: 0 1.5rem;
    }

    /* Philosophy */
    .philosophy {
        padding: 4rem 0;
    }

    .philosophy-container {
        padding: 0 1.5rem;
    }

    .philosophy-content {
        padding: 2rem 1.5rem;
    }

    .philosophy-image {
        height: 280px;
    }

    /* Gallery */
    .gallery {
        padding: 4rem 0;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        padding: 0 1.5rem;
        gap: 1rem;
    }

    .gallery-item {
        min-height: 280px;
    }

    /* Reset all tall/wide modifiers on mobile */
    .gallery-item.tall {
        grid-row: span 1;
    }

    .gallery-item.wide {
        grid-column: span 1;
    }

    .gallery-item-title {
        font-size: 0.9rem;
    }

    /* Process */
    .process {
        padding: 4rem 0;
    }

    .process-container {
        padding: 0 1.5rem;
        gap: 1.5rem;
    }

    .process-image-wrapper {
        height: 250px;
    }

    /* Contact */
    .contact {
        padding: 4rem 0;
    }

    .contact-container {
        padding: 0 1.5rem;
    }

    .contact-link {
        font-size: 1rem;
    }

    /* Footer */
    .footer p {
        font-size: 0.8rem;
        line-height: 1.5;
    }
}

/* -------------------------------------------------
   EXTRA SMALL DEVICES
------------------------------------------------- */

@media (max-width: 400px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .section-heading {
        font-size: 1.5rem;
    }

    .nav-links a {
        font-size: 0.75rem;
    }

    .gallery-item {
        min-height: 220px;
    }
}
