/* =========================================================
   4tomorrow Group · Hotelkomplex Playa de Aro
   Premium navy + gold theme
   ========================================================= */

:root {
    --navy-900: #0a1729;
    --navy-800: #0f2340;
    --navy-700: #142e52;
    --navy-600: #1c3a66;
    --navy-200: #cdd6e3;

    --gold:      #c9a961;
    --gold-light:#e0c894;
    --gold-dark: #a88842;

    --cream:     #f7f1e6;
    --cream-2:   #efe8d9;
    --bone:      #faf6ee;

    --ink:       #14161c;
    --ink-soft:  #3a3f4c;
    --muted:     #6f7686;

    --serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --max:       1240px;
    --max-narrow:980px;
    --gutter:    24px;
    --radius:    4px;

    --shadow-sm: 0 4px 16px rgba(10, 23, 41, 0.06);
    --shadow-md: 0 12px 40px rgba(10, 23, 41, 0.10);
    --shadow-lg: 0 24px 80px rgba(10, 23, 41, 0.18);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bone);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; letter-spacing: -0.005em; margin: 0; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: var(--max-narrow); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 28px;
    font-family: var(--sans); font-weight: 500; font-size: 15px;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
    border-radius: var(--radius);
    transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
    white-space: nowrap;
}
.btn-primary { background: var(--gold); color: var(--navy-900); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-1px); }

.btn-outline-light { color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-outline-light:hover { background: rgba(255,255,255,0.08); border-color: #fff; }

.btn-outline-dark { color: var(--navy-900); border-color: var(--navy-900); }
.btn-outline-dark:hover { background: var(--navy-900); color: #fff; }

.btn-ghost { color: var(--gold); }
.btn-ghost:hover { color: var(--gold-light); }

.btn .ic { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Header ---------- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 50;
    padding: 22px 0;
    transition: background .3s ease, padding .3s ease, border-color .3s ease;
    border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
    background: rgba(10, 23, 41, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 14px 0;
    border-bottom-color: rgba(201, 169, 97, 0.18);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand {
    display: inline-flex; align-items: baseline; gap: 8px;
    color: #fff;
    font-family: var(--serif);
    font-size: 22px;
    letter-spacing: 0.02em;
}
.brand-mark { color: var(--gold); font-weight: 600; }
.brand-name { font-weight: 400; }
.brand small { font-size: 11px; letter-spacing: 0.18em; color: rgba(255,255,255,0.55); text-transform: uppercase; font-family: var(--sans); }

.nav-main { display: flex; align-items: center; gap: 32px; }
.nav-main a {
    color: rgba(255,255,255,0.85);
    font-size: 14px; letter-spacing: 0.02em;
    transition: color .2s ease;
}
.nav-main a:hover { color: var(--gold-light); }

.lang-switch { position: relative; }
.lang-switch button.lang-toggle {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    padding: 6px 12px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: var(--radius);
    display: inline-flex; align-items: center; gap: 6px;
}
.lang-switch button.lang-toggle:hover { border-color: var(--gold); color: var(--gold-light); }
.lang-switch .lang-menu {
    position: absolute; right: 0; top: calc(100% + 8px);
    background: var(--navy-800);
    border: 1px solid rgba(201,169,97,0.25);
    border-radius: var(--radius);
    min-width: 140px; padding: 6px 0;
    opacity: 0; pointer-events: none; transform: translateY(-6px);
    transition: opacity .15s, transform .15s;
}
.lang-switch.is-open .lang-menu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.lang-switch .lang-menu a {
    display: block;
    padding: 10px 16px;
    color: rgba(255,255,255,0.85);
    font-size: 14px;
}
.lang-switch .lang-menu a:hover { background: rgba(201,169,97,0.1); color: var(--gold-light); }
.lang-switch .lang-menu a.is-active { color: var(--gold); }

.nav-toggle {
    display: none;
    width: 40px; height: 40px;
    color: #fff;
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 960px) {
    .nav-main { display: none; }
    .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .site-header.nav-open .nav-main {
        display: flex;
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--navy-900);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-top: 1px solid rgba(201,169,97,0.2);
    }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(10, 23, 41, 0.85) 0%, rgba(15, 35, 64, 0.65) 100%),
        url('../images/aerial-collage.jpg') center/cover no-repeat;
    display: flex; align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 20% 60%, rgba(201,169,97,0.18) 0%, transparent 60%);
    pointer-events: none;
}
.hero::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 120px;
    background: linear-gradient(to bottom, transparent, var(--bone));
    pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }

.hero-eyebrow {
    display: inline-block;
    font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase;
    color: var(--gold);
    padding: 8px 16px;
    border: 1px solid rgba(201,169,97,0.45);
    border-radius: 2px;
    margin-bottom: 28px;
}
.hero-title {
    font-size: clamp(40px, 6.5vw, 84px);
    font-weight: 400;
    margin-bottom: 24px;
    letter-spacing: -0.015em;
}
.hero-accent { color: var(--gold); font-style: italic; }
.hero-subtitle {
    font-size: clamp(17px, 2vw, 22px);
    color: rgba(255,255,255,0.82);
    margin-bottom: 48px;
    max-width: 580px;
}

.hero-price {
    display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap;
    padding: 32px 0;
    border-top: 1px solid rgba(201,169,97,0.3);
    border-bottom: 1px solid rgba(201,169,97,0.3);
    margin-bottom: 40px;
    max-width: 720px;
}
.hero-price-value {
    font-family: var(--serif);
    font-size: clamp(36px, 5vw, 56px);
    color: var(--gold-light);
    letter-spacing: -0.01em;
}
.hero-price-note {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.02em;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Sticky quickfacts bar ---------- */
.quickfacts {
    background: var(--navy-900);
    color: #fff;
    padding: 36px 0;
    position: relative;
    margin-top: -1px;
}
.quickfacts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}
.quickfacts-item .qf-value {
    font-family: var(--serif);
    font-size: clamp(28px, 4vw, 40px);
    color: var(--gold);
    line-height: 1.1;
    margin-bottom: 6px;
}
.quickfacts-item .qf-label {
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
}
@media (max-width: 720px) {
    .quickfacts-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

/* ---------- Sections ---------- */
section { padding: 120px 0; }
@media (max-width: 720px) {
    section { padding: 72px 0; }
}

.section-eyebrow {
    display: inline-block;
    font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 16px;
    position: relative; padding-left: 32px;
}
.section-eyebrow::before {
    content: ''; position: absolute; left: 0; top: 50%;
    width: 22px; height: 1px; background: var(--gold);
}
.section-title {
    font-size: clamp(34px, 5vw, 56px);
    color: var(--ink);
    margin-bottom: 24px;
    max-width: 18ch;
}
.section-lead {
    font-size: 18px;
    color: var(--ink-soft);
    max-width: 60ch;
    line-height: 1.7;
}

/* ---------- Investment ---------- */
.investment {
    background: linear-gradient(180deg, var(--bone) 0%, var(--cream-2) 100%);
}
.investment-head { text-align: center; margin-bottom: 72px; }
.investment-head .section-title { margin-left: auto; margin-right: auto; }
.investment-head .section-lead { margin-left: auto; margin-right: auto; }

.investment-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
    margin-bottom: 80px;
}
@media (max-width: 720px) { .investment-grid { grid-template-columns: 1fr; } }

.invest-card {
    background: #fff;
    border: 1px solid rgba(10,23,41,0.06);
    border-left: 3px solid var(--gold);
    padding: 36px 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease;
}
.invest-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.invest-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--navy-800);
}
.invest-card p { margin: 0; color: var(--ink-soft); }

.kpi-bar {
    background: var(--navy-900);
    color: #fff;
    border-radius: var(--radius);
    padding: 48px 32px;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.kpi-bar .kpi-value {
    font-family: var(--serif);
    font-size: clamp(28px, 3.5vw, 40px);
    color: var(--gold-light);
    line-height: 1.1;
    margin-bottom: 6px;
}
.kpi-bar .kpi-label {
    font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
    color: rgba(255,255,255,0.6);
}
@media (max-width: 720px) {
    .kpi-bar { grid-template-columns: repeat(2, 1fr); padding: 32px 20px; gap: 28px; }
}

/* ---------- Location ---------- */
.location { background: #fff; }
.location-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
    align-items: center;
}
@media (max-width: 880px) { .location-grid { grid-template-columns: 1fr; gap: 40px; } }

.location-points {
    list-style: none; padding: 0; margin: 32px 0 0 0;
}
.location-points li {
    padding: 14px 0;
    border-bottom: 1px solid rgba(10,23,41,0.08);
    display: flex; align-items: center; gap: 14px;
    color: var(--ink-soft);
}
.location-points li:last-child { border-bottom: none; }
.location-points li::before {
    content: ''; width: 8px; height: 8px; border-radius: 50%;
    background: var(--gold); flex-shrink: 0;
}

.location-map {
    border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(10,23,41,0.08);
    aspect-ratio: 4 / 3;
}
.location-map img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Villas ---------- */
.villas {
    background: var(--navy-900);
    color: #fff;
    background-image:
        linear-gradient(rgba(10,23,41,0.92), rgba(10,23,41,0.92)),
        url('../images/pool-night-collage.jpg');
    background-size: cover; background-position: center;
    background-attachment: fixed;
}
.villas .section-title { color: #fff; }
.villas .section-lead  { color: rgba(255,255,255,0.78); }
.villas .section-eyebrow { color: var(--gold-light); }
.villas .section-eyebrow::before { background: var(--gold-light); }

.villas-head { text-align: center; margin-bottom: 72px; }
.villas-head .section-title { margin: 0 auto 24px; }
.villas-head .section-lead { margin: 0 auto; }

.villa-features {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
    margin-bottom: 64px;
}
@media (max-width: 880px) { .villa-features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .villa-features { grid-template-columns: 1fr; } }

.villa-feature {
    display: flex; align-items: center; gap: 16px;
    padding: 22px 24px;
    border: 1px solid rgba(201,169,97,0.25);
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius);
}
.villa-feature .ic { width: 28px; height: 28px; color: var(--gold); flex-shrink: 0; }
.villa-feature .label { font-size: 16px; }

.villa-gallery {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
@media (max-width: 720px) { .villa-gallery { grid-template-columns: 1fr; } }
.villa-gallery img {
    width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
    border-radius: var(--radius);
    transition: transform .4s ease, opacity .2s ease;
}
.villa-gallery a:hover img { transform: scale(1.02); opacity: 0.92; }

/* ---------- Infrastructure ---------- */
.infra { background: var(--bone); }
.infra-head { text-align: center; margin-bottom: 72px; }
.infra-head .section-title { margin: 0 auto 24px; }
.infra-head .section-lead { margin: 0 auto; }

.infra-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 880px) { .infra-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .infra-grid { grid-template-columns: 1fr; } }

.infra-card {
    background: #fff;
    padding: 36px 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(10,23,41,0.05);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.infra-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(201,169,97,0.35);
}
.infra-card .ic-circle {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--cream);
    color: var(--gold-dark);
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
}
.infra-card .ic-circle .ic { width: 26px; height: 26px; }
.infra-card h3 { font-size: 22px; margin-bottom: 8px; color: var(--navy-800); }
.infra-card p { color: var(--ink-soft); margin: 0; }

/* ---------- Plans ---------- */
.plans {
    background: linear-gradient(180deg, var(--cream-2) 0%, var(--bone) 100%);
    text-align: center;
}
.plans-head { margin-bottom: 56px; }
.plans-head .section-title { margin: 0 auto 24px; }
.plans-head .section-lead { margin: 0 auto; }

.plans-image {
    background: #fff;
    border: 1px solid rgba(10,23,41,0.08);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 24px;
    overflow: hidden;
}
.plans-image img { width: 100%; height: auto; }

/* ---------- Included ---------- */
.included {
    background: var(--navy-900);
    color: #fff;
    padding: 80px 0;
}
.included-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
    align-items: center;
}
@media (max-width: 720px) { .included-grid { grid-template-columns: 1fr; gap: 32px; } }

.included .section-eyebrow { color: var(--gold-light); }
.included .section-eyebrow::before { background: var(--gold-light); }
.included .section-title { color: #fff; margin-bottom: 0; }

.included-list { list-style: none; margin: 0; padding: 0; }
.included-list li {
    padding: 18px 0;
    display: flex; align-items: center; gap: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 17px;
}
.included-list li:last-child { border-bottom: none; }
.included-list li svg {
    width: 22px; height: 22px;
    color: var(--gold); flex-shrink: 0;
}

/* ---------- Contact ---------- */
.contact { background: var(--bone); }
.contact-head { text-align: center; margin-bottom: 56px; }
.contact-head .section-title { margin: 0 auto 24px; }
.contact-head .section-lead { margin: 0 auto; }

.contact-grid {
    display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px;
    align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.contact-channels { display: grid; gap: 14px; }
.contact-channel {
    display: flex; align-items: center; gap: 18px;
    padding: 22px 24px;
    background: #fff;
    border: 1px solid rgba(10,23,41,0.06);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: border-color .2s ease, transform .2s ease;
}
.contact-channel:hover { border-color: var(--gold); transform: translateY(-2px); }
.contact-channel .ic-circle {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--cream);
    color: var(--gold-dark);
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.contact-channel .ic-circle .ic { width: 22px; height: 22px; }
.contact-channel .cc-label {
    font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 2px;
}
.contact-channel .cc-value {
    font-family: var(--serif);
    font-size: 20px;
    color: var(--navy-800);
}

/* Form */
.contact-form {
    background: #fff;
    border: 1px solid rgba(10,23,41,0.08);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-md);
}
@media (max-width: 540px) { .contact-form { padding: 28px 22px; } }

.form-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
    margin-bottom: 16px;
}
@media (max-width: 540px) { .form-row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(10,23,41,0.18);
    border-radius: var(--radius);
    font-size: 16px;
    color: var(--ink);
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,169,97,0.15);
}
.form-group textarea { resize: vertical; min-height: 140px; }

.form-consent {
    font-size: 13px;
    color: var(--muted);
    margin: 8px 0 20px;
    display: flex; align-items: flex-start; gap: 10px;
}
.form-consent input { margin-top: 4px; flex-shrink: 0; }
.form-consent a { color: var(--gold-dark); text-decoration: underline; }

.form-status {
    display: none;
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 15px;
}
.form-status.show { display: block; }
.form-status.success { background: rgba(201,169,97,0.15); color: var(--gold-dark); border: 1px solid var(--gold); }
.form-status.error   { background: #fce8e6; color: #b22222; border: 1px solid #e6b3b0; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--navy-900);
    color: rgba(255,255,255,0.7);
    padding: 64px 0 32px;
    border-top: 1px solid rgba(201,169,97,0.18);
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px;
    margin-bottom: 48px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

.footer-brand .brand { margin-bottom: 16px; }
.footer-company { font-family: var(--serif); font-size: 20px; color: #fff; margin-bottom: 6px; }
.footer-address { font-size: 14px; }
.footer-disclaimer { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 20px; line-height: 1.6; max-width: 50ch; }

.footer-links h4 {
    font-family: var(--sans);
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 18px;
}
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a:hover { color: var(--gold-light); }

.footer-bar {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* ---------- Legal pages (Impressum / Privacy) ---------- */
.legal {
    padding: 160px 0 80px;
    background: var(--bone);
    min-height: 100vh;
}
.legal h1 {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 40px;
    color: var(--navy-900);
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gold);
}
.legal-section { margin-bottom: 36px; }
.legal-section h2 {
    font-size: 22px;
    color: var(--navy-800);
    margin-bottom: 12px;
    font-family: var(--sans);
    font-weight: 600;
    letter-spacing: 0.01em;
}
.legal-section p, .legal-section div { color: var(--ink-soft); line-height: 1.75; }
.legal a { color: var(--gold-dark); }
.legal a:hover { color: var(--gold); }
.legal-back {
    display: inline-block;
    margin-top: 32px;
    color: var(--navy-700);
    font-size: 15px;
}

/* ---------- Misc ---------- */
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s ease; }
.fade-in.is-visible { opacity: 1; transform: translateY(0); }

::selection { background: var(--gold); color: var(--navy-900); }

/* ---------- Print ---------- */
@media print {
    .site-header, .lang-switch, .nav-toggle, .hero-actions, .contact-form { display: none !important; }
    .hero { min-height: auto; padding: 40px 0; background: none; color: var(--ink); }
    .hero-title, .hero-subtitle { color: var(--ink); }
}
