/* Triporte, Korčula – sales page
   Plain CSS, no framework. Colours and type are set as variables at the top. */

@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --sea: #0e5c6b;
  --sea-deep: #083a45;
  --sea-light: #e3f1f2;
  --stone: #f6f2ea;
  --sand: #e9dfcc;
  --ink: #1d2a2e;
  --muted: #5b6a6e;
  --line: #dcd4c4;
  --white: #ffffff;
  --accent: #c8683b;
  --radius: 6px;
  --max: 1120px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::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(--stone); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea); }
a:hover { color: var(--sea-deep); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 .6em; color: var(--sea-deep); }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.35rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.eyebrow { font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: .8em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46em; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--white); padding: 8px 12px; z-index: 100; }

/* Header */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 10; padding: 18px 0; }
.site-header .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.brand { font-family: var(--serif); font-size: 1.25rem; color: var(--white); text-decoration: none; letter-spacing: .02em; }
.brand:hover { color: var(--white); }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--white); text-decoration: none; font-size: .92rem; opacity: .9; }
.nav a:hover { opacity: 1; color: var(--white); text-decoration: underline; }
@media (max-width: 760px) { .nav a:not(.nav-cta) { display: none; } }

/* Buttons */
.btn { display: inline-block; padding: 13px 24px; border-radius: var(--radius); font-weight: 600; font-size: .98rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: var(--sans); transition: background .2s, color .2s; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: #ad5530; color: var(--white); }
.btn-ghost { border-color: rgba(255,255,255,.8); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.15); color: var(--white); }
.btn-outline { border-color: var(--sea); color: var(--sea); background: transparent; }
.btn-outline:hover { background: var(--sea); color: var(--white); }
.nav-cta { border: 1px solid rgba(255,255,255,.8); padding: 7px 14px; border-radius: var(--radius); }

/* Hero */
.hero { position: relative; min-height: 92vh; display: flex; align-items: flex-end; color: var(--white); background: var(--sea-deep) center/cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,40,48,.7) 0%, rgba(6,40,48,.45) 32%, rgba(6,40,48,0) 58%), linear-gradient(180deg, rgba(6,40,48,.4) 0%, rgba(6,40,48,0) 18%); }
.hero h1, .hero p { text-shadow: 0 2px 18px rgba(0,0,0,.55), 0 1px 3px rgba(0,0,0,.4); }
.hero .wrap { position: relative; width: 100%; padding-top: 120px; padding-bottom: 56px; }
.hero h1 { color: var(--white); max-width: 11em; }
.hero .place { font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; opacity: .9; margin-bottom: 1em; }
.hero p.intro { font-size: 1.2rem; max-width: 34em; opacity: .95; }
.hero .price-tag { display: inline-block; margin: .4em 0 1.6em; font-family: var(--serif); font-size: 1.6rem; }
.hero .price-tag small { display: block; font-family: var(--sans); font-size: .9rem; opacity: .85; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Facts strip */
.facts { background: var(--white); border-bottom: 1px solid var(--line); }
.facts ul { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.facts li { text-align: center; }
.facts strong { display: block; font-family: var(--serif); font-size: 1.5rem; font-weight: 400; color: var(--sea-deep); }
.facts span { font-size: .85rem; color: var(--muted); }
@media (max-width: 760px) { .facts ul { grid-template-columns: repeat(2, 1fr); } }

/* Sections */
section { padding: 88px 0; }
section.alt { background: var(--white); }
section.sea { background: var(--sea-deep); color: #e8f2f3; }
section.sea h2, section.sea h3 { color: var(--white); }
section.sea .lead { color: #c5dde0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } .split.reverse > :first-child { order: 0; } section { padding: 64px 0; } }

figure { margin: 0; }
figure img { border-radius: var(--radius); width: 100%; object-fit: cover; }
figcaption { font-size: .82rem; color: var(--muted); margin-top: 8px; }
section.sea figcaption { color: #a9c7cb; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 36px; }
.gallery img { aspect-ratio: 4 / 3; height: auto; object-fit: cover; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .gallery { grid-template-columns: 1fr; } }

/* Video (click to load, nothing loads from YouTube before the click) */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000 center/cover no-repeat; margin-top: 32px; }
.video button { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(8,58,69,.35); color: var(--white); font: 600 1.05rem var(--sans); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.video button:hover { background: rgba(8,58,69,.2); }
.video .play { width: 74px; height: 74px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.video .play::before { content: ""; border-left: 22px solid var(--white); border-top: 14px solid transparent; border-bottom: 14px solid transparent; margin-left: 6px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video small { font-weight: 400; font-size: .8rem; opacity: .85; max-width: 30em; text-align: center; padding: 0 16px; }

/* Map (click to load) */
.map-block { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; margin-top: 40px; align-items: start; }
.map { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--sea-light); border: 1px solid var(--line); }
.map button { position: absolute; inset: 0; width: 100%; border: 0; background: repeating-linear-gradient(45deg, #e3f1f2 0 14px, #d6eaec 14px 28px); color: var(--sea-deep); font: 600 1.05rem var(--sans); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.map .pin { width: 28px; height: 28px; background: var(--accent); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.map small { font-weight: 400; font-size: .8rem; color: var(--muted); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-links { list-style: none; margin: 0; padding: 0; }
.map-links li { padding: 12px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 760px) { .map-block { grid-template-columns: 1fr; } }
.wide-figure { margin-top: 40px; }
.options-figure img { background: #fff; padding: 16px; border-radius: var(--radius); }

/* Plots */
.plots { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 28px 0; }
.plot-card { background: var(--stone); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.plot-card .num { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.plot-card h3 { margin: .3em 0 .2em; }
.plot-card p { margin: 0; color: var(--muted); }
@media (max-width: 560px) { .plots { grid-template-columns: 1fr; } }

/* Possibilities list */
.ticks { list-style: none; padding: 0; margin: 0 0 1.4em; }
.ticks li { padding: 10px 0 10px 34px; position: relative; border-bottom: 1px solid rgba(255,255,255,.14); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 18px; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
section.alt .ticks li, section:not(.sea) .ticks li { border-color: var(--line); }

/* Price */
.price-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; text-align: center; max-width: 760px; margin: 0 auto; }
.price-box .amount { font-family: var(--serif); font-size: clamp(2.4rem, 6vw, 3.4rem); color: var(--sea-deep); line-height: 1; margin: .2em 0 .4em; }
.price-box p { color: var(--muted); }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 36px 16px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.5rem; font-weight: 400; color: var(--sea); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-right: 24px; }

/* Documents */
.docs { columns: 2; column-gap: 36px; padding-left: 1.1em; }
.docs li { margin-bottom: 6px; break-inside: avoid; }
@media (max-width: 560px) { .docs { columns: 1; } }

/* Form */
.form-wrap { background: var(--white); border-radius: var(--radius); padding: 36px; color: var(--ink); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .form-wrap { padding: 24px 18px; } }
label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 6px; }
input, select, textarea { width: 100%; font: inherit; font-size: 1rem; padding: 11px 12px; border: 1px solid #c9c1b0; border-radius: var(--radius); background: var(--white); color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--sea); outline-offset: 1px; border-color: var(--sea); }
textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--muted); margin: 14px 0 18px; }
.hidden { display: none; }

/* Footer */
.site-footer { background: #062e37; color: #a9c2c6; padding: 48px 0 36px; font-size: .88rem; }
.site-footer a { color: #d7e7e9; }
.site-footer .disclaimer { max-width: 60em; }
.site-footer .bottom { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* Simple pages (privacy, thank you) */
.page { padding: 56px 0 80px; }
.page .wrap { max-width: 780px; }
.page-header { background: var(--sea-deep); padding: 22px 0; }
.page-header .brand { color: var(--white); }
.page h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.page h2 { font-size: 1.4rem; margin-top: 1.6em; }

/* v1.4 */
.gallery-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .gallery-4 { grid-template-columns: 1fr 1fr; } }
.small-note { font-size: .85rem; color: var(--muted); }
label.check { display: flex; gap: 10px; align-items: center; font-weight: 400; }
label.check input { width: auto; }


.intro-band { background: var(--white); padding: 44px 0 8px; }
.intro-band p { font-size: 1.2rem; max-width: 46em; color: var(--ink); margin: 0 0 .6em; }

/* Mobile: full photo on top, text below on deep blue, so the photo stays clean */
@media (max-width: 760px) {
  .hero { min-height: 0; display: block; padding: 0; background-size: 100% auto; background-position: top center; background-color: var(--sea-deep); }
  .hero::before { background: linear-gradient(180deg, rgba(6,40,48,.45) 0, rgba(6,40,48,0) 70px); height: 72vw; }
  .hero .wrap { padding-top: calc(72vw + 20px); padding-bottom: 36px; }
  .hero h1, .hero p { text-shadow: none; }
}
.gallery-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 480px) { .gallery-2 { grid-template-columns: 1fr; } }
