/*
Theme Name: Loom Surrogacy
Theme URI: https://loom.test
Author: Loom
Description: A warm editorial WordPress theme for thoughtful surrogacy guidance.
Version: 1.0.5
Text Domain: loom
*/

:root {
  --ink: #26362f;
  --ink-soft: #53625b;
  --cream: #f8f5ee;
  --paper: #fffdf8;
  --sage: #cbd7c9;
  --sage-dark: #466353;
  --peach: #eabfa6;
  --terracotta: #c8795b;
  --lavender: #d9d2e4;
  --line: rgba(38, 54, 47, 0.15);
  --shadow: 0 18px 50px rgba(38, 54, 47, 0.09);
  --radius: 28px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .28;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.045'/%3E%3C/svg%3E");
  z-index: 20;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(248, 245, 238, .9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 44px; height: 44px; object-fit: contain; }
.brand-name { font-family: "Newsreader", Georgia, serif; font-size: 27px; font-weight: 600; letter-spacing: -.03em; }
.brand-name small { display: block; margin-top: -8px; color: var(--ink-soft); font: 500 9px/1 "DM Sans", sans-serif; letter-spacing: .24em; text-transform: uppercase; }
.nav-list { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.nav-list li { position: relative; }
.nav-list a { text-decoration: none; font-size: 14px; font-weight: 700; }
.nav-list a:hover { color: var(--terracotta); }
.menu-item-has-children > a::after { content: " \25BE"; color: var(--terracotta); font-size: 10px; }
.sub-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  z-index: 20;
  display: grid;
  min-width: 225px;
  margin: 0;
  padding: 12px;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: .18s ease;
}
.sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
.sub-menu a { display: block; padding: 10px 12px; border-radius: 12px; color: var(--ink); white-space: nowrap; }
.sub-menu a:hover { background: rgba(203,215,201,.35); color: var(--sage-dark); }
.menu-item-has-children:hover > .sub-menu,
.menu-item-has-children:focus-within > .sub-menu,
.menu-item-has-children.submenu-open > .sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.nav-cta a { padding: 11px 18px; color: var(--paper); background: var(--ink); border-radius: 999px; }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--ink); cursor: pointer; }

.hero { padding: 74px 0 56px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(40px, 8vw, 110px); }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; color: var(--terracotta); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
h1, h2, h3 { margin-top: 0; font-family: "Newsreader", Georgia, serif; font-weight: 500; line-height: 1.04; letter-spacing: -.035em; }
h1 { max-width: 720px; margin-bottom: 24px; font-size: clamp(55px, 7.4vw, 94px); }
h1 em { color: var(--terracotta); font-weight: 400; }
.hero-copy > p { max-width: 610px; margin-bottom: 32px; color: var(--ink-soft); font-size: 19px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 12px 22px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: white; font-size: 14px; font-weight: 750; text-decoration: none; transition: .2s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(38,54,47,.16); }
.button.secondary { margin-left: 8px; background: transparent; color: var(--ink); }
.hero-art { position: relative; min-height: 530px; }
.weave-card { position: absolute; inset: 20px 20px 50px 0; overflow: hidden; background: var(--sage); border-radius: 48% 48% 28px 28px; box-shadow: var(--shadow); }
.weave-card::before,
.weave-card::after { content: ""; position: absolute; border-radius: 50%; }
.weave-card::before { width: 430px; height: 430px; top: 80px; left: -40px; border: 65px solid rgba(255,253,248,.62); }
.weave-card::after { width: 240px; height: 240px; top: -80px; right: -40px; background: var(--peach); }
.thread { position: absolute; z-index: 2; width: 56%; height: 78%; top: 10%; left: 20%; border: 4px solid var(--sage-dark); border-top-color: transparent; border-radius: 46% 54% 50% 42%; transform: rotate(22deg); }
.thread.two { width: 43%; height: 88%; top: 3%; left: 31%; border-color: var(--terracotta); border-left-color: transparent; transform: rotate(-28deg); }
.hero-note { position: absolute; z-index: 3; right: 0; bottom: 12px; width: 235px; padding: 20px 22px; background: var(--paper); border-radius: 18px; box-shadow: var(--shadow); transform: rotate(-2deg); }
.hero-note strong { display: block; margin-bottom: 4px; font-family: "Newsreader", Georgia, serif; font-size: 24px; }
.hero-note span { color: var(--ink-soft); font-size: 13px; }

.trust-strip { padding: 22px 0; border-block: 1px solid var(--line); }
.trust-inner { display: flex; justify-content: space-between; gap: 30px; color: var(--ink-soft); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.trust-inner span { display: inline-flex; align-items: center; gap: 8px; }
.trust-inner span::before { content: "\2726"; color: var(--terracotta); }

.section { padding: 105px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 46px; }
.section-heading h2 { max-width: 660px; margin-bottom: 0; font-size: clamp(42px, 5.2vw, 66px); }
.section-heading p { max-width: 380px; margin: 0; color: var(--ink-soft); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.path-card { position: relative; min-height: 350px; padding: 30px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); transition: .25s ease; }
.path-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.path-card:nth-child(2) { background: var(--sage); }
.path-card:nth-child(3) { background: var(--lavender); }
.feature-card { box-shadow: 0 18px 50px rgba(200,121,91,.14); }
.card-number { display: inline-grid; width: 42px; height: 42px; place-items: center; margin-bottom: 70px; border: 1px solid currentColor; border-radius: 50%; font-size: 12px; font-weight: 800; }
.path-card h3 { margin-bottom: 13px; font-size: 35px; }
.path-card p { color: var(--ink-soft); }
.text-link { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 800; text-decoration-thickness: 1px; text-underline-offset: 5px; }

.journal { background: var(--paper); }
.post-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 24px; }
.post-card { display: flex; flex-direction: column; text-decoration: none; }
.post-art { position: relative; min-height: 240px; margin-bottom: 22px; overflow: hidden; background: var(--peach); border-radius: 24px; }
.post-card:first-child .post-art { min-height: 390px; background: var(--sage); }
.post-card:nth-child(3) .post-art { background: var(--lavender); }
.post-art::before { content: ""; position: absolute; width: 65%; aspect-ratio: 1; top: 22%; left: 18%; border: 2px solid rgba(38,54,47,.55); border-radius: 50% 45% 55% 48%; transform: rotate(25deg); }
.post-art::after { content: ""; position: absolute; width: 44%; aspect-ratio: 1; right: -8%; bottom: -20%; background: rgba(255,253,248,.55); border-radius: 50%; }
.post-card h3 { margin: 6px 0 10px; font-size: 29px; transition: color .2s; }
.post-card:hover h3 { color: var(--terracotta); }
.meta { color: var(--terracotta); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.excerpt { margin: 0; color: var(--ink-soft); font-size: 14px; }

.newsletter { padding: 85px 0; }
.newsletter-box { display: grid; grid-template-columns: 1fr .9fr; align-items: center; gap: 60px; padding: 65px; background: var(--ink); color: var(--paper); border-radius: 34px; }
.newsletter-box h2 { margin-bottom: 12px; font-size: clamp(40px, 5vw, 62px); }
.newsletter-box p { margin: 0; color: rgba(255,253,248,.7); }
.signup { display: flex; padding: 6px; background: var(--paper); border-radius: 999px; }
.signup input { width: 100%; min-width: 0; padding: 12px 18px; border: 0; outline: 0; background: transparent; }
.signup button { flex: 0 0 auto; padding: 12px 21px; border: 0; border-radius: 999px; background: var(--terracotta); color: white; font-weight: 800; cursor: pointer; }
.form-message { display: none; margin-top: 10px; font-size: 13px; color: var(--sage); }

.site-main { min-height: 60vh; }
.interior-page { padding: 58px 0 105px; }
.page-hero {
  position: relative;
  margin-bottom: 34px;
  padding: clamp(42px, 7vw, 76px);
  overflow: hidden;
  text-align: center;
  background: linear-gradient(135deg, rgba(255,253,248,.96), rgba(203,215,201,.72));
  border: 1px solid var(--line);
  border-radius: 36px;
  box-shadow: var(--shadow);
}
.page-hero::before,
.page-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.page-hero::before { width: 320px; height: 320px; left: -95px; top: -110px; border: 44px solid rgba(255,253,248,.62); }
.page-hero::after { width: 220px; height: 220px; right: -70px; bottom: -95px; background: rgba(234,191,166,.46); }
.page-hero > * { position: relative; z-index: 1; }
.page-hero h1 { max-width: 880px; margin-inline: auto; font-size: clamp(54px, 7vw, 84px); }
.page-hero p { max-width: 690px; margin: -8px auto 0; color: var(--ink-soft); font-size: 19px; }
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding-bottom: 100px; }
.journal-archive { align-items: stretch; }
.archive-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 35px rgba(38,54,47,.06);
  transition: .24s ease;
}
.archive-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.archive-art {
  position: relative;
  min-height: 185px;
  margin: -4px -4px 22px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--sage), rgba(234,191,166,.82));
  border-radius: 23px;
}
.archive-card:nth-child(3n + 2) .archive-art { background: linear-gradient(135deg, var(--lavender), var(--paper)); }
.archive-card:nth-child(3n + 3) .archive-art { background: linear-gradient(135deg, var(--peach), rgba(203,215,201,.78)); }
.archive-art::before {
  content: "";
  position: absolute;
  width: 62%;
  aspect-ratio: 1;
  left: 18%;
  top: 19%;
  border: 2px solid rgba(38,54,47,.48);
  border-radius: 48% 52% 46% 54%;
  transform: rotate(23deg);
}
.archive-art::after {
  content: "";
  position: absolute;
  width: 39%;
  aspect-ratio: 1;
  right: -9%;
  bottom: -16%;
  background: rgba(255,253,248,.58);
  border-radius: 50%;
}
.archive-card h2 { margin: 12px 0; font-size: 32px; }
.archive-card h2 a { text-decoration: none; }
.archive-card p { margin-top: auto; color: var(--ink-soft); }
.entry-content { width: min(calc(100% - 40px), 820px); margin: 0 auto; padding-bottom: 100px; }
.entry-panel {
  padding: clamp(28px, 5vw, 54px);
  background: rgba(255,253,248,.92);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
}
.entry-panel .cards { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 34px 0; }
.entry-panel .path-card { min-height: auto; }
.entry-panel .card-number { margin-bottom: 34px; }
.check-list { margin: 24px 0 0; padding: 0; display: grid; gap: 12px; list-style: none; }
.check-list li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; color: var(--ink-soft); }
.check-list li::before { content: "\2713"; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: rgba(203,215,201,.7); color: var(--sage-dark); font-size: 13px; font-weight: 900; }
.faq { display: grid; gap: 14px; }
.faq details { padding: 23px 25px; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 10px 32px rgba(38,54,47,.05); }
.faq summary { cursor: pointer; font-weight: 850; }
.faq p { margin: 14px 0 0; color: var(--ink-soft); }
.loom-form { display: grid; gap: 13px; margin-top: 22px; }
.loom-form input,
.loom-form textarea { width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.78); color: var(--ink); outline: 0; }
.loom-form textarea { min-height: 130px; resize: vertical; }
.loom-form input:focus,
.loom-form textarea:focus { border-color: rgba(70,99,83,.6); box-shadow: 0 0 0 4px rgba(203,215,201,.45); }
.website-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.entry-content > * { margin-bottom: 1.4em; }
.entry-content h2 { margin-top: 1.7em; font-size: 42px; }
.entry-content a { color: var(--terracotta); }
.entry-content blockquote { margin: 40px 0; padding: 25px 30px; background: var(--paper); border-left: 4px solid var(--terracotta); font: 28px/1.3 "Newsreader", Georgia, serif; }
.pagination { grid-column: 1 / -1; }

.site-footer { padding: 70px 0 30px; background: #e8e5dc; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 70px; padding-bottom: 60px; }
.footer-brand p { max-width: 390px; color: var(--ink-soft); }
.footer-title { margin-bottom: 18px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: var(--ink-soft); text-decoration: none; font-size: 14px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 12px; }

@media (max-width: 900px) {
  .hero-grid, .newsletter-box { grid-template-columns: 1fr; }
  .hero-art { min-height: 440px; }
  .cards, .archive-grid { grid-template-columns: 1fr 1fr; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .post-card:first-child { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 82px; left: 14px; right: 14px; padding: 18px; background: var(--paper); border-radius: 18px; box-shadow: var(--shadow); }
  .site-nav.open { display: block; }
  .nav-list { align-items: stretch; flex-direction: column; gap: 6px; }
  .nav-list a { display: block; padding: 10px; }
  .sub-menu {
    position: static;
    min-width: 0;
    margin: 2px 0 8px 12px;
    padding: 8px;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
  }
  .sub-menu::before { display: none; }
  .hero { padding-top: 48px; }
  h1 { font-size: 54px; }
  .hero-art { min-height: 370px; }
  .weave-card { inset: 10px 8px 40px; }
  .trust-inner { align-items: flex-start; flex-direction: column; gap: 10px; }
  .section { padding: 75px 0; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .cards, .post-grid, .archive-grid { grid-template-columns: 1fr; }
  .interior-page { padding-top: 28px; }
  .page-hero { padding: 36px 22px; border-radius: 24px; }
  .entry-panel { padding: 25px 20px; border-radius: 22px; }
  .post-card:first-child { grid-column: auto; }
  .card-number { margin-bottom: 40px; }
  .newsletter-box { padding: 38px 24px; }
  .signup { align-items: stretch; flex-direction: column; border-radius: 18px; }
  .signup button { border-radius: 13px; }
  .footer-grid { grid-template-columns: 1fr; gap: 35px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .button.secondary { margin: 10px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
