/* === Landing Page — Refined Theme === */
/* :root variables are defined in theme-*.css files */

/* Base */
html { scroll-behavior: smooth; }

body.landing {
  font-family: var(--font-body);
  color: var(--body-text);
  margin: 0;
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  background: var(--warm-white);
}

body.landing h1,
body.landing h2,
body.landing h3,
body.landing h4 {
  font-family: var(--font-heading);
  color: var(--navy);
  font-weight: 400;
}

/* === Navigation === */
.landing-nav {
  padding: 1rem 0;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
  transition: box-shadow 0.3s;
}

.landing-nav.scrolled {
  box-shadow: var(--shadow-sm);
}

.landing-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.landing-brand {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--navy);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.landing-brand .brand-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-divider {
  width: 1px;
  height: 28px;
  background: var(--amber-muted);
  opacity: 0.5;
}

.landing-brand .app-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.landing-brand .app-brand-name {
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--navy);
}

.landing-brand .app-brand-tagline {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 400;
  color: var(--amber-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 400;
  text-decoration: none;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-pill);
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.nav-link-text {
  color: var(--body-text);
}

.nav-link-text:hover {
  color: var(--navy);
  background: var(--ice);
}

.nav-link-primary {
  background: var(--navy);
  color: var(--white) !important;
}

.nav-link-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(30, 42, 58, 0.3);
  color: var(--white) !important;
}

/* === Hero === */
.hero {
  padding: 9rem 1.5rem 5rem;
  text-align: center;
  background: linear-gradient(170deg, var(--ice) 0%, var(--warm-white) 50%, var(--cream) 100%);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--warm-white));
}

.hero h1 {
  font-size: 3.4rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1.2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: var(--navy);
}

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

.hero .subtitle {
  font-size: 1.2rem;
  color: var(--body-text);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
  font-weight: 400;
  font-family: var(--font-body);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-note {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 400;
}

.hero-note i { margin-right: 0.3rem; color: var(--amber-muted); }

/* === Buttons === */
.btn-primary-pastel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2.2rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.05rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  background: var(--navy);
  color: var(--white);
}

.btn-primary-pastel:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 42, 58, 0.3);
  color: var(--white);
}

.btn-secondary-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2.2rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s;
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--border-soft);
}

.btn-secondary-soft:hover {
  background: var(--ice);
  border-color: var(--navy);
  color: var(--navy);
  transform: translateY(-2px);
}

/* === Sections === */
.landing-section {
  padding: 5rem 1.5rem;
  position: relative;
}

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

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--amber-muted);
  margin-bottom: 0.75rem;
  display: block;
}

.section-header h2 {
  font-size: 2.4rem;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--body-text);
  max-width: 520px;
  margin: 0 auto;
  font-weight: 400;
}

/* === How It Works === */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.step-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: transform 0.2s;
}

.step-card:hover {
  transform: translateY(-3px);
}

.step-num {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 1.2rem;
}

.step-num.num-1 { background: var(--navy); }
.step-num.num-2 { background: var(--amber-muted); }
.step-num.num-3 { background: var(--navy-light); }

.step-icon {
  font-size: 2.4rem;
  display: block;
  margin-bottom: 0.75rem;
}

.step-icon-mint { color: var(--navy); }
.step-icon-lavender { color: var(--amber-muted); }
.step-icon-coral { color: var(--navy-light); }

.step-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}

.step-card p {
  font-size: 0.95rem;
  color: var(--body-text);
  margin: 0;
  font-weight: 400;
}

/* === Features Grid === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 1.2rem;
  color: var(--navy);
}

.fi-blush { background: var(--ice); }
.fi-mint { background: var(--cream); }
.fi-lavender { background: var(--ice); }
.fi-peach { background: var(--cream); }
.fi-sky { background: var(--ice); }

.feature-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--body-text);
  font-size: 0.92rem;
  margin: 0;
  font-weight: 400;
}

/* === Category Showcase === */
.category-bubbles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.bubble {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  border: none;
  cursor: default;
  transition: transform 0.2s, box-shadow 0.2s;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}

.bubble:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-md);
}

.bubble i { font-size: 1.2rem; }

.b-blush { background: var(--ice); }
.b-mint { background: var(--cream); }
.b-lav { background: var(--ice); }
.b-peach { background: var(--cream); }
.b-sky { background: var(--ice); }
.b-cream { background: var(--cream); }
.b-sage { background: var(--ice); }
.b-rose { background: var(--cream); }

/* === Pricing === */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 780px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  border: 2px solid var(--border-soft);
  position: relative;
  transition: transform 0.2s, box-shadow 0.3s;
}

.pricing-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.pricing-card.featured {
  border: 2px solid var(--amber-muted);
  box-shadow: var(--shadow-lg);
}

.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: var(--white);
  padding: 0.3rem 1.2rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: var(--font-heading);
  white-space: nowrap;
}

.pricing-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.pricing-amount {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 400;
  color: var(--navy);
  line-height: 1;
}

.pricing-amount span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
}

.pricing-period {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  text-align: left;
}

.pricing-features li {
  padding: 0.45rem 0;
  font-size: 0.95rem;
  color: var(--body-text);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 400;
}

.pricing-features li i {
  color: var(--amber-muted);
  font-size: 1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

/* === Footer === */
.landing-footer {
  padding: 3rem 1.5rem;
  text-align: center;
  border-top: 1px solid var(--border-soft);
  background: var(--ice);
}

.landing-footer p {
  color: var(--body-text);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  font-weight: 400;
}

.landing-footer a {
  color: var(--navy);
  font-weight: 400;
  text-decoration: none;
  margin: 0 0.6rem;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.landing-footer a:hover {
  color: var(--amber-muted);
}

/* === Nav Dropdown === */
.nav-dropdown {
  position: relative;
  display: inline-flex;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 0.5rem 0;
  min-width: 260px;
  z-index: 200;
  margin-top: 0.5rem;
  max-height: 70vh;
  overflow-y: auto;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  padding: 0.65rem 1.2rem;
  color: var(--body-text);
  font-size: 0.92rem;
  font-weight: 400;
  text-decoration: none;
  border-radius: 0;
  transition: background 0.15s;
}

.nav-dropdown-menu a:hover {
  background: var(--ice);
  color: var(--navy);
}

.nav-dropdown-menu a i {
  font-size: 1rem;
  width: 1.5rem;
  flex-shrink: 0;
}

/* === Feature Card Links === */
.feature-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.feature-card-link:hover {
  color: inherit;
}

.feature-learn-more {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--amber-muted);
  transition: color 0.2s;
}

.feature-card-link:hover .feature-learn-more {
  color: var(--navy);
}

/* === Feature Detail Pages === */
.feature-hero {
  padding: 9rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.feature-hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--warm-white));
}

.feature-hero-step {
  display: inline-block;
  background: rgba(255,255,255,0.7);
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--body-text);
  margin-bottom: 1.2rem;
  backdrop-filter: blur(8px);
}

.feature-hero h1 {
  font-size: 2.8rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.feature-hero .subtitle {
  font-size: 1.15rem;
  color: var(--body-text);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.8;
  font-weight: 400;
}

/* Feature content row — text + image side by side */
.feature-content-row {
  display: grid;
  grid-template-columns: 7fr 3fr;
  gap: 2rem;
  align-items: center;
}

.feature-content-row.reverse {
  direction: rtl;
}

.feature-content-row.reverse > * {
  direction: ltr;
}

.feature-text h2 {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.feature-text p {
  font-size: 1rem;
  color: var(--body-text);
  font-weight: 400;
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.feature-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-checklist li {
  padding: 0.4rem 0;
  font-size: 0.95rem;
  color: var(--body-text);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 400;
}

.feature-checklist li i {
  color: var(--amber-muted);
  font-size: 1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.feature-checklist li strong {
  font-family: var(--font-heading);
  font-weight: 600;
}

/* Placeholder image areas */
.feature-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 180px;
  background: var(--white);
  border: 2px dashed var(--border-soft);
  border-radius: var(--radius-lg);
  color: var(--muted);
  gap: 0.75rem;
  transition: border-color 0.2s;
}

.feature-image-placeholder i {
  font-size: 3rem;
}

.feature-image-placeholder span {
  font-size: 0.9rem;
  font-weight: 400;
}

.feature-image-placeholder.coming-soon {
  background: linear-gradient(135deg, var(--ice), var(--cream));
  border-style: solid;
  border-color: var(--amber-muted);
  color: var(--amber-muted);
}

/* Next step section */
.feature-next-step {
  padding: 4rem 1.5rem;
}

.feature-next-step h2 {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

/* me-2 helper for icons in dropdown (since no Bootstrap on landing) */
.me-2 { margin-right: 0.5rem; }

/* === Services Grid — 5 cards, 3-column desktop === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  color: inherit;
}

.service-card .feature-icon {
  margin-bottom: 1rem;
}

.service-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--body-text);
  font-size: 0.92rem;
  margin: 0 0 0.75rem;
  font-weight: 400;
}

/* === Values Grid for About page === */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.value-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border-soft);
  transition: transform 0.2s, box-shadow 0.2s;
}

.value-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.value-card .feature-icon {
  margin-bottom: 1rem;
}

.value-card h4 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.value-card p {
  color: var(--body-text);
  font-size: 0.95rem;
  margin: 0;
  font-weight: 400;
}

/* === Document Cards for restyled admin documents page === */
.doc-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.doc-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  padding: 2rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.doc-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.doc-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.doc-card-header h4 {
  font-size: 1.1rem;
  margin-bottom: 0.15rem;
}

.doc-card-header small {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 400;
}

.doc-card p {
  font-size: 0.95rem;
  color: var(--body-text);
  font-weight: 400;
  margin-bottom: 1rem;
}

.doc-card .feature-checklist {
  margin-bottom: 1.2rem;
}

.doc-card .feature-checklist li {
  font-size: 0.9rem;
}

/* Get Started section */
.get-started-section {
  text-align: center;
  padding: 4rem 1.5rem;
}

.get-started-section h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.get-started-section p {
  font-size: 1.05rem;
  color: var(--body-text);
  max-width: 500px;
  margin: 0 auto 2rem;
  font-weight: 400;
}

/* Back-to-admin link */
.back-to-admin {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--body-text);
  font-weight: 400;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  transition: background 0.2s;
}

.back-to-admin:hover {
  background: var(--ice);
  color: var(--navy);
}

/* Info box for landing pages */
.landing-info-box {
  background: var(--ice);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--body-text);
}

.landing-info-box i {
  color: var(--amber-muted);
  font-size: 1.1rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

/* === Responsive === */
@media (max-width: 768px) {
  .hero {
    padding: 7rem 1.5rem 3.5rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .steps-grid,
  .features-grid,
  .services-grid,
  .values-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .doc-cards-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .landing-section {
    padding: 3.5rem 1.5rem;
  }

  .landing-nav .container {
    padding: 0 1rem;
  }

  .nav-links .nav-link-text { display: none; }
  .nav-dropdown { display: none; }

  .feature-hero {
    padding: 7rem 1.5rem 3rem;
  }

  .feature-hero h1 {
    font-size: 2rem;
  }

  .feature-content-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .feature-content-row.reverse {
    direction: ltr;
  }

  .feature-image-placeholder {
    height: 220px;
  }

  .feature-next-step {
    padding: 3rem 1.5rem;
  }

  .feature-next-step h2 {
    font-size: 1.5rem;
  }

  .category-bubbles {
    gap: 0.75rem;
  }

  .bubble {
    padding: 0.7rem 1.3rem;
    font-size: 0.95rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .features-grid,
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
