/* ==========================================================================
   Casa Artemi — Styles
   Warm, cozy, modern. Earthy palette: terracotta, sage, cream, warm brown.
   ========================================================================== */

:root {
  /* palette */
  --cream: #faf6ef;
  --cream-2: #f3ece1;
  --sand: #ece2d2;
  --ink: #2f2a24;
  --ink-soft: #5b524785;
  --muted: #7a6f60;
  --terracotta: #c2693f;
  --terracotta-dark: #a8552f;
  --sage: #7d8c6a;
  --sage-dark: #61704f;
  --gold: #cda349;
  --white: #ffffff;
  --line: #e4d9c8;

  /* fallback gradients shown until real photos are added */
  --ph-1: linear-gradient(135deg, #cdbfa8, #9aa583);
  --ph-2: linear-gradient(135deg, #d8c3a5, #c2693f);
  --ph-3: linear-gradient(135deg, #aeb897, #7d8c6a);
  --ph-hero: linear-gradient(120deg, #6e6452, #8a7a5f 45%, #7d8c6a);

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(60, 46, 30, 0.25);
  --shadow-lg: 0 24px 60px -20px rgba(60, 46, 30, 0.35);
  --container: 1140px;
  --header-h: 72px;

  --font-head: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

/* ---------- reset / base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* ---------- typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; color: var(--ink); }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--terracotta);
  margin-bottom: 0.75rem;
}
.eyebrow--light { color: var(--gold); }

.section__title { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 0.5rem; }
.section__lead { color: var(--muted); max-width: 620px; font-size: 1.05rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--terracotta); color: #fff; box-shadow: 0 8px 20px -8px rgba(194, 105, 63, 0.7); }
.btn--primary:hover { background: var(--terracotta-dark); }
.btn--ghost { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.6); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.22); }
.btn--sm { padding: 0.55rem 1.1rem; font-size: 0.85rem; }
.btn--block { width: 100%; }

/* ---------- header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.header.is-scrolled {
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }

.brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; color: #fff; }
.header.is-scrolled .brand { color: var(--ink); }
.brand__mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--terracotta);
  color: #fff;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: var(--shadow);
}
.brand__name { letter-spacing: 0.01em; white-space: nowrap; }

.nav { display: flex; gap: 1.8rem; }
.nav__link {
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  position: relative;
  padding: 0.25rem 0;
}
.header.is-scrolled .nav__link { color: var(--ink); }
.nav__link::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--terracotta);
  transition: width 0.25s ease;
}
.nav__link:hover::after, .nav__link.is-active::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: 1rem; }

.lang { display: flex; background: rgba(255, 255, 255, 0.15); border-radius: 999px; padding: 3px; backdrop-filter: blur(4px); }
.header.is-scrolled .lang { background: var(--sand); }
.lang__btn {
  border: none; background: transparent; cursor: pointer;
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  padding: 0.3rem 0.6rem; border-radius: 999px;
  transition: all 0.2s ease;
}
.header.is-scrolled .lang__btn { color: var(--muted); }
.lang__btn.is-active { background: #fff; color: var(--terracotta); box-shadow: var(--shadow); }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.burger span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: all 0.3s ease; }
.header.is-scrolled .burger span { background: var(--ink); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: var(--ph-hero);
  background-size: cover;
  background-position: center;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--img);
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(40, 33, 24, 0.45) 0%, rgba(40, 33, 24, 0.25) 40%, rgba(40, 33, 24, 0.6) 100%);
  z-index: 1;
}
.hero__content { position: relative; z-index: 2; max-width: 720px; padding-top: var(--header-h); }
.hero__title { font-size: clamp(2.6rem, 7vw, 4.6rem); color: #fff; margin-bottom: 1rem; text-shadow: 0 2px 30px rgba(0,0,0,0.3); }
.hero__subtitle { font-size: clamp(1.05rem, 2vw, 1.3rem); color: rgba(255,255,255,0.95); max-width: 560px; margin-bottom: 2rem; }
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- sections ---------- */
.section { padding: 5.5rem 0; }
.section--alt { background: var(--cream-2); }
.section__head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section__head .section__lead { margin: 0 auto; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.about__media { position: relative; min-height: 420px; }
.about__img {
  position: absolute;
  border-radius: var(--radius);
  background-size: cover; background-position: center;
  box-shadow: var(--shadow-lg);
}
.about__img--1 { width: 70%; height: 78%; top: 0; left: 0; background-image: var(--ph-1); background-image: var(--img), var(--ph-1); }
.about__img--2 { width: 55%; height: 60%; bottom: 0; right: 0; background-image: var(--ph-2); background-image: var(--img), var(--ph-2); border: 6px solid var(--cream); }
.about__text p { color: var(--muted); margin-top: 1rem; }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.feature {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature__icon { font-size: 2.2rem; margin-bottom: 0.8rem; }
.feature h3 { font-size: 1.35rem; margin-bottom: 0.4rem; }
.feature p { color: var(--muted); font-size: 0.95rem; }

/* ---------- rooms ---------- */
.rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.room {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.room:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.room__img { aspect-ratio: 4 / 3; background-image: var(--ph-3); background-image: var(--img), var(--ph-3); background-size: cover; background-position: center; }
.room__body { padding: 1.5rem; }
.room__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.5rem; }
.room__head h3 { font-size: 1.5rem; }
.room__cap { background: var(--sand); color: var(--sage-dark); font-size: 0.8rem; font-weight: 600; padding: 0.25rem 0.7rem; border-radius: 999px; white-space: nowrap; }
.room__body p { color: var(--muted); font-size: 0.95rem; }

/* ---------- house (whole-property layout) ---------- */
.house {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.house__media {
  min-height: 360px;
  background-image: var(--ph-3);
  background-image: var(--img), var(--ph-3);
  background-size: cover;
  background-position: center;
}
.house__body { padding: 2.2rem; }
.house__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.6rem; }
.house__head h3 { font-size: 1.9rem; }
.house__desc { color: var(--muted); margin-bottom: 1.5rem; }
.beds__title {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sage-dark);
  margin-bottom: 0.4rem;
}
.beds { display: grid; }
.beds li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}
.beds li:last-child { border-bottom: 0; }
.beds__room { font-weight: 600; color: var(--ink); white-space: nowrap; }
.beds__info { color: var(--muted); text-align: right; }

/* ---------- amenities ---------- */
.amenities { margin-top: 3rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.amenities__title { font-size: 1.5rem; margin-bottom: 1.2rem; text-align: center; }
.amenities__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem 1.5rem; }
.amenities__list li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.95rem; color: var(--ink); }
.amen__ic { font-size: 1.2rem; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 220px; gap: 1rem; }
.gallery__item {
  background-image: var(--ph-1);
  background-image: var(--img), var(--ph-1);
  background-size: cover; background-position: center;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, filter 0.3s ease;
}
.gallery__item:hover { transform: scale(1.02); filter: brightness(1.05); }
.gallery__item:nth-child(1) { grid-row: span 2; }
.gallery__item:nth-child(4) { grid-column: span 2; }

/* ---------- rates ---------- */
.rates { max-width: 920px; margin: 0 auto; }
.rates__table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.rates__table th, .rates__table td { padding: 1.1rem 1.4rem; text-align: left; }
.rates__table thead { background: var(--sage); color: #fff; }
.rates__table th { font-family: var(--font-body); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.rates__table tbody tr { border-top: 1px solid var(--line); }
.rates__table tbody td:first-child { font-weight: 600; font-family: var(--font-head); font-size: 1.15rem; }
.rates__table td:not(:first-child) { font-weight: 600; color: var(--terracotta); }
.rates__per { color: var(--muted); font-weight: 400; font-size: 0.8rem; }

.rates__notes { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem; margin-top: 1.5rem; }
.note { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.note--accent { background: var(--sand); border-color: var(--line); }
.note h4 { font-size: 1.25rem; margin-bottom: 0.7rem; color: var(--sage-dark); }
.note ul { display: grid; gap: 0.5rem; }
.note li { position: relative; padding-left: 1.3rem; color: var(--muted); font-size: 0.95rem; }
.note li::before { content: "•"; position: absolute; left: 0; color: var(--terracotta); font-weight: 700; }
.note p { color: var(--muted); font-size: 0.95rem; }

/* ---------- surroundings ---------- */
.surr { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.surr__card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}
.surr__card:hover { transform: translateY(-4px); }
.surr__icon { width: 54px; height: 54px; display: grid; place-items: center; background: var(--sand); border-radius: 14px; font-size: 1.6rem; margin-bottom: 1rem; }
.surr__card h3 { font-size: 1.4rem; margin-bottom: 0.4rem; }
.surr__card p { color: var(--muted); font-size: 0.95rem; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; }
.contact__item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; }
.contact__ic { font-size: 1.4rem; width: 46px; height: 46px; display: grid; place-items: center; background: var(--sand); border-radius: 12px; flex-shrink: 0; }
.contact__label { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }
.contact__value { font-size: 1.05rem; font-weight: 500; color: var(--ink); }
a.contact__value:hover { color: var(--terracotta); }
.contact__map { margin-top: 1.5rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.contact__map iframe { width: 100%; height: 280px; border: 0; display: block; }

.contact__form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.contact__form h3 { font-size: 1.6rem; margin-bottom: 1.3rem; }
.field { margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--ink); }
.field input, .field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--cream);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(194, 105, 63, 0.12);
}
.field textarea { resize: vertical; }
.form__status { margin-top: 1rem; font-size: 0.92rem; font-weight: 500; text-align: center; min-height: 1.2em; }
.form__status.is-success { color: var(--sage-dark); }
.form__status.is-error { color: var(--terracotta-dark); }

/* ---------- footer ---------- */
.footer { background: #2b2620; color: rgba(255, 255, 255, 0.85); padding-top: 3.5rem; }
.footer__inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.brand--light, .footer .brand { color: #fff; }
.footer__tagline { margin-top: 1rem; color: rgba(255, 255, 255, 0.6); max-width: 300px; }
.footer__col h4 { color: #fff; font-size: 1.25rem; margin-bottom: 1rem; }
.footer__col a { display: block; color: rgba(255, 255, 255, 0.7); padding: 0.3rem 0; transition: color 0.2s ease; }
.footer__col a:hover { color: var(--gold); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 1.5rem 0; font-size: 0.85rem; color: rgba(255, 255, 255, 0.55); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .about, .contact { grid-template-columns: 1fr; }
  .about__media { min-height: 360px; }
  .features, .surr { grid-template-columns: repeat(2, 1fr); }
  .rooms { grid-template-columns: repeat(2, 1fr); }
  .house { grid-template-columns: 1fr; }
  .house__media { min-height: 240px; }
  .amenities__list { grid-template-columns: repeat(2, 1fr); }
  .rates__notes { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery__item:nth-child(4) { grid-column: auto; }
}

@media (max-width: 900px) {
  .nav, .header__cta { display: none; }
  .nav.is-open {
    display: flex;
    position: absolute;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--cream);
    padding: 1rem 24px 1.5rem;
    box-shadow: var(--shadow);
  }
  .nav.is-open .nav__link { color: var(--ink); padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
  .burger { display: flex; }
  .header.is-menu-open { background: var(--cream); }
  .header.is-menu-open .brand, .header.is-menu-open .lang__btn { color: var(--ink); }
  .header.is-menu-open .burger span { background: var(--ink); }
  .section { padding: 4rem 0; }

  /* compact header so the brand never wraps next to the language switch */
  .brand { font-size: 1.2rem; }
  .brand__mark { width: 32px; height: 32px; font-size: 1rem; }
  .header__actions { gap: 0.6rem; }
  .lang { padding: 2px; }
  .lang__btn { padding: 0.3rem 0.5rem; font-size: 0.72rem; }
}

@media (max-width: 560px) {
  .features, .surr, .amenities__list, .rooms { grid-template-columns: 1fr; }
  .rooms { max-width: 440px; margin: 0 auto; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .gallery__item:nth-child(1) { grid-row: auto; }
  .field-row { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; align-items: stretch; }

  /* tighter rates table so 3 columns stay comfortable on phones */
  .rates__table th, .rates__table td { padding: 0.7rem 0.6rem; font-size: 0.85rem; }
  .rates__table tbody td:first-child { font-size: 1rem; }
  .rates__per { display: none; }
  .contact__form, .amenities, .note { padding: 1.5rem 1.25rem; }
}
