:root {
    --primary: #7B3428;
    --primary-dark: #4D211B;
    --primary-light: #F3E4DE;
    --gold: #C6A15B;
    --bg: #F8F5EF;
    --surface: #fff;
    --muted: #EEE9DF;
    --dark: #171714;
    --text: #282620;
    --text2: #716D64;
    --border: #E5DED2;
    --ff-head: "Cormorant Garamond", Georgia, serif;
    --ff-body: "DM Sans", system-ui, sans-serif
}

[data-theme=dark] {
    --bg: #171714;
    --surface: #24231F;
    --muted: #1f1e1b;
    --text: #F8F5EF;
    --text2: #b9b4a8;
    --border: #3a3832;
    --primary-light: #3a2420
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--ff-body);
    line-height: 1.7
}

h1,
h2,
h3,
h4 {
    font-family: var(--ff-head);
    font-weight: 500;
    line-height: 1.1
}

h1 {
    font-size: clamp(2.6rem, 7vw, 5.2rem)
}

h2 {
    font-size: clamp(2rem, 4.5vw, 3.2rem)
}

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

.text-muted-s {
    color: var(--text2)
}

.eyebrow {
    font-size: .75rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600
}

.rule {
    width: 64px;
    height: 1px;
    background: var(--gold);
    margin: 1.25rem 0
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--primary);
    color: #fff;
    padding: .75rem 1rem;
    z-index: 2000
}

.skip-link:focus {
    left: 0
}

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px
}

.announce {
    background: var(--primary-dark);
    color: #F8F5EF;
    font-size: .8rem;
    text-align: center;
    padding: .4rem
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--bg);
    border-bottom: 1px solid var(--border)
}

.offcanvas {
    background: var(--bg);
    color: var(--text)
}

.brand {
    font-family: var(--ff-head);
    font-size: 1.9rem;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: .04em
}

[data-theme=dark] .brand {
    color: var(--gold)
}

.brand i {
    font-size: 1.1rem;
    margin-right: .35rem;
    color: var(--gold)
}

.navbar .nav-link {
    color: var(--text);
    font-size: .9rem
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--primary);font-weight: bold;
}

[data-theme=dark] .navbar .nav-link:hover,
[data-theme=dark] .navbar .nav-link.active {
    color: var(--gold)
}

#themeToggle {
    color: var(--text)
}

.dropdown-menu {
    background: var(--surface);
    border-color: var(--border)
}

.dropdown-item {
    color: var(--text)
}

.btn-savora {
    background: var(--primary);
    color: #fff;
    border: 1px solid var(--primary);
    border-radius: 0;
    padding: .8rem 1.8rem;
    letter-spacing: .08em;
    font-size: .82rem;
    text-transform: uppercase;
    transition: .25s
}

.btn-savora:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px)
}

.btn-ghost {
    border: 1px solid currentColor;
    color: inherit;
    border-radius: 0;
    padding: .8rem 1.8rem;
    letter-spacing: .08em;
    font-size: .82rem;
    text-transform: uppercase;
    transition: .25s
}

.btn-ghost:hover {
    background: #F8F5EF;
    color: var(--dark)
}

.ph {
    background: linear-gradient(135deg, var(--c1, #7B3428), var(--c2, #D6A56D));
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    color: #fff;
    font-family: var(--ff-head);
    font-style: italic;
    overflow: hidden;
    position: relative
}

.ph i {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    opacity: .5
}

.hero {
    min-height: 88vh;
    display: flex;
    align-items: center;
    color: #F8F5EF;
    background: linear-gradient(90deg, rgba(23, 23, 20, .92), rgba(77, 33, 27, .7)), radial-gradient(circle at 80% 30%, #D6A56D, #4D211B 60%)
}

.section {
    padding: clamp(4rem, 9vw, 7rem) 0
}

.section-dark {
    background: var(--dark);
    color: #F8F5EF
}

.section-alt {
    background: var(--muted)
}

.card-s {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    height: 100%;
    transition: .3s
}

.card-s:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, .12);
    transform: translateY(-4px)
}

.card-s .ph {
    aspect-ratio: 4/3;
    transition: transform .5s
}

.card-s:hover .ph {
    transform: scale(1.04)
}

.card-s .clip {
    overflow: hidden
}

.card-s a.stretched-link {
    color: inherit;
    text-decoration: none
}

.chip {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    padding: .35rem 1rem;
    font-size: .8rem;
    border-radius: 99px
}

.chip[aria-pressed=true] {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary)
}

.step-n {
    font-family: var(--ff-head);
    font-size: 3.2rem;
    color: var(--gold)
}

.demo-tag {
    font-size: .7rem;
    background: var(--primary-light);
    color: var(--primary);
    padding: .1rem .5rem;
    border-radius: 2px
}

[data-theme=dark] .demo-tag {
    color: var(--gold)
}

.site-footer {
    background: var(--dark);
    color: #cfc9bb;
    font-size: .9rem
}

.site-footer a {
    color: #cfc9bb;
    text-decoration: none
}

.site-footer a:hover {
    color: var(--gold)
}

.form-control {
    border-radius: 0;
    background: var(--surface);
    color: var(--text);
    border-color: var(--border)
}

#toTop {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    display: none;
    z-index: 1000
}

@media(prefers-reduced-motion:reduce) {
    * {
        transition: none !important;
        animation: none !important
    }
}

/* ===== Motion: preloader, text/image effects, scroll-to-top ===== */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: var(--dark);
    display: grid;
    place-items: center;
    transition: opacity .6s, visibility .6s
}

#preloader.done {
    opacity: 0;
    visibility: hidden
}

.pl-inner {
    text-align: center
}

.pl-brand {
    display: block;
    font-family: var(--ff-head);
    font-size: clamp(2rem, 8vw, 3rem);
    color: #F8F5EF;
    letter-spacing: .25em;
    animation: plFade 1.2s ease both
}

.pl-line {
    display: block;
    height: 1px;
    width: 140px;
    margin: 1rem auto 0;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    animation: plLine 1.4s ease-in-out infinite
}

@keyframes plFade {
    from {
        opacity: 0;
        letter-spacing: .5em
    }

    to {
        opacity: 1
    }
}

@keyframes plLine {

    0%,
    100% {
        transform: scaleX(.2);
        opacity: .4
    }

    50% {
        transform: scaleX(1);
        opacity: 1
    }
}

@keyframes wordUp {
    from {
        transform: translateY(110%)
    }

    to {
        transform: none
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(22px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

@keyframes draw {
    from {
        transform: scaleX(0)
    }

    to {
        transform: scaleX(1)
    }
}

@keyframes imgIn {
    from {
        transform: scale(1.18)
    }

    to {
        transform: scale(1)
    }
}

@keyframes floaty {

    0%,
    100% {
        transform: translateY(0) rotate(0)
    }

    50% {
        transform: translateY(-6px) rotate(8deg)
    }
}

html.anim main h1 .w {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    padding-bottom: .1em;
    margin-bottom: -.1em
}

html.anim main h1 .w>span {
    display: inline-block;
    transform: translateY(110%)
}

html.anim body.loaded main h1 .w>span {
    animation: wordUp .9s cubic-bezier(.2, .7, .2, 1) calc(var(--i) * 90ms + 200ms) both
}

html.anim main>section:first-child :is(.eyebrow, .lead, .d-flex, .breadcrumb) {
    opacity: 0
}

html.anim body.loaded main>section:first-child .breadcrumb {
    animation: fadeUp .7s .1s both
}

html.anim body.loaded main>section:first-child .eyebrow {
    animation: fadeUp .8s .1s both
}

html.anim body.loaded main>section:first-child .lead {
    animation: fadeUp .9s .8s both
}

html.anim body.loaded main>section:first-child .d-flex {
    animation: fadeUp 1s 1s both
}

.rule {
    transform-origin: left
}

html.anim body.loaded main>section:first-child .rule {
    animation: draw 1s .7s both
}

html.anim [data-aos].aos-animate .rule {
    animation: draw 1s .3s both
}

html.anim .aos-animate .clip .ph {
    animation: imgIn 1.4s cubic-bezier(.2, .7, .2, 1)
}

.ph i {
    animation: floaty 5s ease-in-out infinite
}

.btn-savora {
    position: relative;
    overflow: hidden
}

.btn-savora::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
    transform: translateX(-100%);
    pointer-events: none
}

.btn-savora:hover::after {
    transform: translateX(100%);
    transition: transform .7s
}

#progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    z-index: 2500
}

.to-top {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    z-index: 1000;
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: .35s
}

.to-top.show {
    opacity: 1;
    visibility: visible;
    transform: none
}

.to-top:hover {
    background: var(--primary-dark)
}

.to-top svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg)
}

.to-top circle {
    fill: none;
    stroke-width: 2
}

.to-top .bg {
    stroke: rgba(255, 255, 255, .25)
}

.to-top .bar {
    stroke: var(--gold);
    stroke-dasharray: 138.23;
    stroke-dashoffset: 138.23
}

/* ===== Rich footer ===== */
html {
    scroll-behavior: smooth
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }
}

.site-footer {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 15% 0, #4D211B 0, #171714 55%);
    color: #cfc9bb;
    border-top: 3px solid var(--gold)
}

.site-footer::after {
    content: "Savora";
    position: absolute;
    left: 50%;
    bottom: -.28em;
    transform: translateX(-50%);
    font-family: var(--ff-head);
    font-size: clamp(6rem, 24vw, 20rem);
    line-height: 1;
    color: rgba(255, 255, 255, .035);
    pointer-events: none;
    user-select: none;
    white-space: nowrap
}

.site-footer .container {
    position: relative;
    z-index: 1
}

.f-band {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
    align-items: center;
    padding: 2.5rem;
    margin-top: -1px;
    border: 1px solid rgba(198, 161, 91, .35);
    background: rgba(255, 255, 255, .03);
    backdrop-filter: blur(4px)
}

@media(min-width:992px) {
    .f-band {
        grid-template-columns: 1.1fr 1fr
    }
}

.f-band h2 {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    color: #F8F5EF;
    margin: 0
}

.f-title {
    font-family: var(--ff-head);
    font-size: 1.4rem;
    color: #F8F5EF;
    margin-bottom: 1.1rem;
    position: relative;
    padding-bottom: .6rem
}

.f-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 32px;
    height: 1px;
    background: var(--gold)
}

.f-links {
    list-style: none;
    padding: 0;
    margin: 0
}

.f-links li {
    margin-bottom: .55rem
}

.f-links a {
    position: relative;
    display: inline-block;
    padding-left: 0;
    transition: .3s
}

.f-links a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: .3s
}

.f-links a:hover {
    padding-left: 20px;
    color: var(--gold)
}

.f-links a:hover::before {
    width: 12px
}

.f-contact {
    list-style: none;
    padding: 0;
    margin: 0
}

.f-contact li {
    display: flex;
    gap: .75rem;
    margin-bottom: .8rem
}

.f-contact i {
    color: var(--gold);
    margin-top: .2rem
}

.f-social {
    display: flex;
    gap: .6rem;
    margin-top: 1.25rem
}

.f-social a {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(198, 161, 91, .5);
    border-radius: 50%;
    color: #F8F5EF;
    transition: .3s
}

.f-social a:hover {
    background: var(--gold);
    color: var(--dark);
    transform: translateY(-3px)
}

.f-hours {
    font-size: .85rem;
    border-top: 1px dashed rgba(255, 255, 255, .2);
    margin-top: 1rem;
    padding-top: .8rem
}

.f-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1rem
}

.f-badges span {
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, .2);
    padding: .2rem .7rem;
    border-radius: 99px
}

.f-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    margin-top: 3rem;
    padding-top: 1.25rem;
    font-size: .82rem
}

.f-bottom a {
    margin-left: 1rem
}

.f-top {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    border: 1px solid rgba(198, 161, 91, .5);
    padding: .3rem .9rem;
    border-radius: 99px;
    color: #F8F5EF !important
}

.f-top:hover {
    background: var(--gold);
    color: var(--dark) !important
}

/* ===== Responsive scroll fixes ===== */
html {
    max-width: 100%;
    overflow-x: hidden;
    scroll-padding-top: 90px
}

@supports (overflow:clip) {
    html {
        overflow-x: visible
    }

    html,
    body {
        overflow-x: clip
    }
}

body {
    max-width: 100%;
    position: relative
}

main {
    overflow-x: clip
}

img,
svg,
video {
    max-width: 100%;
    height: auto
}

.hero {
    min-height: 88vh;
    min-height: 88svh
}

h1 {
    font-size: clamp(2.1rem, 8vw, 5.2rem);
    overflow-wrap: anywhere
}

h2 {
    overflow-wrap: break-word
}

.navbar>.container {
    flex-wrap: nowrap
}

.offcanvas {
    max-width: 100vw
}

.offcanvas-body {
    overflow-y: auto;
    overscroll-behavior: contain
}

.dropdown-menu {
    max-width: 100%
}

.input-group {
    flex-wrap: nowrap
}

.table-responsive,
.overflow-auto {
    -webkit-overflow-scrolling: touch
}

@media(max-width:575.98px) {
    .section {
        padding: 3.5rem 0
    }

    .f-band {
        padding: 1.5rem
    }

    .f-bottom a {
        margin-left: 0;
        margin-right: 1rem
    }

    .site-footer::after {
        font-size: 30vw
    }

    .to-top {
        right: .75rem;
        bottom: .75rem
    }

    .btn-savora,
    .btn-ghost {
        padding: .75rem 1.25rem
    }

    .hero .d-flex .btn {
        width: 100%;
        text-align: center
    }
}

.navbar-expand-lg .navbar-nav .nav-link {
    padding-right: 30px !important;
}
#newsletterForm .form-control{width: auto;}