/* =========================================================
   Villa Pefkochori — Stylesheet
   Palette:
     --deep:   #1B4B66  (deep Aegean, nav/headers)
     --sea:    #2E7FA3  (primary blue accent)
     --sky:    #5AA7C4  (light blue)
     --sand:   #F7ECD7  (warm section background)
     --cream:  #FBF8F2  (base background)
     --ochre:  #C9922A  (CTA / accent)
     --ochre-d:#8A5A2B  (deep ochre, footer/text accent)
     --ink:    #1E2C33  (body text)
   Type:
     Display: 'Fraunces' (warm serif, Mediterranean character)
     Body/UI: 'Jost' (clean geometric sans)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,500;0,9..144,600;1,9..144,500&family=Jost:wght@300;400;500;600&display=swap');

:root {
  --deep: #1B4B66;
  --sea: #2E7FA3;
  --sky: #5AA7C4;
  --sand: #F7ECD7;
  --cream: #FBF8F2;
  --ochre: #C9922A;
  --ochre-d: #8A5A2B;
  --ink: #1E2C33;
  --radius: 6px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Jost', sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  color: var(--deep);
  margin: 0 0 0.5em;
  line-height: 1.15;
}

p { margin: 0 0 1em; }
a { color: var(--sea); }
img { max-width: 100%; display: block; }

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

.eyebrow {
  font-family: 'Jost', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--ochre-d);
  font-weight: 600;
  margin-bottom: 0.6em;
  display: inline-block;
}

.section { padding: 88px 0; }
.section--sand { background: var(--sand); }
.section--cream { background: var(--cream); }
.section--deep { background: var(--deep); color: #E7EEF2; }
.section--deep h2 { color: #FBF8F2; }

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.section-head p { color: #4C5E67; }
.section--deep .section-head p { color: #C7D6DD; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn--ochre {
  background: var(--ochre);
  color: #2A1B06;
}
.btn--ochre:hover { background: #DAA23A; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(201,146,42,0.35); }
.btn--outline {
  background: transparent;
  border-color: rgba(251,248,242,0.6);
  color: #FBF8F2;
}
.btn--outline:hover { background: rgba(251,248,242,0.12); transform: translateY(-2px); }
.btn--full { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }

/* =========== NAV =========== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
}
.nav.is-scrolled {
  background: rgba(27,75,102,0.96);
  padding: 12px 0;
  box-shadow: 0 6px 24px rgba(0,0,0,0.15);
  backdrop-filter: blur(6px);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; }
.brand {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.3rem;
  color: #FBF8F2;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.brand span { color: var(--ochre); }
.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: #EFE7D6;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--ochre);
  transition: width 0.25s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-cta { margin-left: 8px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: #FBF8F2;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========== HERO =========== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #1B4B66;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,38,51,0.55) 0%, rgba(15,38,51,0.25) 45%, rgba(12,30,40,0.75) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  color: #FBF8F2;
  padding-top: 70px;
  max-width: 720px;
}
.hero-content .eyebrow { color: #F2C879; }
.hero-content h1 {
  color: #FBF8F2;
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-style: italic;
  font-weight: 500;
}
.hero-content h1 em { font-style: normal; color: var(--ochre); }
.hero-content .lede {
  font-size: 1.15rem;
  color: #E7EEF2;
  max-width: 520px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.hero-facts {
  display: flex;
  gap: 34px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.hero-facts div { min-width: 90px; }
.hero-facts strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 1.6rem;
  color: var(--ochre);
}
.hero-facts span { font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: #C7D6DD; }

.scroll-cue {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: #E7EEF2;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.85;
}
.scroll-cue .line { width: 1px; height: 34px; background: linear-gradient(180deg, #F2C879, transparent); animation: scrollpulse 1.8s ease-in-out infinite; }
@keyframes scrollpulse { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

/* Wave divider — signature motif, echoes the shoreline throughout the page */
.wave-divider { display: block; width: 100%; line-height: 0; position: relative; z-index: 2; }
.wave-divider svg { width: 100%; height: 60px; display: block; }
.wave-divider--up { transform: rotate(180deg); }

/* =========== ABOUT / DETAILS =========== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-copy p { color: #3D4E56; }
.feature-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--deep);
  font-weight: 500;
}
.feature-list li::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ochre);
  margin-top: 8px;
  flex-shrink: 0;
}
.about-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(27,75,102,0.35);
}
.about-frame img { border-radius: var(--radius); }
.about-frame .tag {
  position: absolute;
  bottom: 18px; left: 18px;
  background: rgba(251,248,242,0.94);
  color: var(--ochre-d);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  letter-spacing: 0.03em;
}

/* Amenity chips */
.amenities {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.amenity {
  background: var(--cream);
  border: 1px solid rgba(27,75,102,0.1);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
}
.amenity .ico { font-size: 1.6rem; margin-bottom: 10px; display: block; }
.amenity h4 { font-size: 0.98rem; margin-bottom: 2px; color: var(--deep); }
.amenity p { font-size: 0.82rem; color: #5C6D74; margin: 0; }

/* =========== GALLERY =========== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 130px;
  gap: 12px;
}
.gallery-grid button {
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  grid-column: span 2;
  grid-row: span 2;
}
.gallery-grid button:nth-child(1) { grid-column: span 4; grid-row: span 3; }
.gallery-grid button:nth-child(4) { grid-column: span 2; grid-row: span 3; }
.gallery-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-grid button:hover img { transform: scale(1.06); }
.gallery-grid button::after {
  content: '+';
  position: absolute;
  top: 10px; right: 10px;
  width: 30px; height: 30px;
  background: rgba(27,75,102,0.75);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.gallery-grid button:hover::after { opacity: 1; }

.lightbox {
  position: fixed; inset: 0;
  background: rgba(14,28,36,0.92);
  display: none;
  align-items: center; justify-content: center;
  z-index: 200;
  padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 900px; max-height: 80vh; border-radius: var(--radius); }
.lightbox-close, .lightbox-nav {
  position: absolute;
  background: rgba(251,248,242,0.12);
  border: 1px solid rgba(251,248,242,0.3);
  color: #FBF8F2;
  border-radius: 50%;
  width: 44px; height: 44px;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close { top: 24px; right: 24px; }
.lightbox-nav.prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-caption {
  position: absolute;
  bottom: 28px; left: 0; right: 0;
  text-align: center;
  color: #E7EEF2;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}

/* =========== LOCATION =========== */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.location-list { list-style: none; margin: 24px 0 0; padding: 0; }
.location-list li {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(251,248,242,0.15);
  font-size: 0.95rem;
}
.location-list li span:first-child { color: #E7EEF2; }
.location-list li span:last-child { color: var(--ochre); font-weight: 600; }
.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(251,248,242,0.18);
}
.map-frame iframe { width: 100%; height: 340px; border: 0; display: block; }

/* =========== CONTACT =========== */
.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0;
  background: var(--cream);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(27,75,102,0.3);
}
.contact-info {
  background: var(--deep);
  color: #E7EEF2;
  padding: 48px 40px;
  position: relative;
}
.contact-info h3 { color: #FBF8F2; font-size: 1.5rem; }
.contact-info p { color: #C7D6DD; }
.contact-detail { display: flex; gap: 12px; margin-bottom: 20px; align-items: flex-start; }
.contact-detail .ico { color: var(--ochre); font-size: 1.1rem; margin-top: 2px; }
.contact-detail strong { display: block; color: #FBF8F2; font-size: 0.9rem; }
.contact-detail span, .contact-detail a { color: #C7D6DD; font-size: 0.9rem; text-decoration: none; }

.contact-form { padding: 48px 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--deep);
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #DCD0B4;
  border-radius: var(--radius);
  font-family: 'Jost', sans-serif;
  font-size: 0.95rem;
  color: var(--ink);
  background: #FBF8F2;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--sea);
  box-shadow: 0 0 0 3px rgba(46,127,163,0.15);
}
.field textarea { resize: vertical; min-height: 100px; }
.field-hint { font-size: 0.78rem; color: #7A8A91; margin-top: 4px; }
.field-error {
  font-size: 0.78rem;
  color: #B23A3A;
  margin-top: 4px;
  display: none;
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #B23A3A; }
.field.has-error .field-error { display: block; }

.form-status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  display: none;
}
.form-status.is-success { display: block; background: #E4F1E1; color: #2E6B2A; }
.form-status.is-error { display: block; background: #F8E2E2; color: #A23A3A; }

/* =========== FOOTER =========== */
.footer {
  background: #123449;
  color: #C7D6DD;
  padding: 48px 0 24px;
  text-align: center;
}
.footer .brand { display: inline-block; margin-bottom: 8px; }
.footer p { font-size: 0.85rem; color: #91A6AF; }
.footer-links { list-style: none; display: flex; gap: 22px; justify-content: center; margin: 16px 0; padding: 0; }
.footer-links a { color: #C7D6DD; text-decoration: none; font-size: 0.88rem; }
.footer-links a:hover { color: var(--ochre); }

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

/* =========== RESPONSIVE =========== */
@media (max-width: 980px) {
  .about-grid, .location-grid, .contact-wrap { grid-template-columns: 1fr; }
  .contact-info { order: 2; }
  .amenities { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 110px; }
  .gallery-grid button:nth-child(1) { grid-column: span 4; grid-row: span 2; }
  .gallery-grid button:nth-child(4) { grid-column: span 2; grid-row: span 2; }
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(27,75,102,0.98);
    flex-direction: column;
    align-items: center;
    padding: 24px 0;
    gap: 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }
  .nav.is-open .nav-links { max-height: 420px; padding: 28px 0; }
  .nav-toggle { display: flex; }
  .nav-cta { margin-left: 0; }
  .hero-facts { gap: 24px; }
  .feature-list { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .amenities { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid button:nth-child(1), .gallery-grid button:nth-child(4) { grid-column: span 2; grid-row: span 2; }
  .contact-info, .contact-form { padding: 36px 24px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* Focus visibility for keyboard users */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--ochre);
  outline-offset: 2px;
}
