/* ==========================================================================
   Eda House Corfu — design system (2026 refresh)
   Coastal-boutique aesthetic: warm sand + Ionian blue + deep ink.
   ========================================================================== */

:root {
  /* Palette */
  --sea:        #0f7cc0;
  --sea-dark:   #0a5a8f;
  --sea-deep:   #073b5e;
  --teal:       #1aa3a3;
  --sand:       #f6f1e7;
  --sand-2:     #efe7d7;
  --cream:      #fcfaf5;
  --ink:        #182430;
  --ink-soft:   #34424f;
  --muted:      #667585;
  --line:       #e7e0d2;
  --white:      #ffffff;
  --gold:       #c9a24a;

  /* Typography */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Radius / shadow */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(16,40,64,.06);
  --shadow:    0 12px 32px rgba(16,40,64,.10);
  --shadow-lg: 0 24px 60px rgba(16,40,64,.16);

  /* Layout */
  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2rem);
}

/* --- Reset & base --------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea-dark); text-decoration: none; }
a:hover { color: var(--sea); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -.015em; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 600; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }
p { margin: 0 0 1rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(3.5rem, 9vw, 7rem) 0; }
.section--sand { background: var(--sand); }
.section--cream { background: var(--cream); }
.eyebrow { font-family: var(--sans); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: .78rem; color: var(--sea); margin: 0 0 1rem; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 62ch; }
.measure { max-width: 66ch; }
.center { text-align: center; }
.lead--center { margin-inline: auto; }

/* --- Reveal on scroll ----------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.7rem; border-radius: var(--r-pill);
  font-family: var(--sans); font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--sea); color: #fff; box-shadow: 0 8px 22px rgba(15,124,192,.32); }
.btn--primary:hover { background: var(--sea-dark); color: #fff; box-shadow: 0 12px 28px rgba(15,124,192,.4); }
.btn--ghost { border-color: rgba(255,255,255,.7); color: #fff; backdrop-filter: blur(4px); }
.btn--ghost:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--sea-deep); color: #fff; }
.btn--wa { background: #25d366; color: #06331b; }
.btn--wa:hover { background: #1fbb59; color: #06331b; }
.btn--lg { padding: 1rem 2.1rem; font-size: 1.05rem; }
.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-row--center { justify-content: center; }

/* --- Header / nav --------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(252,250,245,.82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; letter-spacing: -.02em; color: var(--ink); }
.brand span { color: var(--sea); }
.nav ul { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--ink-soft); font-weight: 500; font-size: .98rem; position: relative; }
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--sea); transition: width .25s ease;
}
.nav a:not(.nav-cta):hover::after, .nav a[aria-current="page"]:not(.nav-cta)::after { width: 100%; }
.nav-cta { background: var(--sea); color: #fff !important; padding: .6rem 1.3rem; border-radius: var(--r-pill); font-weight: 600; box-shadow: 0 6px 16px rgba(15,124,192,.3); }
.nav-cta:hover { background: var(--sea-dark); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink); }

/* --- Hero ----------------------------------------------------------------- */
.hero { position: relative; min-height: min(92vh, 820px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(7,40,64,.15) 0%, rgba(7,40,64,.30) 45%, rgba(7,40,64,.78) 100%); }
.hero-inner { padding-block: clamp(3rem, 8vw, 6rem); max-width: 46rem; }
.hero .eyebrow { color: #ffe9b8; }
.hero h1 { color: #fff; text-shadow: 0 2px 30px rgba(0,0,0,.28); margin-bottom: .3em; }
.hero p { font-size: clamp(1.1rem, 1.8vw, 1.35rem); color: rgba(255,255,255,.94); max-width: 44ch; margin-bottom: 2rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 2.2rem; font-size: .95rem; color: rgba(255,255,255,.9); }
.hero-badges span { display: inline-flex; align-items: center; gap: .5rem; }
.hero-badges b { color: #ffe9b8; font-weight: 700; }

/* --- Facts strip (overlaps hero) ----------------------------------------- */
.facts-strip { position: relative; z-index: 2; margin-top: -3.5rem; }
.facts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  background: var(--white); border-radius: var(--r); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.fact { padding: 1.6rem 1.25rem; text-align: center; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact b { display: block; font-family: var(--serif); font-size: 1.9rem; color: var(--sea-dark); line-height: 1; margin-bottom: .3rem; }
.fact span { color: var(--muted); font-size: .92rem; }

/* --- Split (about / location) -------------------------------------------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--media img { border-radius: var(--r-lg); box-shadow: var(--shadow); }
.stack-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stack-imgs img { border-radius: var(--r); box-shadow: var(--shadow-sm); aspect-ratio: 3/4; object-fit: cover; }
.stack-imgs img:first-child { grid-row: span 2; aspect-ratio: 3/5; }

/* --- Amenities ------------------------------------------------------------ */
.amenities { columns: 2; column-gap: 3rem; list-style: none; padding: 0; margin: 0; }
.amenities li { break-inside: avoid; padding: .5rem 0 .5rem 2rem; position: relative; color: var(--ink-soft); }
.amenities li::before {
  content: ""; position: absolute; left: 0; top: .95rem; width: 1.15rem; height: .6rem;
  border-left: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal);
  transform: rotate(-45deg) translateY(-2px);
}
.amenities--single { columns: 1; }

/* --- Feature cards -------------------------------------------------------- */
.grid { display: grid; gap: 1.5rem; }
.features { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.feature { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 1.7rem; transition: transform .2s ease, box-shadow .2s ease; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature .ico { font-size: 1.7rem; display: block; margin-bottom: .6rem; }
.feature h3 { margin: 0 0 .35rem; font-size: 1.12rem; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }

/* --- Gallery -------------------------------------------------------------- */
.gallery { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.gallery a { border-radius: var(--r); overflow: hidden; display: block; position: relative; box-shadow: var(--shadow-sm); }
.gallery img { aspect-ratio: 4/3; object-fit: cover; transition: transform .5s ease; width: 100%; }
.gallery a:hover img { transform: scale(1.07); }
.gallery-full { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.gallery-full img { aspect-ratio: 4/3; object-fit: cover; }

/* --- CTA band ------------------------------------------------------------- */
.cta-band { position: relative; color: #fff; text-align: center; overflow: hidden; }
.cta-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,59,94,.72), rgba(7,40,64,.82)); }
.cta-band h2 { color: #fff; }
.cta-band .lead { color: rgba(255,255,255,.92); }

/* --- Map ------------------------------------------------------------------ */
.map-embed { border: 0; width: 100%; aspect-ratio: 4/3; border-radius: var(--r-lg); box-shadow: var(--shadow); }

/* --- Page head (inner pages) --------------------------------------------- */
.page-head { background: linear-gradient(180deg, var(--sand), var(--cream)); padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 3rem); text-align: center; }
.page-head h1 { margin-bottom: .25em; }
.page-head p { color: var(--ink-soft); font-size: clamp(1.05rem,1.5vw,1.2rem); max-width: 60ch; margin-inline: auto; }

/* --- Forms ---------------------------------------------------------------- */
.booking-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: var(--shadow); }
.form { display: grid; gap: 1.15rem; }
.form label { font-weight: 600; font-size: .9rem; color: var(--ink-soft); display: block; }
.form input, .form textarea, .form select {
  width: 100%; padding: .8rem .95rem; border: 1.5px solid var(--line);
  border-radius: var(--r-sm); font: inherit; margin-top: .35rem; background: var(--cream);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none; border-color: var(--sea); box-shadow: 0 0 0 3px rgba(15,124,192,.15); background: #fff;
}
.form-row { display: grid; gap: 1.15rem; grid-template-columns: 1fr 1fr; }
.form-note { color: var(--muted); font-size: .88rem; }
.form-status { padding: .95rem 1.15rem; border-radius: var(--r-sm); font-weight: 600; margin-bottom: 1rem; }
.form-status--ok  { background: #e5f6ec; color: #12633a; border: 1px solid #b6e2c6; }
.form-status--err { background: #fdecec; color: #a12626; border: 1px solid #f3c4c4; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- Footer --------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #c3ccd6; padding: clamp(3rem,6vw,4.5rem) 0 2rem; }
.site-footer a { color: #9ed2f0; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1.4fr 1fr 1fr; }
.site-footer h4 { color: #fff; font-family: var(--serif); font-size: 1.15rem; margin: 0 0 .8rem; }
.site-footer p { margin: 0; line-height: 2; }
.copyright { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #2b3947; font-size: .88rem; color: #8fa0b0; }

/* --- Floating WhatsApp ---------------------------------------------------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366;
  display: grid; place-items: center; box-shadow: 0 10px 28px rgba(37,211,102,.45); color: #fff;
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float svg { width: 32px; height: 32px; }

/* --- Lightbox ------------------------------------------------------------- */
.lightbox { position: fixed; inset: 0; background: rgba(7,20,32,.94); display: none; place-items: center; z-index: 100; padding: 4vmin; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: var(--r); box-shadow: var(--shadow-lg); }
.lightbox-close { position: absolute; top: 18px; right: 24px; background: none; border: 0; color: #fff; font-size: 2.6rem; line-height: 1; cursor: pointer; }

/* --- Utilities ------------------------------------------------------------ */
.mt-4 { margin-top: 1.5rem; }
.mt-6 { margin-top: 2.5rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(1), .fact:nth-child(2) { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav ul {
    position: absolute; top: 72px; left: 0; right: 0; background: var(--cream);
    flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gutter) 1.25rem;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none;
  }
  .nav ul.open { display: flex; }
  .nav li { padding: .35rem 0; }
  .amenities { columns: 1; }
  .form-row { grid-template-columns: 1fr; }
  .facts-strip { margin-top: -2rem; }
}
@media (max-width: 480px) {
  .facts { grid-template-columns: 1fr; }
  .fact { border-right: 0; border-bottom: 1px solid var(--line); }
  .fact:last-child { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr; }
}
