/* ========================================
   APARTMENT DENIA LA GOLETA
   Mediterranean boutique aesthetic
   ======================================== */

:root {
    /* Palette — drawn from the photos */
    --cream: #faf6f0;
    --cream-dark: #f3ebde;
    --sand: #e8dcc4;
    --terracotta: #c46b3e;
    --terracotta-deep: #8a4426;
    --terracotta-soft: #d89876;
    --sea: #1d4e6b;
    --sea-deep: #0f3548;
    --olive: #6b7250;
    --ink: #2a2520;
    --ink-soft: #4a4138;
    --muted: #8a7f72;
    --line: rgba(42, 37, 32, 0.12);

    /* Typography */
    --font-display: 'Cormorant Garamond', 'Garamond', 'Times New Roman', serif;
    --font-body: 'Manrope', -apple-system, 'Helvetica Neue', sans-serif;

    /* Spacing */
    --section-pad: clamp(4rem, 10vw, 8rem);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--ink);
    background: var(--cream);
    line-height: 1.65;
    font-size: 16px;
    margin: 0;
    overflow-x: hidden;
}

/* Subtle paper-grain texture overlay across the whole page */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.04;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, .display {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin: 0;
}

h1, .h1 {
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 300;
    letter-spacing: -0.02em;
}

h2, .h2 {
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 400;
}

h3 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
}

p {
    margin: 0 0 1.25rem;
    color: var(--ink-soft);
    font-size: 1.0625rem;
    line-height: 1.75;
}

.eyebrow {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.eyebrow::before {
    content: '';
    display: inline-block;
    width: 2rem;
    height: 1px;
    background: var(--terracotta);
    vertical-align: middle;
    margin-right: 0.75rem;
}

.lead {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.25rem, 2.2vw, 1.625rem);
    font-weight: 400;
    line-height: 1.5;
    color: var(--ink);
    max-width: 38ch;
}

a {
    color: var(--sea);
    text-decoration: none;
    transition: color 0.25s ease;
}

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

/* ========================================
   LAYOUT
   ======================================== */

.container-x {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
}

section {
    padding: var(--section-pad) 0;
    position: relative;
}

.section-header {
    max-width: 720px;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* ========================================
   NAVIGATION
   ======================================== */

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 0;
    background: transparent;
    transition: all 0.4s ease;
}

.site-nav.scrolled {
    background: rgba(250, 246, 240, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    padding: 0.875rem 0;
}

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

.brand {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--cream);
    transition: color 0.4s ease;
    line-height: 1;
}

.brand small {
    display: block;
    font-family: var(--font-body);
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-top: 0.25rem;
    opacity: 0.7;
}

.site-nav.scrolled .brand {
    color: var(--ink);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--cream);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    position: relative;
}

.site-nav.scrolled .nav-links a {
    color: var(--ink-soft);
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 1px;
    background: var(--terracotta);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

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

.lang-switch {
    position: relative;
}

.lang-toggle {
    background: none;
    border: 1px solid rgba(250, 246, 240, 0.3);
    color: var(--cream);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-nav.scrolled .lang-toggle {
    border-color: var(--line);
    color: var(--ink);
}

.lang-toggle:hover {
    background: var(--terracotta);
    border-color: var(--terracotta);
    color: var(--cream);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    padding: 0.5rem;
    min-width: 160px;
    box-shadow: 0 20px 50px rgba(42, 37, 32, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
    list-style: none;
    margin: 0;
}

.lang-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-menu a {
    display: block;
    padding: 0.625rem 0.875rem;
    border-radius: 0.375rem;
    color: var(--ink);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.lang-menu a:hover {
    background: var(--cream-dark);
    color: var(--terracotta);
}

.lang-menu a.active {
    color: var(--terracotta);
    font-weight: 600;
}

.nav-burger {
    display: none;
    background: none;
    border: none;
    color: var(--cream);
    padding: 0.5rem;
    cursor: pointer;
}

.site-nav.scrolled .nav-burger {
    color: var(--ink);
}

@media (max-width: 991px) {
    .nav-links {
        display: none;
    }

    .nav-burger {
        display: block;
    }

    .nav-links.mobile-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--cream);
        padding: 2rem;
        gap: 1rem;
        border-top: 1px solid var(--line);
        box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    }

    .nav-links.mobile-open a {
        color: var(--ink) !important;
        font-size: 1.125rem;
    }
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background: var(--terracotta);
    color: var(--cream);
}

.btn-primary:hover {
    background: var(--terracotta-deep);
    color: var(--cream);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(138, 68, 38, 0.3);
}

.btn-ghost {
    background: transparent;
    color: var(--cream);
    border-color: rgba(250, 246, 240, 0.4);
}

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

.btn-outline {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}

.btn-outline:hover {
    background: var(--ink);
    color: var(--cream);
}

.btn-sea {
    background: var(--sea);
    color: var(--cream);
}

.btn-sea:hover {
    background: var(--sea-deep);
    color: var(--cream);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(15, 53, 72, 0.3);
}

.btn svg {
    width: 1rem;
    height: 1rem;
}

/* ========================================
   HERO
   ======================================== */

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    padding: 0;
    color: var(--cream);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    animation: heroZoom 20s ease-out forwards;
}

@keyframes heroZoom {
    from { transform: scale(1.08); }
    to { transform: scale(1); }
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 53, 72, 0.35) 0%,
        rgba(15, 53, 72, 0.15) 35%,
        rgba(42, 37, 32, 0.55) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-bottom: clamp(3rem, 8vw, 6rem);
    padding-top: 8rem;
}

.hero-eyebrow {
    color: var(--cream);
    opacity: 0.85;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 2rem;
    animation: fadeUp 1s 0.3s ease both;
}

.hero-eyebrow::before {
    background: var(--cream);
}

.hero h1 {
    color: var(--cream);
    font-style: italic;
    font-weight: 300;
    margin-bottom: 1.5rem;
    animation: fadeUp 1.2s 0.5s ease both;
}

.hero-sub {
    font-family: var(--font-display);
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    font-weight: 300;
    line-height: 1.4;
    color: var(--cream);
    opacity: 0.92;
    max-width: 28ch;
    margin-bottom: 2.5rem;
    animation: fadeUp 1.2s 0.7s ease both;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    animation: fadeUp 1.2s 0.9s ease both;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--cream);
    font-size: 0.625rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    opacity: 0.7;
    z-index: 2;
    animation: bounce 2s infinite;
}

.hero-scroll::after {
    content: '';
    display: block;
    width: 1px;
    height: 30px;
    background: var(--cream);
    margin: 0.75rem auto 0;
    opacity: 0.6;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

/* ========================================
   INTRO SECTION
   ======================================== */

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

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 8vw, 6rem);
    align-items: center;
}

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

.intro-text h2 {
    margin-bottom: 2rem;
}

.intro-text h2 em {
    font-style: italic;
    color: var(--terracotta);
}

.intro-image {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 4px;
}

.intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.intro-image::after {
    content: '';
    position: absolute;
    bottom: -1.5rem;
    right: -1.5rem;
    width: 40%;
    height: 40%;
    border: 1px solid var(--terracotta);
    z-index: -1;
}

/* ========================================
   STATS STRIP
   ======================================== */

.stats {
    background: var(--ink);
    color: var(--cream);
    padding: clamp(3rem, 6vw, 5rem) 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

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

.stat {
    text-align: center;
    padding: 0 1rem;
    border-right: 1px solid rgba(250, 246, 240, 0.15);
}

.stat:last-child { border-right: none; }

@media (max-width: 768px) {
    .stat { border-right: none; }
}

.stat-label {
    font-size: 0.6875rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--terracotta-soft);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.stat-value {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    letter-spacing: -0.01em;
    color: var(--cream);
    line-height: 1;
}

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

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

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 2px;
    background: var(--cream-dark);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(42, 37, 32, 0.6));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.gallery-item:hover::after { opacity: 1; }

.gallery-item .caption {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    color: var(--cream);
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.125rem;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.4s ease;
    z-index: 2;
    pointer-events: none;
}

.gallery-item:hover .caption {
    opacity: 1;
    transform: translateY(0);
}

/* Gallery layout — asymmetric grid */
.g-1 { grid-column: span 7; aspect-ratio: 16 / 11; }
.g-2 { grid-column: span 5; aspect-ratio: 1 / 1; }
.g-3 { grid-column: span 4; aspect-ratio: 3 / 4; }
.g-4 { grid-column: span 4; aspect-ratio: 3 / 4; }
.g-5 { grid-column: span 4; aspect-ratio: 3 / 4; }
.g-6 { grid-column: span 5; aspect-ratio: 4 / 3; }
.g-7 { grid-column: span 7; aspect-ratio: 16 / 9; }
.g-8 { grid-column: span 4; aspect-ratio: 1 / 1; }
.g-9 { grid-column: span 4; aspect-ratio: 1 / 1; }
.g-10 { grid-column: span 4; aspect-ratio: 1 / 1; }
.g-11 { grid-column: span 6; aspect-ratio: 4 / 3; }
.g-12 { grid-column: span 6; aspect-ratio: 4 / 3; }

/* Picture element inside gallery items fills the item */
.gallery-item picture {
    display: block;
    width: 100%;
    height: 100%;
}

/* Mobile gallery teaser — hidden on desktop */
.gallery-mobile { display: none; }

/* On mobile + narrow tablet: hide grid, show teaser */
@media (max-width: 991px) {
    .gallery-grid { display: none; }
    .gallery-mobile { display: block; }
}

.gallery-mobile-hero {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 3px;
    margin-bottom: 1.25rem;
    background: var(--cream-dark);
    border: none;
    padding: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.gallery-mobile-hero picture,
.gallery-mobile-hero img {
    width: 100%;
    height: 100%;
    display: block;
}

.gallery-mobile-hero img {
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gallery-mobile-hero:hover img,
.gallery-mobile-hero:active img {
    transform: scale(1.04);
}

.gallery-mobile-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(42, 37, 32, 0.55));
    pointer-events: none;
}

.gallery-mobile-counter {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(42, 37, 32, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--cream);
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    z-index: 2;
    font-feature-settings: 'tnum';
}

.gallery-mobile-caption {
    position: absolute;
    bottom: 1rem;
    left: 1.25rem;
    right: 1.25rem;
    color: var(--cream);
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.25rem;
    line-height: 1.3;
    z-index: 2;
    text-align: left;
}

.gallery-view-all {
    width: 100%;
    background: var(--ink);
    color: var(--cream);
    border: none;
    padding: 1.125rem 1.5rem;
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.gallery-view-all:hover,
.gallery-view-all:focus-visible {
    background: var(--terracotta);
    color: var(--cream);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(196, 107, 62, 0.35);
    outline: none;
}

.gallery-view-all svg {
    flex-shrink: 0;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 18, 20, 0.96);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

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

.lightbox-caption {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--cream);
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.125rem;
    opacity: 0.85;
    text-align: center;
    max-width: 80vw;
}

.lightbox button {
    position: absolute;
    background: rgba(250, 246, 240, 0.1);
    border: 1px solid rgba(250, 246, 240, 0.3);
    color: var(--cream);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.lightbox button:hover {
    background: var(--terracotta);
    border-color: var(--terracotta);
}

.lightbox-close { top: 2rem; right: 2rem; }
.lightbox-prev { left: 2rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 2rem; top: 50%; transform: translateY(-50%); }

@media (max-width: 768px) {
    .lightbox-prev { left: 1rem; }
    .lightbox-next { right: 1rem; }
    .lightbox-close { top: 1rem; right: 1rem; }
}

/* ========================================
   FEATURES
   ======================================== */

.features {
    background: var(--cream-dark);
    position: relative;
}

.features-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: clamp(3rem, 6vw, 5rem);
}

@media (max-width: 768px) {
    .features-header { grid-template-columns: 1fr; gap: 2rem; }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(2rem, 4vw, 4rem);
}

@media (max-width: 768px) {
    .features-grid { grid-template-columns: 1fr; gap: 3rem; }
}

.feat-group h3 {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--terracotta);
    font-weight: 400;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}

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

.feat-list li {
    padding: 0.75rem 0;
    color: var(--ink-soft);
    font-size: 1rem;
    border-bottom: 1px solid rgba(42, 37, 32, 0.06);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.feat-list li::before {
    content: '';
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    background: var(--terracotta);
    border-radius: 50%;
    margin-top: 0.625rem;
}

/* ========================================
   LOCATION
   ======================================== */

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

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 5rem);
    align-items: start;
}

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

.location-map {
    aspect-ratio: 4 / 5;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(42, 37, 32, 0.12);
    background: var(--cream-dark);
}

.location-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.address-card {
    background: var(--cream-dark);
    padding: 2rem;
    border-left: 3px solid var(--terracotta);
    margin: 2rem 0;
}

.address-label {
    font-size: 0.6875rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.address-card address {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-style: normal;
    color: var(--ink);
    line-height: 1.5;
}

.loc-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem 3rem;
    margin-top: 2.5rem;
}

@media (max-width: 480px) {
    .loc-sections { grid-template-columns: 1fr; }
}

.loc-section h4 {
    font-family: var(--font-body);
    font-size: 0.6875rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 1rem;
    font-weight: 600;
}

.loc-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.loc-section li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px dotted var(--line);
    font-size: 0.9375rem;
    color: var(--ink-soft);
}

.loc-section li span {
    color: var(--muted);
    font-feature-settings: 'tnum';
    font-size: 0.8125rem;
    white-space: nowrap;
}

/* ========================================
   AROUND
   ======================================== */

.around {
    background: var(--ink);
    color: var(--cream);
    padding-top: 0;
    padding-bottom: 0;
}

.around-banner {
    aspect-ratio: 21 / 9;
    overflow: hidden;
    position: relative;
}

.around-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.around-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(42, 37, 32, 0.5));
}

.around-content {
    padding: var(--section-pad) 0;
}

.around .eyebrow { color: var(--terracotta-soft); }
.around .eyebrow::before { background: var(--terracotta-soft); }

.around h2 {
    color: var(--cream);
    font-style: italic;
    font-weight: 300;
}

.around p {
    color: rgba(250, 246, 240, 0.8);
    max-width: 60ch;
    margin-bottom: 4rem;
    font-size: 1.125rem;
}

.around-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 768px) {
    .around-cards { grid-template-columns: 1fr; }
}

.around-card {
    border-top: 1px solid rgba(250, 246, 240, 0.2);
    padding-top: 1.5rem;
}

.around-card h3 {
    font-family: var(--font-display);
    color: var(--cream);
    font-style: italic;
    font-weight: 400;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.around-card p {
    color: rgba(250, 246, 240, 0.7);
    font-size: 0.9375rem;
    margin-bottom: 0;
}

/* ========================================
   BOOK SECTION
   ======================================== */

.book {
    background: var(--cream);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.book::before {
    content: '';
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--cream-dark) 0%, transparent 70%);
    z-index: 0;
}

.book-inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
}

.book h2 {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.book p {
    margin-bottom: 2.5rem;
    font-size: 1.125rem;
}

.book-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.book-note {
    font-size: 0.8125rem;
    color: var(--muted);
    letter-spacing: 0.05em;
    margin: 0;
}

/* ========================================
   RULES
   ======================================== */

.rules {
    background: var(--cream-dark);
    padding-top: clamp(3rem, 6vw, 5rem);
    padding-bottom: clamp(3rem, 6vw, 5rem);
}

.rules-inner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}

@media (max-width: 768px) {
    .rules-inner { grid-template-columns: 1fr; }
}

.rules-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (max-width: 480px) {
    .rules-list { grid-template-columns: 1fr; }
}

.rules-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: var(--ink-soft);
}

.rules-list svg {
    flex-shrink: 0;
    color: var(--terracotta);
}

/* ========================================
   CONTACT
   ======================================== */

.contact {
    background: var(--sea);
    color: var(--cream);
    text-align: center;
}

.contact .eyebrow { color: var(--terracotta-soft); }
.contact .eyebrow::before { background: var(--terracotta-soft); }

.contact h2 {
    color: var(--cream);
    font-style: italic;
    font-weight: 300;
}

.contact p {
    color: rgba(250, 246, 240, 0.8);
    margin-bottom: 3rem;
    font-size: 1.125rem;
}

.contact-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 720px;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .contact-cards { grid-template-columns: 1fr; }
}

.contact-card {
    background: rgba(250, 246, 240, 0.05);
    border: 1px solid rgba(250, 246, 240, 0.15);
    padding: 2rem 1.5rem;
    border-radius: 2px;
    transition: all 0.3s ease;
    color: var(--cream);
    text-decoration: none;
    display: block;
}

.contact-card:hover {
    background: rgba(250, 246, 240, 0.1);
    border-color: var(--terracotta);
    transform: translateY(-3px);
    color: var(--cream);
}

.contact-card svg {
    width: 1.75rem;
    height: 1.75rem;
    margin-bottom: 1rem;
    color: var(--terracotta-soft);
}

.contact-card .label {
    font-size: 0.6875rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(250, 246, 240, 0.6);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.contact-card .value {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--cream);
}

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

.site-footer {
    background: var(--ink);
    color: rgba(250, 246, 240, 0.7);
    padding: 4rem 0 2rem;
    font-size: 0.875rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--cream);
    font-weight: 300;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.footer-tagline {
    font-style: italic;
    color: rgba(250, 246, 240, 0.6);
    margin-bottom: 1.5rem;
}

.footer-section h4 {
    font-family: var(--font-body);
    font-size: 0.6875rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--terracotta-soft);
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section ul { list-style: none; padding: 0; margin: 0; }

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(250, 246, 240, 0.7);
}

.footer-section a:hover { color: var(--terracotta-soft); }

.footer-bottom {
    border-top: 1px solid rgba(250, 246, 240, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.75rem;
    color: rgba(250, 246, 240, 0.5);
}

.footer-bottom .license {
    color: var(--terracotta-soft);
    letter-spacing: 0.05em;
}

/* ========================================
   REVEAL ANIMATION ON SCROLL
   ======================================== */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1),
                transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
}

/* ========================================
   FLOATING WHATSAPP BUTTON
   ======================================== */

.fab-whatsapp {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 8px 24px rgba(37, 211, 102, 0.35),
        0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 99;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
                box-shadow 0.3s ease,
                background 0.3s ease;
    text-decoration: none;
    /* Slide in after page load */
    animation: fab-slide-in 0.6s 0.8s ease both;
}

.fab-whatsapp:hover,
.fab-whatsapp:focus-visible {
    background: #1ebe5a;
    color: #fff;
    transform: scale(1.08);
    box-shadow:
        0 14px 32px rgba(37, 211, 102, 0.45),
        0 6px 16px rgba(0, 0, 0, 0.2);
    outline: none;
}

.fab-whatsapp svg {
    width: 30px;
    height: 30px;
    display: block;
}

/* Pulsing ring */
.fab-whatsapp::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid #25D366;
    opacity: 0;
    animation: fab-pulse 2.4s 1.5s ease-out infinite;
    pointer-events: none;
}

/* Tooltip on hover (desktop only) */
.fab-whatsapp::after {
    content: attr(data-tooltip);
    position: absolute;
    right: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%) translateX(8px);
    background: var(--ink);
    color: var(--cream);
    padding: 0.625rem 1rem;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

/* Little arrow on tooltip */
.fab-whatsapp::after {
    /* combined into ::after */
}

.fab-whatsapp:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

@keyframes fab-pulse {
    0%   { opacity: 0.55; transform: scale(1); }
    100% { opacity: 0;    transform: scale(1.55); }
}

@keyframes fab-slide-in {
    from { opacity: 0; transform: translateY(20px) scale(0.8); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 600px) {
    .fab-whatsapp {
        width: 54px;
        height: 54px;
        bottom: 1rem;
        right: 1rem;
    }
    .fab-whatsapp svg { width: 26px; height: 26px; }
    .fab-whatsapp::after { display: none; } /* No tooltip on mobile */
}

@media (prefers-reduced-motion: reduce) {
    .fab-whatsapp { animation: none; }
    .fab-whatsapp::before { display: none; }
}
