/* ===========================
   Casa delle Coccinelle
   "Sage"-inspired earthy design system
=========================== */

:root {
  --olive: #2f2b1a;
  --olive-2: #423c26;
  --cream: #f5efe1;
  --cream-2: #eae2cf;
  --paper: #f9f5ea;
  --rust: #7a4530;
  --rust-dark: #5c3423;
  --slate: #64788c;
  --slate-dark: #4d5f70;
  --gold: #b99a6b;
  --ink: #2b2822;
  --ink-soft: #55503f;
  --radius: 2px;
  --shadow: 0 12px 30px rgba(43, 40, 34, 0.18);

  --topo-bg: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27500%27%20height%3D%27500%27%20viewBox%3D%270%200%20500%20500%27%3E%3Cpath%20d%3D%27M%200.0%2C20.0%20L%208.3%2C21.9%20L%2016.7%2C25.2%20L%2025.0%2C29.4%20L%2033.3%2C33.6%20L%2041.7%2C36.9%20L%2050.0%2C38.4%20L%2058.3%2C37.7%20L%2066.7%2C34.3%20L%2075.0%2C28.7%20L%2083.3%2C22.0%20L%2091.7%2C15.7%20L%20100.0%2C11.2%20L%20108.3%2C9.6%20L%20116.7%2C11.4%20L%20125.0%2C16.4%20L%20133.3%2C23.7%20L%20141.7%2C31.8%20L%20150.0%2C38.5%20L%20158.3%2C42.1%20L%20166.7%2C41.7%20L%20175.0%2C37.2%20L%20183.3%2C29.4%20L%20191.7%2C20.1%20L%20200.0%2C11.6%20L%20208.3%2C5.5%20L%20216.7%2C3.0%20L%20225.0%2C4.6%20L%20233.3%2C9.9%20L%20241.7%2C17.9%20L%20250.0%2C26.7%20L%20258.3%2C34.6%20L%20266.7%2C40.1%20L%20275.0%2C42.2%20L%20283.3%2C40.5%20L%20291.7%2C35.4%20L%20300.0%2C27.9%20L%20308.3%2C19.4%20L%20316.7%2C11.7%20L%20325.0%2C6.5%20L%20333.3%2C4.7%20L%20341.7%2C6.6%20L%20350.0%2C11.7%20L%20358.3%2C19.4%20L%20366.7%2C27.9%20L%20375.0%2C35.4%20L%20383.3%2C40.5%20L%20391.7%2C42.2%20L%20400.0%2C40.1%20L%20408.3%2C34.6%20L%20416.7%2C26.7%20L%20425.0%2C17.9%20L%20433.3%2C9.9%20L%20441.7%2C4.6%20L%20450.0%2C3.0%20L%20458.3%2C5.5%20L%20466.7%2C11.6%20L%20475.0%2C20.1%20L%20483.3%2C29.4%20L%20491.7%2C37.2%20L%20500.0%2C41.7%27%20fill%3D%27none%27%20stroke%3D%27%238a6d4a%27%20stroke-width%3D%271.1%27%20opacity%3D%270.35%27%2F%3E%3Cpath%20d%3D%27M%200.0%2C75.0%20L%208.3%2C76.9%20L%2016.7%2C80.2%20L%2025.0%2C84.4%20L%2033.3%2C88.6%20L%2041.7%2C91.9%20L%2050.0%2C93.4%20L%2058.3%2C92.7%20L%2066.7%2C89.3%20L%2075.0%2C83.7%20L%2083.3%2C77.0%20L%2091.7%2C70.7%20L%20100.0%2C66.2%20L%20108.3%2C64.6%20L%20116.7%2C66.4%20L%20125.0%2C71.4%20L%20133.3%2C78.7%20L%20141.7%2C86.8%20L%20150.0%2C93.5%20L%20158.3%2C97.1%20L%20166.7%2C96.7%20L%20175.0%2C92.2%20L%20183.3%2C84.4%20L%20191.7%2C75.1%20L%20200.0%2C66.6%20L%20208.3%2C60.5%20L%20216.7%2C58.0%20L%20225.0%2C59.6%20L%20233.3%2C64.9%20L%20241.7%2C72.9%20L%20250.0%2C81.7%20L%20258.3%2C89.6%20L%20266.7%2C95.1%20L%20275.0%2C97.2%20L%20283.3%2C95.5%20L%20291.7%2C90.4%20L%20300.0%2C82.9%20L%20308.3%2C74.4%20L%20316.7%2C66.7%20L%20325.0%2C61.5%20L%20333.3%2C59.7%20L%20341.7%2C61.6%20L%20350.0%2C66.7%20L%20358.3%2C74.4%20L%20366.7%2C82.9%20L%20375.0%2C90.4%20L%20383.3%2C95.5%20L%20391.7%2C97.2%20L%20400.0%2C95.1%20L%20408.3%2C89.6%20L%20416.7%2C81.7%20L%20425.0%2C72.9%20L%20433.3%2C64.9%20L%20441.7%2C59.6%20L%20450.0%2C58.0%20L%20458.3%2C60.5%20L%20466.7%2C66.6%20L%20475.0%2C75.1%20L%20483.3%2C84.4%20L%20491.7%2C92.2%20L%20500.0%2C96.7%27%20fill%3D%27none%27%20stroke%3D%27%238a6d4a%27%20stroke-width%3D%271.1%27%20opacity%3D%270.35%27%2F%3E%3Cpath%20d%3D%27M%200.0%2C130%20L%2050.0%2C150%20L%20100.0%2C122%20L%20150.0%2C150%20L%20200.0%2C122%20L%20250.0%2C150%20L%20300.0%2C122%20L%20350.0%2C150%20L%20400.0%2C122%20L%20450.0%2C150%20L%20500.0%2C130%27%20fill%3D%27none%27%20stroke%3D%27%238a6d4a%27%20stroke-width%3D%271.1%27%20opacity%3D%270.3%27%2F%3E%3Cpath%20d%3D%27M%200.0%2C185%20L%2050.0%2C205%20L%20100.0%2C177%20L%20150.0%2C205%20L%20200.0%2C177%20L%20250.0%2C205%20L%20300.0%2C177%20L%20350.0%2C205%20L%20400.0%2C177%20L%20450.0%2C205%20L%20500.0%2C185%27%20fill%3D%27none%27%20stroke%3D%27%238a6d4a%27%20stroke-width%3D%271.1%27%20opacity%3D%270.3%27%2F%3E%3Cpath%20d%3D%27M%200.0%2C240%20L%2050.0%2C265%20L%20100.0%2C230%20L%20150.0%2C265%20L%20200.0%2C230%20L%20250.0%2C265%20L%20300.0%2C230%20L%20350.0%2C265%20L%20400.0%2C230%20L%20450.0%2C265%20L%20500.0%2C240%27%20fill%3D%27none%27%20stroke%3D%27%238a6d4a%27%20stroke-width%3D%271.1%27%20opacity%3D%270.3%27%2F%3E%3Cpath%20d%3D%27M%200.0%2C300%20L%2050.0%2C325%20L%20100.0%2C285%20L%20150.0%2C325%20L%20200.0%2C285%20L%20250.0%2C325%20L%20300.0%2C285%20L%20350.0%2C325%20L%20400.0%2C285%20L%20450.0%2C325%20L%20500.0%2C300%27%20fill%3D%27none%27%20stroke%3D%27%238a6d4a%27%20stroke-width%3D%271.1%27%20opacity%3D%270.3%27%2F%3E%3Cpath%20d%3D%27M%200.0%2C360%20L%2050.0%2C385%20L%20100.0%2C340%20L%20150.0%2C385%20L%20200.0%2C340%20L%20250.0%2C385%20L%20300.0%2C340%20L%20350.0%2C385%20L%20400.0%2C340%20L%20450.0%2C385%20L%20500.0%2C360%27%20fill%3D%27none%27%20stroke%3D%27%238a6d4a%27%20stroke-width%3D%271.1%27%20opacity%3D%270.3%27%2F%3E%3Cpath%20d%3D%27M%200.0%2C420%20L%2050.0%2C445%20L%20100.0%2C395%20L%20150.0%2C445%20L%20200.0%2C395%20L%20250.0%2C445%20L%20300.0%2C395%20L%20350.0%2C445%20L%20400.0%2C395%20L%20450.0%2C445%20L%20500.0%2C420%27%20fill%3D%27none%27%20stroke%3D%27%238a6d4a%27%20stroke-width%3D%271.1%27%20opacity%3D%270.3%27%2F%3E%3Cpath%20d%3D%27M%200.0%2C480%20L%2050.0%2C500%20L%20100.0%2C455%20L%20150.0%2C500%20L%20200.0%2C455%20L%20250.0%2C500%20L%20300.0%2C455%20L%20350.0%2C500%20L%20400.0%2C455%20L%20450.0%2C500%20L%20500.0%2C480%27%20fill%3D%27none%27%20stroke%3D%27%238a6d4a%27%20stroke-width%3D%271.1%27%20opacity%3D%270.3%27%2F%3E%3C%2Fsvg%3E");

  --scallop: polygon(96.0% 50.0%, 100.9% 55.4%, 100.1% 60.6%, 93.8% 64.2%, 87.3% 66.6%, 85.3% 70.4%, 87.2% 77.0%, 88.1% 84.3%, 84.3% 88.1%, 77.0% 87.2%, 70.4% 85.3%, 66.6% 87.3%, 64.2% 93.8%, 60.6% 100.1%, 55.4% 100.9%, 50.0% 96.0%, 45.7% 90.6%, 41.5% 89.9%, 35.8% 93.8%, 29.2% 96.8%, 24.4% 94.3%, 23.0% 87.2%, 22.7% 80.3%, 19.7% 77.3%, 12.8% 77.0%, 5.7% 75.6%, 3.2% 70.8%, 6.3% 64.2%, 10.1% 58.5%, 9.4% 54.3%, 4.0% 50.0%, -0.9% 44.7%, -0.1% 39.4%, 6.3% 35.8%, 12.7% 33.4%, 14.7% 29.6%, 12.8% 23.0%, 12.0% 15.7%, 15.7% 12.0%, 23.0% 12.8%, 29.6% 14.7%, 33.4% 12.7%, 35.8% 6.3%, 39.4% -0.1%, 44.7% -0.9%, 50.0% 4.0%, 54.3% 9.4%, 58.5% 10.1%, 64.2% 6.3%, 70.8% 3.2%, 75.6% 5.7%, 77.0% 12.8%, 77.3% 19.7%, 80.3% 22.7%, 87.2% 23.0%, 94.3% 24.4%, 96.8% 29.2%, 93.8% 35.8%, 89.9% 41.5%, 90.6% 45.7%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'EB Garamond', 'Iowan Old Style', Georgia, serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  font-size: 1.08rem;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  margin: 0;
  color: inherit;
}

.eyebrow {
  font-family: 'EB Garamond', serif;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
}

/* Ornament flourish, reused across sections */
.ornament {
  width: 34px;
  height: 34px;
  opacity: 0.85;
  color: currentColor;
  flex-shrink: 0;
}

/* ===== Header ===== */
header.site-header {
  background: var(--olive);
  padding: 22px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.brand {
  font-family: 'Playfair Display', serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.95rem;
  color: var(--cream);
  text-decoration: none;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.lang-toggle {
  display: flex;
  gap: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lang-toggle button {
  border: none;
  background: none;
  color: rgba(245, 239, 225, 0.55);
  font-family: 'EB Garamond', serif;
  cursor: pointer;
  padding: 2px 0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.lang-toggle button.active {
  color: var(--cream);
  border-bottom: 1px solid var(--gold);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  color: var(--cream);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(47,43,26,0.25) 0%, rgba(47,43,26,0.35) 40%, rgba(30,27,16,0.88) 100%);
}

.hero .ornament {
  position: absolute;
  top: 26px;
  right: 32px;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
  padding: 60px 24px 64px;
}

.hero-content .eyebrow {
  color: var(--gold);
  margin-bottom: 18px;
}

.hero-content .eyebrow.lang-active {
  display: block;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.2;
  max-width: 720px;
  margin: 0 auto 20px;
}

.hero p.tagline {
  max-width: 520px;
  margin: 0 auto 34px;
  color: rgba(245, 239, 225, 0.9);
  font-size: 1.1rem;
}

.btn {
  display: inline-block;
  font-family: 'EB Garamond', serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  padding: 15px 34px;
  border: 1px solid var(--gold);
  color: var(--cream);
  text-decoration: none;
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn:hover { background: var(--gold); color: var(--olive); }

.btn-solid {
  background: var(--gold);
  color: var(--olive);
  border-color: var(--gold);
}

.btn-solid:hover { background: transparent; color: var(--cream); }

.cta-row {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

.phone-link {
  color: rgba(245, 239, 225, 0.85);
  text-decoration: none;
  font-style: italic;
  align-self: center;
  font-size: 1rem;
}

/* ===== Two column intro ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.split-text {
  background: var(--cream);
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-text .eyebrow { margin-bottom: 18px; }
.split-text .eyebrow.lang-active { display: block; }

.split-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.split-text p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.split-text em { font-style: italic; color: var(--rust); }

.split-visual {
  position: relative;
  background-image: var(--topo-bg);
  background-color: var(--cream-2);
  background-size: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  min-height: 460px;
}

.split-visual .ornament {
  position: absolute;
  top: 22px;
  right: 26px;
  color: var(--rust-dark);
}

.scallop-frame {
  width: 66%;
  aspect-ratio: 4/5;
  background: var(--slate);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
}

.scallop-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: var(--scallop);
}

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split-text { padding: 56px 32px; }
}

/* ===== Rust CTA section ===== */
.rust-section {
  position: relative;
  background: var(--rust);
  color: var(--cream);
  text-align: center;
  padding: 90px 24px;
}

.rust-section .ornament {
  position: absolute;
  top: 26px;
  right: 32px;
  opacity: 0.7;
}

.rust-section h2 {
  font-size: 1.9rem;
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.35;
}

.rust-divider {
  width: 24px;
  height: 24px;
  margin: 0 auto 40px;
  opacity: 0.8;
}

.rust-section .eyebrow {
  color: rgba(245,239,225,0.65);
  margin-bottom: 14px;
}

.rust-section .eyebrow.lang-active {
  display: block;
}

.rust-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  font-size: 1.02rem;
}

.rust-list li { margin-bottom: 6px; color: rgba(245,239,225,0.92); }

.rust-price {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.3rem;
  margin: 0 0 30px;
  color: var(--gold);
}

/* ===== Gallery ===== */
.gallery-section {
  background: var(--paper);
  padding: 90px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 50px;
}

.section-head .eyebrow { margin-bottom: 14px; }
.section-head .eyebrow.lang-active { display: block; }

.section-head h2 { font-size: 2rem; margin-bottom: 14px; }

.section-head p { color: var(--ink-soft); max-width: 520px; margin: 0 auto; }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.gallery-item {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--cream-2);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(6%) saturate(92%);
}

@media (max-width: 700px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Tip cards (surroundings) ===== */
.tips-section {
  background: var(--cream);
  padding: 90px 0;
}

.tip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2px;
  background: var(--olive);
}

.tip-card {
  background: var(--paper);
  padding: 36px 34px;
}

.tip-card .eyebrow { margin-bottom: 10px; }
.tip-card .eyebrow.lang-active { display: block; }

.tip-card h3 {
  font-size: 1.3rem;
  font-style: italic;
  margin-bottom: 18px;
  color: var(--rust-dark);
}

.tip-card ul {
  padding-left: 18px;
  margin: 0;
  color: var(--ink-soft);
}

.tip-card li { margin-bottom: 8px; }
.tip-card a { color: var(--rust-dark); }

/* ===== Footer ===== */
footer.site-footer {
  background: var(--olive);
  color: var(--cream);
  padding: 56px 0 40px;
  text-align: center;
}

footer .ornament { margin: 0 auto 18px; }

footer p { color: rgba(245,239,225,0.85); margin: 0 0 20px; }

footer .footer-links {
  display: flex;
  gap: 26px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 26px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

footer .footer-links a { text-decoration: none; color: var(--gold); }

footer small {
  color: rgba(245,239,225,0.5);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

footer small.lang-active {
  display: block;
}

/* Language visibility */
[data-lang] { display: none; }
[data-lang].lang-active { display: block; }
span[data-lang].lang-active { display: inline; }
li[data-lang].lang-active { display: list-item; }

/* ===== House guide page ===== */
.house-header {
  background: var(--olive);
  color: var(--cream);
  padding: 64px 0 56px;
  text-align: center;
}

.house-header .back-link {
  display: inline-block;
  text-decoration: none;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  margin-bottom: 26px;
  border-bottom: 1px solid transparent;
}

.house-header .back-link:hover {
  border-bottom-color: var(--gold);
}

.house-header .lang-toggle {
  display: inline-flex;
  margin-bottom: 22px;
  justify-content: center;
}

.house-header h1 {
  font-size: 2.3rem;
  color: var(--cream);
  margin-bottom: 10px;
}

.house-header p {
  color: rgba(245,239,225,0.75);
  margin: 0;
  font-style: italic;
}

.guide-section { background: var(--paper); padding: 70px 0 90px; }

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2px;
  background: var(--olive);
}

.guide-card {
  background: var(--cream);
  padding: 32px 32px;
}

.guide-card .eyebrow { margin-bottom: 8px; }
.guide-card .eyebrow.lang-active { display: block; }

.guide-card h3 {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--rust-dark);
  margin-bottom: 14px;
}

.guide-card p { color: var(--ink-soft); }
.guide-card a { color: var(--rust-dark); }

.placeholder-note {
  background: var(--cream-2);
  border-left: 2px solid var(--gold);
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 12px;
  font-style: italic;
}

.guide-card img {
  margin-top: 16px;
  width: 100%;
  border: 1px solid var(--cream-2);
}
