/* ═══════════════════════════════════════════════════════════════
   DUINVILLA BERGEN — Premium Holiday Rental Demo
   A CasaFlow Production
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* ─── Design Tokens ─── */
:root {
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;

    --clr-ink: #1a1a1a;
    --clr-ink-soft: #555;
    --clr-ink-muted: #888;
    --clr-bg: #faf9f7;
    --clr-bg-warm: #f5f0eb;
    --clr-white: #fff;
    --clr-accent: #8b6f47;
    --clr-accent-light: #c5a97a;
    --clr-accent-hover: #6d5636;
    --clr-success: #2d6a4f;
    --clr-whatsapp: #25D366;
    --clr-whatsapp-hover: #1ebe57;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
    --shadow-xl: 0 30px 80px rgba(0,0,0,0.15);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    color: var(--clr-ink);
    background: var(--clr-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ─── Typography ─── */
.heading-xl {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.heading-lg {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 400;
    line-height: 1.15;
}

.heading-md {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 500;
    line-height: 1.2;
}

.label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--clr-accent);
}

/* ─── Navigation ─── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s var(--ease);
}

.nav--transparent {
    background: transparent;
    color: white;
}

.nav--solid {
    background: rgba(250, 249, 247, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--clr-ink);
    box-shadow: var(--shadow-sm);
}

.nav__logo {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: 0.05em;
}

.nav__links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav__links a {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    transition: opacity 0.3s;
}

.nav__links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--clr-accent);
    transition: width 0.3s var(--ease);
}

.nav__links a:hover::after { width: 100%; }

.nav__cta {
    background: var(--clr-accent);
    color: white !important;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em;
    transition: all 0.3s var(--ease);
}

.nav__cta:hover { background: var(--clr-accent-hover); transform: translateY(-1px); }
.nav__cta::after { display: none !important; }

/* ─── Hero ─── */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 6rem;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    from { transform: scale(1.05); }
    to { transform: scale(1.12); }
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10,10,10,0.75) 0%,
        rgba(10,10,10,0.2) 40%,
        rgba(10,10,10,0.1) 100%
    );
    z-index: -1;
}

.hero__content {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 800px;
    padding: 0 3rem;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,255,255,0.2);
}

.hero__badge svg { width: 16px; height: 16px; fill: #fbbf24; }

.hero h1 { margin-bottom: 1.2rem; text-shadow: 0 2px 40px rgba(0,0,0,0.3); }

.hero__sub {
    font-size: 1.15rem;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 550px;
    line-height: 1.7;
}

.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: all 0.3s var(--ease);
}

.btn--primary {
    background: var(--clr-accent);
    color: white;
}
.btn--primary:hover {
    background: var(--clr-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139,111,71,0.3);
}

.btn--ghost {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
}
.btn--ghost:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.btn--whatsapp {
    background: var(--clr-whatsapp);
    color: white;
    font-weight: 700;
}
.btn--whatsapp:hover {
    background: var(--clr-whatsapp-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(37,211,102,0.35);
}

.btn--dark {
    background: var(--clr-ink);
    color: white;
}
.btn--dark:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ─── Quick Stats Bar ─── */
.stats-bar {
    background: var(--clr-white);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.stats-bar__inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.stat {
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
}

.stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: rgba(0,0,0,0.08);
}

.stat__icon {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

.stat__value {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--clr-ink);
}

.stat__label {
    font-size: 0.78rem;
    color: var(--clr-ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ─── Section Spacing ─── */
.section {
    padding: 7rem 0;
}

.section--warm { background: var(--clr-bg-warm); }
.section--dark { background: var(--clr-ink); color: white; }

.section__header {
    text-align: center;
    margin-bottom: 4rem;
}

.section__header .label { margin-bottom: 0.8rem; display: block; }
.section__header p {
    max-width: 550px;
    margin: 1rem auto 0;
    color: var(--clr-ink-soft);
}

.section--dark .section__header p { color: rgba(255,255,255,0.6); }

/* ─── Photo Gallery ─── */
.gallery {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 280px;
    gap: 1rem;
    padding: 0 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery__item {
    overflow: hidden;
    border-radius: var(--radius-md);
    position: relative;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.gallery__item:hover img { transform: scale(1.08); }

.gallery__item--hero { grid-column: span 7; grid-row: span 2; }
.gallery__item--tall { grid-column: span 5; grid-row: span 2; }
.gallery__item--wide { grid-column: span 4; }
.gallery__item--square { grid-column: span 4; }
.gallery__item--landscape { grid-column: span 4; }

.gallery__item__label {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.03em;
}

/* ─── Amenities Grid ─── */
.amenities {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.amenity {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.5rem;
    background: var(--clr-white);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s var(--ease);
}

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

.amenity__icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: var(--clr-bg-warm);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.amenity__text h4 {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.amenity__text p {
    font-size: 0.85rem;
    color: var(--clr-ink-muted);
    line-height: 1.5;
}

/* ─── Location Section ─── */
.location-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.location-split__image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.location-split__image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.location__highlights {
    list-style: none;
    margin-top: 2rem;
}

.location__highlights li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    font-size: 0.95rem;
}

.location__highlights li span:first-child {
    font-size: 1.3rem;
    width: 2rem;
    text-align: center;
}

.location__highlights li strong {
    color: var(--clr-accent);
    margin-right: 0.3rem;
}

/* ─── Reviews ─── */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.review {
    background: var(--clr-white);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
}

.review::before {
    content: '"';
    font-family: var(--font-display);
    font-size: 5rem;
    color: var(--clr-accent-light);
    opacity: 0.3;
    position: absolute;
    top: 0.5rem;
    left: 1.5rem;
    line-height: 1;
}

.review__stars {
    color: #fbbf24;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.review__text {
    font-size: 0.95rem;
    color: var(--clr-ink-soft);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.review__author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.review__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--clr-bg-warm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--clr-accent);
}

.review__name {
    font-weight: 600;
    font-size: 0.9rem;
}

.review__date {
    font-size: 0.8rem;
    color: var(--clr-ink-muted);
}

/* ─── Booking Section ─── */
.booking {
    background: var(--clr-ink);
    color: white;
    padding: 7rem 0;
    position: relative;
    overflow: hidden;
}

.booking::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139,111,71,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.booking__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.booking__info h2 { color: white; margin-bottom: 1.5rem; }
.booking__info p { color: rgba(255,255,255,0.6); margin-bottom: 2rem; line-height: 1.8; }

.booking__price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem 2rem;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.1);
}

.booking__price .amount {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 500;
    color: var(--clr-accent-light);
}

.booking__price .per {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

.booking__form {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.6);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-sm);
    color: white;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.3s var(--ease);
    outline: none;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--clr-accent);
    background: rgba(255,255,255,0.12);
}

.form-group select option { background: var(--clr-ink); color: white; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.booking__form .btn {
    width: 100%;
    justify-content: center;
    padding: 1.1rem;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.booking__form .divider {
    text-align: center;
    color: rgba(255,255,255,0.3);
    font-size: 0.8rem;
    margin: 1rem 0;
    position: relative;
}

.booking__form .divider::before,
.booking__form .divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: rgba(255,255,255,0.1);
}

.booking__form .divider::before { left: 0; }
.booking__form .divider::after { right: 0; }

/* ─── Footer ─── */
.footer {
    background: #111;
    color: rgba(255,255,255,0.5);
    padding: 3rem 0;
    text-align: center;
    font-size: 0.85rem;
}

.footer a { color: var(--clr-accent-light); }

/* ─── Scroll Animations ─── */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Demo Banner ─── */
.demo-ribbon {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, var(--clr-accent) 0%, var(--clr-accent-hover) 100%);
    color: white;
    padding: 0.8rem 2rem;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 200;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}

.demo-ribbon strong { font-weight: 700; }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 250px;
    }
    .gallery__item--hero,
    .gallery__item--tall { grid-column: span 1; grid-row: span 1; }
    .gallery__item--wide,
    .gallery__item--square,
    .gallery__item--landscape { grid-column: span 1; }

    .location-split { grid-template-columns: 1fr; gap: 2rem; }
    .reviews-grid { grid-template-columns: 1fr; }
    .booking__inner { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
    .nav { padding: 1rem 1.5rem; }
    .nav__links { display: none; }
    .hero { padding-bottom: 4rem; }
    .hero__content { padding: 0 1.5rem; }
    .stats-bar__inner { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(2)::after { display: none; }
    .section { padding: 4rem 0; }
    .gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; }
    .gallery__item--hero { grid-row: span 1; }
    .booking__form { padding: 2rem; }
    .form-row { grid-template-columns: 1fr; }
    .amenities { grid-template-columns: 1fr; }
}
