/* Villa Fiori — gallery & reviews pages */
: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 { 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; }
  .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; }
  section { padding: 128px 0; border-top: 1px solid rgba(31,38,34,0.1); }

  .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; transition: transform 1.1s cubic-bezier(0.22,1,0.36,1); background-size: cover; background-position: center; }
  .ph:hover { transform: scale(1.025); }
  .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 { position: sticky; top: 0; z-index: 50; 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; }
  .nav .logo { font-family: 'Bodoni Moda', serif; font-size: 1.4rem; letter-spacing: 0.01em; }
  .back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); text-decoration: none; font-size: 0.92rem; }
  .back-link:hover { color: var(--accent); }
  .back-link svg { width: 16px; height: 16px; }

  .gallery-header { padding: 96px 28px 40px; }
  .gallery-header p { max-width: 58ch; margin-top: 14px; }

  .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; }

  footer { padding: 32px 0 50px; text-align: center; font-size: 0.85rem; color: var(--ink-soft); border-top: 1px solid var(--line); }

  .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; } }

  /* Reviews page */
  body.reviews-page .wrap { max-width: 900px; }
  body.reviews-page .nav .wrap { max-width: 1140px; }
  body.reviews-page section { padding: 96px 0; }
  .reviews-header { padding: 96px 0 0; border-top: none; }
  .reviews-header p { max-width: 60ch; margin-top: 14px; }

  .review-card { padding: 54px 0; border-top: 1px solid var(--line); }
  .review-card:first-of-type { border-top: none; padding-top: 0; }
  .quote-mark { font-family: 'Bodoni Moda', serif; font-size: 4.5rem; line-height: 1; color: var(--accent); opacity: 0.5; margin-bottom: -10px; }
  .review-quote { font-family: 'Bodoni Moda', serif; font-style: italic; font-weight: 400; font-size: 1.5rem; line-height: 1.5; color: var(--ink); max-width: 62ch; }
  .review-meta { display: flex; align-items: center; gap: 14px; margin-top: 24px; font-size: 0.92rem; color: var(--ink-soft); }
  .review-meta .stars { color: var(--brass); letter-spacing: 2px; }
  .review-meta .name { font-weight: 600; color: var(--ink); }
  .sample-tag { display: inline-block; margin-top: 16px; font-size: 0.72rem; letter-spacing: 0.04em; color: var(--muted); text-transform: uppercase; border: 1px solid var(--line); padding: 4px 10px; }
  .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; } }
  body.reviews-page .reviews-header { padding: 96px 0 0; border-top: none; }

  /* Uniform gallery rows */
  .gallery-grid { grid-auto-rows: clamp(190px, 24vw, 300px); }
  .gallery-grid > div { min-height: 0; }
  .gallery-grid .ph, .gallery-grid .g-wide .ph { aspect-ratio: auto; height: 100%; }

  /* Gallery tabs */
  .gallery-tabs { display: flex; flex-wrap: wrap; gap: 8px 38px; border-bottom: 1px solid var(--line); margin: 0 0 40px; }
  .gallery-tab { background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 12px 2px; font: inherit; font-size: 1.15rem; color: var(--ink-soft); cursor: pointer; transition: color .3s ease, border-color .3s ease; }
  .gallery-tab:hover { color: var(--accent); }
  .gallery-tab.is-active { color: var(--ink); border-bottom-color: var(--accent); }
  .gallery-group[hidden] { display: none; }
  .gallery-group { margin-top: 0; padding-top: 0; border-top: none; }
  #gallery { padding-top: 56px; }

  /* Show every gallery photo whole: uniform 16:9 tiles, no cropping */
  .gallery-grid { grid-auto-rows: auto; }
  .gallery-grid .g-wide { grid-column: auto; }
  .gallery-grid .ph, .gallery-grid .g-wide .ph { aspect-ratio: 16 / 9; height: auto; }
  .gallery-grid .ph-photo > .ph-img { inset: 0; background-size: contain; translate: none; }
