/* Tailor Garden House — design system */
:root {
  --bg: #faf7f2;
  --bg-alt: #f1ebe1;
  --surface: #ffffff;
  --ink: #1f1d1a;
  --ink-soft: #5a544a;
  --muted: #8c8579;
  --line: #e6dfd2;
  --accent: #6b8e4e;       /* olive */
  --accent-deep: #4f6e36;
  --accent-soft: #eef2e6;
  --gold: #b9924a;
  --shadow: 0 6px 24px rgba(31,29,26,.07), 0 2px 6px rgba(31,29,26,.05);
  --radius: 14px;
  --radius-lg: 22px;
  --max: 1200px;
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-deep); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
h3 { font-size: 1.4rem; }
p  { margin: 0 0 1em; color: var(--ink-soft); }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,247,242,.92);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { position: relative; }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  height: 72px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--serif); font-size: 1.35rem; color: var(--ink);
  letter-spacing: .02em;
  flex-shrink: 0;
  min-width: 0;
}
.brand > span:not(.brand-mark) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff; display: grid; place-items: center;
  font-family: var(--serif); font-weight: 600; font-size: 1.1rem;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}
.nav-wrap { display: flex; align-items: center; gap: 32px; }
.nav-links { display: flex; gap: 28px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--ink-soft);
  font-size: .94rem; font-weight: 500;
  letter-spacing: .02em;
  position: relative;
  padding: 6px 2px;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--accent);
}
.lang-switch { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.lang-btn {
  background: none; border: 1px solid transparent; padding: 4px 8px; border-radius: 6px;
  font: inherit; font-size: .82rem; font-weight: 600; color: var(--muted);
  cursor: pointer; text-transform: uppercase; letter-spacing: .05em;
}
.lang-btn:hover { color: var(--ink); }
.lang-btn.active { color: var(--accent-deep); border-color: var(--line); background: var(--surface); }
.menu-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer;
  width: 44px; height: 44px;
  position: relative;
  flex-shrink: 0;
}
.menu-toggle span {
  display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px auto;
  transition: transform .25s ease, opacity .2s ease;
  transform-origin: center;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Tablet: tighten spacing so everything fits without wrapping */
@media (max-width: 1024px) {
  .nav { height: 68px; gap: 12px; }
  .brand { font-size: 1.2rem; gap: 10px; }
  .brand-mark { width: 34px; height: 34px; font-size: 1rem; }
  .nav-wrap { gap: 20px; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: .9rem; }
  .lang-btn { padding: 3px 6px; font-size: .78rem; }
}

/* Mobile: hamburger menu */
@media (max-width: 760px) {
  .nav { height: 64px; }
  .brand { font-size: 1.15rem; }
  .menu-toggle { display: block; }
  .nav-wrap {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 16px 24px 20px;
    flex-direction: column; align-items: stretch; gap: 0;
  }
  .nav-wrap.open { display: flex; }
  .nav-wrap .nav-links { flex-direction: column; gap: 0; align-items: stretch; }
  .nav-wrap .nav-links a { padding: 14px 0; font-size: 1rem; }
  .nav-wrap .nav-links a.active::after { display: none; }
  .nav-wrap .nav-links a.active { color: var(--accent-deep); font-weight: 600; }
  .nav-wrap .lang-switch { margin-top: 12px; justify-content: flex-start; gap: 6px; }
  .nav-wrap .lang-btn { padding: 6px 12px; font-size: .85rem; }
}

/* Very small screens: shorten brand to just the mark + short label */
@media (max-width: 380px) {
  .brand > span:not(.brand-mark) { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: grid; place-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(20,16,10,.45), rgba(20,16,10,.55)), var(--hero-img);
  background-size: cover; background-position: center;
  z-index: -1;
  transform: scale(1.02);
}
.hero-inner { padding: 120px 24px; max-width: 820px; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero .tagline { font-size: 1.15rem; color: rgba(255,255,255,.92); max-width: 580px; margin: 0 auto 32px; }
.hero-cta { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; letter-spacing: .02em;
  border: 1px solid transparent; cursor: pointer; transition: all .2s ease;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-1px); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.6); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.22); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { background: var(--surface); border-color: var(--ink); color: var(--ink); }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-eyebrow { color: var(--accent-deep); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; margin-bottom: 14px; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head p { font-size: 1.08rem; }
.alt { background: var(--bg-alt); }

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid; gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.feature {
  background: var(--surface); padding: 32px; border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(31,29,26,.10); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent-deep);
  display: grid; place-items: center; margin-bottom: 18px;
  font-size: 1.5rem;
}
.feature h3 { font-family: var(--sans); font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.feature p { font-size: .95rem; margin: 0; }

/* ---------- Split / About ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 4/5; object-fit: cover; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Amenities list ---------- */
.amenities {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px 28px;
  list-style: none; padding: 0; margin: 0;
}
.amenities li {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
  font-size: .96rem;
}
.amenities li::before { content: "✓"; color: var(--accent); font-weight: 700; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery .gallery-tile {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 1/1;
  background: var(--bg-alt);
  padding: 0;
  border: 0;
  cursor: zoom-in;
  position: relative;
}
.gallery .gallery-tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease, opacity .3s ease;
  display: block;
}
.gallery .gallery-tile:hover img { transform: scale(1.06); }
.gallery .gallery-tile:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.gallery .gallery-tile.missing { background: repeating-linear-gradient(45deg, #ece6dc, #ece6dc 8px, #f5f1ea 8px, #f5f1ea 16px); }
.gallery .gallery-tile.missing img { display: none; }
.gallery .gallery-tile.missing::after { content: "image unavailable"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.gallery .wide { grid-column: span 2; aspect-ratio: 2/1; }
@media (max-width: 820px) { .gallery { grid-template-columns: repeat(2, 1fr); } .gallery .wide { grid-column: span 2; } }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; background: rgba(10,8,4,.94); z-index: 100;
  display: none; align-items: center; justify-content: center; padding: 24px;
  animation: lbFade .2s ease;
}
.lightbox.open { display: flex; }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
.lightbox .lb-stage {
  position: relative; max-width: 95vw; max-height: 90vh;
  display: grid; place-items: center;
}
.lightbox .lb-stage img {
  max-width: 95vw; max-height: 90vh; width: auto; height: auto;
  border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.6);
  display: block;
}
.lightbox .lb-spinner {
  position: absolute; width: 44px; height: 44px;
  border: 3px solid rgba(255,255,255,.2);
  border-top-color: rgba(255,255,255,.9);
  border-radius: 50%;
  animation: lbSpin .9s linear infinite;
  opacity: 0; transition: opacity .15s;
  pointer-events: none;
}
.lightbox .lb-stage.loading .lb-spinner { opacity: 1; }
.lightbox .lb-stage.broken::after { content: "Image unavailable"; color: rgba(255,255,255,.7); font-size: 1rem; letter-spacing: .06em; }
@keyframes lbSpin { to { transform: rotate(360deg); } }
.lightbox button {
  position: absolute; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3);
  color: #fff; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 1.6rem;
  display: grid; place-items: center;
  z-index: 2;
  transition: background .15s;
}
.lightbox .lb-close { top: 24px; right: 24px; }
.lightbox .lb-prev  { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next  { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox button:hover { background: rgba(255,255,255,.22); }
.lightbox .lb-counter {
  position: absolute; top: 28px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.85); font-size: .9rem; letter-spacing: .1em;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 600px) {
  .lightbox .lb-prev { left: 8px; }
  .lightbox .lb-next { right: 8px; }
  .lightbox button { width: 40px; height: 40px; }
}

/* ---------- Cards / Area ---------- */
.cards { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform .25s ease;
}
.card:hover { transform: translateY(-4px); }
.card .thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-alt); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .thumb img { transform: scale(1.05); }
.card .thumb-img {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform .6s ease;
}
.card:hover .thumb-img { transform: scale(1.05); }
.card-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-family: var(--serif); font-size: 1.4rem; margin-bottom: 6px; }
.card .meta { color: var(--accent-deep); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; margin-bottom: 8px; }
.card p { font-size: .95rem; flex: 1; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.6fr; gap: 56px; align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; gap: 36px; } }
.contact-info { display: flex; flex-direction: column; gap: 22px; }
.contact-info .item { display: flex; gap: 16px; align-items: flex-start; }
.contact-info .icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-deep);
  display: grid; place-items: center; font-size: 1.2rem;
}
.contact-info .label { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 2px; }
.contact-info .val { font-size: 1.05rem; color: var(--ink); }

form.contact-form { background: var(--surface); padding: 36px; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--line); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: .98rem; background: var(--bg); color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(107,142,78,.18); background: #fff;
}
.field textarea { min-height: 130px; resize: vertical; }

/* ---------- Map ---------- */
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.map-wrap iframe { display: block; width: 100%; height: 380px; border: 0; }
.map-wrap.map-large iframe { height: 620px; }
@media (max-width: 820px) { .map-wrap.map-large iframe { height: 420px; } }

/* ---------- Guest page ---------- */
.guest-hero {
  background: linear-gradient(135deg, var(--accent-deep), #2f4423);
  color: #fff;
  padding: 84px 0 64px;
  text-align: center;
}
.guest-hero h1 { color: #fff; margin-bottom: 12px; }
.guest-hero p { color: rgba(255,255,255,.85); max-width: 620px; margin: 0 auto; }

.info-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.info-block {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px; box-shadow: var(--shadow);
  min-width: 0;
}
.info-block h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; color: var(--accent-deep);
  margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.info-block ul { padding-left: 20px; margin: 0; }
.info-block li { margin-bottom: 8px; color: var(--ink-soft); font-size: .96rem; word-wrap: break-word; }
.info-block .kv { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); flex-wrap: wrap; }
.info-block .kv:last-child { border-bottom: 0; }
.info-block .kv .k { color: var(--muted); flex-shrink: 0; }
.info-block .kv .v { color: var(--ink); font-weight: 600; word-break: break-word; text-align: right; }

/* Guest page responsive */
@media (max-width: 760px) {
  .guest-hero { padding: 56px 0 40px; }
  .guest-hero h1 { font-size: 2rem; }
  .info-grid { gap: 18px; }
  .info-block { padding: 22px 20px; }
  /* span-2 blocks collapse to full width on mobile (auto-fit gives 1 col anyway) */
  .info-block[style*="span 2"] { grid-column: auto !important; }
  .info-block .kv { flex-direction: column; align-items: flex-start; gap: 2px; }
  .info-block .kv .v { text-align: left; }
}
@media (max-width: 480px) {
  .guest-hero { padding: 44px 0 32px; }
  .guest-hero h1 { font-size: 1.7rem; }
  /* Tighten the guest header lang switcher on tiny screens */
  .site-header .lang-switch { gap: 2px; }
  .site-header .lang-btn { padding: 4px 6px; font-size: .75rem; }
}

.rule { display: flex; gap: 12px; padding: 10px 0; }
.rule-icon { color: var(--accent); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer {
  background: #1f1d1a; color: rgba(255,255,255,.75); padding: 56px 0 28px; margin-top: 80px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .85rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 16px; font-weight: 600; }
.site-footer a { color: rgba(255,255,255,.75); display: block; padding: 4px 0; font-size: .94rem; }
.site-footer a:hover { color: #fff; }
.site-footer p { color: rgba(255,255,255,.6); font-size: .94rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; color: rgba(255,255,255,.5); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }
.divider { height: 1px; background: var(--line); margin: 48px 0; border: 0; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-deep); font-size: .78rem; font-weight: 600; letter-spacing: .04em; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
