/* ==========================================================================
   Dream Seaside — Mediterranean, bright and professional
   Palette: Cycladic blue, whitewash, lemon sun, sea glass. Signature shape: the arch.
   Fonts are self-hosted from /fonts (see fonts.sh), nothing is loaded from third parties.
   ========================================================================== */

/* ---- Fonts: Alegreya (display) and Manrope (text), Latin / Latin-ext / Greek / Cyrillic ---- */
@font-face { font-family: "Alegreya"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("../fonts/alegreya-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Alegreya"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("../fonts/alegreya-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Alegreya"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("../fonts/alegreya-greek-wght-normal.woff2") format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "Alegreya"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("../fonts/alegreya-cyrillic-wght-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/manrope-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/manrope-greek-wght-normal.woff2") format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/manrope-cyrillic-wght-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

/* ---- Tokens ---- */
:root {
    --ink: #0a2342;
    --ink-soft: #35506b;
    --muted: #51657d;
    --cobalt: #0f4fb8;
    --cobalt-dark: #0b3c8c;
    --sky: #7cc3f5;
    --glass: #eaf5f8;
    --glass-deep: #d3e8ef;
    --lemon: #ffc933;
    --lemon-dark: #f2b400;
    --lemon-soft: #fff1bf;
    --olive: #1f6b3b;
    --line: #d6e3ea;
    --white: #ffffff;

    --display: "Alegreya", Georgia, "Times New Roman", serif;
    --text: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --radius: 18px;
    --gutter: clamp(1rem, 4vw, 2rem);
}

/* ---- Base ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--text);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--cobalt); text-underline-offset: .18em; }
a:hover { color: var(--cobalt-dark); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
    font-family: var(--display);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.01em;
    color: var(--ink);
    margin: 0 0 .5em;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.45rem; font-weight: 700; line-height: 1.2; }

.wrap { width: min(1160px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow { width: min(820px, 100% - 2 * var(--gutter)); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* ---- Header ---- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.55rem; letter-spacing: -.01em; line-height: 1; }
.logo-mark { height: 38px; width: auto; flex: none; }
.lm-arch { fill: var(--cobalt); }
.lm-sun { fill: var(--lemon); }
.lm-sea { fill: var(--sky); }
.lm-wave { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav > a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; padding: .35rem 0; }
.nav > a:hover { color: var(--cobalt); }
.nav > a.active { box-shadow: inset 0 -4px 0 var(--lemon); }
.lang { display: flex; gap: .2rem; margin-left: .4rem; padding-left: 1.2rem; border-left: 1px solid var(--line); }
.lang a { padding: .3rem .6rem; border-radius: 8px; font-size: .82rem; font-weight: 700; letter-spacing: .03em; text-decoration: none; color: var(--ink-soft); }
.lang a:hover { background: var(--glass); color: var(--ink); }
.lang a.current { background: var(--cobalt); color: #fff; }
.nav-toggle, .nav-burger { display: none; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--lemon); color: var(--ink);
    border: 2px solid var(--lemon); border-radius: 999px;
    padding: .8rem 1.7rem;
    font: inherit; font-weight: 800; text-decoration: none; cursor: pointer;
    transition: background .15s, transform .15s, border-color .15s;
}
.btn:hover { background: var(--lemon-dark); border-color: var(--lemon-dark); color: var(--ink); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--cobalt); border-color: var(--cobalt); }
.btn-ghost:hover { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }

/* ---- Hero ---- */
.hero { background: var(--glass); padding: clamp(2.5rem, 6vw, 4.5rem) 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: end; }
.hero-copy { align-self: center; padding-bottom: clamp(2.5rem, 7vw, 5.5rem); }
.hero h1 { max-width: 15ch; margin-bottom: .45em; }
.lead { font-size: 1.2rem; max-width: 46ch; color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-art { width: 100%; max-width: 440px; margin-left: auto; height: auto; }
.hero-sun { transform-box: fill-box; transform-origin: center; animation: sunrise 1.6s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes sunrise { from { transform: translateY(80px); } to { transform: none; } }

/* ---- Inner page heads ---- */
.page-head { position: relative; background: var(--glass); padding: clamp(2.2rem, 5vw, 3.6rem) 0 clamp(1.8rem, 4vw, 2.6rem); overflow: hidden; }
.page-head::after {
    content: ""; position: absolute; right: max(var(--gutter), calc((100vw - 1160px) / 2)); bottom: 0;
    width: 150px; height: 190px; border: 2px solid rgba(15, 79, 184, .28); border-bottom: 0; border-radius: 999px 999px 0 0;
    pointer-events: none;
}
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin-bottom: .25em; }
.page-head .lead { margin-bottom: 0; }
.crumbs { font-size: .92rem; margin-bottom: .8rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--cobalt); }

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-head { max-width: 40rem; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.section-head p { color: var(--ink-soft); margin: 0; }
.about { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.about h2 { margin: 0; }

/* ---- Cards: arch-shaped images ---- */
.grid { display: grid; gap: 2.6rem 2rem; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); margin-bottom: 2rem; }
.card { display: block; text-decoration: none; color: inherit; }
.card:hover { color: inherit; }
.card-media {
    aspect-ratio: 4 / 5;
    border-radius: 999px 999px var(--radius) var(--radius);
    background: var(--glass) center / cover no-repeat;
    transition: box-shadow .2s;
}
.card-media.is-placeholder { background-image: url("../images/placeholder.svg"); }
.card:hover .card-media, .card:focus-visible .card-media { box-shadow: 0 0 0 5px var(--lemon); }
.card-body { padding: 1.2rem .25rem 0; }
.card-body h3 { margin: .55rem 0 .2rem; }
.card:hover h3 { color: var(--cobalt); }
.card-body p { margin-bottom: .45em; }

/* ---- Badges and progress ---- */
.badge { display: inline-flex; align-items: center; gap: .45rem; padding: .22rem .75rem; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--glass-deep); color: var(--cobalt-dark); }
.badge::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.badge-in_progress, .badge-house-reserved { background: var(--lemon-soft); color: #7a5600; }
.badge-planning { background: var(--glass-deep); color: var(--cobalt-dark); }
.badge-completed, .badge-house-sold { background: #e6ecf2; color: var(--ink-soft); }
.badge-house-available { background: #dcf1e3; color: var(--olive); }
.badge-house-planned { background: var(--glass-deep); color: var(--cobalt-dark); }
.progress { height: 10px; background: var(--glass-deep); border-radius: 999px; overflow: hidden; margin: .7rem 0 .35rem; }
.progress span { display: block; height: 100%; background: var(--cobalt); border-radius: 999px; }

/* ---- Project facts, house specs ---- */
.facts { display: grid; gap: 1.4rem 2rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-bottom: 2.4rem; padding-top: 1.4rem; border-top: 2px solid var(--ink); }
.facts div { display: flex; flex-direction: column; gap: .15rem; }
.facts strong { font-family: var(--display); font-size: 1.5rem; font-weight: 700; line-height: 1.2; }

.specs { display: grid; gap: 1.4rem 1.6rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: 0 0 2.4rem; padding: 1.5rem 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.spec { display: flex; align-items: center; gap: .9rem; }
.spec .icon { flex: none; width: 46px; height: 46px; padding: 11px; border-radius: 50%; background: var(--glass); color: var(--cobalt); }
.spec dt { font-size: .85rem; color: var(--muted); }
.spec dd { margin: 0; font-family: var(--display); font-size: 1.55rem; font-weight: 700; line-height: 1.15; color: var(--ink); }
.features { columns: 2; padding-left: 1.2rem; }
.features li { margin-bottom: .35rem; }
.prose { max-width: 66ch; }
.prose img { border-radius: 12px; }
.prose a { color: var(--cobalt); }
.prose-text { font-size: 1.12rem; color: var(--ink-soft); margin: 0; }

/* ---- Gallery and lightbox ---- */
.gallery { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.gallery-item { padding: 0; border: 0; background: var(--glass); cursor: zoom-in; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.04); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
.lightbox::backdrop { background: rgba(6, 22, 42, .9); }
.lightbox img { max-width: 94vw; max-height: 92vh; border-radius: 10px; }
.lightbox-close { position: fixed; top: 1rem; right: 1.2rem; z-index: 2; background: none; border: 0; color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer; }

/* ---- Legal page ---- */
.legal-table { margin: 0 0 2rem; border-top: 2px solid var(--ink); }
.legal-table div { display: grid; grid-template-columns: minmax(160px, 240px) 1fr; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.legal-table dt { color: var(--muted); }
.legal-table dd { margin: 0; font-weight: 700; }
.legal-table + h2, .table-scroll + h2, .doc-list + h2, .prose + h2, .btn + h2, p + h2 { margin-top: 2.6rem; }
.table-scroll { overflow-x: auto; margin: 0 0 2rem; }
.data-table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.data-table th, .data-table td { text-align: left; padding: .75rem .85rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { color: var(--muted); font-weight: 700; font-size: .85rem; white-space: nowrap; }
.doc-list { padding-left: 1.2rem; margin: 0 0 2rem; }
.doc-list li { margin-bottom: .4rem; }

/* ---- Contact ---- */
.contact-grid { display: grid; gap: 2.5rem; grid-template-columns: 1.6fr 1fr; align-items: start; }
.form { display: grid; gap: 1rem; }
.form label { display: grid; gap: .35rem; font-size: .92rem; font-weight: 700; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form textarea {
    font: inherit; font-weight: 500; padding: .8rem .95rem; border: 1.5px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink);
}
.form input:focus, .form textarea:focus { outline: 3px solid rgba(15, 79, 184, .35); border-color: var(--cobalt); }
.form .check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 500; }
.form .check input { margin-top: .4rem; accent-color: var(--cobalt); }
.hp { position: absolute; left: -9999px; }
.error { color: #b3261e; font-size: .88rem; margin: -.4rem 0 0; }
.notice { background: #dcf1e3; color: var(--olive); padding: 1rem 1.2rem; border-radius: 12px; margin-bottom: 1.2rem; font-weight: 600; }
.notice-warn { background: var(--lemon-soft); color: #7a5600; }
.contact-card { background: var(--glass); padding: 1.8rem; border-radius: var(--radius); }
.contact-card h2 { font-size: 1.6rem; }

/* ---- Footer ---- */
.footer-wave { display: block; width: 100%; height: 40px; margin-top: clamp(2rem, 5vw, 4rem); color: var(--ink); }
.footer-wave path { fill: currentColor; }
.site-footer { background: var(--ink); color: #c6d3e2; padding: 2.4rem 0 1.4rem; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer .brand { color: #fff; margin-bottom: .9rem; }
.site-footer .brand-name { font-size: 1.4rem; }
.site-footer .logo-mark { height: 34px; }
.site-footer .lm-arch { fill: #fff; }
.site-footer .lm-sea { fill: var(--sky); }
.site-footer .lm-wave { stroke: var(--cobalt); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.footer-grid p { margin: 0 0 .45em; }
.footer-bottom { margin-top: 2.2rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .85rem; opacity: .75; }

/* ---- Mobile ---- */
@media (max-width: 860px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-copy { padding-bottom: 1rem; }
    .hero-art { max-width: 340px; margin: 1rem auto 0; }
    .about { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .page-head::after { width: 90px; height: 120px; }
}
@media (max-width: 760px) {
    .nav-burger { display: block; width: 44px; height: 44px; cursor: pointer; position: relative; margin-left: auto; }
    .nav-burger span, .nav-burger span::before, .nav-burger span::after { content: ""; position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); transition: .2s; }
    .nav-burger span { top: 21px; }
    .nav-burger span::before { left: 0; right: 0; top: -7px; }
    .nav-burger span::after { left: 0; right: 0; top: 7px; }
    .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 1rem; background: var(--white); padding: 1.2rem var(--gutter) 1.5rem; border-bottom: 1px solid var(--line); }
    .nav-toggle:checked ~ .nav { display: flex; }
    .nav-toggle:focus-visible ~ .nav-burger { outline: 3px solid var(--cobalt); border-radius: 8px; }
    .lang { margin-left: 0; padding-left: 0; border-left: 0; }
    .features { columns: 1; }
    .legal-table div { grid-template-columns: 1fr; gap: .1rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
