/* gardenwebquartz.com — homepage (calm split layout, warm paper, serif headings) */
:root {
  --paper: #F8F6EF;
  --paper-2: #EFEDE1;
  --white: #FFFFFF;
  --mist: #F4ECE8;
  --mist-deep: #E8D6D2;
  --moss: #5E6230;
  --moss-deep: #484A1C;
  --peat: #2A2B10;
  --amber: #C49393;
  --amber-hover: #D3A9A9;
  --amber-ink: #8A4F4F;
  --clay: #7E4E4E;
  --rust: #5E6230;
  --ink: #22230F;
  --ink-soft: #4C4D3A;
  --on-dark: #F3F1E6;
  --on-dark-soft: #D6D4C2;
  --rule: rgba(34, 35, 15, 0.14);
  --radius: 10px;
  --gutter: 16px;
  --serif: "Libre Bodoni", Georgia, "Times New Roman", serif;
  --sans: "Spline Sans", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; max-width: 100%; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--moss); }
a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--amber-ink);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.18;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
}
h2 { font-size: clamp(28px, 3.4vw, 38px); }
h3 { font-size: 22px; }
p { margin: 0; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
  text-align: center;
}
.btn-dark { background: var(--peat); color: var(--on-dark); }
.btn-dark:hover { background: var(--moss-deep); }
.btn-soft { background: var(--paper-2); color: var(--ink); }
.btn-soft:hover { background: var(--mist-deep); }

/* ---------- Header ---------- */
.site-head {
  position: static;
  background: var(--paper-2);
}
.head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand img { height: 28px; width: auto; }
.head-nav {
  order: 3;
  flex-basis: 100%;
  display: flex;
  gap: 4px 20px;
}
.head-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
  padding: 6px 0;
}
.head-nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.head-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
.btn-head {
  margin-left: auto;
  min-height: 44px;
  padding: 8px 14px;
  font-size: 14px;
}

/* ---------- Hero ---------- */
.hero { padding: 32px 0 56px; }
.hero-grid { display: grid; gap: 28px; }
.hero h1 { font-size: clamp(34px, 4.6vw, 52px); max-width: 15ch; }
.hero-lead {
  margin-top: 18px;
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.checks {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 15px;
  color: var(--ink-soft);
}
.checks li {
  position: relative;
  padding-left: 28px;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--moss);
  border-radius: 50%;
}
.checks li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 7px;
  width: 5px;
  height: 9px;
  border: solid var(--moss);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.hero-media { margin: 0; }
.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ---------- What is ---------- */
.what { padding: 56px 0; }
.what-grid {
  display: grid;
  gap: 20px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--rule);
}
.what h2 { max-width: 20ch; }
.what p { font-size: 18px; color: var(--ink-soft); max-width: 58ch; }

/* ---------- Steps ---------- */
.steps { padding: 24px 0 72px; }
.steps-title { text-align: center; max-width: 22ch; margin: 0 auto 40px; }
.step-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 36px 24px;
}
.step-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.step-no { font-size: 14px; font-weight: 600; color: var(--amber-ink); margin-bottom: 6px; }
.step-grid h3 { margin-bottom: 10px; }
.step-grid p:last-child { font-size: 16px; color: var(--ink-soft); }
.steps-cta { text-align: center; margin-top: 44px; }

/* ---------- Estonia ---------- */
.estonia { padding: 72px 0; background: var(--white); }
.ee-grid { display: grid; gap: 28px; align-items: center; }
.ee-media { margin: 0; }
.ee-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }
.ee-copy > p { margin-top: 16px; color: var(--ink-soft); max-width: 50ch; }
.ee-facts { margin: 28px 0 0; display: grid; gap: 0; }
.ee-facts div {
  display: grid;
  gap: 2px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
}
.ee-facts dt { font-weight: 600; font-size: 15px; }
.ee-facts dd { margin: 0; font-size: 16px; color: var(--ink-soft); }

/* ---------- MyHeritage ---------- */
.brandsec { padding: 72px 0; }
.brand-grid {
  display: grid;
  gap: 28px;
  align-items: center;
  background: var(--mist);
  border-radius: 16px;
  padding: 28px 20px;
}
.brand-copy > p:first-of-type { margin-top: 14px; color: var(--ink-soft); max-width: 48ch; }
.brand-list {
  margin: 20px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
  font-size: 16px;
}
.brand-list li::marker { color: var(--clay); }
.brand-note { margin-top: 20px; font-size: 14px; color: var(--ink-soft); }
.brand-media { margin: 0; }
.brand-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius); }

/* ---------- FAQ ---------- */
.faq { padding: 24px 0 72px; }
.faq-grid { display: grid; gap: 24px; }
.faq-head p { margin-top: 12px; color: var(--ink-soft); }
.faq-list { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 36px 18px 0;
  position: relative;
  font-weight: 600;
  font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 14px;
  font-size: 24px;
  font-weight: 400;
  color: var(--moss);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 18px; color: var(--ink-soft); max-width: 62ch; }

/* ---------- Closing ---------- */
.closing { padding: 0 0 80px; }
.closing-box {
  text-align: center;
  padding-top: 56px;
  border-top: 1px solid var(--rule);
}
.closing-box p:first-of-type { margin: 12px auto 26px; color: var(--ink-soft); }
.closing-note { margin: 18px auto 0; font-size: 14px; color: var(--ink-soft); max-width: 52ch; }

/* ---------- Footer ---------- */
.site-foot { background: var(--paper-2); font-size: 15px; }
.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding-top: 36px;
  padding-bottom: 24px;
}
.foot-logo img { height: 30px; width: auto; }
.foot-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.foot-links a { color: var(--ink-soft); text-decoration: none; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }
.foot-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 18px;
  padding-bottom: 28px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--ink-soft);
}

/* ---------- Breakpoints ---------- */
@media (max-width: 459px) {
  .hero-actions .btn { flex: 1 1 100%; }
}

@media (min-width: 700px) {
  :root { --gutter: 28px; }
  .step-grid { grid-template-columns: 1fr 1fr; }
  .brand-grid { padding: 40px; }
}

@media (min-width: 960px) {
  .head-row { flex-wrap: nowrap; gap: 32px; min-height: 68px; }
  .brand img { height: 34px; }
  .head-nav { order: 0; flex-basis: auto; gap: 26px; }
  .btn-head { padding: 8px 18px; font-size: 15px; }

  .hero { padding: 48px 0 80px; }
  .hero-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }

  .what-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .what p { padding-top: 6px; }

  .step-grid { grid-template-columns: repeat(4, 1fr); }

  .ee-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  .brand-grid { grid-template-columns: 1.1fr 0.9fr; gap: 56px; padding: 56px; }

  .faq-grid { grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
}

/* ---------- Header: rose link strip + logo/button row ---------- */
.head-strip {
  background: var(--mist);
  border-bottom: 1px solid var(--mist-deep);
}
.head-strip .wrap { display: flex; justify-content: flex-end; }
.site-head .head-nav {
  order: 0;
  flex-basis: auto;
  display: flex;
  flex-wrap: nowrap;
  gap: 22px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.site-head .head-nav::-webkit-scrollbar { display: none; }
.site-head .head-nav a {
  font-size: 13.5px;
  padding: 7px 0;
  white-space: nowrap;
  line-height: 1.3;
}
.site-head .head-row {
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.site-head .brand img { height: 32px; }
.site-head .btn-head { flex-shrink: 0; }
@media (max-width: 374px) {
  .site-head .brand img { height: 26px; }
  .site-head .btn-head { padding: 8px 12px; font-size: 13.5px; }
}
@media (min-width: 960px) {
  .site-head .head-nav { gap: 30px; }
  .site-head .head-row { min-height: 84px; }
  .site-head .brand img { height: 44px; }
}

/* ---------- Blog teaser (WordPress only; empty marker on the static page) ---------- */
.jot { padding: 8px 0 64px; }
.jot-grid { display: grid; gap: 22px; padding-top: 48px; border-top: 1px solid var(--rule); }
.jot-head p { margin-top: 10px; color: var(--ink-soft); max-width: 34ch; }
.jot-all { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; font-weight: 600; text-underline-offset: 4px; }
.jot-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.jot-list li { border-bottom: 1px solid var(--rule); }
.jot-row { display: flex; align-items: center; gap: 16px; padding: 14px 0; color: inherit; text-decoration: none; }
.jot-thumb { flex: none; width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background: var(--mist); }
.jot-thumb img { width: 100%; height: 100%; object-fit: cover; }
.jot-body { display: grid; gap: 2px; min-width: 0; }
.jot-label { font-size: 13px; font-weight: 600; color: var(--amber-ink); }
.jot-title { font-family: var(--serif); font-size: 20px; line-height: 1.25; }
.jot-row:hover .jot-title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.jot-meta { font-size: 14px; color: var(--ink-soft); }
@media (min-width: 960px) {
  .jot { padding-bottom: 80px; }
  .jot-grid { grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
  .jot-thumb { width: 88px; height: 88px; }
  .jot-title { font-size: 22px; }
}
