/* =====================================================
   Kalmà Taormina — boutique apartments
   Palette: navy blue / terracotta / warm cream
   (variable names kept for backward-compat; --green = navy, --gold = terracotta)
   ===================================================== */

:root {
    --green: #1F3A5F;       /* navy (was forest green) */
    --green-2: #1A3252;     /* deep navy */
    --gold: #C75D43;        /* terracotta (was antique gold) */
    --gold-2: #D67358;      /* terracotta light */
    --cream: #F5EFE6;       /* warm cream */
    --cream-2: #FBF7F0;     /* lighter cream */
    --ink: #1a1a1a;
    --muted: #6b6b66;
    --line: #e6dccb;

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

    --container: 1200px;
    --radius: 4px;
}

/* ============== RESET ============== */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--sans);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.65;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
ul { list-style: none; }

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

/* ============== TYPOGRAPHY ============== */
h1,h2,h3,h4 {
    font-family: var(--serif);
    font-weight: 400;
    line-height: 1.15;
    color: var(--green);
    letter-spacing: 0.005em;
}
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h3 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
h4 { font-size: 1.15rem; font-weight: 500; letter-spacing: 0.02em; }

.eyebrow {
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}
.eyebrow--gold { color: var(--gold); }

.lead {
    font-family: var(--serif);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--muted);
    margin-top: 1rem;
}

/* ============== NAV ============== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
    padding: 1.5rem 0;
}
.nav__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.nav__brand {
    display: flex;
    flex-direction: column;
    line-height: 1;
    color: #fff;
    transition: color .35s ease;
}
.nav__brand-name {
    font-family: var(--serif);
    font-size: 1.7rem;
    font-style: italic;
    font-weight: 500;
}
.nav__brand-loc {
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-top: 4px;
    opacity: 0.85;
}
.nav__links {
    display: flex;
    gap: 2.5rem;
}
.nav__links a {
    color: #fff;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 400;
    position: relative;
    transition: color .25s ease;
}
.nav__links a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -6px;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .3s ease;
}
.nav__links a:hover::after { transform: scaleX(1); }

.nav__cta {
    border: 1px solid rgba(255,255,255,0.6);
    color: #fff;
    padding: 0.7rem 1.4rem;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: all .3s ease;
}
.nav__cta:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--green);
}

/* Scrolled state */
.nav.scrolled {
    background: rgba(245, 239, 230, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--line);
    padding: 0.85rem 0;
}
.nav.scrolled .nav__brand,
.nav.scrolled .nav__links a { color: var(--green); }
.nav.scrolled .nav__brand-name { color: var(--green); }
.nav.scrolled .nav__cta {
    border-color: var(--green);
    color: var(--green);
}
.nav.scrolled .nav__cta:hover {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}

.nav__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
}
.nav__burger span {
    width: 26px;
    height: 1.5px;
    background: #fff;
    transition: background .3s ease;
}
.nav.scrolled .nav__burger span { background: var(--green); }

/* ============== HERO ============== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    isolation: isolate;
}
.hero__bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1525874684015-58379d421a52?auto=format&fit=crop&w=2400&q=85');
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    animation: heroZoom 18s ease-in-out infinite alternate;
    z-index: -2;
}
@keyframes heroZoom {
    from { transform: scale(1.05); }
    to   { transform: scale(1.18); }
}
.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(31,58,95,0.55) 0%, rgba(31,58,95,0.35) 40%, rgba(31,58,95,0.80) 100%);
    z-index: -1;
}
.hero__content {
    text-align: center;
    padding: 8rem 2rem 4rem;
    max-width: 900px;
    animation: fadeUp 1.4s ease both;
}
.hero__logo {
    width: clamp(220px, 30vw, 360px);
    height: auto;
    margin: 0 auto 2.5rem;
    filter: drop-shadow(0 4px 30px rgba(0,0,0,0.35)) brightness(0) invert(1);
    opacity: 0.95;
}
/* Note: the brightness/invert filter makes the logo pure white over the hero;
   the colorful version is used elsewhere. */

.hero__tagline {
    font-family: var(--serif);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 300;
    line-height: 1.3;
    margin-bottom: 1.8rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero__divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem auto;
    width: 120px;
}
.hero__divider span {
    flex: 1;
    height: 1px;
    background: var(--gold);
}
.hero__divider::before,
.hero__divider::after {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    margin: 0 6px;
}
.hero__sub {
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    opacity: 0.92;
    line-height: 1.8;
}

.hero__cue {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    color: #fff;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    opacity: 0.85;
    animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob {
    0%,100% { transform: translate(-50%, 0); }
    50%     { transform: translate(-50%, 8px); }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============== INTRO ============== */
.intro {
    padding: 7rem 0 6rem;
    text-align: center;
}
.intro__title {
    max-width: 800px;
    margin: 0 auto 2rem;
    font-style: italic;
    font-weight: 300;
}
.intro__text {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.9;
}

/* ============== APARTMENTS ============== */
.apartments {
    padding: 6rem 0 8rem;
    background: var(--cream-2);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.section-head {
    text-align: center;
    margin-bottom: 4.5rem;
}
.section-head h2 {
    font-style: italic;
    font-weight: 300;
}

.apt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}
.apt {
    background: #fff;
    transition: transform .5s ease, box-shadow .5s ease;
    overflow: hidden;
}
.apt:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -20px rgba(31, 58, 95, 0.25);
}
.apt__img {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
}
.apt__img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1.2s ease;
}
.apt:hover .apt__img img {
    transform: scale(1.08);
}
.apt__tag {
    position: absolute;
    top: 1.2rem; left: 1.2rem;
    background: var(--cream);
    color: var(--green);
    padding: 0.4rem 1rem;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 500;
}
.apt__body {
    padding: 2.2rem 2rem 2.5rem;
}
.apt__eyebrow {
    color: var(--gold);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}
.apt__body h3 {
    margin-bottom: 1rem;
    font-style: italic;
    font-weight: 400;
}
.apt__desc {
    color: var(--muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}
.apt__features {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}
.apt__features li {
    font-size: 0.9rem;
    color: var(--ink);
    letter-spacing: 0.03em;
    position: relative;
    padding-left: 1.2rem;
}
.apt__features li::before {
    content: "";
    position: absolute;
    left: 0; top: 0.65em;
    width: 6px; height: 1px;
    background: var(--gold);
}

/* ============== EXPERIENCE ============== */
.experience {
    padding: 8rem 0;
    background: var(--green);
    color: var(--cream);
}
.experience h2 { color: var(--cream); font-style: italic; font-weight: 300; }
.experience .lead { color: rgba(245, 239, 230, 0.78); }
.experience .eyebrow { color: var(--gold-2); }

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 3rem 2.5rem;
    margin-top: 4rem;
}
.service {
    text-align: left;
    padding: 1.5rem 0;
}
.service__icon {
    width: 48px; height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-2);
    border: 1px solid var(--gold-2);
    border-radius: 50%;
    margin-bottom: 1.5rem;
}
.service__icon svg { width: 22px; height: 22px; }
.service h4 {
    color: var(--cream);
    margin-bottom: 0.6rem;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    font-size: 1.3rem;
}
.service p {
    color: rgba(245, 239, 230, 0.72);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ============== PLACE ============== */
.place {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 80vh;
    background: var(--cream-2);
}
.place__media {
    overflow: hidden;
}
.place__media img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.place__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5rem;
    max-width: 640px;
}
.place__body h2 {
    font-style: italic;
    font-weight: 300;
    margin-bottom: 2rem;
}
.place__body p {
    color: var(--muted);
    margin-bottom: 1.2rem;
    line-height: 1.85;
}
.place__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}
.place__stats > div {
    display: flex;
    flex-direction: column;
}
.place__stats strong {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.8rem;
    color: var(--gold);
    font-weight: 500;
}
.place__stats span {
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 4px;
}

/* ============== CONTACT ============== */
.contact {
    padding: 8rem 0;
    background: var(--green-2);
    color: var(--cream);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.contact::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 0%, rgba(199, 93, 67, 0.22) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 100%, rgba(199, 93, 67, 0.12) 0%, transparent 50%);
    pointer-events: none;
}
.contact h2 {
    color: var(--cream);
    font-style: italic;
    font-weight: 300;
    margin-bottom: 1.5rem;
}
.contact__lead {
    max-width: 580px;
    margin: 0 auto 3rem;
    color: rgba(245, 239, 230, 0.78);
    line-height: 1.85;
}
.contact__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 1rem 1.8rem;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: none;
    border: 1px solid;
    transition: all .3s ease;
    font-weight: 400;
}
.btn--gold {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--green);
}
.btn--gold:hover {
    background: var(--gold-2);
    border-color: var(--gold-2);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px rgba(199, 93, 67, 0.55);
}
.btn--ghost {
    background: transparent;
    border-color: rgba(245, 239, 230, 0.45);
    color: var(--cream);
}
.btn--ghost:hover {
    border-color: var(--cream);
    background: rgba(245, 239, 230, 0.10);
}

/* ============== FOOTER ============== */
.foot {
    background: #14253D;
    color: rgba(245, 239, 230, 0.65);
    padding: 3rem 0 2rem;
    font-size: 0.85rem;
}
.foot__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.foot__brand {
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.foot__name {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.6rem;
    color: var(--cream);
    font-weight: 500;
}
.foot__loc {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-top: 6px;
    color: var(--gold-2);
}
.foot__links {
    display: flex;
    gap: 2rem;
}
.foot__links a {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: color .25s ease;
}
.foot__links a:hover { color: var(--gold-2); }
.foot__copy {
    flex-basis: 100%;
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(245, 239, 230, 0.09);
    font-size: 0.78rem;
    letter-spacing: 0.05em;
}

/* ============== REVEAL ANIMATIONS ============== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============== RESPONSIVE ============== */
@media (max-width: 900px) {
    .nav__links, .nav__cta { display: none; }
    .nav__burger { display: flex; }
    .nav__links.is-open {
        display: flex;
        position: absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column;
        background: var(--cream);
        padding: 2rem;
        gap: 1.5rem;
        border-top: 1px solid var(--line);
    }
    .nav__links.is-open a { color: var(--green); }

    .place {
        grid-template-columns: 1fr;
    }
    .place__media { aspect-ratio: 4 / 3; }
    .place__body {
        padding: 4rem 2rem;
        max-width: 100%;
    }

    .intro { padding: 5rem 0 4rem; }
    .apartments { padding: 5rem 0; }
    .experience { padding: 6rem 0; }
    .contact { padding: 6rem 0; }

    .foot__inner {
        flex-direction: column;
        text-align: center;
    }
    .foot__links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }
}

@media (max-width: 520px) {
    .container { padding: 0 1.25rem; }
    .nav__inner { padding: 0 1.25rem; }
    .hero__content { padding: 7rem 1.5rem 4rem; }
    .place__body { padding: 3rem 1.5rem; }
    .place__stats {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}

/* ============== PREFERS REDUCED MOTION ============== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .hero__bg { animation: none; }
}
