/* ==========================================================
   SÓ SOFÁ T-63 — Design System v2
   Aesthetic: Luxury Editorial · Warm Ivory & Deep Charcoal
   Fonts: Playfair Display + DM Sans
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=DM+Sans:wght@300;400;500;600&display=swap');

/* --- CSS Variables --- */
:root {
    --ivory: #F5F0E8;
    --ivory-dark: #EDE5D5;
    --cream: #FAF7F2;
    --charcoal: #1C1C1C;
    --charcoal-mid: #3A3A3A;
    --charcoal-soft: #5A5A5A;
    --gold: #B8902A;
    --gold-light: #D4AB4E;
    --gold-pale: #F0E4C4;
    --rust: #C0392B;
    --rust-dark: #96251F;
    --white: #FFFFFF;
    --blue: #2C4393;
    --blue-mid: #3A56B8;
    --blue-pale: #E8EDF8;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', system-ui, sans-serif;

    --max-w: 1200px;
    --pad: 2rem;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);

    --shadow-sm: 0 2px 12px rgba(28, 28, 28, 0.06);
    --shadow-md: 0 8px 32px rgba(28, 28, 28, 0.10);
    --shadow-lg: 0 20px 60px rgba(28, 28, 28, 0.14);
    --radius-sm: 6px;
    --radius-md: 14px;
    --radius-lg: 24px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--charcoal);
    background-color: var(--cream);
    line-height: 1.65;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    line-height: 1.15;
    color: var(--charcoal);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color .25s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--pad);
}

.section-padding {
    padding: 6rem 0;
}

/* Section heading with serif + ornament */
.section-title {
    text-align: center;
    margin-bottom: 4.5rem;
}

.section-title h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--charcoal);
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--gold);
}

.section-title p {
    color: var(--charcoal-soft);
    font-size: 1.05rem;
    margin-top: 1rem;
    letter-spacing: .02em;
}

/* =====================
   HEADER
   ===================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(250, 247, 242, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    border-bottom: 1px solid rgba(184, 144, 42, .15);
    transition: padding .3s var(--ease-out), box-shadow .3s ease;
    padding: 1.1rem 0;
}

.header.scrolled {
    padding: .75rem 0;
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: inline-flex;
    align-items: center;
}

img.site-logo {
    object-fit: contain;
    display: block;
}

img.logo-top {
    width: 130px;
    height: 50px;
}

img.logo-footer {
    width: 104px;
    height: 40px;
}

.nav-menu ul {
    display: flex;
    gap: 2.5rem;
}

.nav-menu a {
    font-family: var(--font-body);
    font-size: .875rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--charcoal-mid);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background: var(--gold);
    transition: width .3s var(--ease-out);
}

.nav-menu a:hover {
    color: var(--charcoal);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background: var(--charcoal);
    border-radius: 2px;
    transition: transform .3s var(--ease-out), opacity .2s ease;
}

/* =====================
   HERO
   ===================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-slider .slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.8s ease-in-out, transform 7s linear;
    transform: scale(1.06);
}

.hero-slider .slide.active {
    opacity: 1;
    transform: scale(1);
}

/* Rich warm overlay — lets image breathe on right side */
.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg,
            rgba(250, 247, 242, 0.97) 0%,
            rgba(196, 216, 240, 0.8) 45%,
            rgba(196, 220, 240, 0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 620px;
}

/* Eyebrow label */
.hero-content::before {
    content: 'GOIÂNIA-GO · DESDE 2014';
    display: block;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .2em;
    color: var(--gold);
    margin-bottom: 1.25rem;
}

.hero h1 {
    font-size: clamp(2.6rem, 5.5vw, 4.5rem);
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 1.25rem;
}

.hero h1 em {
    font-style: italic;
    color: var(--gold);
}

.hero p {
    font-size: 1.1rem;
    color: var(--charcoal-mid);
    margin-bottom: 2.75rem;
    max-width: 480px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* CTA Buttons */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .9rem 2.25rem;
    font-family: var(--font-body);
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--charcoal);
    background: var(--gold-pale);
    border: 1.5px solid var(--gold);
    border-radius: 3px;
    transition: all .35s var(--ease-out);
}

.cta-button:hover {
    background: var(--gold);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(184, 144, 42, .30);
}

.cta-whatsapp {
    background: var(--rust);
    border-color: var(--rust);
    color: var(--white);
}

.cta-whatsapp:hover {
    background: var(--rust-dark);
    border-color: var(--rust-dark);
    box-shadow: 0 10px 28px rgba(192, 57, 43, .35);
}

/* Decorative line-art flourish behind hero text (CSS-only) */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 55%;
    height: 100%;
    background-image:
        radial-gradient(circle at 70% 50%, rgba(184, 144, 42, .07) 0%, transparent 60%),
        repeating-linear-gradient(-45deg,
            transparent,
            transparent 38px,
            rgba(184, 144, 42, .04) 38px,
            rgba(184, 144, 42, .04) 39px);
    z-index: 1;
    pointer-events: none;
}

/* =====================
   SERVICES
   ===================== */
.services {
    background-color: var(--ivory);
    position: relative;
    overflow: hidden;
}

/* Subtle grain/pattern */
.services::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='16' cy='16' r='1' fill='%23B8902A' fill-opacity='0.08'/%3E%3C/svg%3E");
    background-size: 32px 32px;
    pointer-events: none;
}

.services .container {
    position: relative;
    z-index: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 3rem 2.25rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    border: 1px solid rgba(184, 144, 42, .1);
    transition: transform .4s var(--ease-out), box-shadow .4s ease;
    position: relative;
    overflow: hidden;
}

/* Accent top bar */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s var(--ease-out);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.icon-placeholder {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: var(--ivory);
    border-radius: 50%;
    border: 1px solid var(--gold-pale);
}

.service-card h3 {
    font-size: 1.45rem;
    font-weight: 600;
    margin-bottom: .75rem;
    color: var(--charcoal);
}

.service-card p {
    color: var(--charcoal-soft);
}

.service-subtitle {
    font-size: .95rem;
    font-weight: 500;
    color: var(--charcoal-mid) !important;
    margin-bottom: .5rem;
    font-style: italic;
}


.service-details-wrapper {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .5s var(--ease-out), opacity .4s ease;
}

.service-card.expanded .service-details-wrapper {
    max-height: 500px;
    opacity: 1;
    margin-top: 1.5rem;
}

.service-details {
    text-align: left;
    font-size: .9rem;
    color: var(--charcoal-soft);
    display: flex;
    flex-direction: column;
    gap: .75rem;
    border-top: 1px solid var(--ivory-dark);
    padding-top: 1.5rem;
}

.service-details li {
    line-height: 1.6;
}

.service-details li strong {
    font-family: var(--font-display);
    font-size: .85rem;
    color: var(--charcoal);
    display: block;
    margin-bottom: .15rem;
}

/* =====================
   GALLERY
   ===================== */
.gallery {
    background-color: var(--cream);
}

.carousel-wrapper {
    display: flex;
    align-items: center;
    gap: .75rem;
    width: 100%;
}

.gallery-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.25rem;
    padding: .5rem 0 2rem;
    scroll-behavior: smooth;
    flex: 1;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.gallery-carousel::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    flex: 0 0 310px;
    height: 390px;
    scroll-snap-align: center;
    cursor: pointer;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(184, 144, 42, .08);
    transition: box-shadow .35s ease;
}

.gallery-item:hover {
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    .gallery-item {
        flex: 0 0 270px;
        height: 340px;
    }
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease-out);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(28, 28, 28, .82) 0%, transparent 55%);
    opacity: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 1.5rem;
    transition: opacity .3s ease;
}

.gallery-overlay span {
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    transform: translateY(12px);
    transition: transform .35s var(--ease-out);
    line-height: 1.3;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay span {
    transform: translateY(0);
}

/* Carousel buttons */
.carousel-btn {
    background: var(--white);
    color: var(--charcoal);
    border: 1px solid rgba(184, 144, 42, .25);
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: all .25s ease;
    z-index: 5;
}

.carousel-btn:hover {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
    transform: scale(1.08);
}

@media (max-width: 768px) {
    .carousel-btn {
        display: none;
    }
}

/* =====================
   LIGHTBOX
   ===================== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(20, 16, 10, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: zoomIn .3s var(--ease-out);
}

@keyframes zoomIn {
    from {
        transform: scale(.93);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--radius-sm);
    object-fit: contain;
}

.lightbox-caption {
    color: rgba(245, 240, 232, .85);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-style: italic;
    margin-top: 1rem;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: rgba(245, 240, 232, .08);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(245, 240, 232, .2);
    color: var(--ivory);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all .25s ease;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: var(--rust);
    border-color: var(--rust);
    transform: rotate(90deg);
}

/* =====================
   FOOTER
   ===================== */
.footer {
    background: var(--charcoal);
    color: rgba(245, 240, 232, .45);
    padding-top: 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    margin-bottom: 3.5rem;
    padding-bottom: 3.5rem;
    border-bottom: 1px solid rgba(245, 240, 232, .08);
}

.footer-info p {
    margin-top: 1.25rem;
    font-size: .9rem;
    line-height: 1.75;
    max-width: 280px;
}

.footer h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ivory);
    margin-bottom: 1.5rem;
}

/* Override inline styles in footer contact items */
.contact-list li {
    display: flex !important;
    align-items: center;
    gap: .6rem;
    margin-bottom: .9rem !important;
}

.contact-list a,
.contact-list span {
    font-size: .9rem;
    color: rgba(245, 240, 232, .65) !important;
    font-weight: 400 !important;
    transition: color .25s ease;
}

.contact-list a:hover {
    color: var(--gold-light) !important;
}

/* Make contact SVGs use gold */
.contact-list svg {
    fill: var(--gold) !important;
    flex-shrink: 0;
}

.social-icons {
    display: flex;
    gap: .75rem !important;
}

.social-icons a {
    color: rgba(245, 240, 232, .5) !important;
    width: 40px !important;
    height: 40px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(245, 240, 232, .12);
    transition: all .25s ease;
}

.social-icons a:hover {
    color: var(--gold-light) !important;
    border-color: var(--gold);
    background: rgba(184, 144, 42, .12);
    transform: translateY(-3px);
}

.social-icons a svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    text-align: center;
    padding: 1.75rem 0;
    color: rgba(245, 240, 232, .35);
    font-size: .8rem;
    letter-spacing: .04em;
}

.footer-bottom a {
    color: inherit;
    transition: color .2s ease;
}

.footer-bottom a:hover {
    color: var(--gold-light);
}

/* =====================
   SCROLL REVEAL
   ===================== */
[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}

[data-reveal].visible {
    opacity: 1;
    transform: translateY(0);
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 992px) {
    .hero h1 {
        font-size: clamp(2.2rem, 5vw, 3.2rem);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--cream);
        padding: 3rem 2rem;
        transition: left .45s var(--ease-out);
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }

    .nav-menu a {
        font-size: 1.25rem;
        letter-spacing: .12em;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-padding {
        padding: 4.5rem 0;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.9rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .cta-button {
        text-align: center;
        justify-content: center;
    }
}

/* ==========================================================
   BRAND BLUE ACCENTS — reintroducing #2C4393 identity
   ========================================================== */

/* Section titles: blue instead of charcoal */
.section-title h2 {
    color: var(--blue);
}

/* Underline bar under section titles: blue → gold gradient */
.section-title h2::after {
    background: linear-gradient(90deg, var(--blue), var(--gold));
    width: 50px;
}

/* Service card headings */
.service-card h3 {
    color: var(--blue);
}

/* Service card: blue top-bar accent (overrides gold gradient) */
.service-card::before {
    background: linear-gradient(90deg, var(--blue), var(--blue-mid));
}

/* Service details strong labels */
.service-details li strong {
    color: var(--blue);
}


/* Hero h1: blue for the non-italic part */
.hero h1 {
    color: var(--blue);
}

/* Hero eyebrow label stays gold — no change needed */

/* Nav hover: blue */
.nav-menu a:hover {
    color: var(--blue);
}

/* Nav active underline: blue */
.nav-menu a::after {
    background: var(--blue);
}

/* CTA primary button: blue fill on hover for the gold button */
.cta-button:not(.cta-whatsapp):hover {
    background: var(--blue);
    border-color: var(--blue);
    box-shadow: 0 10px 28px rgba(44, 67, 147, .28);
}

/* Carousel buttons: blue on hover */
.carousel-btn:hover {
    background: var(--blue);
    border-color: var(--blue);
}

/* Gallery overlay gradient: blue-toned dark */
.gallery-overlay {
    background: linear-gradient(to top, rgba(28, 38, 80, .85) 0%, transparent 55%);
}

/* Footer contact icons: blue */
.contact-list svg {
    fill: var(--blue) !important;
}

/* Footer social hover: blue tint */
.social-icons a:hover {
    color: var(--blue-mid) !important;
    border-color: var(--blue);
    background: rgba(44, 67, 147, .12);
}

/* Lightbox close hover: blue instead of rust */
.lightbox-close:hover {
    background: var(--blue);
    border-color: var(--blue);
}

/* btn-details — gold (restored) */
.btn-details {
    margin-top: 1.25rem;
    padding: .65rem 1.5rem;
    background: transparent;
    color: var(--gold);
    border: 1.5px solid var(--gold);
    border-radius: 3px;
    font-family: var(--font-body);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .25s ease;
}

.btn-details:hover {
    background: var(--gold);
    color: var(--white);
}

/* Admin access button — footer */
.admin-access-btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-top: 1.25rem;
    padding: .45rem 1rem;
    font-family: var(--font-body);
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(245, 240, 232, 0.30);
    border: 1px solid rgba(245, 240, 232, 0.10);
    border-radius: 3px;
    transition: all .25s ease;
    text-decoration: none;
}

.admin-access-btn svg {
    opacity: .5;
    transition: opacity .25s ease;
    flex-shrink: 0;
}

.admin-access-btn:hover {
    color: rgba(245, 240, 232, 0.70);
    border-color: rgba(245, 240, 232, 0.25);
    background: rgba(255, 255, 255, 0.05);
}

.admin-access-btn:hover svg {
    opacity: 1;
}