:root {
    --accent: #3a4839ff;
    --primary-text: #352718ff;
    --primary-font: "Quicksand", sans-serif;
    --secondary-font: "Dancing Script", cursive;
}

/* General Styles */
body {
    font-family: var(--primary-font);
    color: var(--primary-text);
}

.background {
    min-height: 100svh;
    background-image: url(../images/background.jpg);
    background-size: cover;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

/* Card fills the screen with a constant 20px gap on every side: it
   grows to at least the available height (flex-grow) but is also free
   to grow taller than the screen for long pages, so the page itself
   scrolls as one normal unit — no hidden/internal scroll areas. */
.wrapper {
    width: 100%;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.52);
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .14);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.55);
}


.custom-btn {
    background: var(--accent);
    color: #fff;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, .25);
    box-shadow: 0 14px 30px rgba(149, 62, 30, .18);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
    white-space: normal;
    word-break: break-word;
}

.custom-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(149, 62, 30, .24);
    background: rgb(40, 50, 39);
    color: #fff;
}

.custom-btn-light {
    background: #ffffff8c;
    border: 1px solid rgba(53, 39, 24, .18);
    color: var(--text);
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 600;
    transition: transform .18s ease, background .18s ease;
    white-space: normal;
    word-break: break-word;
}

.custom-btn-light:hover {
    background: #ffffffbf;
    transform: translateY(-1px);
    color: var(--text);
}

/* Navigation */
nav {
    background-color: var(--secondary-background);
    height: 60px;
}

.navbar {
    z-index: 1050;
}

.navbar-brand {
    font-size: 35px;
    font-family: var(--secondary-font);
}

.navbar .nav-link {
    font-weight: 600;
    opacity: 0.90;
    transition: opacity .2s ease, transform .2s ease;
}

.navbar .nav-link:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.navbar .nav-link.active {
    opacity: 1;
    position: relative;
}

.navbar .nav-link.active::after {
    content: "";
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 2px;
    background: rgba(58, 72, 57, 0.35);
    border-radius: 999px;
}

.nav-btn {
    background: rgba(255, 255, 255, .55);
    border: 1px solid rgba(53, 39, 24, .18);
    color: var(--text);
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 600;
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, .75);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .10);
    color: var(--text);
}

/* ---- HOME PAGE ---- */
.hero {
    min-height: 500px;
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(40% 60% at 55% 45%,
            rgba(149, 62, 30, .10),
            transparent 60%);
    pointer-events: none;
}

.hero h1 {
    font-weight: 600;
    letter-spacing: -0.02em;
    font-size: clamp(2rem, 3vw, 3rem);
}

.hero h2 {
    font-family: var(--secondary-font);
    color: var(--accent);
    font-size: clamp(1.6rem, 2.2vw, 2.3rem);
}

.hero .lead {
    color: var(--primary-text);
    font-size: 16px;
    line-height: 1.6;
}

.hero-note {
    font-size: 15px;
}


.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 185px;
    gap: 16px;
    width: min(520px, 100%);
}

.photo-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .50);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .18);
    transform: translateZ(0);
    transition: transform .22s ease, box-shadow .22s ease;
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    transition: transform .35s ease;
}

.photo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 55px rgba(0, 0, 0, .22);
}

.photo-card:hover img {
    transform: scale(1.06);
}


.photo-card--lg {
    grid-column: 2/ 3;
    grid-row: 1 / 3;
    height: 390px;
}

.photo-card--sm {
    height: 190px;
}

/* ---- Gallery page ---- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .50);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .18);
    height: 260px;
    transition: transform .22s ease, box-shadow .22s ease;
}

.gallery-item--wide {
    grid-column: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    transition: transform .35s ease;
}

.gallery-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 55px rgba(0, 0, 0, .22);
}

.gallery-item:hover img {
    transform: scale(1.06);
}

/* ---- Services page ---- */
.services-page h1 {
    font-weight: 600;
    font-size: clamp(2rem, 3vw, 3rem);
}

/* Cards */
.service-card {
    background: rgba(255, 255, 255, .55);
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 18px;
    padding: 18px 18px 16px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .12);
    transition: transform .22s ease, box-shadow .22s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 55px rgba(0, 0, 0, .16);
}

.service-title {
    font-weight: 700;
    margin-bottom: 8px;
}

.service-text {
    opacity: .9;
    line-height: 1.6;
    margin-bottom: 10px;
}

.service-list {
    margin: 0 0 14px 0;
    padding-left: 18px;
    opacity: .9;
}

.service-list li {
    margin: 6px 0;
}

.service-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Info cards */
.info-card {
    background: rgba(255, 255, 255, .52);
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .10);
}

/* FAQ */
.faq-item {
    border-top: 1px solid rgba(53, 39, 24, .12);
    padding: 10px 0;
}

.faq-item:first-child {
    border-top: 0;
    padding-top: 0;
}

.faq-q {
    width: 100%;
    background: transparent;
    border: 0;
    padding: 10px 0;
    font-weight: 900;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text);
    text-align: left;
}

.chev {
    transition: transform .2s ease;
    opacity: .7;
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .25s ease, opacity .25s ease;
    line-height: 1.6;
    padding-right: 12px;
}

.faq-item.is-open .faq-a {
    max-height: 220px;
    opacity: .92;
}

.faq-item.is-open .chev {
    transform: rotate(180deg);
}

/* ---- Contact page ---- */
.info-card {
    background: rgba(255, 255, 255, .52);
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .10);
    height: 100%;
}

.form-card {
    background: rgba(255, 255, 255, .55);
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .12);
}

.opacity-90 {
    opacity: .90;
}

.contact-actions {
    display: grid;
    gap: 10px;
}

.mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.mini-item {
    background: rgba(255, 255, 255, .40);
    border: 1px solid rgba(53, 39, 24, .10);
    border-radius: 14px;
    padding: 12px;
}

.mini-title {
    font-weight: 900;
    font-size: 15px;
    margin-bottom: 4px;
}

.mini-text {
    opacity: .88;
    line-height: 1.35;
}


.form-label {
    font-weight: 900;
}

.soft-input {
    border-radius: 14px;
    border: 1px solid rgba(53, 39, 24, .14);
    background: rgba(255, 255, 255, .65);
    box-shadow: none;
}

.soft-input:focus {
    border-color: rgba(149, 62, 30, .35);
    box-shadow: 0 0 0 .2rem rgba(149, 62, 30, .15);
}

.form-hint {
    opacity: .8;
    font-weight: 700;
}

/* ---- About page ---- */
.story-card {
    background: rgba(255, 255, 255, .55);
    border: 1px solid rgba(255, 255, 255, .55);
    font-size: 16px;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .12);
}

.mini-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.stat {
    background: rgba(255, 255, 255, 0.577);
    border: 1px solid rgba(53, 39, 24, .10);
    border-radius: 14px;
    padding: 12px;
    text-align: center;
}

.stat-num {
    font-weight: 900;
    font-size: 19px;
}

.stat-label {
    opacity: .85;
    font-weight: 700;
    font-size: 14px;
}

.about-photo {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .50);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .18);
    height: 100%;
    min-height: 320px;
    transition: transform .22s ease, box-shadow .22s ease;
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    transition: transform .35s ease;
}

.about-photo:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 55px rgba(0, 0, 0, .22);
}

.about-photo:hover img {
    transform: scale(1.06);
}

.value-card {
    background: rgba(255, 255, 255, .55);
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .10);
    transition: transform .22s ease, box-shadow .22s ease;
    height: 100%;
}

.value-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 55px rgba(0, 0, 0, .14);
}

.value-pill {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(149, 62, 30, .12);
    border: 1px solid rgba(149, 62, 30, .18);
    font-weight: 900;
    font-size: .85rem;
    margin-bottom: 10px;
}

.value-pill--alt {
    background: rgba(163, 108, 63, .12);
    border-color: rgba(163, 108, 63, .18);
}

.value-pill--alt2 {
    background: rgba(113, 93, 64, .12);
    border-color: rgba(113, 93, 64, .18);
}

/* ---- HOME PAGE: How it works & Services teaser ---- */
.how-it-works,
.services-teaser {
    border-top: 1px solid rgba(53, 39, 24, .08);
}

.section-title {
    font-weight: 700;
    font-size: clamp(1.4rem, 2vw, 1.8rem);
}

.step-card {
    background: rgba(255, 255, 255, .52);
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 18px;
    padding: 28px 20px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .10);
    height: 100%;
    transition: transform .22s ease, box-shadow .22s ease;
}

.step-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 55px rgba(0, 0, 0, .14);
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-weight: 900;
    font-size: 16px;
}

.step-icon {
    font-size: 28px;
    color: var(--accent);
    display: block;
}

.step-text {
    opacity: .88;
    line-height: 1.55;
    font-size: 15px;
    margin-bottom: 0;
}

/* ---- Accessibility ---- */
.skip-link {
    position: absolute;
    top: 0;
    left: -9999px;
    z-index: 9999;
    padding: 10px 18px;
    background: var(--accent);
    color: #fff;
    border-radius: 0 0 12px 12px;
    font-weight: 700;
    text-decoration: none;
}

.skip-link:focus {
    left: 12px;
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.custom-btn:focus-visible,
.custom-btn-light:focus-visible,
.nav-btn:focus-visible {
    border-radius: 999px;
}

/* ---- Footer ---- */
.footer {
    margin-top: auto;
    padding: 16px 0 18px;
    border-top: 1px solid rgba(53, 39, 24, .12);
}

.footer-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 14px;
    opacity: 0.85;
}

.footer-brand {
    font-family: var(--secondary-font);
    font-size: 20px;
    font-weight: 600;
}

.footer-link {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid rgba(53, 39, 24, .2);
    transition: opacity .15s ease, border-color .15s ease;
}

.footer-link:hover {
    opacity: 1;
    border-color: rgba(53, 39, 24, .4);
}

.footer-copy {
    opacity: 0.8;
}

.footer-sep {
    opacity: 0.5;
}


/* ---- Animations */
.fade-in {
    animation: fadeIn .6s ease both;
}

.fade-in-up {
    animation: fadeInUp .7s ease both;
}

@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

/* ---- Media Queries */

@media (max-width: 991.98px) {
    .navbar {
        position: relative;
    }

    .navbar-collapse {
        position: absolute;
        left: 12px;
        right: 12px;
        top: calc(100% + 10px);
        z-index: 2000;

        background: rgba(255, 255, 255, 0.797);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);

        border: 1px solid rgba(255, 255, 255, .55);
        border-radius: 18px;
        padding: 14px;

        box-shadow: 0 18px 45px rgba(0, 0, 0, .16);
    }

    .navbar-toggler {
        border: none;
        box-shadow: none;
    }

    .navbar-toggler-icon {
        opacity: .85;
    }

    .navbar-toggler:focus,
    .navbar-toggler:focus-visible {
        outline: none;
        box-shadow: none;
    }

    .navbar-nav .nav-link {
        padding: 12px 10px;
        border-radius: 12px;
        font-weight: 800;
    }

    .navbar-nav .nav-link:hover {
        background: rgba(53, 39, 24, .08);
    }

    .navbar-nav .nav-item+.nav-item {
        margin-top: 4px;
    }

    .navbar-brand {
        margin-left: 15px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 260px;
    }

    .photo-card--lg,
    .photo-card--sm {
        grid-column: auto;
        grid-row: auto;
        height: 260px;
    }

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

    .mini-stats {
        grid-template-columns: 1fr;
    }

    .footer {
        border-top: none;
    }
}

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

    .gallery-item--wide {
        grid-column: span 1;
    }

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

    .custom-btn,
    .custom-btn-light {
        min-height: 44px;
    }
}
