/* ===== ROOTALITY FINANCIAL — GLOBAL STYLES ===== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #2D5016;
  --green-hover: #3D6B1E;
  --green-light: #E8EFE3;
  --cream: #F5F0E8;
  --white: #FFFFFF;
  --text: #1A1A1A;
  --text-muted: #5A5A5A;
  --border: #D4CFC7;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --radius: 6px;
  --max-width: 1080px;
  --section-pad: 96px 24px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; line-height: 1.2; color: var(--green); }
h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 16px; }
h3 { font-size: 1.25rem; margin-bottom: 8px; }

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 48px;
  text-align: center;
}

/* --- Layout Helpers --- */
.container { max-width: var(--max-width); margin: 0 auto; }
.section { padding: var(--section-pad); }
.section--white { background: var(--white); }
.section--cream { background: var(--cream); }
.section--green { background: var(--green); color: var(--white); }
.section--green h2, .section--green h3 { color: var(--white); }
.text-center { text-align: center; }

/* --- Nav --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo { height: 48px; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav__links a { transition: color 0.2s; }
.nav__links a:hover, .nav__links a:focus-visible { color: var(--green); }

.nav__cta {
  background: var(--green);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.nav__cta:hover, .nav__cta:focus-visible { background: var(--green-hover); }

/* Mobile nav */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: 0.2s;
}

@media (max-width: 768px) {
  .nav__toggle { display: block; }
  .nav__links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav__links.is-open { display: flex; }
}

/* --- Hero --- */
.hero {
  padding: 160px 24px 96px;
  text-align: center;
}

.hero__tagline {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  color: var(--green);
  line-height: 1.15;
  margin-bottom: 20px;
  font-weight: 400;
}

.hero__desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
  border: none;
  text-align: center;
}
.btn:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

.btn--primary { background: var(--green); color: var(--white); }
.btn--primary:hover { background: var(--green-hover); transform: translateY(-1px); }

.btn--outline { background: transparent; color: var(--green); border: 2px solid var(--green); }
.btn--outline:hover { background: var(--green); color: var(--white); }

.btn--white { background: var(--white); color: var(--green); }
.btn--white:hover { background: var(--cream); }

/* --- Cards Grid --- */
.cards { display: grid; gap: 24px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: box-shadow 0.2s, transform 0.15s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.card__icon {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.card__title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.25rem;
  color: var(--green);
  margin-bottom: 10px;
  font-weight: 400;
}

.card__text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.card__link {
  color: var(--green);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}
.card__link:hover { gap: 10px; }

/* --- Package Cards --- */
.package { position: relative; text-align: center; }
.package--featured {
  border-color: var(--green);
  border-width: 2px;
}
.package__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 16px;
  border-radius: 20px;
}
.package__name {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.5rem;
  color: var(--green);
  margin-bottom: 12px;
}
.package__desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Steps (How It Works) --- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }

.step__number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.step__title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.1rem;
  color: var(--green);
  margin-bottom: 8px;
}

.step__text {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* On green bg */
.section--green .step__number { background: var(--white); color: var(--green); }
.section--green .step__title { color: var(--white); }
.section--green .step__text { color: rgba(255,255,255,0.8); }

/* --- About --- */
.about__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about__label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: 12px;
}

.about__text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.about__details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.about__detail-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 4px;
}

.about__detail-value {
  font-size: 0.95rem;
  color: var(--text);
}

/* --- Pain Points --- */
.pain-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.pain-point {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.pain-point__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 1rem;
}

.pain-point__text {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text);
}

.pain-point__title {
  font-weight: 600;
  color: var(--green);
  margin-bottom: 4px;
}

/* --- Partnership Models --- */
.partnerships { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.partnership {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
}

.partnership__title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.4rem;
  color: var(--green);
  margin-bottom: 12px;
}

.partnership__desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 20px;
}

.partnership__features { display: flex; flex-direction: column; gap: 10px; }

.partnership__feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text);
}

.partnership__check {
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding: 80px 24px;
}

.cta-section__email {
  margin-top: 16px;
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
}
.cta-section__email a { color: var(--white); font-weight: 600; text-decoration: underline; }

/* --- Footer --- */
.footer {
  text-align: center;
  padding: 32px 24px;
  background: var(--cream);
  border-top: 1px solid var(--border);
}

.footer__logo { height: 36px; margin: 0 auto 8px; }
.footer__text { font-size: 0.85rem; color: var(--text-muted); }

/* --- Services List (landing pages) --- */
.services-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.services-list__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text);
}

.services-list__check {
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .cards--3 { grid-template-columns: 1fr; }
  .cards--2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about__content { grid-template-columns: 1fr; }
  .about__details { grid-template-columns: 1fr 1fr; }
  .pain-points { grid-template-columns: 1fr; }
  .partnerships { grid-template-columns: 1fr; }
  .services-list { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  :root { --section-pad: 64px 16px; }
  .hero { padding: 130px 16px 64px; }
  .steps { grid-template-columns: 1fr; }
  .about__details { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}
