/*
Theme Name: Hidalgo Collective V9
Theme URI: https://hidalgoapps.com
Author: Hidalgo Collective LLC
Description: Lightweight Hidalgo Collective LLC theme with Foretold About, Privacy Policy, and Account Deletion pages.
Version: 9.0.0
License: GPLv2 or later
Text Domain: hidalgo-collective-v9
*/

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400&display=swap");

:root {
  --bg: #f4f4f1;
  --bg2: #e7e6e1;
  --ink: #12141a;
  --muted: #5d6168;
  --soft: #8a8680;
  --line: rgba(18,20,26,.12);
  --panel: rgba(255,255,255,.74);
  --panel-strong: rgba(255,255,255,.88);
  --red: #c20f16;
  --red-deep: #8f090f;
  --cream: #fbfaf7;
  --shadow: 0 28px 72px rgba(18,20,26,.10);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
  background:
    radial-gradient(circle at 84% 9%, rgba(194,15,22,.09), transparent 30rem),
    radial-gradient(circle at 9% 4%, rgba(255,255,255,.88), transparent 25rem),
    linear-gradient(135deg, #faf9f7 0%, var(--bg) 44%, var(--bg2) 100%);
}
body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(18,20,26,.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18,20,26,.012) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.38), rgba(0,0,0,.05));
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: rgba(194,15,22,.34); text-underline-offset: 3px; }
a:hover { color: var(--red-deep); }

.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251,250,247,.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(1160px, calc(100% - 40px));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { text-decoration: none; display: inline-flex; flex-direction: column; gap: 4px; }
.brand-title {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
}
.brand-sub {
  font-size: 11px;
  line-height: 1;
  color: var(--soft);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-weight: 700;
}
.nav {
  display: flex;
  gap: 24px;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  min-height: 82px;
}
.nav > a,
.nav-parent {
  display: inline-flex;
  align-items: center;
  min-height: 82px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  font-weight: 700;
}
main { flex: 1; }
.section {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 74px 0;
}
.eyebrow {
  margin: 0 0 16px;
  color: var(--soft);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12px;
  font-weight: 700;
}
.hero { padding: 78px 0 56px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(300px, .84fr);
  gap: 38px;
  align-items: stretch;
}
.hero-copy { padding-top: 8px; }
h1, h2, h3, p { overflow-wrap: anywhere; }
.hero-title {
  margin: 0;
  max-width: 900px;
  font-size: clamp(42px, 6.8vw, 84px);
  line-height: .95;
  letter-spacing: -.064em;
  font-weight: 700;
}
.serif {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.04em;
}
.hero-text, .body-copy {
  max-width: 720px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 18px;
}
.hero-visual {
  min-height: 530px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #d3151d 0%, #aa0b11 100%);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(18,20,26,.08);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(18,20,26,.10);
}
.button:hover { color: var(--cream); background: var(--red-deep); }
.button.secondary {
  background: rgba(255,255,255,.58);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}
.button.secondary:hover {
  color: var(--red-deep);
  border-color: rgba(194,15,22,.34);
  background: rgba(255,255,255,.86);
}
.simple-panel, .info, .product-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 18px 55px rgba(18,20,26,.075);
}
.simple-panel {
  max-width: 760px;
  padding: 34px;
}
.simple-panel h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: .98;
  letter-spacing: -.05em;
  font-weight: 700;
}
.simple-panel p { margin: 0; color: var(--muted); font-size: 17px; }
.content-page {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0;
}
.content-page h1 {
  margin: 0 0 24px;
  font-size: clamp(40px, 6vw, 74px);
  line-height: .96;
  letter-spacing: -.06em;
  font-weight: 700;
}
.content-page h2 {
  margin: 36px 0 12px;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -.04em;
  font-weight: 700;
}
.content-page p, .content-page li { color: var(--muted); font-size: 17px; }
.product-card {
  background: var(--panel-strong);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr);
}
.product-copy { padding: 38px; }
.product-copy h2 {
  margin: 10px 0 16px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: .96;
  letter-spacing: -.055em;
  font-weight: 700;
}
.product-copy p { margin: 0; color: var(--muted); max-width: 560px; font-size: 17px; }
.pills { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(18,20,26,.055);
  color: var(--soft);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 11px;
  font-weight: 700;
}
.product-media { min-height: 370px; background: #eee8de; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.info { padding: 26px; }
.info h2 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.04;
  letter-spacing: -.045em;
  font-weight: 700;
}
.info p, .info li { color: var(--muted); font-size: 16px; }
.legal-block { max-width: 900px; }
.legal-block h2 {
  margin: 34px 0 12px;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -.04em;
  font-weight: 700;
}
.legal-block p, .legal-block li { color: var(--muted); font-size: 16px; }
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.62);
}
.footer-inner {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 38px 0;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 32px;
}
.footer-brand { margin: 0 0 8px; font-size: 22px; font-weight: 700; letter-spacing: -.045em; }
.footer-meta, .footer-links a { color: var(--muted); font-size: 14px; }
.footer-links { display: flex; justify-content: flex-end; align-content: flex-start; flex-wrap: wrap; gap: 16px; }
.footer-links a { text-decoration: none; }
@media (max-width: 920px) {
  .hero-grid, .product-card, .two-col, .footer-inner { grid-template-columns: 1fr; }
  .hero-visual { min-height: 410px; }
}
@media (max-width: 760px) {
  .header-inner { align-items: flex-start; flex-direction: column; gap: 14px; padding: 18px 0; }
  .nav { justify-content: flex-start; gap: 16px; flex-wrap: wrap; min-height: 0; }
  .section, .content-page { padding: 54px 0; }
  .hero { padding-top: 56px; }
  .product-copy { padding: 28px; }
  .product-media { min-height: 290px; }
  .footer-links { justify-content: flex-start; }
}


/* Product dropdown */
.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 82px;
}

.nav-parent {
  cursor: pointer;
}

.nav-parent::after {
  content: "▾";
  margin-left: 7px;
  font-size: 10px;
  color: var(--soft);
  letter-spacing: 0;
}

.subnav {
  position: absolute;
  top: calc(100% - 1px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 320px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(251,250,247,.98);
  box-shadow: 0 22px 55px rgba(18,20,26,.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
}

.subnav::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -30px;
  height: 30px;
}

.nav-item:hover .subnav,
.nav-item:focus-within .subnav {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.subnav-product {
  display: block;
}

.subnav a {
  display: block;
  border-radius: 10px;
  white-space: nowrap;
  text-decoration: none;
}

.subnav-product-title {
  padding: 13px 14px;
  background: rgba(194,15,22,.045);
  color: var(--red-deep);
  text-transform: none !important;
  letter-spacing: -.01em !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}

.subnav-children {
  display: grid;
  gap: 3px;
  padding: 8px 0 0 12px;
}

.subnav-children a {
  padding: 10px 12px;
  color: var(--muted);
  text-transform: uppercase !important;
  letter-spacing: .12em !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

.subnav a:hover {
  background: rgba(194,15,22,.065);
  color: var(--red-deep);
}

.product-link-card {
  color: inherit;
  text-decoration: none;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.product-link-card:hover {
  color: inherit;
  transform: translateY(-2px);
  border-color: rgba(194,15,22,.28);
  box-shadow: 0 34px 82px rgba(18,20,26,.12);
}

.product-link-card .button {
  pointer-events: none;
}

/* Foretold product pages */
body.hidalgo-foretold-page {
  background: #F7F3EB;
  color: #1C1A14;
}

body.hidalgo-foretold-page:before {
  display: none;
}

body.hidalgo-foretold-page .site-header {
  background: rgba(247,243,235,.88);
}

.foretold-page {
  width: min(1020px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0;
  background: #F7F3EB;
}

.foretold-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .62fr);
  gap: 36px;
  align-items: stretch;
}

.foretold-title {
  margin: 0 0 24px;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 300;
  color: #6B6352;
  font-size: clamp(48px, 7vw, 86px);
  line-height: .92;
  letter-spacing: -.045em;
}

.foretold-subtitle {
  max-width: 720px;
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 300;
  color: #6B6352;
  font-size: clamp(23px, 2.8vw, 34px);
  line-height: 1.18;
}

.foretold-body {
  max-width: 760px;
  margin-top: 28px;
  color: #6B6352;
  font-size: 17px;
}

.foretold-page h2 {
  margin: 40px 0 12px;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 300;
  color: #6B6352;
  font-size: clamp(30px, 3.5vw, 44px);
  line-height: 1.05;
  letter-spacing: -.025em;
}

.foretold-label {
  margin: 0 0 16px;
  color: #8A7A5A;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  font-weight: 700;
}

.foretold-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 34px;
}

.foretold-card {
  border: 1px solid #D4CCB8;
  border-radius: 16px;
  background: #EDE8DC;
  padding: 22px;
}

.foretold-card h3 {
  margin: 0 0 9px;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 300;
  color: #6B6352;
  font-size: 28px;
  line-height: 1.02;
}

.foretold-card p {
  margin: 0;
  color: #6B6352;
  font-size: 15px;
}

.foretold-media {
  min-height: 440px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #D4CCB8;
  background: #EDE8DC;
}

.foretold-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.foretold-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.foretold-actions .button {
  background: #5A7A3A;
}

.foretold-actions .button.secondary {
  background: transparent;
  color: #5A7A3A;
  border-color: #5A7A3A;
}

.foretold-legal p,
.foretold-legal li {
  color: #6B6352;
}

@media (max-width: 920px) {
  .foretold-hero,
  .foretold-card-grid {
    grid-template-columns: 1fr;
  }
  .foretold-media {
    min-height: 300px;
  }
}

@media (max-width: 760px) {
  .nav > a,
  .nav-parent {
    min-height: 0;
  }
  .nav-item {
    display: block;
    min-height: 0;
  }
  .subnav {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 6px 0 0;
    min-width: 0;
  }
  .nav-item:hover .subnav,
  .nav-item:focus-within .subnav {
    transform: none;
  }
  .subnav::before {
    display: none;
  }
  .subnav-product-title,
  .subnav-children a {
    padding: 8px 0;
    background: transparent;
    font-size: 12px !important;
  }
  .subnav-children {
    padding-left: 12px;
  }
  .foretold-page {
    padding: 54px 0;
  }
}


/* V8: remove broken Foretold hero image placement and let the copy use the space */
.foretold-hero,
.foretold-hero-grid,
.foretold-landing-grid,
.foretold-about-grid {
  display: block !important;
}

.foretold-hero-media,
.foretold-hero-image,
.foretold-visual,
.foretold-image,
.foretold-app-preview,
.foretold-preview,
.foretold-media {
  display: none !important;
}

.foretold-hero-copy,
.foretold-copy,
.foretold-landing-copy,
.foretold-about-copy {
  max-width: 980px !important;
  width: 100% !important;
}


/* V9: Foretold Account Deletion page support */
.foretold-placeholder-note {
  margin-top: 26px;
  border: 1px solid #D4CCB8;
  border-radius: 18px;
  background: #EDE8DC;
  padding: 24px;
  color: #6B6352;
}
