/* ────────────────────────────────────────────────────────────────────
   Masseria Convertini · stylesheet
   Editorial-minimalist · mobile-first · single page
   ──────────────────────────────────────────────────────────────────── */

/* ── Variables ─────────────────────────────────────────────────────── */
:root {
  --bg:        #F4EFE6;        /* warm parchment */
  --ink:       #1F1B16;        /* warm ink */
  --olive:     #5C5A3E;        /* muted olive accent */
  --shadow:    #E4DDD0;        /* soft shadow / divider */
  --secondary: #7A7368;        /* captions, meta */

  --serif: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  --sans:  'Inter', system-ui, -apple-system, sans-serif;

  --content-width: 720px;
  --section-spacing-mobile: 4rem;
  --section-spacing-tablet: 6rem;
  --section-spacing-desktop: 10rem;
}

/* ── Reset & base ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.5px;
  transition: color 0.2s ease;
}

a:hover { color: var(--olive); }

em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

/* ── Typography ────────────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: 0.005em;
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 2rem;
  line-height: 1.2;
}

h3 {
  font-size: 1.4rem;
  line-height: 1.3;
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
}

p {
  margin-bottom: 1.4rem;
}

p:last-child { margin-bottom: 0; }

/* ── Hero ──────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  width: 100%;
  overflow: hidden;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0 1.5rem 6rem;
  text-align: center;
  color: var(--bg);
  background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(31,27,22,0.45) 100%);
}

.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  letter-spacing: 0.01em;
  line-height: 1;
  margin-bottom: 0.8rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero__sub {
  font-family: var(--sans);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

/* ── Main & sections ───────────────────────────────────────────────── */
main {
  display: flex;
  flex-direction: column;
}

.section {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: var(--section-spacing-mobile) 1.5rem;
}

.section--contact {
  text-align: center;
}

.emphasis {
  margin-top: 2rem;
  font-size: 1.15rem;
  color: var(--olive);
}

/* ── Figures ───────────────────────────────────────────────────────── */
.figure {
  margin-bottom: 2.5rem;
}

.figure img {
  width: 100%;
  border-radius: 2px;
}

.figure figcaption {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--secondary);
  margin-top: 0.8rem;
  text-align: center;
}

.figure--wide img {
  /* Break out of the content width to use more horizontal space */
  width: calc(100% + 1.5rem * 2);
  margin-left: -1.5rem;
  margin-right: -1.5rem;
  max-width: none;
}

/* ── Rooms ─────────────────────────────────────────────────────────── */
.rooms {
  display: grid;
  gap: 4rem;
  margin-top: 3rem;
}

.room {
  display: flex;
  flex-direction: column;
}

.room .figure { margin-bottom: 1.2rem; }
.room .figure img { aspect-ratio: 3 / 4; object-fit: cover; }

.room__meta {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.room__price {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--olive);
  margin-top: 0.5rem;
}

.rooms__more {
  margin-top: 4rem;
  font-size: 0.95rem;
  color: var(--secondary);
  text-align: center;
}

/* ── Contact CTA ───────────────────────────────────────────────────── */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1.6rem;
  margin: 2rem auto 2.5rem;
  border: 1px solid var(--olive);
  color: var(--olive);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  transition: background 0.3s ease, color 0.3s ease;
}

.cta:hover {
  background: var(--olive);
  color: var(--bg);
}

.cta__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.contact__details {
  font-size: 0.95rem;
  color: var(--secondary);
  margin-top: 1.5rem;
  line-height: 1.8;
}

/* ── Footer ────────────────────────────────────────────────────────── */
.footer {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 2.5rem;
  border-top: 1px solid var(--shadow);
  text-align: center;
  font-size: 0.85rem;
  color: var(--secondary);
  line-height: 1.7;
}

.footer p { margin-bottom: 0.3rem; }
.footer__demo { font-style: italic; opacity: 0.7; }

/* ── Reveal on scroll ──────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── Tablet ────────────────────────────────────────────────────────── */
@media (min-width: 720px) {
  body { font-size: 18px; }

  .section {
    padding: var(--section-spacing-tablet) 2.5rem;
  }

  .figure--wide img {
    width: calc(100% + 2.5rem * 2);
    margin-left: -2.5rem;
    margin-right: -2.5rem;
  }

  .rooms {
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem 3rem;
  }
}

/* ── Desktop ───────────────────────────────────────────────────────── */
@media (min-width: 1024px) {
  .section {
    padding: var(--section-spacing-desktop) 0;
  }

  .figure--wide img {
    /* On desktop, break further out for a more cinematic feel */
    width: calc(100vw - 4rem);
    max-width: 1200px;
    margin-left: 50%;
    transform: translateX(-50%);
  }

  .hero__overlay { padding-bottom: 8rem; }
}
