/* ═══════════════════════════════════════════════════════
   FINCA SERENITY — Shared Styles
   ═══════════════════════════════════════════════════════ */

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

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

:root {
    --bg-paper: #F5F2E9;
    --bg-dark:  #111;
    --text-main: #333333;
    --text-sub:  #5A5A5A;
    --accent:    #8C8C8C;
    --gold:      #C5A258;
    --white-90:  rgba(255,255,255,0.92);
    --white-50:  rgba(255,255,255,0.5);
    --white-25:  rgba(255,255,255,0.25);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cormorant', serif;
    font-weight: 300;
    color: var(--text-main);
    background: var(--bg-dark);
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

/* ── GRAIN OVERLAY ── */
.grain {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
    opacity: 0.04;
    mix-blend-mode: multiply;
}

/* ═══════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.4rem 3rem;
    transition: background 0.4s, padding 0.4s;
}

.nav.scrolled {
    background: rgba(17,17,17,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem 3rem;
}

.nav-brand {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--white-90);
}

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

.nav-links a {
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--white-50);
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--white-90);
    transition: width 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white-90);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 1px;
    background: var(--white-90);
    transition: transform 0.3s, opacity 0.3s;
}

/* ═══════════════════════════════════════════════════════
   FULL-SCREEN HERO
   ═══════════════════════════════════════════════════════ */

.hero-full {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-full .bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    image-rendering: high-quality;
    image-rendering: -webkit-optimize-contrast;
}

.hero-full .bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-full .overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 70% at 50% 45%,
        rgba(0,0,0,0.15) 0%,
        rgba(0,0,0,0.55) 100%);
}

.hero-full .content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.hero-full h1 {
    font-size: clamp(2.2rem, 5.5vw, 3.8rem);
    font-weight: 300;
    letter-spacing: 0.45em;
    text-transform: uppercase;
    color: var(--white-90);
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
    text-indent: 0.45em;
    line-height: 1.3;
}

.hero-full .divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
    margin: 1rem auto;
}

.hero-full .tagline {
    font-size: clamp(0.85rem, 1.5vw, 1.1rem);
    font-style: italic;
    letter-spacing: 0.25em;
    color: rgba(255,255,255,0.45);
}

.scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--white-25);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation: float 2.5s ease-in-out infinite;
}

.scroll-hint .arrow {
    width: 1px;
    height: 30px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
}

/* ═══════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════ */

.section {
    background: var(--bg-paper);
    position: relative;
}

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

.section-pad {
    padding: 6rem 3rem;
}

.section-pad-lg {
    padding: 8rem 3rem;
}

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

/* ── Category / Chapter Headers ── */
.chapter-label {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
    font-weight: 500;
}

.section-dark .chapter-label {
    color: rgba(255,255,255,0.35);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.section-dark .section-title {
    color: var(--white-90);
}

.section-text {
    font-size: 1.05rem;
    color: var(--text-sub);
    line-height: 2;
    max-width: 580px;
}

.section-dark .section-text {
    color: rgba(255,255,255,0.55);
}

/* ── Split Layouts ── */
.split-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 85vh;
}

.split-row.reverse .split-text {
    order: 2;
}

.split-row.reverse .split-img {
    order: 1;
}

.split-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5rem 4rem;
    background: var(--bg-paper);
}

.split-img {
    background-size: cover;
    background-position: center;
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

.split-img video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Full-Width Image/Video Band ── */
.img-band {
    height: 70vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.img-band video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-band .caption {
    position: absolute;
    bottom: 2rem;
    right: 3rem;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--white-25);
}

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

.card {
    position: relative;
    height: 55vh;
    min-height: 380px;
    overflow: hidden;
    cursor: pointer;
}

.card .card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.card:hover .card-bg {
    transform: scale(1.04);
}

.card .card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 60%);
}

.card .card-content {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    z-index: 2;
}

.card .card-label {
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    margin-bottom: 0.5rem;
}

.card .card-title {
    font-size: 1.6rem;
    font-weight: 400;
    font-style: italic;
    color: var(--white-90);
}

/* ── Stats / At a Glance Grid ── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat h3 {
    font-size: 2.4rem;
    font-weight: 300;
    font-style: italic;
    margin-bottom: 0.3rem;
}

.stat p {
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
}

.section-dark .stat p {
    color: rgba(255,255,255,0.4);
}

/* ── CTA Band ── */
.cta-band {
    text-align: center;
    padding: 5rem 3rem;
}

.cta-band h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 300;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.cta-btn {
    display: inline-block;
    padding: 1rem 3rem;
    font-family: 'Cormorant', serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    border: 1px solid;
    transition: all 0.3s;
}

.cta-btn-light {
    color: var(--white-90);
    border-color: rgba(255,255,255,0.25);
}

.cta-btn-light:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.5);
}

.cta-btn-dark {
    color: var(--text-main);
    border-color: rgba(0,0,0,0.2);
}

.cta-btn-dark:hover {
    background: var(--text-main);
    color: var(--bg-paper);
}

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */

.site-footer {
    background: var(--bg-dark);
    padding: 4rem 3rem 2rem;
    text-align: center;
}

.site-footer .footer-brand {
    font-size: 1rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--white-50);
    margin-bottom: 0.5rem;
}

.site-footer .footer-sub {
    font-size: 0.8rem;
    font-style: italic;
    color: rgba(255,255,255,0.25);
    margin-bottom: 2rem;
}

.site-footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.site-footer .footer-links a {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    transition: color 0.3s;
}

.site-footer .footer-links a:hover {
    color: var(--white-90);
}

.site-footer .footer-copy {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.15);
    letter-spacing: 0.1em;
}

/* ═══════════════════════════════════════════════════════
   FORMS  (Enquiry page)
   ═══════════════════════════════════════════════════════ */

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

.form-group label {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    font-family: 'Cormorant', serif;
    font-size: 1.05rem;
    padding: 0.8rem 0;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.12);
    background: transparent;
    color: var(--text-main);
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-bottom-color: var(--text-main);
}

.form-group textarea {
    resize: none;
    height: 100px;
    line-height: 1.7;
}

.form-group select {
    cursor: pointer;
    -webkit-appearance: none;
}

.form-btn {
    width: 100%;
    padding: 1.1rem;
    font-family: 'Cormorant', serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: white;
    background: var(--text-main);
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.15s;
    margin-top: 1rem;
}

.form-btn:hover {
    background: #1a1a1a;
    transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════
   GALLERY
   ═══════════════════════════════════════════════════════ */

.gallery-grid {
    columns: 3;
    column-gap: 1rem;
    padding: 0 1rem;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.03);
}

.gallery-item .play-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 2;
}

.gallery-item .play-badge::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 16px solid rgba(255,255,255,0.8);
    margin-left: 3px;
}

.gallery-item:hover .play-badge {
    transform: translate(-50%, -50%) scale(1.1);
}

/* ── Inline Video Section ── */
.video-band {
    position: relative;
    height: 70vh;
    min-height: 400px;
    overflow: hidden;
    background: #000;
}

.video-band video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-band .caption {
    position: absolute;
    bottom: 2rem;
    right: 3rem;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--white-25);
    z-index: 2;
}

/* ── Cinematic Video Player (editorial) ── */
.video-editorial {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
    cursor: pointer;
}

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

.video-editorial .play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.25);
    transition: opacity 0.3s;
    z-index: 2;
}

.video-editorial .play-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.video-editorial .play-circle {
    width: 72px;
    height: 72px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, border-color 0.3s;
}

.video-editorial:hover .play-circle {
    transform: scale(1.08);
    border-color: rgba(255,255,255,0.8);
}

.video-editorial .play-circle::after {
    content: '';
    width: 0;
    height: 0;
    border-top: 13px solid transparent;
    border-bottom: 13px solid transparent;
    border-left: 20px solid rgba(255,255,255,0.8);
    margin-left: 4px;
}

/* Lightbox video */
.lightbox video {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,0.92);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 1.5rem;
    color: var(--white-50);
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Cormorant', serif;
    letter-spacing: 0.1em;
}

/* ═══════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════ */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

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

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */

@media (max-width: 960px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(17,17,17,0.95);
        padding: 2rem 3rem;
        gap: 1.5rem;
    }
    .split-row { grid-template-columns: 1fr; }
    .split-row.reverse .split-text { order: 1; }
    .split-row.reverse .split-img  { order: 2; }
    .split-img { min-height: 50vh; }
    .cards { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .gallery-grid { columns: 2; }
}

@media (max-width: 600px) {
    .nav { padding: 1rem 1.5rem; }
    .section-pad { padding: 4rem 1.5rem; }
    .section-pad-lg { padding: 5rem 1.5rem; }
    .split-text { padding: 3rem 1.5rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .gallery-grid { columns: 1; }
    .site-footer .footer-links { flex-direction: column; gap: 1rem; }
}
