/* ═══════════════════════════════════════════════
   ARKEO RESIDENCE — Fresh Student Theme
   ═══════════════════════════════════════════════ */

:root {
    --terracotta: #4A8FE7;
    --terracotta-dark: #3A7BD4;
    --terracotta-light: #7BB3F0;
    --gold: #34B899;
    --gold-light: #6DD4B8;
    --cream: #FAFBFD;
    --cream-dark: #EEF1F5;
    --stone: #D0D5DD;
    --charcoal: #1E2A3A;
    --charcoal-light: #2C3E50;
    --text: #1E293B;
    --text-muted: #64748B;
    --text-light: #94A3B8;
    --white: #FFFFFF;

    --sage: #34B899;
    --sage-light: #E6F7F2;
    --teal: #4A8FE7;
    --teal-light: #E8F1FC;
    --surface: #F5F7FA;
    --surface-alt: #EEF2F7;

    --font-display: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    --font-body: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;

    --nav-height: 72px;
    --section-pad: clamp(80px, 10vw, 140px);
    --container-max: 1200px;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;

    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
}

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

/* ─── Typography ─── */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
}

.section-title em {
    font-style: italic;
    color: var(--terracotta);
}

/* ─── Layout ─── */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 40px);
}

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

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

.section-header {
    text-align: center;
    margin-bottom: clamp(48px, 6vw, 80px);
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 16px;
    position: relative;
    padding-left: 32px;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 20px;
    height: 1px;
    background: var(--terracotta);
}

.section-label-light { color: var(--terracotta); }
.section-label-light::before { background: var(--terracotta); }

.section-title {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    color: var(--text);
    margin-bottom: 16px;
}

.section-title-light { color: var(--text); }

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.section-subtitle-light { color: var(--text-muted); }

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all 0.35s var(--ease-out);
    white-space: nowrap;
}

.btn-primary {
    background: var(--terracotta);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(74, 143, 231, 0.25);
}

.btn-primary:hover {
    background: var(--terracotta-dark);
    box-shadow: 0 6px 24px rgba(74, 143, 231, 0.35);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1.5px solid var(--stone);
    color: var(--text);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--terracotta);
    color: var(--terracotta);
    background: rgba(74, 143, 231, 0.05);
}

.btn-ghost {
    color: var(--terracotta);
    border: 1.5px solid var(--terracotta-light);
    backdrop-filter: blur(4px);
}

.btn-ghost:hover {
    border-color: var(--terracotta);
    background: rgba(74, 143, 231, 0.08);
    color: var(--terracotta-dark);
}

.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-sm { padding: 8px 20px; font-size: 0.85rem; }
.btn-full { width: 100%; }

/* ═══════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    transition: all 0.4s var(--ease-out);
}

.nav-scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
}

.nav-hidden {
    transform: translateY(-100%);
}

.nav-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 40px);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.nav-logo-text {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: var(--text);
}

.nav-logo-sub {
    font-family: var(--font-body);
    font-size: 0.55rem;
    font-weight: 500;
    letter-spacing: 0.4em;
    color: var(--terracotta);
    margin-top: 2px;
}

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

.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(30, 41, 59, 0.6);
    transition: color 0.3s;
    position: relative;
}

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

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

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

.nav-cta {
    padding: 8px 20px !important;
    border: 1px solid var(--terracotta) !important;
    border-radius: var(--radius-sm) !important;
    color: var(--terracotta) !important;
}

.nav-cta:hover {
    background: var(--terracotta) !important;
    color: var(--white) !important;
}

.nav-cta::after { display: none !important; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s var(--ease-out);
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span: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;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 10%, rgba(74, 143, 231, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 90%, rgba(52, 184, 153, 0.07) 0%, transparent 45%),
        radial-gradient(ellipse at 60% 30%, rgba(74, 143, 231, 0.05) 0%, transparent 40%),
        radial-gradient(ellipse at 40% 70%, rgba(52, 184, 153, 0.05) 0%, transparent 45%),
        linear-gradient(170deg, #FAFBFD 0%, #F5F7FA 30%, #EEF2F7 60%, #FAFBFD 100%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image:
        linear-gradient(rgba(30, 41, 59, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 41, 59, 0.3) 1px, transparent 1px);
    background-size: 80px 80px;
    animation: patternDrift 20s linear infinite;
}

@keyframes patternDrift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(80px, 80px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 clamp(20px, 4vw, 40px);
    max-width: 800px;
}

.hero-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 24px;
}

.hero-title {
    margin-bottom: 28px;
}

.hero-title-line {
    display: block;
    font-size: clamp(3.5rem, 10vw, 7rem);
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text);
    line-height: 1;
}

.hero-title-accent {
    font-size: clamp(1.4rem, 3.5vw, 2.4rem) !important;
    font-weight: 400 !important;
    letter-spacing: 0.5em !important;
    color: var(--terracotta) !important;
    margin-top: 8px;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: var(--text-muted);
    max-width: 550px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-address {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.hero-address svg { opacity: 0.6; }

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.hero-scroll span {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-light);
    writing-mode: vertical-rl;
}

.hero-scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--terracotta-light), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ═══════════════════════════════════════════════
   ABOUT / FEATURES
   ═══════════════════════════════════════════════ */
.about-intro {
    max-width: 720px;
    margin: -32px auto 56px;
    text-align: center;
}

.about-lead {
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    color: var(--text-muted);
    line-height: 1.9;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 56px;
}

.feature-card {
    background: var(--white);
    padding: 36px 28px;
    border-radius: var(--radius);
    border: 1px solid rgba(214, 204, 194, 0.4);
    transition: all 0.4s var(--ease-out);
    box-shadow: 0 2px 8px rgba(30, 41, 59, 0.03);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(30, 41, 59, 0.08);
    border-color: var(--terracotta-light);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--cream), var(--cream-dark));
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    color: var(--terracotta);
}

.feature-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text);
}

.feature-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.checklist {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px 32px;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(214, 204, 194, 0.4);
    box-shadow: 0 2px 12px rgba(30, 41, 59, 0.04);
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text);
}

.check {
    color: var(--terracotta);
    font-weight: 700;
    font-size: 1rem;
}

/* ═══════════════════════════════════════════════
   AMENITIES
   ═══════════════════════════════════════════════ */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--white);
    border: 1px solid rgba(214, 204, 194, 0.4);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.95rem;
    transition: all 0.35s var(--ease-out);
    box-shadow: 0 2px 8px rgba(30, 41, 59, 0.03);
}

.amenity-item:hover {
    background: var(--white);
    border-color: var(--terracotta-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(30, 41, 59, 0.06);
}

.amenity-icon {
    color: var(--terracotta);
    flex-shrink: 0;
}

.amenities-note {
    text-align: center;
    margin-top: 32px;
    padding: 16px;
    background: rgba(74, 143, 231, 0.06);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(74, 143, 231, 0.12);
}

.amenities-note p {
    color: var(--terracotta);
    font-size: 0.9rem;
}

/* ═══════════════════════════════════════════════
   ROOMS / FLOORS
   ═══════════════════════════════════════════════ */
.floors {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.floor-card {
    background: var(--white);
    border: 1px solid rgba(214, 204, 194, 0.5);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.3s;
    box-shadow: 0 2px 8px rgba(30, 41, 59, 0.03);
}

.floor-card.open {
    border-color: var(--terracotta-light);
    box-shadow: 0 8px 24px rgba(30, 41, 59, 0.06);
}

.floor-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px 28px;
    cursor: pointer;
    transition: background 0.3s;
}

.floor-header:hover { background: var(--surface); }

.floor-number {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--stone);
    line-height: 1;
    transition: color 0.3s;
}

.floor-card.open .floor-number { color: var(--terracotta); }

.floor-info { flex: 1; }

.floor-title {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.floor-rooms-summary {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.floor-toggle {
    color: var(--text-muted);
    transition: transform 0.4s var(--ease-out);
}

.floor-card.open .floor-toggle {
    transform: rotate(180deg);
    color: var(--terracotta);
}

.floor-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s var(--ease-out);
}

.floor-content {
    padding: 0 28px 28px;
    border-top: 1px solid rgba(214, 204, 194, 0.3);
    padding-top: 24px;
}

.floor-rooms {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.room-badge {
    padding: 6px 16px;
    background: var(--surface);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
}

.room-badge-accent {
    background: rgba(74, 143, 231, 0.1);
    color: var(--terracotta);
}

.floor-amenities h4 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.floor-amenities ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin-bottom: 20px;
}

.floor-amenities li {
    font-size: 0.95rem;
    color: var(--text);
    position: relative;
    padding-left: 16px;
}

.floor-amenities li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--terracotta-light);
    border-radius: 50%;
}

.floor-actions {
    display: flex;
    gap: 12px;
}

/* ═══════════════════════════════════════════════
   PRICING
   ═══════════════════════════════════════════════ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--white);
    border: 1px solid rgba(214, 204, 194, 0.5);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    transition: all 0.4s var(--ease-out);
    position: relative;
    box-shadow: 0 2px 12px rgba(30, 41, 59, 0.04);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 56px rgba(30, 41, 59, 0.1);
}

.pricing-card-featured {
    border-color: var(--terracotta);
    box-shadow: 0 8px 32px rgba(74, 143, 231, 0.1);
}

.pricing-card-featured::before {
    display: none;
}

.pricing-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--terracotta);
    background: rgba(74, 143, 231, 0.08);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.pricing-type {
    font-size: 1.6rem;
    margin-bottom: 16px;
    color: var(--text);
}

.pricing-price {
    margin-bottom: 8px;
}

.pricing-amount {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

.pricing-currency {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.pricing-deposit {
    font-size: 0.85rem;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(214, 204, 194, 0.4);
}

.pricing-features {
    text-align: left;
    margin-bottom: 32px;
}

.pricing-features li {
    padding: 8px 0;
    font-size: 0.95rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 12px;
}

.pricing-features li::before {
    content: '\2713';
    color: var(--terracotta);
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.pricing-notes {
    text-align: center;
    margin-top: 32px;
}

.pricing-notes p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════
   TARGET AUDIENCE
   ═══════════════════════════════════════════════ */
.target-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    margin-bottom: 56px;
}

.target-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-top: 16px;
    line-height: 1.8;
}

.target-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.target-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: var(--white);
    border: 1px solid rgba(214, 204, 194, 0.4);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.35s var(--ease-out);
    box-shadow: 0 2px 8px rgba(30, 41, 59, 0.03);
}

.target-card:hover {
    background: var(--white);
    border-color: var(--terracotta-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(30, 41, 59, 0.06);
}

.target-card-icon {
    color: var(--terracotta);
    flex-shrink: 0;
}

.support-banner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px;
    background: rgba(74, 143, 231, 0.05);
    border: 1px solid rgba(74, 143, 231, 0.12);
    border-radius: var(--radius-lg);
}

.support-icon {
    color: var(--terracotta);
    flex-shrink: 0;
}

.support-content h3 {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 4px;
}

.support-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ═══════════════════════════════════════════════
   LEASE TERMS
   ═══════════════════════════════════════════════ */
.terms-layout {
    display: flex;
    align-items: center;
    gap: 48px;
    max-width: 800px;
    margin: 0 auto;
    padding: 48px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(214, 204, 194, 0.5);
    box-shadow: 0 2px 12px rgba(30, 41, 59, 0.04);
}

.terms-icon-block {
    color: var(--terracotta);
    flex-shrink: 0;
}

.terms-content p {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.terms-content strong {
    color: var(--text);
}

.terms-dates {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 24px 0;
}

.terms-date {
    display: flex;
    flex-direction: column;
}

.terms-date-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.terms-date-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--terracotta);
}

.terms-date-separator {
    font-size: 1.5rem;
    color: var(--stone);
}

.terms-note {
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 0 !important;
}

/* ═══════════════════════════════════════════════
   GALLERY
   ═══════════════════════════════════════════════ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 16px;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30, 41, 59, 0.45) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.35s;
}

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

.gallery-item:hover .gallery-placeholder {
    transform: scale(1.05);
}

.gallery-item-tall { grid-row: span 2; }
.gallery-item-wide { grid-column: span 2; }

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(
            135deg,
            hsl(var(--ph-hue, 25), var(--ph-sat, 20%), 82%) 0%,
            hsl(var(--ph-hue, 25), var(--ph-sat, 20%), 72%) 50%,
            hsl(var(--ph-hue, 25), var(--ph-sat, 20%), 64%) 100%
        );
    transition: transform 0.5s var(--ease-out);
}

.gallery-placeholder span {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.05em;
    z-index: 1;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-out);
}

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

/* ─── Lightbox ─── */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(30, 41, 59, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-content {
    width: 80vw;
    height: 70vh;
    max-width: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius);
}

.lightbox-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(
            135deg,
            hsl(var(--ph-hue, 25), 20%, 72%) 0%,
            hsl(var(--ph-hue, 25), 20%, 52%) 100%
        );
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: rgba(255,255,255,0.6);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 2.5rem;
    color: var(--white);
    opacity: 0.6;
    transition: opacity 0.3s;
    line-height: 1;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--white);
    opacity: 0.5;
    transition: opacity 0.3s;
    padding: 16px;
}

.lightbox-prev:hover,
.lightbox-next:hover { opacity: 1; }

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}

/* ═══════════════════════════════════════════════
   AGREEMENT
   ═══════════════════════════════════════════════ */
.agreement-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    max-width: 960px;
    margin: 0 auto;
}

.agreement-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 960px;
    margin: 0 auto;
}

.agreement-card {
    background: var(--white);
    border: 1px solid rgba(214, 204, 194, 0.5);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    transition: all 0.4s var(--ease-out);
    box-shadow: 0 2px 8px rgba(30, 41, 59, 0.03);
}

.agreement-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(30, 41, 59, 0.1);
}

.agreement-card .agreement-preview {
    margin-bottom: 24px;
}

.agreement-card .agreement-doc {
    width: 100%;
    max-width: 240px;
    margin: 0 auto;
    transform: none;
}

.agreement-card .agreement-doc:hover {
    transform: translateY(-4px);
}

.agreement-card-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.agreement-card .agreement-content p {
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.agreement-card .agreement-actions {
    justify-content: center;
}

.agreement-content .section-title {
    text-align: left;
}

.agreement-content p {
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.8;
}

.agreement-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.agreement-preview {
    display: flex;
    justify-content: center;
}

.agreement-doc {
    width: 280px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--cream-dark);
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(30, 41, 59, 0.08);
    transform: rotate(2deg);
    transition: transform 0.4s var(--ease-out);
}

.agreement-doc:hover {
    transform: rotate(0deg) translateY(-4px);
}

.agreement-doc-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--cream-dark);
    font-size: 0.7rem;
    color: var(--text-muted);
}

.agreement-doc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--stone);
}

.agreement-doc-dot:first-child { background: #EF9A9A; }
.agreement-doc-dot:nth-child(2) { background: #FFE082; }
.agreement-doc-dot:nth-child(3) { background: #A5D6A7; }

.agreement-doc-header span {
    margin-left: 8px;
}

.agreement-doc-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.agreement-doc-line {
    height: 8px;
    background: var(--cream-dark);
    border-radius: 4px;
}

/* ─── PDF Modal ─── */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s;
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(30, 41, 59, 0.7);
}

.modal-container {
    position: relative;
    width: 90vw;
    max-width: 900px;
    height: 85vh;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(20px) scale(0.98);
    transition: transform 0.4s var(--ease-out);
}

.modal.active .modal-container {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--cream-dark);
}

.modal-header h3 {
    font-size: 1rem;
    font-weight: 600;
}

.modal-close {
    font-size: 1.8rem;
    color: var(--text-muted);
    transition: color 0.3s;
    line-height: 1;
}

.modal-close:hover { color: var(--text); }

.modal-body {
    flex: 1;
    overflow: hidden;
}

.modal-body iframe {
    width: 100%;
    height: 100%;
}

/* ═══════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════ */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-form-wrap {
    background: var(--white);
    border: 1px solid rgba(214, 204, 194, 0.4);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: 0 2px 12px rgba(30, 41, 59, 0.04);
}

.form-group {
    margin-bottom: 20px;
}

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

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid rgba(214, 204, 194, 0.5);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.3s;
    outline: none;
}

.form-input::placeholder {
    color: var(--text-light);
}

.form-input:focus {
    border-color: var(--terracotta);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(74, 143, 231, 0.1);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(45,41,38,0.4)' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-select option {
    background: var(--white);
    color: var(--text);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px;
    gap: 16px;
}

.form-success-icon {
    color: var(--terracotta);
}

.form-success h3 {
    font-size: 1.5rem;
    color: var(--text);
}

.form-success p {
    color: var(--text-muted);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.contact-detail-icon {
    color: var(--terracotta);
    margin-top: 2px;
    flex-shrink: 0;
}

.contact-detail strong {
    display: block;
    color: var(--text);
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.contact-detail p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-detail a {
    color: var(--terracotta);
    transition: color 0.3s;
}

.contact-detail a:hover {
    color: var(--terracotta-dark);
}

.contact-map {
    flex: 1;
    min-height: 200px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(214, 204, 194, 0.4);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 200px;
    filter: saturate(0.85) brightness(1.02);
}

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.footer {
    background: #1E293B;
    padding: 64px 0 32px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-desc {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    margin-top: 16px;
    line-height: 1.7;
    max-width: 320px;
}

.footer-links h4 {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-bottom: 16px;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a,
.footer-links li {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.55);
    transition: color 0.3s;
}

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

.footer-bottom {
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
}

/* ─── Back to Top ─── */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 900;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--terracotta);
    color: var(--white);
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(74, 143, 231, 0.25);
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: all 0.35s var(--ease-out);
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.back-to-top:hover {
    background: var(--terracotta-dark);
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ═══════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

/* Hero reveals — custom */
.hero .reveal {
    transform: translateY(32px);
    transition-duration: 0.9s;
}

.hero .reveal:nth-child(1) { transition-delay: 0.2s; }
.hero .reveal:nth-child(2) { transition-delay: 0.4s; }
.hero .reveal:nth-child(3) { transition-delay: 0.6s; }
.hero .reveal:nth-child(4) { transition-delay: 0.8s; }
.hero .reveal:nth-child(5) { transition-delay: 1.0s; }

/* Start hero reveals immediately */
.hero .reveal {
    animation: heroReveal 0.9s var(--ease-out) forwards;
}

.hero .reveal:nth-child(1) { animation-delay: 0.3s; }
.hero .reveal:nth-child(2) { animation-delay: 0.5s; }
.hero .reveal:nth-child(3) { animation-delay: 0.7s; }
.hero .reveal:nth-child(4) { animation-delay: 0.9s; }
.hero .reveal:nth-child(5) { animation-delay: 1.1s; }

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

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .target-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .agreement-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .agreement-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 480px;
    }

    .agreement-preview {
        order: -1;
    }

    .agreement-doc { transform: rotate(0deg); }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
        position: relative;
        z-index: 1001; /* keep the close (X) button above the full-screen overlay */
    }

    /* When the menu is open, the nav must not establish a containing block for
       the fixed overlay (transform/backdrop-filter would shrink it to nav size). */
    .nav.menu-open {
        transform: none !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 24px;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s;
    }

    .nav-links.active {
        opacity: 1;
        pointer-events: all;
    }

    .nav-links a {
        font-size: 1.2rem;
        color: var(--text);
    }

    .nav-cta {
        font-size: 1rem !important;
    }

    .hero-title-line {
        letter-spacing: 0.1em;
    }

    .hero-scroll { display: none; }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 160px;
    }

    .gallery-item-tall { grid-row: span 2; }
    .gallery-item-wide { grid-column: span 2; }

    .contact-layout {
        grid-template-columns: 1fr;
    }

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

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

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .target-right {
        grid-template-columns: 1fr;
    }

    .terms-layout {
        flex-direction: column;
        text-align: center;
        padding: 32px;
        gap: 24px;
    }

    .terms-dates {
        justify-content: center;
    }

    .support-banner {
        flex-direction: column;
        text-align: center;
    }

    .checklist {
        padding: 24px;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 140px;
    }

    .gallery-item-wide { grid-column: span 1; }

    .agreement-actions {
        flex-direction: column;
    }

    .contact-form-wrap {
        padding: 24px;
    }

    .floor-header {
        padding: 16px 20px;
        gap: 16px;
    }

    .floor-number {
        font-size: 1.6rem;
    }
}

/* ─── Selection color ─── */
::selection {
    background: rgba(74, 143, 231, 0.15);
    color: var(--text);
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--surface);
}

::-webkit-scrollbar-thumb {
    background: var(--stone);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--terracotta-light);
}

/* ═══════════════════════════════════════════════
   LANGUAGE SWITCHER
   ═══════════════════════════════════════════════ */
.nav-lang {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px;
    border: 1px solid var(--stone);
    border-radius: var(--radius-sm);
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(30, 41, 59, 0.6);
    padding: 4px 8px;
    border-radius: 6px;
    transition: color 0.3s, background-color 0.3s;
}

.lang-btn:hover { color: var(--text); }

.lang-btn.active {
    color: var(--white);
    background: var(--terracotta);
}

@media (max-width: 768px) {
    .nav-lang {
        margin-top: 8px;
        gap: 4px;
        padding: 4px;
    }

    .lang-btn {
        font-size: 1rem;
        padding: 8px 16px;
    }
}
