/* ============================================
   FOOT FINESSE - Stunning Spa Website
   Modern, clean, luxurious design
   ============================================ */

/* --- Custom Properties --- */
:root {
    --ff-primary: #2E2252;
    --ff-primary-dark: #1e1638;
    --ff-primary-light: #4a3d6e;
    --ff-accent: #B87333;
    --ff-accent-light: #d4924f;
    --ff-accent-pale: #e8c9a0;
    --ff-dark: #1a1428;
    --ff-text: #2c2440;
    --ff-text-light: #5c5470;
    --ff-bg: #faf9fc;
    --ff-bg-alt: #f4f2f7;
    --ff-cream: #faf6f0;
    --ff-white: #ffffff;
    --ff-border: #e8e4ee;
    --ff-heading: 'Playfair Display', Georgia, serif;
    --ff-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --ff-radius: 12px;
    --ff-radius-lg: 24px;
    --ff-shadow-sm: 0 2px 8px rgba(46, 34, 82, 0.05);
    --ff-shadow-md: 0 8px 30px rgba(46, 34, 82, 0.08);
    --ff-shadow-lg: 0 20px 60px rgba(46, 34, 82, 0.12);
    --ff-transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    font-size: 112.5%; /* 18px base instead of 16px for better readability */
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--ff-body);
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--ff-text);
    background: var(--ff-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--ff-transition);
}

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

ul {
    list-style: none;
}

/* --- Utility --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 9999;
    padding: 12px 24px;
    background: var(--ff-dark);
    color: var(--ff-white);
    border-radius: var(--ff-radius);
    font-weight: 500;
}

.skip-link:focus {
    top: 16px;
}

/* --- Header / Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    transition: all var(--ff-transition);
}

.header.scrolled {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--ff-shadow-sm);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo-text {
    font-family: var(--ff-heading);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--ff-white);
    transition: color var(--ff-transition);
}

.header.scrolled .nav__logo-text {
    color: var(--ff-dark);
}

.nav__logo-img {
    height: 80px;
    width: 80px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all var(--ff-transition);
}

.header.scrolled .nav__logo-img {
    height: 56px;
    width: 56px;
    background: rgba(255, 255, 255, 0.9);
    padding: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav__link {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.3px;
    position: relative;
    padding: 4px 0;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--ff-accent);
    transition: width var(--ff-transition);
    border-radius: 1px;
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.header.scrolled .nav__link {
    color: var(--ff-text);
}

.nav__cta {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ff-white);
    padding: 10px 24px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 100px;
}

.nav__cta:hover {
    background: var(--ff-white);
    color: var(--ff-dark);
    border-color: var(--ff-white);
}

.header.scrolled .nav__cta {
    color: var(--ff-primary);
    border-color: var(--ff-primary);
}

.header.scrolled .nav__cta:hover {
    background: var(--ff-primary);
    color: var(--ff-white);
    border-color: var(--ff-primary);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 110;
}

.nav__toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ff-white);
    border-radius: 2px;
    transition: all var(--ff-transition);
}

.header.scrolled .nav__toggle-bar {
    background: var(--ff-dark);
}

.nav__toggle.active .nav__toggle-bar {
    background: var(--ff-dark);
}

.nav__toggle.active .nav__toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.active .nav__toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav__toggle.active .nav__toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

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

.hero__bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(160deg, #1e1638 0%, #2E2252 30%, #241a42 60%, #140e24 100%);
}

.hero__bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 70%, rgba(184, 115, 51, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 30%, rgba(74, 61, 110, 0.15) 0%, transparent 50%);
}

.hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
}

.hero__particles {
    position: absolute;
    inset: 0;
    opacity: 0.3;
    background-image:
        radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 40% 70%, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 60% 20%, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 80% 50%, rgba(255,255,255,0.2), transparent),
        radial-gradient(1.5px 1.5px at 15% 80%, rgba(184,115,51,0.4), transparent),
        radial-gradient(1.5px 1.5px at 85% 85%, rgba(184,115,51,0.3), transparent);
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 120px 24px 80px;
    max-width: 780px;
}

.hero__badge {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ff-accent);
    padding: 8px 20px;
    border: 1px solid rgba(184, 115, 51, 0.4);
    border-radius: 100px;
    margin-bottom: 32px;
}

.hero__title {
    font-family: var(--ff-heading);
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 500;
    color: var(--ff-white);
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.hero__title em {
    font-style: italic;
    color: var(--ff-accent-light);
}

.hero__subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.75);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero__scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.hero__scroll-wheel {
    width: 3px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
    animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(6px); opacity: 0.3; }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--ff-body);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 100px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--ff-transition);
    letter-spacing: 0.3px;
}

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

.btn--primary:hover {
    background: var(--ff-primary-dark);
    border-color: var(--ff-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(46, 34, 82, 0.3);
}

.btn--outline {
    background: transparent;
    color: var(--ff-white);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn--outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
}

.btn--white {
    background: var(--ff-white);
    color: var(--ff-primary-dark);
    border-color: var(--ff-white);
    font-weight: 600;
}

.btn--white:hover {
    background: transparent;
    color: var(--ff-white);
    border-color: var(--ff-white);
    transform: translateY(-2px);
}



/* --- Section Header --- */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 72px;
}

.section-header__label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--ff-primary);
    margin-bottom: 12px;
}

.section-header__title {
    font-family: var(--ff-heading);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 500;
    color: var(--ff-dark);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-header__desc {
    font-size: 1rem;
    color: var(--ff-text-light);
    line-height: 1.8;
}

.section-header__pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ff-accent);
    background: rgba(184, 115, 51, 0.1);
    border: 1px solid rgba(184, 115, 51, 0.25);
    border-radius: 999px;
    line-height: 1.4;
}

.section-header__pill svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* --- Services Section --- */
.services {
    padding: 120px 0;
    background: var(--ff-white);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 80px;
}

.service-card {
    position: relative;
    padding: 40px 32px;
    background: var(--ff-bg);
    border: 1px solid var(--ff-border);
    border-radius: var(--ff-radius-lg);
    transition: all var(--ff-transition);
    display: flex;
    flex-direction: column;
}

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

.service-card--featured {
    background: var(--ff-dark);
    border-color: var(--ff-dark);
}

.service-card--featured:hover {
    background: #231a3a;
}

.service-card--featured .service-card__title,
.service-card--featured .service-card__desc {
    color: rgba(255, 255, 255, 0.9);
}

.service-card--featured .service-card__icon {
    color: var(--ff-accent);
}

.service-card--featured .price-item__amount {
    color: var(--ff-accent);
}

.service-card--featured .price-item__duration,
.service-card--featured .price-item__detail {
    color: rgba(255, 255, 255, 0.7);
}

.service-card--featured .service-card__pricing {
    border-color: rgba(255, 255, 255, 0.1);
}

.service-card__badge {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 14px;
    background: var(--ff-accent);
    color: var(--ff-dark);
    border-radius: 100px;
}

.service-card__icon {
    width: 44px;
    height: 44px;
    color: var(--ff-primary);
    margin-bottom: 24px;
}

.service-card__title {
    font-family: var(--ff-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ff-dark);
    margin-bottom: 12px;
}

.service-card__desc {
    font-size: 0.9rem;
    color: var(--ff-text-light);
    line-height: 1.7;
    margin-bottom: 28px;
    flex-grow: 1;
}

.service-card__pricing {
    border-top: 1px solid var(--ff-border);
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.price-item__top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.price-item__duration {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ff-text);
}

.price-item__amount {
    font-family: var(--ff-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ff-primary);
}

.price-item__detail {
    font-size: 0.85rem;
    color: var(--ff-text-light);
    margin-top: 4px;
    line-height: 1.5;
}

/* Experience descriptions */
.services__experiences {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 48px;
    background: var(--ff-bg-alt);
    border-radius: var(--ff-radius-lg);
    border: 1px solid var(--ff-border);
}

.experience__title {
    font-family: var(--ff-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--ff-dark);
    margin-bottom: 12px;
}

.experience__text {
    font-size: 0.9rem;
    color: var(--ff-text-light);
    line-height: 1.8;
}

/* --- About Section --- */
.about {
    padding: 120px 0;
    background: var(--ff-bg-alt);
}

.about__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about__visual {
    position: relative;
}

.about__image-frame {
    width: 100%;
    aspect-ratio: 4/5;
    border-radius: var(--ff-radius-lg);
    overflow: hidden;
    position: relative;
}

.about__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: -40px;
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.stat {
    background: var(--ff-white);
    padding: 20px 12px;
    border-radius: var(--ff-radius);
    text-align: center;
    box-shadow: var(--ff-shadow-md);
    border: 1px solid var(--ff-border);
}

.stat__number {
    display: block;
    font-family: var(--ff-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--ff-primary);
    margin-bottom: 4px;
}

.stat__label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ff-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about__content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.about__content .section-header__label {
    text-align: left;
}

.about__content .section-header__title {
    text-align: left;
    margin-bottom: 24px;
}

.about__content p {
    font-size: 0.95rem;
    color: var(--ff-text-light);
    margin-bottom: 16px;
    line-height: 1.8;
}

.about__content .btn {
    margin-top: 16px;
    align-self: flex-start;
}

/* --- Benefits Section --- */
.benefits {
    padding: 120px 0;
    background: var(--ff-white);
}

.benefits__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.benefit-card {
    padding: 40px;
    background: var(--ff-bg);
    border: 1px solid var(--ff-border);
    border-radius: var(--ff-radius-lg);
    transition: all var(--ff-transition);
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ff-shadow-md);
    border-color: var(--ff-primary-light);
}

.benefit-card__icon {
    width: 40px;
    height: 40px;
    color: var(--ff-primary);
    margin-bottom: 20px;
}

.benefit-card__title {
    font-family: var(--ff-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--ff-dark);
    margin-bottom: 10px;
}

.benefit-card__desc {
    font-size: 0.9rem;
    color: var(--ff-text-light);
    line-height: 1.7;
}

/* --- Gallery Section --- */
.gallery {
    padding: 100px 0;
    background: var(--ff-bg-alt);
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 60px;
}

.gallery__item {
    margin: 0;
    border-radius: var(--ff-radius);
    overflow: hidden;
    position: relative;
    aspect-ratio: 3/2;
    cursor: pointer;
    box-shadow: var(--ff-shadow-sm);
    transition: transform var(--ff-transition), box-shadow var(--ff-transition);
}

.gallery__item:hover {
    transform: translateY(-4px);
    box-shadow: var(--ff-shadow-md);
}

.gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--ff-transition);
}

.gallery__item:hover .gallery__img {
    transform: scale(1.05);
}

/* Gallery lightbox overlay */
.gallery__lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(20, 14, 36, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gallery__lightbox.active {
    opacity: 1;
    visibility: visible;
}

.gallery__lightbox-img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: var(--ff-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.gallery__lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--ff-white);
    font-size: 1.8rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.gallery__lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .gallery__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .gallery__item {
        aspect-ratio: 1;
    }
}

@media (max-width: 480px) {
    .gallery__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

/* --- CTA Section --- */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #2E2252 0%, #1e1638 100%);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(184, 115, 51, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(74, 61, 110, 0.08) 0%, transparent 50%);
}

.cta__content {
    position: relative;
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

.cta__title {
    font-family: var(--ff-heading);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 500;
    color: var(--ff-white);
    margin-bottom: 16px;
}

.cta__text {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 32px;
    line-height: 1.7;
}

/* --- Contact Section --- */
.contact {
    padding: 120px 0;
    background: var(--ff-bg-alt);
}

.contact__layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: start;
}

.contact__info .section-header__label,
.contact__info .section-header__title {
    text-align: left;
}

.contact__info .section-header__title {
    margin-bottom: 32px;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

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

.contact__icon {
    width: 24px;
    height: 24px;
    color: var(--ff-primary);
    flex-shrink: 0;
    margin-top: 4px;
}

.contact__item h4 {
    font-family: var(--ff-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ff-dark);
    margin-bottom: 4px;
}

.contact__item p {
    font-size: 0.9rem;
    color: var(--ff-text-light);
    line-height: 1.6;
}

.contact__item a {
    color: var(--ff-primary);
    font-weight: 600;
}

.contact__item a:hover {
    color: var(--ff-primary-dark);
    text-decoration: underline;
}

.contact__map {
    height: 420px;
    border-radius: var(--ff-radius-lg);
    overflow: hidden;
    box-shadow: var(--ff-shadow-md);
    background: var(--ff-border);
}

/* --- Footer --- */
.footer {
    background: var(--ff-dark);
    padding: 72px 0 32px;
    color: rgba(255, 255, 255, 0.6);
}

.footer__top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 32px;
}

.footer__logo {
    font-family: var(--ff-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ff-white);
    display: block;
    margin-bottom: 16px;
}

.footer__logo-img {
    height: 64px;
    width: 64px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    margin-bottom: 16px;
}

.footer__brand p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer__nav h4,
.footer__contact h4 {
    font-family: var(--ff-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--ff-white);
    margin-bottom: 16px;
}

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

.footer__nav a {
    font-size: 0.9rem;
    transition: color var(--ff-transition);
}

.footer__nav a:hover {
    color: var(--ff-accent);
}

.footer__contact p {
    font-size: 0.9rem;
    margin-bottom: 8px;
    line-height: 1.6;
}

.footer__contact a {
    color: var(--ff-accent);
    font-size: 1.1rem;
    font-weight: 600;
    display: block;
    margin-bottom: 12px;
}

.footer__hours {
    font-size: 0.85rem;
    opacity: 0.8;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.footer__bottom a {
    color: var(--ff-accent);
}

.footer__bottom a:hover {
    text-decoration: underline;
}

/* --- Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .services__grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto 80px;
    }

    .services__experiences {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about__layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about__visual {
        order: 2;
    }

    .about__content .section-header__label,
    .about__content .section-header__title {
        text-align: center;
    }

    .about__content {
        align-items: center;
        text-align: center;
    }

    .benefits__grid {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin: 0 auto;
    }

    .contact__layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer__top {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nav__toggle {
        display: flex;
    }

    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        height: 100dvh;
        background: var(--ff-white);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 32px 40px;
        gap: 20px;
        transition: right var(--ff-transition);
        box-shadow: var(--ff-shadow-lg);
        z-index: 105;
    }

    .nav__menu.active {
        right: 0;
    }

    .nav__menu .nav__link {
        color: var(--ff-text);
        font-size: 1rem;
    }

    .nav__menu .nav__cta {
        color: var(--ff-text);
        border: none;
        padding: 0;
        border-radius: 0;
        font-weight: 500;
        background: none;
    }

    .nav__menu .nav__cta:hover {
        color: var(--ff-primary);
        background: none;
    }

    .hero__title {
        font-size: clamp(2.2rem, 9vw, 3.5rem);
    }

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

    .about__image-frame {
        aspect-ratio: 4/5;
    }

    .about__stats {
        margin-top: -30px;
        padding: 0 12px;
    }

    .stat {
        padding: 16px 8px;
    }

    .stat__number {
        font-size: 1.3rem;
    }

    .contact__map {
        height: 280px;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .service-card {
        padding: 32px 24px;
    }

    .benefit-card {
        padding: 28px 24px;
    }

    .services__experiences {
        padding: 32px 24px;
    }
}


/* ============================================
   FOOTNOTES (BLOG) PAGE
   ============================================ */

/* Solid header: the Footnotes page has a light background (no dark hero),
   so the nav must always use its dark/legible treatment instead of the
   white-on-hero styling that only kicks in on scroll on the home page. */
.header--solid {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--ff-shadow-sm);
}

.header--solid .nav__logo-text {
    color: var(--ff-dark);
}

.header--solid .nav__link {
    color: var(--ff-text);
}

.header--solid .nav__cta {
    color: var(--ff-primary);
    border-color: var(--ff-primary);
}

.header--solid .nav__cta:hover {
    background: var(--ff-primary);
    color: var(--ff-white);
    border-color: var(--ff-primary);
}

.header--solid .nav__toggle-bar {
    background: var(--ff-dark);
}

.footnotes-hero {
    /* Extra top padding clears the fixed header. */
    padding: 160px 0 40px;
    background: var(--ff-bg-alt);
}

.footnotes-hero .section-header {
    margin-bottom: 0;
}

.footnotes-section {
    padding: 72px 0 96px;
}

.footnotes__empty {
    text-align: center;
    color: var(--ff-text-light);
    font-size: 1.05rem;
    padding: 48px 0;
}

.footnotes__empty a {
    color: var(--ff-primary);
    font-weight: 600;
    text-decoration: underline;
}

/* --- Post list grid --- */
.footnotes__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.footnote-card {
    background: var(--ff-white);
    border: 1px solid var(--ff-border);
    border-radius: var(--ff-radius-lg);
    overflow: hidden;
    box-shadow: var(--ff-shadow-sm);
    transition: transform var(--ff-transition), box-shadow var(--ff-transition);
    display: flex;
    flex-direction: column;
}

.footnote-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ff-shadow-md);
}

.footnote-card__body {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.footnote-card__date {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ff-accent);
}

.footnote-card__title {
    font-family: var(--ff-heading);
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--ff-dark);
}

.footnote-card__title a:hover {
    color: var(--ff-primary);
}

.footnote-card__excerpt {
    color: var(--ff-text-light);
    font-size: 1rem;
    line-height: 1.7;
    flex: 1;
}

.footnote-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--ff-primary);
    margin-top: 4px;
}

.footnote-card__link:hover {
    gap: 14px;
    color: var(--ff-primary-dark);
}

/* --- Single post --- */
.footnote-single__wrap {
    max-width: 760px;
    margin: 0 auto;
}

.footnote-single__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--ff-primary);
    margin-bottom: 32px;
}

.footnote-single__back:hover {
    gap: 14px;
    color: var(--ff-primary-dark);
}

.footnote-single__content {
    color: var(--ff-text);
    font-size: 1.125rem;
    line-height: 1.85;
}

.footnote-single__content h2 {
    font-family: var(--ff-heading);
    font-size: 1.7rem;
    font-weight: 500;
    color: var(--ff-dark);
    margin: 40px 0 16px;
    line-height: 1.3;
}

.footnote-single__content h3 {
    font-family: var(--ff-heading);
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--ff-dark);
    margin: 32px 0 12px;
}

.footnote-single__content p {
    margin-bottom: 20px;
}

.footnote-single__content ul,
.footnote-single__content ol {
    margin: 0 0 20px 1.4em;
    padding-left: 0.4em;
}

.footnote-single__content ul {
    list-style: disc;
}

.footnote-single__content ol {
    list-style: decimal;
}

.footnote-single__content li {
    margin-bottom: 8px;
}

.footnote-single__content a {
    color: var(--ff-primary);
    font-weight: 600;
    text-decoration: underline;
}

.footnote-single__cta {
    text-align: center;
    margin-top: 56px;
    padding: 40px 32px;
    background: var(--ff-bg-alt);
    border-radius: var(--ff-radius-lg);
}

.footnote-single__cta p {
    font-family: var(--ff-heading);
    font-size: 1.4rem;
    color: var(--ff-dark);
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .footnotes-hero {
        padding: 130px 0 24px;
    }

    .footnotes-section {
        padding: 48px 0 72px;
    }

    .footnote-card__body {
        padding: 28px 24px;
    }
}

/* --- Deal Banner --- */
.deal-banner {
    padding: 48px 0 8px;
}

/* The banner design is a pre-rendered flat image (composed in the admin) that
   scales cleanly and stays readable at any width. The whole card is a link to
   the contact form, so tapping anywhere on the banner takes the visitor there. */
.deal-banner__card {
    position: relative;
    display: block;
    width: 100%;
    margin: 0 auto;
    border-radius: var(--ff-radius-lg);
    overflow: hidden;
    box-shadow: var(--ff-shadow-md);
    background: #ffffff;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.deal-banner__card:hover,
.deal-banner__card:focus-visible {
    transform: translateY(-3px);
    box-shadow: var(--ff-shadow-lg, 0 12px 28px rgba(0, 0, 0, 0.18));
}

.deal-banner__card:focus-visible {
    outline: 3px solid var(--ff-accent, #2a9d8f);
    outline-offset: 3px;
}

.deal-banner__card picture {
    display: block;
}

.deal-banner__img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 640px) {
    .deal-banner {
        padding: 32px 0 4px;
    }
}
