/* Villa Fiori — homepage styles */
:root {
    --bg: #F1EEE6;
    --bg-deep: #DCE3E3;
    --ink: #1F2622;
    --ink-soft: #55605F;
    --accent: #B4592B;
    --accent-deep: #2F8791;
    --muted: #5F6444;
    --brass: #C28A3C;
    --line: rgba(31,38,34,0.14);
    --card-bg: #FFFFFF;
    --nav-bg: rgba(241,238,230,0.8);
    --ph-a: #E4EAEA;
    --ph-b: #CFDADC;
    --ph-label-bg: rgba(47,135,145,0.72);
    --ph-label-fg: #F1EEE6;
    --play-bg: rgba(241,238,230,0.94);
    font-family: 'Bodoni Moda', Georgia, 'Times New Roman', serif;
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { margin: 0; background: linear-gradient(165deg, #F7F6F2 0%, #EEEFEA 50%, #E3EAEA 100%); background-attachment: fixed; color: var(--ink); line-height: 1.65; overflow-x: hidden; }
  h1, h2, h3, .display { font-family: 'Bodoni Moda', Georgia, 'Times New Roman', serif; font-weight: 500; letter-spacing: -0.01em; margin: 0; }
  p { margin: 0 0 1em; color: var(--ink-soft); }
  a { color: inherit; }
  .wrap { max-width: 1140px; margin: 0 auto; padding: 0 28px; }
  .prose { max-width: 60ch; }
  section { padding: 128px 0; border-top: 1px solid rgba(31,38,34,0.1); }
  header.hero { border-top: none; }
  .section-tight { padding: 74px 0; }
  .eyebrow { color: var(--muted); font-family: 'Bodoni Moda', serif; font-style: italic; font-weight: 500; font-size: 1.05rem; margin-bottom: 12px; letter-spacing: 0.01em; }

  /* ---------- PLACEHOLDER MEDIA BLOCK ---------- */
  .ph {
    position: relative;
    background-image: repeating-linear-gradient(135deg, var(--ph-a), var(--ph-a) 18px, var(--ph-b) 18px, var(--ph-b) 36px);
    display: flex;
    align-items: flex-end;
    border: 1px solid var(--line);
    overflow: hidden;
  }
  .ph-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--ph-label-bg);
    color: var(--ph-label-fg);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 9px 14px;
    margin: 18px;
    letter-spacing: 0.01em;
  }
  .ph-label svg { width: 15px; height: 15px; flex-shrink: 0; }
  .ph-play {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    width: 68px; height: 68px; border-radius: 50%; background: var(--play-bg);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 22px rgba(47,135,145,0.18);
  }
  .ph-play svg { width: 22px; height: 22px; fill: var(--accent-deep); margin-left: 3px; }

  /* ---------- NAV ---------- */
  .nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: transparent; border-bottom: 1px solid transparent; transition: background 0.35s ease, border-color 0.35s ease; }
  .nav.scrolled { background: var(--nav-bg); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  .nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 78px; max-width: 1220px; }
  .nav .logo { font-family: 'Bodoni Moda', serif; font-size: 1.4rem; letter-spacing: 0.01em; color: #FDFBF3; transition: color 0.35s ease; }
  .nav.scrolled .logo { color: var(--ink); }
  .nav-links { display: flex; align-items: center; gap: 36px; font-size: 0.92rem; }
  .nav-links a { text-decoration: none; color: rgba(253,251,243,0.85); transition: color 0.5s ease, letter-spacing 0.5s ease; letter-spacing: 0; }
  .nav.scrolled .nav-links a { color: var(--ink-soft); }
  .nav-links a:hover { color: var(--accent); letter-spacing: 0.02em; }
  .nav-cta { background: var(--accent); color: #FFFFFF !important; padding: 11px 22px; text-decoration: none; font-size: 0.88rem; font-weight: 500; }
  .nav-toggle { display: none; }
  .nav-toggle-label { display: none; cursor: pointer; color: #FDFBF3; transition: color 0.35s ease; }
  .nav.scrolled .nav-toggle-label { color: var(--ink); }
  @media (max-width: 820px) {
    .nav-links { position: absolute; top: 78px; left: 0; right: 0; background: var(--bg); flex-direction: column; align-items: flex-start; padding: 8px 28px 26px; gap: 20px; border-bottom: 1px solid var(--line); display: none; }
    .nav-links a { color: var(--ink-soft) !important; }
    .nav-toggle:checked ~ .nav-links { display: flex; }
    .nav-toggle-label { display: block; font-size: 1.6rem; line-height: 1; padding: 4px; }
  }

  /* ---------- HERO (VIDEO) ---------- */
  .hero { position: relative; height: 100vh; min-height: 640px; }
  .hero-media-wrap { position: absolute; inset: 0; overflow: hidden; }
  .hero .ph { position: absolute; inset: 0; border: none; background-image: repeating-linear-gradient(135deg, #D3DEE0, #D3DEE0 18px, #BCCDD1 18px, #BCCDD1 36px); transform-origin: center; animation: hero-kenburns 26s ease-in-out infinite alternate; }
  @keyframes hero-kenburns { 0% { transform: scale(1); } 100% { transform: scale(1.09); } }
  @media (prefers-reduced-motion: reduce) { .hero .ph { animation: none; } }
  .hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(24,18,10,0.08) 0%, rgba(24,18,10,0.16) 55%, rgba(24,18,10,0.5) 100%); }
  .hero-content { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; text-align: center; padding: 0 28px 84px; color: #F1EEE6; }
  .hero-content .wrap { max-width: 1140px; display: flex; flex-direction: column; align-items: center; }
  .hero-kicker { color: var(--brass); font-size: 0.92rem; font-weight: 500; letter-spacing: 0.03em; margin-bottom: 22px; }
  .hero h1 { font-family: 'Bodoni Moda', serif; font-weight: 300; font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 1.08; max-width: 16ch; color: #FDFBF3; }
  .hero-sub { max-width: 52ch; font-size: 1.15rem; margin: 24px auto 0; color: rgba(253,251,243,0.86); font-family: 'Bodoni Moda', serif; font-style: italic; font-weight: 300; }
  .scrollcue { margin-top: 56px; animation: fiori-bob 2.4s ease-in-out infinite; }
  @keyframes fiori-bob { 0%, 100% { transform: translateY(0); opacity: 0.85; } 50% { transform: translateY(8px); opacity: 0.5; } }

  .hero-facts { display: flex; flex-wrap: wrap; gap: 42px; padding-bottom: 64px; margin-bottom: 64px; border-bottom: 1px solid var(--line); }
  .hero-fact .n { font-family: 'Bodoni Moda', serif; font-size: 1.6rem; color: var(--accent); }
  .hero-fact .l { font-size: 0.85rem; color: var(--ink-soft); }

  /* ---------- ALTERNATING FEATURE ROWS ---------- */
  .feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
  .feature-row.rev .feature-media { order: 2; }
  .feature-row .feature-media .ph { aspect-ratio: 4/3; }
  @media (max-width: 820px) {
    .feature-row, .feature-row.rev .feature-media { grid-template-columns: 1fr; order: initial; }
    .feature-row { grid-template-columns: 1fr; }
  }
  .feature-row + .feature-row { margin-top: 112px; }
  .era-tag { font-family: 'Bodoni Moda', serif; font-style: italic; color: var(--accent); font-size: 1.05rem; margin-bottom: 12px; }

  /* ---------- FILM SECTION ---------- */
  .film-frame .ph { aspect-ratio: 21/9; }

  /* ---------- THREE HOMES ---------- */
  .homes { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; margin-top: 48px; }
  .homes-side { display: grid; gap: 24px; }
  .home-card { background: linear-gradient(160deg, #FFFEFB 0%, #FBF5E9 100%); border: 1px solid var(--line); overflow: hidden; box-shadow: 0 2px 10px rgba(31,38,34,0.05); transition: transform 0.6s cubic-bezier(0.22,1,0.36,1), box-shadow 0.6s ease, border-color 0.6s ease; }
  .home-card:hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(31,38,34,0.12); border-color: var(--accent); }
  .home-card .ph { aspect-ratio: 16/10; }
  .home-card .home-body { padding: 30px 32px; }
  .home-card.main .home-body { padding: 36px 38px; }
  .home-card .tag { display: inline-block; color: var(--accent); font-weight: 500; font-size: 0.85rem; margin-bottom: 12px; }
  .home-card h3 { font-size: 1.5rem; margin-bottom: 10px; }
  .home-card .sleeps { font-family: 'Bodoni Moda', serif; font-size: 1.02rem; color: var(--accent-deep); margin-bottom: 10px; }
  @media (max-width: 820px) { .homes { grid-template-columns: 1fr; } }

  /* ---------- POOL BREAK (VIDEO) ---------- */
  .pool-break .ph { aspect-ratio: 21/9; }
  .pool-stats { display: flex; gap: 42px; margin-top: 32px; flex-wrap: wrap; }
  .pool-stats div { border-left: 2px solid var(--accent); padding-left: 15px; }
  .pool-stats .n { font-family: 'Bodoni Moda', serif; font-size: 1.5rem; }
  .pool-stats .l { font-size: 0.85rem; color: var(--ink-soft); }

  /* ---------- ACTIVITIES ---------- */
  .activity-list { columns: 2; column-gap: 40px; margin-top: 10px; }
  .activity-list div { break-inside: avoid; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
  @media (max-width: 600px) { .activity-list { columns: 1; } }

  /* ---------- GALLERY ---------- */
  .gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .gallery-grid .ph { aspect-ratio: 1/1; }
  .gallery-grid .g-wide { grid-column: span 2; }
  .gallery-grid .g-wide .ph { aspect-ratio: 16/9; }
  @media (max-width: 760px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } .gallery-grid .g-wide { grid-column: span 2; } }

  .gallery-group { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
  .gallery-group:first-of-type { margin-top: 48px; padding-top: 0; border-top: none; }
  .gallery-group h3 { font-size: 1.35rem; margin-bottom: 22px; }

  /* ---------- JOURNEY (LOCATION) ---------- */
  .journey { margin-top: 44px; display: flex; flex-direction: column; }
  .journey-item { display: grid; grid-template-columns: 90px 1fr; gap: 26px; padding: 28px 0; border-top: 1px solid var(--line); }
  .journey-item:last-child { border-bottom: 1px solid var(--line); }
  .journey-time { font-family: 'Bodoni Moda', serif; font-size: 1.6rem; color: var(--accent); white-space: nowrap; }
  .journey-time small { display: block; font-family: 'Bodoni Moda', Georgia, 'Times New Roman', serif; font-size: 0.72rem; color: var(--ink-soft); font-weight: 500; }
  .journey-body h3 { font-size: 1.2rem; margin-bottom: 6px; }
  .journey-body p { margin: 0; }

  /* ---------- PRACTICAL ---------- */
  .practical-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 38px; }
  @media (max-width: 760px) { .practical-grid { grid-template-columns: 1fr; } }
  .practical-item .l { color: var(--muted); font-weight: 500; font-size: 0.9rem; margin-bottom: 6px; }

  /* ---------- AVAILABILITY CALENDAR ---------- */
  .cal-legend { display: flex; gap: 28px; margin-top: 32px; flex-wrap: wrap; font-size: 0.9rem; }
  .cal-legend span { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); }
  .cal-swatch { width: 14px; height: 14px; border: 1px solid var(--line); display: inline-block; }
  .cal-swatch.available { background: var(--card-bg); }
  .cal-swatch.booked { background: var(--accent); border-color: var(--accent); }
  .cal-swatch.past { background: var(--bg-deep); opacity: 0.6; }

  .cal-nav { display: flex; align-items: center; justify-content: center; gap: 28px; margin-top: 42px; }
  .cal-nav button { background: none; border: 1px solid var(--line); color: var(--ink); width: 38px; height: 38px; font-size: 1.1rem; cursor: pointer; font-family: 'Bodoni Moda', Georgia, 'Times New Roman', serif; }
  .cal-nav button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
  .cal-nav button:disabled { opacity: 0.3; cursor: not-allowed; }
  .cal-nav h3 { min-width: 190px; text-align: center; font-size: 1.3rem; }

  .cal-month { max-width: 420px; margin: 26px auto 0; background: linear-gradient(160deg, #FFFEFB 0%, #FBF5E9 100%); border: 1px solid var(--line); padding: 28px; box-shadow: 0 2px 10px rgba(31,38,34,0.05); }
  .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
  .cal-dow { font-size: 0.7rem; color: var(--ink-soft); text-align: center; font-weight: 500; padding-bottom: 6px; }
  .cal-day { aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; border: 1px solid var(--line); color: var(--ink); }
  .cal-day.empty { border: none; }
  .cal-day.booked { background: var(--accent); color: #FFFFFF; border-color: var(--accent); }
  .cal-day.past { opacity: 0.4; }
  .cal-note { margin-top: 32px; font-size: 0.9rem; color: var(--ink-soft); }

  /* ---------- ENQUIRE ---------- */
  .enquire { background: var(--accent-deep); color: #F1EEE6; }
  .enquire .eyebrow { color: var(--brass); }
  .enquire h2 { color: #FDFBF3; max-width: 20ch; }
  .enquire p { color: rgba(241,238,230,0.8); }
  .enquire-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 44px; align-items: start; }
  @media (max-width: 820px) { .enquire-grid { grid-template-columns: 1fr; } }
  .enquire-contact div { margin-bottom: 24px; }
  .enquire-contact .l { color: var(--brass); font-size: 0.85rem; font-weight: 500; margin-bottom: 4px; }
  .enquire-contact .v { font-family: 'Bodoni Moda', serif; font-size: 1.2rem; }

  form.enquire-form { display: grid; gap: 16px; }
  .enquire-form input, .enquire-form textarea { width: 100%; background: rgba(241,238,230,0.07); border: 1px solid rgba(241,238,230,0.28); color: #F1EEE6; padding: 13px 15px; font-family: 'Bodoni Moda', Georgia, 'Times New Roman', serif; font-size: 0.95rem; }
  .enquire-form input::placeholder, .enquire-form textarea::placeholder { color: rgba(250,246,238,0.48); }
  .enquire-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  @media (max-width: 500px) { .enquire-form .row2 { grid-template-columns: 1fr; } }
  .enquire-form textarea { resize: vertical; min-height: 100px; }
  .enquire-form button { justify-self: start; background: var(--brass); color: #1E1A12; border: none; padding: 14px 32px; font-size: 0.95rem; font-weight: 600; cursor: pointer; }
  .enquire-form button:hover { opacity: 0.9; }

  /* ---------- CLOSING / FOOTER ---------- */
  .closing { text-align: center; padding: 80px 0 46px; border-top: 1px solid rgba(31,38,34,0.1); }
  .closing .sign { font-family: 'Bodoni Moda', serif; font-style: italic; font-size: 1.1rem; margin-top: 22px; color: var(--accent); }
  footer { padding: 32px 0 50px; text-align: center; font-size: 0.85rem; color: var(--ink-soft); border-top: 1px solid var(--line); }

  /* ---------- SCROLL REVEAL ---------- */
  .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s ease, transform 1.1s ease; }
  .reveal.is-visible { opacity: 1; transform: translateY(0); }
  @media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
  }

  /* ---------- GENTLE HOVER ZOOM ---------- */
  .ph { transition: transform 1.1s cubic-bezier(0.22,1,0.36,1), box-shadow 0.6s ease; background-size: cover; background-position: center; }
  .ph:hover { transform: scale(1.025); }
  .hero .ph:hover { transform: none; }

  /* ---------- SLOW HORIZONTAL MARQUEE ---------- */
  .marquee { overflow: hidden; margin-top: 40px; }
  .marquee-track { display: flex; gap: 18px; width: max-content; animation: marquee-scroll 46s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
  .marquee-item { flex: 0 0 320px; aspect-ratio: 4/3; }
  @keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
  @media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

  .star-row svg { filter: drop-shadow(0 1px 1px rgba(31,38,34,0.3)); animation: star-shimmer 2.8s ease-in-out infinite; }
  .star-row svg:nth-child(1) { animation-delay: 0s; }
  .star-row svg:nth-child(2) { animation-delay: 0.15s; }
  .star-row svg:nth-child(3) { animation-delay: 0.3s; }
  .star-row svg:nth-child(4) { animation-delay: 0.45s; }
  .star-row svg:nth-child(5) { animation-delay: 0.6s; }
  @keyframes star-shimmer { 0%,100% { filter: drop-shadow(0 1px 1px rgba(31,38,34,0.3)) brightness(1); } 50% { filter: drop-shadow(0 1px 1px rgba(31,38,34,0.3)) brightness(1.35) saturate(1.2); } }
  @media (prefers-reduced-motion: reduce) { .star-row svg { animation: none; } }

  /* Hero video */
  .hero .ph.has-video { animation: none; background: #1F2622; }
  .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
