:root {
    /* Colors from Brand Guide */
    --color-primary: #a2583b;
    /* Bricky */
    --color-navy: #303d4d;
    --color-sandy: #d9a478;
    --color-cream: #f5f0ed;
    --color-white: #FEFEFD;
    --color-light-gray: #F8F5F3;
    --text-dark: #141A20;
    --text-medium: #222B37;
    --text-light: #F8F5F3;

    /* Typography */
    --font-heading: 'ExcentraPro', 'Playfair Display', serif;
    --font-body: 'DM Sans', 'Montserrat', sans-serif;

    /* Spacing */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Transitions */
    --transition-smooth: all 0.3s ease;
}

@font-face {
    font-family: 'ExcentraPro';
    src: url('../brand/fonts/ExcentraPro-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'ExcentraPro';
    src: url('../brand/fonts/ExcentraPro-LightItalic.otf') format('opentype');
    font-weight: 300;
    font-style: italic;
}

@font-face {
    font-family: 'DM Sans';
    src: url('../brand/fonts/DMSans-VariableFont_opsz,wght.ttf') format('truetype-variations');
    font-weight: 100 900;
    font-style: normal;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--color-cream);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 300;
    line-height: 1.2;
    color: var(--color-navy);
}

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

.text-navy {
    color: var(--color-navy);
}

.text-cream {
    color: var(--color-cream);
}

.italic-accent {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--color-primary);
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

/* Layout Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-xl) 0;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    border: 1px solid var(--color-primary);
    border-radius: 25px;
    cursor: pointer;
}

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

.btn-outline {
    background-color: transparent;
    color: var(--color-navy);
    border: 1px solid var(--color-navy);
    padding: 12px 32px;
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-radius: 25px;
}

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

/* Header */
header {
    padding: var(--spacing-md) 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background-color: transparent;
    transition: var(--transition-smooth);
}

header.scrolled {
    background-color: rgba(245, 240, 237, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    backdrop-filter: blur(10px);
}

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

.logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-navy);
    font-weight: 500;
}

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

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

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
    max-width: 500px;
}

.hero-image {
    flex: 1;
}

.hero-image img {
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(48, 61, 77, 0.3);
}

/* About Section */
.about-container {
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-direction: row-reverse;
}

.about-text {
    flex: 1;
}

.about-image-placeholder {
    flex: 1;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.about-image-placeholder img {
    height: 100%;
    width: auto;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(48, 61, 77, 0.3);
}

.signet-decoration {
    width: 40px;
    opacity: 0.8;
    margin-top: 1rem;
}

/* Portfolio Carousel */
.portfolio-carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.portfolio-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 2rem;
    padding: 2rem 0;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.portfolio-carousel::-webkit-scrollbar {
    display: none;
}

.portfolio-item {
    flex: 0 0 300px;
    /* Width of each card */
    scroll-snap-align: center;
    cursor: pointer;
}

.portfolio-card {
    background: white;
    height: 400px;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.portfolio-img-container {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
}

.portfolio-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: var(--color-sandy);
}

.portfolio-card p {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: var(--color-white);
    padding: 2rem 1rem 1rem 1rem;
    margin: 0;
    z-index: 1;
}

.carousel-btn {
    background: transparent;
    border: 1px solid var(--color-navy);
    color: var(--color-navy);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.carousel-btn:hover {
    background: var(--color-navy);
    color: var(--color-white);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

/* Portfolio Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#modal-current-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.close-modal {
    color: var(--color-white);
    position: fixed;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 1001;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.close-modal:hover {
    background: rgba(162, 88, 59, 0.8);
}

.modal-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: var(--color-white);
    border: none;
    font-size: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-nav:hover {
    background: rgba(162, 88, 59, 0.8);
}

.modal-nav.prev-image {
    left: 2rem;
}

.modal-nav.next-image {
    right: 2rem;
}

.modal-credits-overlay {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background: rgba(0, 0, 0, 0.7);
    padding: 1rem 1.5rem;
    border-radius: 4px;
    z-index: 1001;
}

.modal-credits-overlay p {
    color: var(--color-white);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

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

.service-card {
    padding: 2.5rem 2rem;
    border: 1px solid var(--color-sandy);
    text-align: center;
    transition: var(--transition-smooth);
    background-color: var(--color-white);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(48, 61, 77, 0.2);
    border-color: var(--color-primary);
}

.icon-wrapper {
    height: 60px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-wrapper img {
    height: 100%;
    width: auto;
    opacity: 0.8;
}

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

.service-card p {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-medium);
}

.price {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    display: block;
    color: var(--color-navy);
}

/* Premium Contact Section */
.contact-section {
    background-color: var(--color-cream);
    color: var(--color-navy);
    padding: 6rem 0 3rem 0;
    /* More top padding */
    border-top: 1px solid rgba(162, 88, 59, 0.1);
    /* Subtle bricky border */
    text-align: center;
    /* Center everything */
}

.contact-content-premium {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-intro {
    font-size: 1.25rem;
    margin-bottom: 4rem;
    line-height: 1.5;
    color: var(--text-medium);
}

.contact-grid-premium {
    display: flex;
    justify-content: center;
    align-items: center;
    /* Aligns separators vertically */
    gap: 2rem;
    margin-bottom: 5rem;
    flex-wrap: wrap;
    /* Wraps on mobile */
}

.contact-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 200px;
}

.contact-separator {
    width: 1px;
    height: 40px;
    background-color: var(--color-primary);
    opacity: 0.3;
}

.premium-label {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--color-primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.premium-value {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-navy);
    letter-spacing: 0.5px;
}

.link-hover {
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

.link-hover:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.footer-brand {
    margin-bottom: 3rem;
}

.footer-logo-premium {
    max-width: 200px;
    /* Larger logo */
    margin: 0 auto;
}

.footer-bottom-premium {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 2rem;
    font-size: 0.8rem;
    color: var(--text-medium);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Mobile Responsive Tweaks for Contact */
@media (max-width: 768px) {
    .contact-grid-premium {
        flex-direction: column;
        gap: 3rem;
    }

    .contact-separator {
        width: 40px;
        height: 1px;
        /* Horizontal separator on mobile */
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .section {
        padding: var(--spacing-lg) 0;
    }

    .hero-container {
        flex-direction: column-reverse;
        gap: 2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .about-container {
        flex-direction: column;
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 101;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 70%;
        background-color: var(--color-cream);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.05);
        padding: 2rem;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .portfolio-carousel-container {
        padding: 0 10px;
    }

    .carousel-btn {
        display: none;
        /* Hide buttons on mobile, rely on swipe */
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 2rem;
    }
}

/* --- Animations --- */

/* Base class for elements to animate */
.reveal-text,
.reveal-image,
.reveal-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
    will-change: opacity, transform;
}

/* Active state */
.reveal-text.active,
.reveal-image.active,
.reveal-card.active {
    opacity: 1;
    transform: translateY(0);
}

/* Specific Delays */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* Image Scale Effect Override */
.reveal-image {
    transform: scale(0.95);
}

.reveal-image.active {
    transform: scale(1);
    opacity: 1;
}

/* Button Pulse Animation */
@keyframes pulse-subtle {
    0% {
        box-shadow: 0 0 0 0 rgba(162, 88, 59, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(162, 88, 59, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(162, 88, 59, 0);
    }
}

.btn:hover {
    animation: pulse-subtle 2s infinite;
}