/**
 * Homeowner Tips Daily Theme Stylesheet
 * Self-contained styles supporting dark/light mode, responsive grids, and glassmorphism.
 */

/* Container */
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Header — Guaranteed Fixed Position on Scroll in Mobile & Desktop */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 99999;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-card-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

html.dark .site-header {
  background-color: rgba(10, 25, 25, 0.94);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.35);
}

/* WordPress Admin Bar Compatibility */
.admin-bar .site-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

/* Body Top Padding to Prevent Header Overlap */
body {
  padding-top: 6.75rem !important; /* Mobile header + quick nav bar height */
}
@media (min-width: 900px) {
  body {
    padding-top: 4.5rem !important; /* Desktop header height */
  }
}
.admin-bar body {
  padding-top: calc(6.75rem + 46px) !important;
}
@media (min-width: 783px) {
  .admin-bar body {
    padding-top: calc(4.5rem + 32px) !important;
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4rem;
  padding: 0.5rem 0;
  gap: 1rem;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--color-ink);
  flex-shrink: 0;
}

.brand-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  background-color: var(--color-teal);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.2;
  display: block;
  color: var(--color-ink);
  white-space: nowrap;
}

.brand-tagline {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  display: block;
  white-space: nowrap;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  text-decoration: none;
  color: var(--color-ink);
  font-weight: 600;
  font-size: 0.875rem;
  transition: color 0.15s ease;
  white-space: nowrap;
}

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

.header-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 9999px;
  text-decoration: none;
  white-space: nowrap;
}

.cta-text-mobile {
  display: none;
}

@media (max-width: 480px) {
  .brand-title {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.95rem;
  }
  .brand-tagline {
    display: none;
  }
  .header-cta-btn {
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
  }
  .cta-text-full {
    display: none;
  }
  .cta-text-mobile {
    display: inline;
  }
}

.theme-toggle-btn {
  background: rgba(15, 118, 110, 0.08);
  border: 1px solid var(--color-card-border);
  color: var(--color-ink);
  border-radius: 0.75rem;
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
  background: rgba(15, 118, 110, 0.08);
  border: 1px solid var(--color-card-border);
  color: var(--color-ink);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

@media (min-width: 900px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* Mobile Dropdown Drawer */
.mobile-nav-drawer {
  display: none;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--color-card-border);
  padding: 1rem 0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

html.dark .mobile-nav-drawer {
  background: rgba(10, 25, 25, 0.98);
}

.mobile-nav-drawer.is-open {
  display: block;
}

.mobile-drawer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-link {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 0.65rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-ink);
  background: rgba(0, 0, 0, 0.02);
  transition: background 0.15s ease, color 0.15s ease;
}

html.dark .mobile-link {
  background: rgba(255, 255, 255, 0.04);
}

.mobile-link:hover, .mobile-link:active {
  background: rgba(15, 118, 110, 0.12);
  color: var(--color-teal);
}

.mobile-link-cta {
  background: var(--color-teal) !important;
  color: #ffffff !important;
  text-align: center;
}

/* Mobile Quick Navigation Pill Bar (Always visible at the top of mobile screen) */
.mobile-quick-nav {
  display: block;
  border-top: 1px solid var(--color-card-border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

html.dark .mobile-quick-nav {
  background: rgba(10, 25, 25, 0.90);
}

@media (min-width: 900px) {
  .mobile-quick-nav {
    display: none;
  }
}

.mobile-quick-scroll {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.5rem 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.mobile-quick-scroll::-webkit-scrollbar {
  display: none;
}

.quick-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.8rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  background: rgba(15, 118, 110, 0.08);
  color: var(--color-ink);
  border: 1px solid var(--color-card-border);
  transition: all 0.15s ease;
}

.quick-pill:hover, .quick-pill:active {
  background: var(--color-teal);
  color: #ffffff;
}

.quick-pill-cta {
  background: var(--color-teal);
  color: #ffffff;
  font-weight: 700;
  border-color: var(--color-teal);
}
}

.theme-toggle-btn:hover {
  background: rgba(15, 118, 110, 0.16);
}

/* Canvas Background */
/* Canvas Background — 100% Guaranteed Fullscreen in Desktop Mode & Mobile */
#canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  min-width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

#bg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
}

#ambient-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.28) 0%, rgba(15, 23, 42, 0.12) 40%, rgba(15, 23, 42, 0.38) 100%);
  transition: background 0.3s ease;
}

html.dark #ambient-veil {
  background: linear-gradient(180deg, rgba(6, 20, 20, 0.40) 0%, rgba(6, 20, 20, 0.18) 40%, rgba(5, 17, 17, 0.50) 100%);
}

.vignette-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 45%, rgba(0, 0, 0, 0.35) 100%);
}

/* Hero Section */
.hero-section {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.hero-lead-text {
  max-width: 48rem;
  margin-bottom: 2.5rem;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(251, 191, 36, 0.22);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.5);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.85rem;
}

html.dark .hero-badge {
  background: rgba(251, 191, 36, 0.25);
  color: #fde047;
  border: 1px solid rgba(251, 191, 36, 0.6);
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: #ffffff !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: #fef08a !important;
  line-height: 1.6;
  font-weight: 500;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 5fr 7fr;
  }
}

/* Cards & Glassmorphism */
.glass-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-card-border);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 20px -2px var(--color-card-shadow);
}

html.dark .glass-card {
  background: rgba(19, 44, 42, 0.85);
}

.metrics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
}

@media (min-width: 640px) {
  .metrics-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.metric-card {
  text-align: center;
  padding: 1rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--color-card-border);
}

html.dark .metric-card {
  background: rgba(19, 44, 42, 0.8);
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-teal);
}

html.dark .metric-value {
  color: var(--color-teal-light);
}

.metric-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.15rem;
}

/* Lead Form */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
  color: var(--color-ink);
}

.form-input {
  width: 100%;
  padding: 0.65rem 0.875rem;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  background-color: #ffffff;
  color: var(--color-ink);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

html.dark .form-input {
  background-color: #0f2120;
  border-color: #374151;
}

.form-input:focus {
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.2);
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.75rem;
  color: #374151;
  line-height: 1.5;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

html.dark .form-consent {
  color: #e2e8f0;
}

.form-consent input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  accent-color: var(--color-teal);
  cursor: pointer;
  flex-shrink: 0;
}

.form-consent label {
  cursor: pointer;
}

.form-disclosures-box {
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  background: rgba(15, 118, 110, 0.04);
  border: 1px solid var(--color-card-border);
  font-size: 0.72rem;
  color: #4b5563;
  line-height: 1.55;
  text-align: left;
}

html.dark .form-disclosures-box {
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
}

.form-disclosures-box strong {
  color: var(--color-ink);
}

html.dark .form-disclosures-box strong {
  color: #f1f5f9;
}

/* Sections */
.site-section {
  margin-top: 4rem;
  margin-bottom: 4rem;
}

.section-header {
  text-align: center;
  max-width: 52rem;
  margin: 0 auto 2.5rem;
  padding: 1.5rem clamp(1.25rem, 4vw, 2.5rem);
  border-radius: 1.5rem;
  background: rgba(0, 0, 0, 0.72) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fbbf24 !important; /* Crisp Warm Amber / Gold */
  background: rgba(251, 191, 36, 0.16);
  border: 1px solid rgba(251, 191, 36, 0.4);
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  margin-bottom: 0.65rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.35rem);
  font-weight: 800;
  color: #ffffff !important; /* Pure Crisp White */
  margin: 0.25rem 0 0.5rem;
  line-height: 1.25;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75);
}

.section-subtitle,
.section-header p {
  font-size: 1rem;
  font-weight: 400;
  color: #f1f5f9 !important; /* Crisp Slate-100 White */
  line-height: 1.6;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* 3D Showcase Tab Switcher — High-Contrast Glass Tabs */
.wp-showcase-tab {
  padding: 0.55rem 0.95rem !important;
  border-radius: 0.75rem !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  background: rgba(0, 0, 0, 0.7) !important;
  color: #f1f5f9 !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  transition: all 0.2s ease !important;
  backdrop-filter: blur(8px) !important;
}

.wp-showcase-tab:hover {
  background: rgba(15, 118, 110, 0.7) !important;
  color: #ffffff !important;
  border-color: #5eead4 !important;
}

.wp-showcase-tab.active {
  background: var(--color-teal) !important;
  color: #ffffff !important;
  border-color: #5eead4 !important;
  box-shadow: 0 4px 15px rgba(15, 118, 110, 0.6) !important;
}

/* Fluent Forms Plugin Embed Customization */
.fluent-form-embed-wrapper {
  width: 100%;
}
.fluent-form-embed-wrapper .fluentform {
  margin: 0 !important;
}
.fluent-form-embed-wrapper .ff-el-form-control {
  border-radius: 0.65rem !important;
  border: 1px solid var(--color-card-border) !important;
  padding: 0.65rem 0.85rem !important;
  font-size: 0.95rem !important;
  background: rgba(255, 255, 255, 0.95) !important;
  color: var(--color-ink) !important;
}
html.dark .fluent-form-embed-wrapper .ff-el-form-control {
  background: rgba(10, 25, 25, 0.95) !important;
  color: #fff !important;
}
.fluent-form-embed-wrapper .ff-btn-submit {
  width: 100% !important;
  background: var(--color-teal) !important;
  color: #fff !important;
  font-weight: 700 !important;
  border-radius: 0.75rem !important;
  padding: 0.85rem 1.5rem !important;
  box-shadow: 0 4px 15px rgba(15, 118, 110, 0.4) !important;
  border: none !important;
  cursor: pointer !important;
}

/* Guides Grid */
.guides-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .guides-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.guide-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 1rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--color-card-border);
}

html.dark .guide-card {
  background: rgba(19, 44, 42, 0.85);
}

/* Comparison Table */
.table-wrapper {
  overflow-x: auto;
  border-radius: 1rem;
  border: 1px solid var(--color-card-border);
  background: rgba(255, 255, 255, 0.9);
}

html.dark .table-wrapper {
  background: rgba(14, 33, 33, 0.9);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.comparison-table th, .comparison-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(15, 118, 110, 0.12);
}

.comparison-table th {
  font-family: var(--font-heading);
  font-weight: 700;
  background: rgba(15, 118, 110, 0.08);
}

/* FAQ Accordion */
.faq-item {
  border-bottom: 1px solid var(--color-card-border);
  padding: 1rem 0;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
}

.faq-answer {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  padding-top: 0.5rem;
  display: none;
}

.faq-item.is-open .faq-answer {
  display: block;
}

/* Floating HUD */
#scroll-hud {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 50;
}

.hud-box {
  padding: 0.875rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-card-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  font-size: 0.75rem;
  width: 260px;
}

html.dark .hud-box {
  background: rgba(12, 29, 29, 0.92);
}

.hud-step-btn {
  height: 1.75rem;
  border-radius: 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  background: #f3f4f6;
  color: #374151;
  transition: all 0.15s;
}

html.dark .hud-step-btn {
  background: #14302f;
  color: #d1d5db;
}

.hud-step-btn.active {
  background: var(--color-teal);
  color: #ffffff;
}

/* Footer */
.site-footer {
  margin-top: 5rem;
  border-top: 1px solid var(--color-card-border);
  background: rgba(255, 255, 255, 0.92);
  padding: 3rem 1.25rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

html.dark .site-footer {
  background: rgba(10, 25, 25, 0.92);
}

/* ==========================================================================
   Legal Pages (Solid White Card, Max-Width 860px, Centered, #ffffff, #14302f)
   ========================================================================== */
.legal-page-wrapper {
  min-height: 85vh;
  padding-top: clamp(6.5rem, 12vw, 8.5rem);
  padding-bottom: 5rem;
  padding-left: 1rem;
  padding-right: 1rem;
  background-color: #eef4f4 !important;
}

html.dark .legal-page-wrapper {
  background-color: #0b1a19 !important;
}

.legal-card {
  max-width: 860px !important;
  margin: 0 auto !important;
  padding: 32px !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  color: #14302f !important;
  box-shadow: 0 4px 24px rgba(20, 48, 47, 0.08) !important;
  border: 1px solid rgba(15, 118, 110, 0.15) !important;
  font-size: 17px !important;
  line-height: 1.7 !important;
  text-shadow: none !important;
  position: relative !important;
  z-index: 20 !important;
}

html.dark .legal-card {
  background: #ffffff !important;
  color: #14302f !important;
  text-shadow: none !important;
}

.legal-card h1,
.legal-card h2,
.legal-card h3,
.legal-card h4,
.legal-card p,
.legal-card li,
.legal-card strong,
.legal-card span,
.legal-card div {
  text-shadow: none !important;
}

.legal-card h1 {
  font-family: var(--font-heading) !important;
  font-size: clamp(2rem, 4vw, 2.75rem) !important;
  color: #14302f !important;
  margin: 0 0 0.5rem 0 !important;
  line-height: 1.2 !important;
}

.legal-card h2 {
  font-family: var(--font-heading) !important;
  font-size: 1.45rem !important;
  color: #14302f !important;
  margin-top: 2.25rem !important;
  margin-bottom: 0.85rem !important;
  line-height: 1.3 !important;
}

.legal-card h3 {
  font-family: var(--font-heading) !important;
  font-size: 1.2rem !important;
  color: #14302f !important;
  margin-top: 1.75rem !important;
  margin-bottom: 0.75rem !important;
}

.legal-card p {
  font-size: 17px !important;
  line-height: 1.7 !important;
  color: #14302f !important;
  margin-bottom: 1.25rem !important;
}

.legal-card ul,
.legal-card ol {
  font-size: 17px !important;
  line-height: 1.7 !important;
  color: #14302f !important;
  padding-left: 1.5rem !important;
  margin-bottom: 1.5rem !important;
}

.legal-card li {
  margin-bottom: 0.65rem !important;
  color: #14302f !important;
}

.legal-card a {
  color: #0f766e !important;
  text-decoration: underline !important;
  font-weight: 600 !important;
}

.legal-card a:hover {
  color: #0d665f !important;
}

/* Ensure HUD and Canvas are hidden on all non-home pages */
body:not(.home) #scroll-hud,
body:not(.home) #canvas-container,
body:not(.home) #ambient-veil,
body:not(.home) .vignette-overlay {
  display: none !important;
}

