/* Global Styles - Ana Braga Space (Stitch Design) */

:root {
    /* Color Palette */
    --color-primary: #d4af37;
    --color-primary-hover: #b5952f;
    --color-bg-light: #f9f7f2;
    --color-bg-dark: #1c180d;
    --color-surface-light: #ffffff;
    --color-surface-dark: #2c281d;
    --color-text-main: #2d2a26;
    --color-text-muted: #8a867b;
    --color-accent-nude: #ede8dc;
    --color-footer-bg: #f9f7f2;
    --color-white: #ffffff;
    --color-black: #000000;

    /* Typography */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Manrope', sans-serif;

    /* Spacing & Layout */
    --max-width-container: 1200px;
    --header-height: 80px;
    --section-padding: 80px;
    --border-radius: 12px;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg-light);
    color: var(--color-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

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

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--max-width-container);
    margin: 0 auto;
    padding: 0 1rem;
}

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

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

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

.font-serif {
    font-family: var(--font-serif);
}

.uppercase {
    text-transform: uppercase;
}

.tracking-wider {
    letter-spacing: 0.1em;
}

.italic {
    font-style: italic;
}

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

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

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

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: var(--color-bg-light);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    height: 80px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
}

/* Zone 1: Left Nav (Desktop) */
.header-nav {
    display: none;
}

.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-main);
    background: none;
    border: none;
    padding: 0;
    width: 40px;
    height: 40px;
}

@media (min-width: 1024px) {
    .menu-toggle {
        display: none;
    }

    .header-nav {
        display: flex;
        gap: 32px;
        /* 28-36px gap */
    }

    .header-nav a {
        font-family: var(--font-serif);
        font-size: 0.875rem;
        text-transform: uppercase;
        letter-spacing: 0.15em;
        color: var(--color-text-main);
        font-weight: 500;
        position: relative;
        padding-bottom: 5px;
        transition: color 0.3s ease;
    }

    /* Hover Animation (Underline left-to-right) */
    .header-nav a::after {
        content: '';
        position: absolute;
        width: 0;
        height: 1px;
        bottom: 0;
        left: 0;
        background-color: var(--color-primary);
        transition: width 0.3s ease;
    }

    .header-nav a:hover,
    .header-nav a.active {
        color: var(--color-primary);
    }

    .header-nav a:hover::after,
    .header-nav a.active::after {
        width: 100%;
    }
}

/* Zone 2: Logo (Center) */
.logo {
    text-align: center;
    display: flex;
    justify-content: center;
}

.logo span {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: -0.05em;
    color: var(--color-text-main);
}

/* Zone 3: Right Actions */
.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5rem;
}

.nav-item {
    font-family: var(--font-serif);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-main);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
    display: none;
    /* Hidden on mobile */
}

@media (min-width: 1024px) {
    .nav-item {
        display: block;
    }

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

    .nav-item::after {
        content: '';
        position: absolute;
        width: 0;
        height: 1px;
        bottom: 0;
        left: 0;
        background-color: var(--color-primary);
        transition: width 0.3s ease;
    }

    .nav-item:hover::after,
    .nav-item.active::after {
        width: 100%;
    }
}

.wa-icon {
    color: var(--color-text-main);
    font-size: 1.25rem;
    transition: color 0.3s ease;
    display: flex;
    /* Ensure alignment */
    align-items: center;
}

.wa-icon:hover {
    color: #25D366;
}

/* Language Selector (Desktop) */
.lang-selector {
    display: none;
    /* Hidden on mobile, inside panel instead */
    gap: 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-family: var(--font-sans);
    letter-spacing: 0.05em;
    align-items: center;
    margin-left: 0.5rem;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    padding-left: 1rem;
}

@media (min-width: 1024px) {
    .lang-selector {
        display: flex;
    }
}

.lang-selector a {
    opacity: 0.5;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.lang-selector a:hover,
.lang-selector a.active {
    opacity: 1;
    color: var(--color-text-main);
    font-weight: 600;
}

/* Mobile Adjustments (< 1024px) */
@media (max-width: 1023px) {
    .header-inner {
        display: grid;
        grid-template-columns: 40px auto 40px;
        /* Fixed width for toggle/actions to center logo */
        justify-content: space-between;
    }

    .header-actions {
        gap: 1rem;
    }

    .logo span {
        font-size: 1.75rem;
    }
}

/* Mobile Menu Panel (Slide-in) */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 100;
    /* Above header */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(2px);
}

.mobile-nav-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 320px;
    height: 100%;
    background-color: var(--color-bg-light);
    z-index: 101;
    /* Above overlay */
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    /* Ease out quart */
    padding: 2rem;
    display: flex;
    flex-direction: column;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

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

.close-menu {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text-main);
    cursor: pointer;
    margin-bottom: 3rem;
    padding: 0.5rem;
}

.mobile-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mobile-links a {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: var(--color-text-main);
    text-transform: capitalize;
    /* Or uppercase based on preference */
    display: block;
    transition: color 0.3s ease;
}

.mobile-links a:hover,
.mobile-links a.active {
    color: var(--color-primary);
}

.mobile-lang {
    margin-top: auto;
    display: flex;
    gap: 1.5rem;
    font-size: 1rem;
    text-transform: uppercase;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-lang a {
    color: var(--color-text-muted);
    font-weight: 500;
}

.mobile-lang a.active {
    color: var(--color-primary);
}

/* Hero Section */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    /* Increased gap for better separation */
    align-items: center;
    padding: 6rem 0;
    /* Generous vertical padding */
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
        padding: 4rem 0;
    }

    .hero-text {
        order: 2;
    }

    .hero-image {
        order: 1;
    }
}

.hero-subtitle {
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    /* Wider tracking */
    text-transform: uppercase;
    display: block;
    margin-bottom: 1.5rem;
    font-family: var(--font-sans);
    /* Use sans-serif for subtitle contrast */
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    /* Larger */
    font-weight: 500;
    line-height: 1.15;
    margin-bottom: 2rem;
    color: var(--color-text-main);
}

@media (min-width: 1200px) {
    .hero-title {
        font-size: 4.5rem;
        /* Even larger on wide screens */
    }
}

.hero-desc {
    color: var(--color-text-muted);
    font-size: 1.25rem;
    /* Larger body text */
    line-height: 1.8;
    margin-bottom: 3rem;
    max-width: 550px;
}

@media (max-width: 992px) {
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
}

.hero-image-wrapper {
    position: relative;
    border-radius: 2rem;
    /* Large rounded corners (approx rounded-2xl) */
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    /* Soft, deep shadow */
    aspect-ratio: 4/3;
    /* Controlled proportion */
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Hero specific button tweak */
.hero-text .btn {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    box-shadow: 0 10px 20px -5px rgba(212, 175, 55, 0.4);
    /* Stronger gold shadow */
}

.hero-text .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -5px rgba(212, 175, 55, 0.5);
}

/* Buttons (Global - kept for consistency but refined) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    /* Pill shape for elegance */
    font-weight: 600;
    letter-spacing: 0.05em;
    font-family: var(--font-sans);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.875rem;
}

.btn:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card {
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-accent-nude);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.card-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary);
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-main);
}

.card-desc {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.card-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-price {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-main);
}

.card-link {
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

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

/* Experience Section */
.experience-box {
    background-color: rgba(237, 232, 220, 0.3);
    /* accent-nude with opacity */
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

@media (min-width: 768px) {
    .experience-box {
        flex-direction: row;
        text-align: left;
        padding: 4rem;
    }
}

.icon-circle {
    width: 5rem;
    height: 5rem;
    background-color: var(--color-surface-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

/* Footer */
.site-footer {
    background-color: var(--color-footer-bg);
    border-top: 1px solid var(--color-accent-nude);
    padding: var(--section-padding) 0;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-brand h4 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-social-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--color-white);
    border: 1px solid var(--color-accent-nude);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.footer-social-link:hover .footer-social-icon {
    border-color: rgba(212, 175, 55, 0.3);
    color: var(--color-primary);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Sticky WhatsApp Mobile */
.sticky-whatsapp-mobile {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 40;
    pointer-events: none;
}

.whatsapp-btn-mobile {
    pointer-events: auto;
    background-color: #25D366;
    color: white;
    font-weight: 700;
    padding: 1rem;
    border-radius: 9999px;
    box-shadow: 0 10px 15px -3px rgba(37, 211, 102, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 28rem;
    margin: 0 auto;
    transition: transform 0.2s;
}

.whatsapp-btn-mobile:active {
    transform: scale(0.98);
}

@media (min-width: 1024px) {
    .sticky-whatsapp-mobile {
        display: none;
    }
}