/* =========================================
   VARIABLES & SETUP
   ========================================= */
   :root {
    --bg-color: #F4F3EF; /* Slightly warmer off-white, boutique feel */
    --text-color: #262626; /* Deep charcoal, softer than pure black */
    --accent-color: #B2915A; /* Muted gold/champagne accent */
    --accent-hover: #9c7f4e;
    --border-color: #E2E0D8;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4, .logo, .footer-logo {
    font-family: var(--font-heading);
    font-weight: 400;
}

h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-family: var(--font-body);
    font-weight: 400;
    color: #4a4a4a;
    margin-bottom: 1.5rem;
    max-width: 90%;
}

h3 {
    font-size: 1.25rem;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    line-height: 1.3;
}

p {
    color: #555;
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 90%;
}

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

/* =========================================
   COMPONENTS
   ========================================= */

/* Buttons */
.btn-primary {
    display: inline-block;
    border: 1px solid var(--accent-color);
    color: var(--text-color);
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: transparent;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--accent-color);
    color: #fff;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background-color: var(--text-color);
    color: #fff;
    padding: 1rem 2rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
}

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

.btn-secondary .arrow {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.btn-secondary:hover .arrow {
    transform: translateX(5px);
}

.learn-more {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-color);
    font-weight: 500;
    margin-top: auto;
    display: inline-block;
}

.learn-more:after {
    content: '';
    display: block;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: width 0.3s;
    margin-top: 4px;
}

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

/* =========================================
   LAYOUT & SECTIONS
   ========================================= */

/* Navbar */
.navbar {
    padding: 2rem 5%;
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(244, 243, 239, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid transparent;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    padding: 1rem 5%;
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    font-size: 1.25rem;
    line-height: 1.1;
    letter-spacing: 1px;
}

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 400;
}

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

.client-portal {
    color: #777;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: 8rem 5% 4rem;
    display: flex;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 4/5;
    background-color: #E2E0D8;
    overflow: hidden;
    position: relative;
    /* subtle border effect matching mockup */
    padding: 1rem;
    border: 1px solid var(--border-color);
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1); /* Matches boutique black & white photography look */
    transition: filter 0.5s ease;
}

.image-placeholder:hover img {
    filter: grayscale(50%) contrast(1.1);
}

/* Services (Flip Cards) */
.services {
    padding: 4rem 5% 8rem;
    max-width: 1400px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    perspective: 1000px; /* Enable 3D space */
}

/* The Flip Container */
.service-card {
    background-color: transparent;
    min-height: 480px; 
    perspective: 1000px;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

/* Do the flip on hover */
.service-card:hover .service-card-inner {
    transform: rotateY(180deg);
}

/* Front and Back standard styling */
.service-card-front, .service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Safari */
    backface-visibility: hidden;
    border: 1px solid var(--border-color);
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    background-color: #fff;
}

/* Front Styling */
.service-card-front .icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--text-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.service-card-front p {
    margin-bottom: 2rem;
    flex-grow: 1;
}

/* Back Styling */
.service-card-back {
    transform: rotateY(180deg);
    background-color: var(--text-color);
    color: #fff;
    border-color: var(--accent-color);
    padding: 2.5rem 2rem;
    overflow-y: auto;
}

.service-card-back h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.service-card-back p {
    color: #dedede;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.service-card-back ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.service-card-back li {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.25rem;
    color: #f4f3ef;
}

.service-card-back li::before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2rem;
    line-height: 1.2;
}

.service-card-back .ideal-for {
    font-size: 0.8rem;
    font-style: italic;
    color: #bbb;
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
}

/* Footer */
.footer {
    padding: 4rem 5%;
    border-top: 1px solid var(--border-color);
    max-width: 1400px;
    margin: 0 auto;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.footer-logo {
    font-size: 1.5rem;
    line-height: 1.1;
    letter-spacing: 1px;
}

.footer-content {
    text-align: right;
}

.footer-social {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

.footer-social span {
    font-size: 0.9rem;
    margin-right: 1rem;
    color: #777;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: #fff;
    font-size: 0.8rem;
}

.footer-social a:hover {
    background-color: var(--text-color);
}

.copyright {
    font-size: 0.8rem;
    color: #777;
}

/* =========================================
   ANIMATIONS
   ========================================= */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

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

/* =========================================
   MEDIA QUERIES
   ========================================= */
@media (max-width: 1024px) {
    .hero-content {
        gap: 2rem;
    }
}

@media (max-width: 860px) {
    .nav-links, #nav-cta {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero {
        padding-top: 8rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 3.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
    
    .footer-content {
        text-align: left;
        width: 100%;
    }
    
    .footer-social {
        justify-content: flex-start;
    }
}
