/* =========================================================
   Beautiful Bathrooms — Main Stylesheet
   Palette: Warm Natural (beige, stone, timber)
   #f5ede0  background / beige
   #e8d5bf  beige mid
   #8b6f47  accent / warm brown
   #5c4230  dark accent
   #3d2b1a  text dark
   ========================================================= */

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

:root {
    --bg: #f9f4ee;
    --bg-alt: #f0e6d6;
    --beige: #e8d5bf;
    --accent: #8b6f47;
    --accent-dk: #5c4230;
    --text: #3d2b1a;
    --text-mid: #6b5240;
    --text-lt: #a88f77;
    --white: #ffffff;
    --radius: 14px;
    --shadow: 0 8px 32px rgba(61, 43, 26, .10);
    --shadow-lg: 0 20px 60px rgba(61, 43, 26, .16);
    --font-head: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --nav-h: 90px;
    --transition: .35s cubic-bezier(.4, 0, .2, 1);
}

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

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
}

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* ---- TYPOGRAPHY ------------------------------------------ */
h1,
h2,
h3,
h4 {
    font-family: var(--font-head);
    line-height: 1.2;
    color: var(--text);
}

h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 600;
}

h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

p {
    font-size: 1rem;
    color: var(--text-mid);
}

em {
    font-style: italic;
    color: var(--accent);
}

/* ---- UTILS ----------------------------------------------- */
.container {
    width: min(1180px, 90%);
    margin-inline: auto;
}

.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-label {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-sub {
    max-width: 560px;
    margin: 16px auto 0;
    font-size: 1.05rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: 50px;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    font-family: var(--font-body);
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent-dk);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 111, 71, .35);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, .6);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, .12);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
    border-radius: var(--radius);
}

/* ---- ANIMATIONS ------------------------------------------ */
.fade-in,
.fade-up {
    opacity: 0;
    transition: opacity .7s ease, transform .7s ease;
}

.fade-in {
    transform: scale(.97);
}

.fade-up {
    transform: translateY(40px);
}

.fade-in.visible,
.fade-up.visible {
    opacity: 1;
    transform: none;
}

/* stagger children */
.services-grid .service-card:nth-child(2) {
    transition-delay: .1s;
}

.services-grid .service-card:nth-child(3) {
    transition-delay: .2s;
}

.services-grid .service-card:nth-child(4) {
    transition-delay: .3s;
}

.services-grid .service-card:nth-child(5) {
    transition-delay: .4s;
}

.services-grid .service-card:nth-child(6) {
    transition-delay: .5s;
}

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    height: var(--nav-h);
    background: rgba(249, 244, 238, .92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    border-bottom-color: var(--beige);
    box-shadow: 0 4px 20px rgba(61, 43, 26, .08);
}

.nav-container {
    width: min(1180px, 92%);
    margin-inline: auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-family: var(--font-head);
    font-size: 1.25rem;
    color: var(--text);
}

.logo-text strong {
    color: var(--accent);
}

.nav-logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    font-size: .9rem;
    font-weight: 500;
    color: var(--text-mid);
    transition: color var(--transition);
}

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

.btn-call {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: .85rem !important;
    font-weight: 600 !important;
    transition: var(--transition);
}

.btn-call:hover {
    background: var(--accent-dk) !important;
    transform: translateY(-1px);
}

/* hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 640px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('images/hero.jpg');
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform .6s ease;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(30, 18, 10, .62) 0%, rgba(61, 43, 26, .45) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 0 24px;
    max-width: 780px;
}

.hero-label {
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .7);
    margin-bottom: 20px;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 22px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}

.hero h1 em {
    color: #e8c99a;
}

.hero-sub {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, .82);
    margin-bottom: 36px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-badges {
    margin-top: 40px;
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    font-size: .8rem;
    color: rgba(255, 255, 255, .65);
    letter-spacing: .08em;
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, .6);
    animation: bounce 2s infinite;
    z-index: 2;
    transition: color var(--transition);
}

.hero-scroll:hover {
    color: var(--white);
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

/* =========================================================
   SERVICES
   ========================================================= */
.services {
    background: var(--bg-alt);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 28px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--accent);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--bg-alt);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    padding: 12px;
    color: var(--accent);
}

.service-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--accent);
}

.service-card h3 {
    margin-bottom: 10px;
}

.service-card p {
    font-size: .93rem;
}

/* =========================================================
   GALLERY
   ========================================================= */
.gallery {
    background: var(--bg);
}

.gallery-grid {
    columns: 3;
    column-gap: 16px;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 16px;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .5s ease, opacity .3s ease;
    object-fit: unset;
}

.gallery-item:hover img {
    transform: scale(1.03);
    opacity: .92;
}

.gallery-item.large {
    /* no longer used — kept for safety */
}

.gallery-overlay {
    display: none;
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
    background: var(--bg-alt);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: start;
}

/* form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-group.full {
    grid-column: 1 / -1;
}

label {
    font-size: .82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-mid);
}

input,
select,
textarea {
    padding: 13px 16px;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: .95rem;
    color: var(--text);
    background: var(--white);
    border: 1.5px solid var(--beige);
    transition: border-color var(--transition), box-shadow var(--transition);
    appearance: none;
}

input::placeholder,
textarea::placeholder {
    color: var(--text-lt);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(139, 111, 71, .12);
}

textarea {
    resize: vertical;
    min-height: 130px;
}

select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238b6f47' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.form-note {
    font-size: .8rem;
    color: var(--text-lt);
    text-align: center;
}

.form-success {
    display: none;
    align-items: center;
    gap: 10px;
    justify-content: center;
    padding: 16px;
    background: #eef7f0;
    border-radius: var(--radius);
    color: #2d7a47;
    font-weight: 600;
    border: 1.5px solid #b4dfc3;
}

.form-success.visible {
    display: flex;
}

/* info aside */
.info-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.info-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: var(--bg-alt);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px;
    color: var(--accent);
}

.info-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--accent);
}

.info-item strong {
    display: block;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-lt);
    margin-bottom: 4px;
}

.info-item a,
.info-item span {
    font-size: .95rem;
    color: var(--text);
    font-weight: 500;
}

.info-item a:hover {
    color: var(--accent);
}

.map-embed {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
    background: var(--text);
    color: rgba(255, 255, 255, .75);
    padding: 72px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer-brand .logo-text {
    font-size: 1.4rem;
    color: var(--white);
    display: block;
    margin-bottom: 14px;
}

.footer-brand .logo-text strong {
    color: #e8c99a;
}

.footer-logo-img {
    height: 90px;
    width: auto;
    object-fit: contain;
    margin-bottom: 14px;
    display: block;
}

.footer-brand p {
    font-size: .9rem;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links h4 {
    font-family: var(--font-head);
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 8px;
}

.footer-links a {
    font-size: .9rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: #e8c99a;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: .78rem;
    color: rgba(255, 255, 255, .4);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-h: 80px;
    }

    .section {
        padding: 72px 0;
    }

    /* nav mobile */
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: var(--nav-h);
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 20px 0;
        transform: translateY(-110%);
        opacity: 0;
        transition: var(--transition);
        box-shadow: 0 12px 32px rgba(61, 43, 26, .12);
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 14px 24px;
        border-bottom: 1px solid var(--beige);
    }

    .btn-call {
        margin: 12px 24px;
        border-radius: 50px !important;
        width: calc(100% - 48px);
        justify-content: center;
    }

    /* gallery */
    .gallery-grid {
        columns: 2;
    }

    .gallery-item.large {
        /* no longer used */
    }

    /* form */
    .form-row {
        grid-template-columns: 1fr;
    }

    /* footer */
    .footer-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        columns: 1;
    }

    .gallery-item.large {
        /* no longer used */
    }

    .hero-badges {
        gap: 12px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}