:root {
    --primary: #4A3A31;
    /* Rich dark brown */
    --accent: #B28B6A;
    /* Warm taupe for buttons */
    --accent-hover: #987455;
    --bg-main: #FAFAFA;
    /* Off white */
    --bg-alt: #F2EFEA;
    /* Soft sand beige */
    --text-main: #333333;
    --text-muted: #666666;
    --white: #ffffff;
    /* Updated CSS Variables in :root to support the logo background */
    --logo-bg: #F4EFEA;
    /* Cream base color */
    --glass-bg: rgba(244, 239, 234, 0.95);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    color: var(--primary);
}

p {
    color: var(--text-muted);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 5vw, 2rem);
}

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

@media (min-width: 768px) {
    .grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

@media (min-width: 1024px) {
    .grid {
        gap: 5rem;
    }
}

/* Navbar */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(242, 239, 234, 0.85);
    /* Semi-transparent version of --bg-alt */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

#navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 65px;
    /* Reduced from 80px */
    padding-top: 0.5rem;
    /* Reduced from 1rem */
    padding-bottom: 0.5rem;
    /* Reduced from 1rem */
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    /* Increased from 2rem */
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -2px;
    /* Tighter for a more "mark" feel */
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    /* Subtle depth */
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.8rem;
    }
}

.logo-text:hover {
    color: var(--accent);
    transform: scale(1.05);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: var(--transition);
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent);
    transition: var(--transition);
}

nav a:hover,
nav a:focus {
    color: var(--accent);
}

nav a:hover::after,
nav a:focus::after {
    width: 100%;
}

/* Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
    transform-origin: left;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--bg-alt);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        z-index: 1000;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }

    nav a {
        font-size: 1.1rem;
    }

    #navbar .container {
        flex-direction: row;
        /* Match desktop layout for header */
        justify-content: space-between;
    }
}

/* Hero */
.hero {
    height: 100vh;
    min-height: 500px;
    background: url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?q=80&w=2071&auto=format&fit=crop') no-repeat center center/cover;
    display: flex;
    align-items: center;
    position: relative;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(40, 32, 28, 0.4), rgba(40, 32, 28, 0.8));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding-top: clamp(60px, 15vh, 120px);
    color: var(--white);
}

.hero h1 {
    font-size: clamp(2.2rem, 8vw, 4.5rem);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    text-indent: 2px;
    color: var(--white);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(0.75rem, 2vw, 1.1rem);
    text-transform: uppercase;
    letter-spacing: clamp(2px, 1vw, 4px);
    text-indent: clamp(2px, 1vw, 4px);
    margin-bottom: 2rem;
    font-weight: 500;
    color: var(--white);
    opacity: 0.9;
    text-align: center;
    width: 100%;
    margin-inline: auto;
}

@media (min-width: 600px) {
    .hero h1 {
        white-space: nowrap;
    }

    .hero-subtitle {
        white-space: nowrap;
        max-width: fit-content;
    }
}

@media (max-width: 599px) {
    .hero-subtitle {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .subtitle-separator {
        display: none;
    }
}

.subtitle-separator {
    color: var(--accent);
    margin: 0 1rem;
    font-weight: 300;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.15rem);
    margin-bottom: 2.5rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin-inline: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: 'Montserrat', sans-serif;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(178, 139, 106, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(178, 139, 106, 0.5);
    background: var(--accent-hover);
    color: var(--white);
}

.btn-block {
    width: 100%;
    padding: 1.2rem;
    font-size: 1rem;
    margin-top: 1rem;
}

/* Sections */
section {
    padding: clamp(4rem, 10vw, 8rem) 0;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    position: relative;
    color: var(--primary);
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    line-height: 1.6;
}

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

.text-center .subtitle {
    margin-inline: auto;
}

/* About Me */
.about {
    background-color: var(--bg-main);
}

.about-text p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    aspect-ratio: 4/5;
}

.about-image::after {
    content: '';
    position: absolute;
    inset: -20px;
    border: 1px solid var(--accent);
    border-radius: 28px;
    z-index: -1;
    pointer-events: none;
}

@media (max-width: 768px) {
    .about-image::after {
        display: none;
    }

    .about-image img {
        aspect-ratio: auto;
    }

    .about-text {
        order: 2;
    }

    .about-image {
        order: 1;
    }
}

/* Services */
.services {
    background-color: var(--bg-alt);
}

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

.service-card {
    background: var(--white);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: left;
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(178, 139, 106, 0.2);
}

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

.service-card ul {
    list-style: none;
    flex-grow: 1;
}

.service-card li {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
}

.service-card li::before {
    content: '•';
    color: var(--accent);
    font-size: 1.5rem;
    margin-right: 0.8rem;
    line-height: 0.8;
}

/* Contact Section */
.contact {
    background-color: var(--primary);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.contact .section-title {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.contact .subtitle {
    color: rgba(255, 255, 255, 0.7);
}

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

@media (max-width: 992px) {
    .contact-content-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.05);
    padding: clamp(1.2rem, 4vw, 1.5rem) clamp(1.2rem, 4vw, 2rem);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: clamp(1rem, 3vw, 1.5rem);
    transition: var(--transition);
    text-decoration: none;
    /* For link version */
    color: inherit;
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(8px);
    border-color: rgba(255, 255, 255, 0.2);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.contact-card-text {
    flex: 1;
    min-width: 0;
}

.contact-card-text h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
    color: rgba(255, 255, 255, 0.6);
}

.contact-card-text p {
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
    color: var(--white);
    overflow-wrap: break-word;
    word-break: break-all;
}

/* Modern Form */
.contact-form-wrapper {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
}

@media (max-width: 600px) {
    .contact-form-wrapper {
        padding: 1.5rem;
    }
}

.modern-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 600px) {
    .modern-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

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

.modern-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-form input,
.modern-form textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    background: var(--bg-main);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-main);
    transition: var(--transition);
}

.modern-form input::placeholder,
.modern-form textarea::placeholder {
    color: #a0aec0;
}

.modern-form input:focus,
.modern-form textarea:focus {
    outline: none;
    background: var(--white);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(178, 139, 106, 0.2);
}

/* Footer */
footer {
    padding: 2rem 0;
    background: var(--primary);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    footer {
        padding-bottom: 6rem;
    }
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-socials a {
    color: var(--white);
    opacity: 0.7;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-socials a:hover {
    color: var(--accent);
    opacity: 1;
    transform: translateY(-3px);
}

.footer-credit {
    margin-top: 0.8rem;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    opacity: 0.7;
}

.footer-credit a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

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

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 9999;
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
    background-color: #20ba5a;
}

.whatsapp-float svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
}