/* ============================================
   remodel.guide — Shared Stylesheet
   Companion to remodelry.guide
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --cream:       #F5F1EB;
  --warm-white:  #FDFAF6;
  --deep:        #2C2420;
  --slate:       #4A453F;
  --muted:       #8C8278;
  --brass:       #B5904A;
  --brass-light: #D4AF72;
  --brass-pale:  #EDE0C4;
  --border:      #DDD5C8;
  --white:       #FFFFFF;
  --warning:     #C4762A;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--warm-white);
  color: var(--deep);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  line-height: 1.15;
  color: var(--deep);
}

h1 { font-size: clamp(40px, 5vw, 68px); }
h2 { font-size: clamp(30px, 3.5vw, 48px); }
h3 { font-size: clamp(22px, 2.5vw, 32px); }
h4 { font-size: 20px; }

p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--slate);
}

em { font-style: italic; color: var(--brass); }

strong {
  font-weight: 500;
  color: var(--deep);
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(253,250,246,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo img {
  height: 44px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 400;
  color: var(--slate);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.02em;
}

.nav-links a:hover { color: var(--brass); }

.nav-cta {
  background: var(--brass);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 500 !important;
  font-size: 13px;
  transition: background 0.2s !important;
  white-space: nowrap;
}

.nav-cta:hover { background: var(--deep) !important; }

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--deep);
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 77px; left: 0; right: 0;
  background: var(--warm-white);
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  padding: 24px;
  gap: 4px;
  z-index: 99;
  box-shadow: 0 8px 32px rgba(44,36,32,0.08);
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-size: 15px;
  font-weight: 400;
  color: var(--slate);
  text-decoration: none;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--brass); }

.mobile-cta {
  background: var(--brass);
  color: var(--white) !important;
  padding: 14px 20px !important;
  border-radius: 6px;
  text-align: center;
  font-weight: 500 !important;
  margin-top: 8px;
  border-bottom: none !important;
}

/* ── COMPANION BANNER ── */
.companion-banner {
  background: var(--deep);
  padding: 10px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 77px;
}

.companion-banner p {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
  margin: 0;
}

.companion-banner a {
  font-size: 12px;
  font-weight: 500;
  color: var(--brass-light);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.companion-banner a:hover { color: var(--white); }

/* ── HERO ── */
.hero {
  background: var(--deep);
  padding: 80px 80px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(181,144,74,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 760px;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 20px;
  display: block;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: italic;
  color: var(--brass-light);
}

.hero-body {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255,255,255,0.6);
  max-width: 580px;
  margin-bottom: 40px;
}

/* ── PROTECTION BADGE ── */
.protection-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(181,144,74,0.12);
  border: 1px solid rgba(181,144,74,0.3);
  border-radius: 6px;
  padding: 12px 20px;
}

.protection-badge span {
  font-size: 12px;
  font-weight: 400;
  color: var(--brass-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── SECTION SHARED ── */
.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 16px;
  display: block;
}

.section-inner {
  max-width: 860px;
  margin: 0 auto;
}

.section-inner-wide {
  max-width: 1100px;
  margin: 0 auto;
}

/* ── GUIDE GRID (homepage) ── */
.section-guides {
  padding: 80px;
  background: var(--cream);
}

.guides-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px;
}

.guides-header h2 { margin-bottom: 16px; }

.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  max-width: 1100px;
  margin: 0 auto;
}

.guide-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  padding: 36px 32px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.guide-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--brass);
  transform: scaleX(0);
  transition: transform 0.3s;
  transform-origin: left;
}

.guide-card:hover {
  border-color: var(--brass);
  transform: translateY(-3px);
}

.guide-card:hover::before { transform: scaleX(1); }

.guide-card-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  font-weight: 400;
  color: var(--brass-pale);
  line-height: 1;
  margin-bottom: 16px;
}

.guide-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--deep);
  margin-bottom: 8px;
  line-height: 1.2;
}

.guide-card-hook {
  font-size: 13px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 20px;
}

.guide-card-link {
  font-size: 12px;
  font-weight: 500;
  color: var(--brass);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── CONTENT SECTIONS ── */
.section-white {
  padding: 80px;
  background: var(--warm-white);
}

.section-cream {
  padding: 80px;
  background: var(--cream);
}

.section-dark {
  padding: 80px;
  background: var(--deep);
  position: relative;
  overflow: hidden;
}

.section-dark::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(181,144,74,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.section-dark h2 { color: var(--white); }
.section-dark h2 em { color: var(--brass-light); }
.section-dark p { color: rgba(255,255,255,0.6); }
.section-dark .section-label { color: var(--brass-light); }

/* ── CONTENT BODY (guide pages) ── */
.guide-content {
  max-width: 800px;
  margin: 0 auto;
}

.guide-content h2 {
  margin-top: 64px;
  margin-bottom: 20px;
  padding-top: 64px;
  border-top: 1px solid var(--border);
}

.guide-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.guide-content h3 {
  margin-top: 40px;
  margin-bottom: 14px;
  color: var(--deep);
}

.guide-content p {
  margin-bottom: 20px;
}

.guide-content p:last-child { margin-bottom: 0; }

/* ── HOOK QUOTE ── */
.hook-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 400;
  font-style: italic;
  color: var(--brass);
  line-height: 1.45;
  padding: 24px 0 24px 24px;
  border-left: 3px solid var(--brass-pale);
  margin: 32px 0;
}

/* ── DECISION MAP ── */
.decision-map {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 32px 0;
}

.decision-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.decision-item:last-child { border-bottom: none; }

.decision-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 400;
  color: var(--brass-pale);
  line-height: 1;
  padding-top: 4px;
}

.decision-content h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--deep);
  margin-bottom: 8px;
}

.decision-content p {
  font-size: 14px;
  margin-bottom: 0;
}

/* ── TIMELINE ── */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 32px 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.timeline-item:last-child { border-bottom: none; }

.timeline-period {
  font-size: 12px;
  font-weight: 500;
  color: var(--brass);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-top: 3px;
  line-height: 1.5;
}

.timeline-content h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--deep);
  margin-bottom: 8px;
}

.timeline-content p {
  font-size: 14px;
  margin-bottom: 0;
}

/* ── WARNING FLAGS ── */
.flag-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 32px 0;
}

.flag-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(196,118,42,0.06);
  border-left: 3px solid var(--warning);
  border-radius: 0 8px 8px 0;
  padding: 18px 20px;
}

.flag-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.flag-content h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--warning);
  margin-bottom: 6px;
}

.flag-content p {
  font-size: 13px;
  color: var(--slate);
  margin-bottom: 0;
  line-height: 1.65;
}

/* ── QUESTIONS LIST ── */
.questions-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 32px 0;
}

.question-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.question-item:last-child { border-bottom: none; }

.question-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 500;
  font-style: italic;
  color: var(--deep);
  margin-bottom: 10px;
  line-height: 1.4;
}

.question-why {
  font-size: 13px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 0;
}

/* ── LEVEL CARDS ── */
.level-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin: 32px 0;
}

.level-card {
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 28px 24px;
}

.level-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 10px;
  display: block;
}

.level-card h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--deep);
  margin-bottom: 10px;
}

.level-card p {
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 0;
}

/* ── REMI CTA BLOCK ── */
.remi-cta {
  background: var(--deep);
  border-radius: 12px;
  padding: 48px;
  text-align: center;
  margin: 64px 0 0;
  position: relative;
  overflow: hidden;
}

.remi-cta::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(181,144,74,0.12) 0%, transparent 70%);
}

.remi-cta h2 {
  color: var(--white);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.remi-cta h2 em { color: var(--brass-light); }

.remi-cta p {
  color: rgba(255,255,255,0.6);
  max-width: 520px;
  margin: 0 auto 32px;
  position: relative;
  z-index: 1;
}

.remi-cta-note {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  margin-top: 16px;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 1;
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--brass);
  color: var(--white);
  padding: 16px 36px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.1s;
  display: inline-block;
  position: relative;
  z-index: 1;
}

.btn-primary:hover {
  background: var(--brass-light);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--deep);
  padding: 14px 28px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  letter-spacing: 0.02em;
  border: 1px solid var(--border);
  transition: border-color 0.2s, color 0.2s;
  display: inline-block;
}

.btn-ghost:hover {
  border-color: var(--brass);
  color: var(--brass);
}

/* ── IMAGE BLOCKS ── */
.guide-image {
  width: 100%;
  border-radius: 8px;
  margin: 32px 0;
  display: block;
}

.guide-image-caption {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: -24px;
  margin-bottom: 32px;
  font-style: italic;
}

.image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0;
}

.image-grid img {
  width: 100%;
  border-radius: 6px;
  display: block;
}

/* ── PAGE HEADER (guide pages) ── */
.page-header {
  background: var(--deep);
  padding: 80px 80px 64px;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -150px; right: -150px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(181,144,74,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.page-header-inner {
  max-width: 800px;
  position: relative;
  z-index: 1;
}

.page-header h1 { color: var(--white); margin-bottom: 20px; }
.page-header h1 em { color: var(--brass-light); }

.page-header-body {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255,255,255,0.6);
  max-width: 600px;
  margin-bottom: 32px;
}

.page-header-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.meta-tag {
  font-size: 11px;
  font-weight: 400;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.meta-tag::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brass);
  flex-shrink: 0;
}

/* ── TABLE OF CONTENTS ── */
.toc {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 32px;
  margin-bottom: 48px;
}

.toc-title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 16px;
  display: block;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toc-list li a {
  font-size: 14px;
  font-weight: 300;
  color: var(--slate);
  text-decoration: none;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.toc-list li a::before {
  content: '';
  width: 16px;
  height: 1px;
  background: var(--brass-pale);
  flex-shrink: 0;
}

.toc-list li a:hover { color: var(--brass); }

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
}

.breadcrumb a {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}

.breadcrumb a:hover { color: var(--brass-light); }

.breadcrumb-sep {
  font-size: 12px;
  color: rgba(255,255,255,0.2);
}

.breadcrumb-current {
  font-size: 12px;
  color: var(--brass-light);
  letter-spacing: 0.06em;
}

/* ── FOOTER ── */
footer {
  background: var(--deep);
  padding: 48px 80px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
}

.footer-brand img {
  height: 36px;
  width: auto;
  margin-bottom: 12px;
  opacity: 0.8;
}

.footer-tagline {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.06em;
  line-height: 1.6;
}

.footer-tagline a {
  color: var(--brass-light);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-tagline a:hover { color: var(--white); }

.footer-links {
  display: flex;
  gap: 48px;
}

.footer-col-title {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 14px;
  display: block;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col ul a {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul a:hover { color: var(--brass-light); }

.footer-bottom {
  max-width: 1100px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.2);
}

.footer-remodelry {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

.footer-remodelry a {
  color: var(--brass-light);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-remodelry a:hover { color: var(--white); }

/* ── FADE UP ANIMATION ── */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .guides-grid { grid-template-columns: repeat(2, 1fr); }
  .level-cards { grid-template-columns: 1fr; }
  .footer-links { gap: 32px; }
}

@media (max-width: 900px) {
  nav { padding: 14px 24px; }
  .hamburger { display: flex; }
  .nav-links { display: none; }
  .companion-banner { padding: 10px 24px; }
  .hero { padding: 48px 24px 56px; }
  .page-header { padding: 56px 24px 48px; }
  .section-white,
  .section-cream,
  .section-dark,
  .section-guides { padding: 56px 24px; }
  .decision-item { grid-template-columns: 40px 1fr; gap: 14px; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  .timeline-period { padding-top: 0; }
  .image-grid { grid-template-columns: 1fr; }
  .remi-cta { padding: 36px 24px; }
  footer { padding: 40px 24px; }
  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-links { flex-wrap: wrap; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .guides-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .page-header-meta { flex-direction: column; gap: 10px; }
  .level-cards { grid-template-columns: 1fr; }
}
