/* =========================================================
   LOVATHAI SPA — COMPLETE WEBSITE STYLESHEET
   Beige • Ivory • Espresso • Sage • Champagne Gold
========================================================= */

:root {
    --beige: #D8C3A5;
    --ivory: #F8F4EC;
    --cream: #EDE3D5;
    --taupe: #A9947B;
    --esp: #342820;
    --sage: #66735A;
    --gold: #B69A63;
    --white: #FFFFFF;
    --border: rgba(169, 148, 123, 0.35);
    --shadow: 0 14px 36px rgba(52, 40, 32, 0.10);
    --radius: 8px;
    --content-width: 1160px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 30px;
}

body {
    margin: 0;
    color: var(--esp);
    background: var(--ivory);
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
.logo,
.footer-brand {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    line-height: 1.2;
}

h1 {
    margin: 0 0 22px;
    font-size: clamp(2.1rem, 4.8vw, 3.5rem);
    letter-spacing: -0.035em;
}

h2 {
    margin: 0 0 18px;
    font-size: clamp(1.65rem, 3.1vw, 2.4rem);
    letter-spacing: -0.025em;
}

h3 {
    margin: 0 0 12px;
    font-size: 1.3rem;
}

p {
    margin: 0 0 18px;
}

a {
    color: var(--sage);
    text-underline-offset: 4px;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--esp);
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.wrap {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 24px;
}

.narrow {
    max-width: 800px;
}

address {
    font-style: normal;
}

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

.skip {
    position: absolute;
    top: 10px;
    left: -9999px;
    z-index: 500;
    padding: 12px 16px;
    border-radius: 5px;
    color: var(--esp);
    background: var(--white);
    box-shadow: var(--shadow);
}

.skip:focus {
    left: 12px;
}


/* =========================================================
   NAVBAR
========================================================= */

.nav {
    position: relative;
    z-index: 100;
    width: 100%;
    background: var(--ivory);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 5px 20px rgba(52, 40, 32, 0.035);
}

.navin {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 132px;
}

/* Logo */

.nav .logo-image {
    display: inline-flex;
    flex: 0 0 220px;
    align-items: center;
    justify-content: flex-start;
    width: 220px;
    height: 126px;
    min-width: 0;
    margin: 0;
    padding: 0;
    line-height: 0;
    text-decoration: none;
}

.nav .logo-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    object-position: left center;
    border: 0;
}

/* Navigation container */

.navmenu {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    margin-left: auto;
}

.navmenu ul {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(12px, 1.4vw, 21px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.navmenu ul li {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

/* Standard menu links */

.navmenu ul li > a:not(.btn) {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 7px 0;
    color: var(--esp);
    font-size: 0.91rem;
    font-weight: 500;
    line-height: 1.35;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.25s ease;
}

/* Underline hover effect */

.navmenu ul li > a:not(.btn)::after {
    position: absolute;
    right: 0;
    bottom: 3px;
    left: 0;
    height: 2px;
    content: "";
    background: var(--gold);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s ease;
}

.navmenu ul li > a:not(.btn):hover {
    color: var(--sage);
}

.navmenu ul li > a:not(.btn):hover::after,
.navmenu ul li > a[aria-current="page"]::after {
    transform: scaleX(1);
}

.navmenu ul li > a[aria-current="page"] {
    color: var(--sage);
    font-weight: 650;
}

/* Mobile menu button */

.burger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--esp);
    background: var(--white);
    cursor: pointer;
}

.burger-lines {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 21px;
}

.burger-lines span {
    display: block;
    width: 21px;
    height: 2px;
    border-radius: 2px;
    background: var(--esp);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.burger[aria-expanded="true"] .burger-lines span:first-child {
    transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] .burger-lines span:nth-child(2) {
    opacity: 0;
}

.burger[aria-expanded="true"] .burger-lines span:last-child {
    transform: translateY(-7px) rotate(-45deg);
}


/* =========================================================
   BUTTONS
========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 23px;
    border: 1px solid var(--esp);
    border-radius: 5px;
    color: var(--ivory);
    background: var(--esp);
    font-family: inherit;
    font-size: 0.94rem;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.btn:hover {
    color: var(--white);
    background: var(--sage);
    border-color: var(--sage);
    box-shadow: 0 5px 15px rgba(52, 40, 32, 0.12);
    transform: translateY(-1px);
}

.btn.sm {
    min-height: 42px;
    padding: 10px 15px;
    font-size: 0.83rem;
    white-space: nowrap;
}

.btn.ghost {
    color: var(--esp);
    background: transparent;
    border-color: var(--taupe);
}

.btn.ghost:hover {
    color: var(--esp);
    background: var(--cream);
    border-color: var(--gold);
}

.btn.gold {
    color: var(--esp);
    background: var(--gold);
    border-color: var(--gold);
}

.btn.gold:hover {
    color: var(--esp);
    background: var(--beige);
    border-color: var(--beige);
}

.btn.ghost.light {
    color: var(--white);
    background: transparent;
    border-color: rgba(255, 255, 255, 0.7);
}

.btn.ghost.light:hover {
    color: var(--esp);
    background: var(--ivory);
    border-color: var(--ivory);
}

.navmenu .nav-book {
    padding-right: 17px;
    padding-left: 17px;
    color: var(--white);
    background: var(--esp);
    border-color: var(--esp);
    box-shadow: 0 3px 9px rgba(52, 40, 32, 0.08);
}

.navmenu .nav-book:hover {
    color: var(--white);
    background: var(--sage);
    border-color: var(--sage);
}

.navmenu .nav-call {
    background: transparent;
}

.phone-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 1rem;
    line-height: 1;
}


/* =========================================================
   TEXT LINKS AND SECTION LABELS
========================================================= */

.cta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.center-action {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 650;
    text-decoration: none;
}

.text-link span {
    transition: transform 0.2s ease;
}

.text-link:hover span {
    transform: translateX(4px);
}

.eyebrow {
    margin-bottom: 12px;
    color: var(--sage);
    font-size: 0.76rem;
    font-weight: 750;
    letter-spacing: 0.17em;
    line-height: 1.5;
    text-transform: uppercase;
}

.section-heading {
    max-width: 740px;
    margin-bottom: 36px;
}

.section-heading > p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   HERO AND GENERAL SECTIONS
========================================================= */

.hero {
    padding: 76px 0;
    background: var(--cream);
}

.herogrid,
.two {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 48px;
}

.herogrid > *,
.two > * {
    min-width: 0;
}

.lead {
    max-width: 590px;
    margin-bottom: 26px;
    color: #554438;
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    line-height: 1.75;
}

.sec {
    padding: 76px 0;
}

.alt {
    background: var(--cream);
}

/* Add some structure to the text/image section */

.two > div:first-child > h2 {
    max-width: 560px;
}

.two > div:first-child > p {
    max-width: 570px;
}

.two > div:first-child > address {
    margin-bottom: 18px;
}


/* =========================================================
   IMAGE CONTAINERS — IMPORTANT FIX
========================================================= */

/*
   Empty .ph containers remain styled placeholders.
   Containers with a real child <img> become proper photo frames.
*/

.ph {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 340px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius);
    color: var(--white);
    background: linear-gradient(135deg, var(--beige), var(--taupe));
    text-align: center;
}

/* Placeholder text appears only when there is no actual image */

.ph::after {
    padding: 12px;
    content: attr(data-ph) " — replace with photo";
    font-size: 0.85rem;
    letter-spacing: 0.03em;
}

/* REAL IMAGE FIX: remove placeholder styling when an image exists */

.ph:has(> img) {
    display: block;
    width: 100%;
    min-height: 0;
    height: auto;
    aspect-ratio: 4 / 3;
    padding: 0;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow);
    isolation: isolate;
}

/* Hide "replace with photo" whenever a real image exists */

.ph:has(> img)::after {
    display: none;
    content: none;
}

/* Make the image fill its frame without distortion */

.ph > img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    object-fit: cover;
    object-position: center;
    border: 0;
    border-radius: inherit;
}

/* A dedicated section image can have a more editorial crop */

.two > .ph:has(> img),
.two > div > .ph:has(> img) {
    aspect-ratio: 4 / 3;
}

/* Standard card/gallery placeholders */

.ph.sm {
    min-height: 210px;
    margin-bottom: 18px;
    border-radius: 6px;
}

.ph.sm:has(> img) {
    aspect-ratio: 4 / 3;
    min-height: 0;
    margin-bottom: 18px;
}

.ph.sm > img {
    object-position: center;
}


/* =========================================================
   SERVICE CARDS
========================================================= */

.grid2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
}

.card {
    min-width: 0;
    overflow: hidden;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--beige);
    box-shadow: var(--shadow);
}

.card-content h3 {
    margin-bottom: 12px;
}

.card-content p {
    margin-bottom: 15px;
}

.card-content .text-link {
    margin-bottom: 17px;
}

.card-btn {
    display: flex;
    width: 100%;
    margin-top: 12px;
}

.ticks {
    display: grid;
    gap: 14px;
    padding-left: 22px;
}

.ticks li {
    padding-left: 5px;
}


/* =========================================================
   FINAL CTA
========================================================= */

.final {
    padding: 76px 0;
    color: var(--ivory);
    background: var(--esp);
    text-align: center;
}

.final h2 {
    max-width: 720px;
    margin-right: auto;
    margin-left: auto;
}

.final p:not(.eyebrow) {
    max-width: 680px;
    margin-right: auto;
    margin-left: auto;
}

.final .eyebrow {
    color: var(--gold);
}

.final .cta {
    justify-content: center;
    margin-top: 25px;
}


/* =========================================================
   FAQ
========================================================= */

.faq details {
    margin: 12px 0;
    padding: 16px 20px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--white);
    transition: border-color 0.2s ease;
}

.faq details[open] {
    border-color: var(--gold);
}

.faq summary {
    position: relative;
    padding-right: 28px;
    color: var(--esp);
    font-weight: 650;
    cursor: pointer;
}

.faq details p {
    margin-top: 14px;
    margin-bottom: 0;
}

.faq summary::marker {
    color: var(--gold);
}

.faq-group {
    margin: 34px 0 8px;
    font-size: 1.3rem;
}


/* =========================================================
   GALLERY
========================================================= */

.gal {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}

.gal .ph {
    min-height: 240px;
    cursor: pointer;
    transition: transform 0.25s ease;
}

.gal .ph:hover {
    transform: scale(1.015);
}

#lb {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(52, 40, 32, 0.93);
}

#lb[hidden] {
    display: none;
}

#lb button {
    position: absolute;
    top: 16px;
    right: 22px;
    padding: 8px;
    border: 0;
    color: var(--white);
    background: none;
    font-size: 2rem;
    cursor: pointer;
}

.ph.big {
    width: min(90vw, 900px);
    min-height: 60vh;
}


/* =========================================================
   FORMS
========================================================= */

form {
    display: grid;
    gap: 14px;
    min-width: 0;
}

form h2,
form > p {
    margin-bottom: 0;
}

label {
    display: grid;
    gap: 5px;
    color: var(--esp);
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    min-width: 0;
    padding: 12px 13px;
    border: 1px solid var(--taupe);
    border-radius: 5px;
    color: var(--esp);
    background: var(--white);
    font: inherit;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--sage);
    outline: 2px solid rgba(102, 115, 90, 0.18);
}

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

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin-top: 5px;
    accent-color: var(--sage);
}

.chk {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400;
}

.hp {
    position: absolute;
    left: -9999px;
}

#msg {
    font-weight: 650;
}

#msg.ok {
    color: var(--sage);
}

#msg.err {
    color: #9B2C2C;
}


/* =========================================================
   FOOTER
========================================================= */

footer {
    padding-top: 52px;
    background: var(--cream);
    border-top: 1px solid var(--border);
}

.fgrid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1.3fr;
    gap: 36px;
    padding-bottom: 38px;
}

.footer-brand {
    margin: 0 0 15px;
    color: var(--esp);
    font-size: 1.8rem;
}

.footer-brand span {
    color: var(--gold);
}

footer h3 {
    margin-bottom: 16px;
    font-size: 1.1rem;
}

footer ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

footer li a {
    color: #554438;
    font-size: 0.94rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

footer li a:hover {
    color: var(--sage);
}

footer address {
    margin-bottom: 14px;
    font-size: 0.95rem;
}

footer .copy {
    margin-bottom: 0;
    padding: 22px 24px;
    border-top: 1px solid var(--border);
    color: #665549;
    font-size: 0.88rem;
}


/* =========================================================
   ADDITIONAL CONTENT BLOCKS
========================================================= */

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 22px;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.steps li {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--white);
    counter-increment: step;
}

.steps li::before {
    display: block;
    margin-bottom: 8px;
    color: var(--gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    line-height: 1;
    content: counter(step);
}

.steps h3 {
    margin: 0 0 6px;
    font-size: 1.15rem;
}

.steps p {
    margin: 0;
}

.prose p {
    margin: 0 0 1.1em;
}

.prose h3 {
    margin: 1.6em 0 0.4em;
}

.note {
    margin: 20px 0;
    padding: 4px 0 4px 14px;
    border-left: 3px solid var(--gold);
    font-size: 0.92rem;
}


/* =========================================================
   SCROLL ANIMATIONS
========================================================= */

.js .rv {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 0.65s ease,
        transform 0.65s ease;
}

.js .rv.in {
    opacity: 1;
    transform: translateY(0);
}


/* =========================================================
   LAPTOP AND TABLET
========================================================= */

@media (max-width: 1100px) and (min-width: 851px) {
    .navin {
        gap: 16px;
        min-height: 120px;
    }

    .nav .logo-image {
        flex-basis: 180px;
        width: 180px;
        height: 108px;
    }

    .navmenu ul {
        gap: 10px;
    }

    .navmenu ul li > a:not(.btn) {
        font-size: 0.84rem;
    }

    .navmenu .btn.sm {
        padding: 9px 11px;
        font-size: 0.78rem;
    }
}

@media (max-width: 850px) {
    .navin {
        min-height: 112px;
        gap: 12px;
    }

    .nav .logo-image {
        flex: 0 0 170px;
        width: 170px;
        height: 103px;
    }

    .burger {
        display: inline-flex;
        flex: 0 0 46px;
    }

    .navmenu {
        position: absolute;
        top: 100%;
        right: -24px;
        left: -24px;
        z-index: 101;
        display: none;
        max-height: calc(100vh - 112px);
        margin: 0;
        padding: 16px 24px 24px;
        overflow-y: auto;
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--beige);
        background: var(--ivory);
        box-shadow: 0 18px 28px rgba(52, 40, 32, 0.12);
    }

    .navmenu.open {
        display: block;
    }

    .navmenu ul {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .navmenu ul li {
        display: flex;
        width: 100%;
    }

    .navmenu ul li > a:not(.btn) {
        justify-content: flex-start;
        width: 100%;
        min-height: 46px;
        padding: 12px 14px;
        border-radius: 5px;
        font-size: 0.96rem;
    }

    .navmenu ul li > a:not(.btn)::after {
        display: none;
    }

    .navmenu ul li > a[aria-current="page"] {
        color: var(--esp);
        background: var(--cream);
    }

    .navmenu ul li > a:not(.btn):hover {
        color: var(--esp);
        background: rgba(237, 227, 213, 0.65);
    }

    .navmenu ul li.nav-action {
        margin-top: 5px;
    }

    .navmenu ul li.nav-action + li.nav-action {
        margin-top: 0;
    }

    .navmenu ul li > .btn.sm {
        display: flex;
        justify-content: center;
        width: 100%;
        min-height: 46px;
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    .herogrid,
    .two {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero,
    .sec,
    .final {
        padding-top: 58px;
        padding-bottom: 58px;
    }

    .ph {
        min-height: 280px;
    }

    .ph:has(> img) {
        aspect-ratio: 5 / 4;
        min-height: 0;
    }

    .fgrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 520px) {
    body {
        font-size: 16px;
    }

    .wrap {
        padding-right: 18px;
        padding-left: 18px;
    }

    .navin {
        min-height: 100px;
        gap: 10px;
    }

    .nav .logo-image {
        flex: 0 0 150px;
        width: 150px;
        height: 92px;
    }

    .navmenu {
        right: -18px;
        left: -18px;
        padding: 14px 18px 20px;
    }

    .hero,
    .sec,
    .final {
        padding-top: 44px;
        padding-bottom: 44px;
    }

    .herogrid,
    .two {
        gap: 24px;
    }

    .ph {
        min-height: 230px;
    }

    .ph:has(> img) {
        aspect-ratio: 4 / 3;
        min-height: 0;
    }

    .ph.sm {
        min-height: 190px;
    }

    .ph.sm:has(> img) {
        min-height: 0;
    }

    .grid2 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card {
        padding: 15px;
    }

    .cta {
        align-items: stretch;
    }

    .hero .cta .btn,
    .final .cta .btn {
        flex: 1 1 100%;
        width: 100%;
    }

    .fgrid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    footer .copy {
        padding: 20px 18px;
    }
}


/* =========================================================
   REDUCED MOTION ACCESSIBILITY
========================================================= */

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .js .rv {
        opacity: 1;
        transform: none;
    }
}


/* LOCATION SECTION: ADDRESS LEFT, MAP RIGHT */
.location-map {
    width: 100%;
    min-height: 400px;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
    background: #f3eee7;
    border: 1px solid rgba(93, 45, 17, 0.15);
}

.location-map iframe {
    display: block;
    width: 100%;
    min-height: 400px;
    border: 0;
}

/* RESPONSIVE LAYOUT */
@media (max-width: 768px) {
    .wrap.two {
        grid-template-columns: 1fr;
    }

    .location-map {
        min-height: 320px;
    }

    .location-map iframe {
        min-height: 320px;
    }
}


/* =========================================
   SHARED FOOTER LOGO & SOCIAL MEDIA
   Lovathai Spa — all pages
========================================= */

.footer-logo {
    display: inline-flex;
    align-items: center;
    width: 190px;
    max-width: 100%;
    margin: 0 0 18px;
    text-decoration: none;
}

.footer-logo img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 115px;
    object-fit: contain;
    object-position: left center;
}

.footer-socials {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--taupe);
    border-radius: 50%;
    color: var(--esp);
    background: transparent;
    text-decoration: none;
    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.footer-socials a:hover {
    color: var(--ivory);
    background: var(--esp);
    border-color: var(--esp);
    transform: translateY(-3px);
}

.footer-socials a:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 4px;
}

.footer-socials svg {
    display: block;
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-socials .social-facebook svg {
    fill: currentColor;
    stroke: none;
}

.footer-socials .social-linkedin svg {
    fill: currentColor;
    stroke: none;
}

/* Mobile footer adjustments */

@media (max-width: 850px) {
    .fgrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px;
    }

    .footer-logo {
        width: 165px;
    }
}

@media (max-width: 520px) {
    .fgrid {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .footer-logo {
        width: 175px;
    }

    .footer-socials {
        gap: 14px;
    }

    .footer-socials a {
        width: 44px;
        height: 44px;
    }
}


/* =========================================
   FIX: LOVATHAI FOOTER LOGO OVERFLOW
========================================= */

footer .fgrid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1.3fr;
    align-items: start;
    gap: 36px;
}

footer .fgrid > div {
    min-width: 0;
}

footer .footer-about {
    min-width: 0;
    overflow: hidden;
}

footer a.footer-logo {
    display: block !important;
    width: 180px !important;
    max-width: 100% !important;
    height: 110px !important;
    max-height: 110px !important;
    margin: 0 0 18px !important;
    padding: 0 !important;
    overflow: hidden !important;
    line-height: 0 !important;
    flex: none !important;
}

footer a.footer-logo img {
    position: static !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 110px !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: left center !important;
    border: 0 !important;
}

/* Social icons */
footer .footer-socials {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

footer .footer-socials a {
    display: inline-flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--taupe);
    border-radius: 50%;
    color: var(--esp);
    background: transparent;
    text-decoration: none;
    transition: 0.25s ease;
}

footer .footer-socials a:hover {
    color: var(--ivory);
    background: var(--esp);
    border-color: var(--esp);
    transform: translateY(-3px);
}

footer .footer-socials svg {
    display: block;
    width: 19px;
    height: 19px;
    max-width: 19px;
    max-height: 19px;
}

/* Tablet */
@media (max-width: 850px) {
    footer .fgrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px;
    }
}

/* Mobile */
@media (max-width: 520px) {
    footer .fgrid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    footer a.footer-logo {
        width: 170px !important;
        height: 105px !important;
        max-height: 105px !important;
    }
}

