/* ============================================================
   Tulip Financial Planning — site styles
   Palette pulled from the existing brand:
   sage #767C71 · deep green #4A5742 · ink #2F372B
   teal #548686 / #609A9A · amber #DA8F36 · terracotta #C37967
   ============================================================ */

:root {
  --sage: #767c71;
  --sage-light: #aab0a5;
  --green: #4a5742;
  --ink: #2f372b;
  --teal: #548686;
  --teal-light: #609a9a;
  --amber: #da8f36;
  --amber-dark: #c07a25;
  --terracotta: #c37967;
  --cream: #faf8f3;
  --cream-dark: #f2eee5;
  --white: #ffffff;
  --border: #e4e1d8;
  --shadow: 0 2px 24px rgba(47, 55, 43, 0.08);
  --shadow-lg: 0 12px 48px rgba(47, 55, 43, 0.14);
  --radius: 16px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--green); }

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; line-height: 1.35; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: #555e51;
  max-width: 56ch;
}

.section-head {
  max-width: 640px;
  margin-bottom: 3rem;
}
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 0.9rem; color: #555e51; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--amber);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(218, 143, 54, 0.35);
}
.btn-primary:hover { background: var(--amber-dark); color: var(--white); }

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

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

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--green);
}
.brand:hover { color: var(--green); }
.brand svg { width: 34px; height: 42px; flex-shrink: 0; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1;
}
.brand-tag {
  display: block;
  font-family: var(--font-body);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  margin-top: 0.3rem;
  color: var(--sage);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
}
.nav-links a:hover, .nav-links a.active { color: var(--teal); }
.nav-links .btn { padding: 0.6rem 1.3rem; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  color: var(--ink);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 5.5rem 0 5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 { margin: 0.5rem 0 1.4rem; }
.hero h1 em {
  font-style: italic;
  color: var(--teal);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2.2rem 0 1.2rem;
}

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

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-art .bloom {
  width: min(360px, 80%);
  color: var(--sage);
  opacity: 0.9;
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: -10% -6%;
  background: radial-gradient(circle at 50% 40%, rgba(96, 154, 154, 0.14), transparent 65%);
  z-index: -1;
}

.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.8rem;
}
.chip {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.42rem 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.chip svg { width: 14px; height: 14px; color: var(--amber); }

/* ---------- Stats band ---------- */

.stats {
  background: var(--green);
  color: var(--white);
  padding: 2.6rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 600;
  color: var(--white);
}
.stat-number span { color: var(--amber); }
.stat-label {
  font-size: 0.88rem;
  color: #c9d2c3;
  margin-top: 0.2rem;
}

/* ---------- Sections ---------- */

.section { padding: 5.5rem 0; }
.section.alt { background: var(--white); }

/* Services grid */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.section.alt .card { background: var(--cream); }
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  background: rgba(96, 154, 154, 0.12);
  color: var(--teal);
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 0.6rem; }
.card p { font-size: 0.95rem; color: #555e51; }
.card .card-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.4rem 1.8rem 2rem;
}
.step-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--teal-light);
  opacity: 0.45;
  line-height: 1;
  margin-bottom: 0.8rem;
}
.step h3 { margin-bottom: 0.5rem; }
.step p { font-size: 0.95rem; color: #555e51; }

/* Pricing */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  align-items: stretch;
}

.pricing-grid.two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 900px;
  margin-inline: auto;
}

.price-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem 1.9rem;
  position: relative;
}
.price-card.featured {
  border: 2px solid var(--teal);
  box-shadow: var(--shadow-lg);
}
.badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
}
.price-card h3 { margin-bottom: 0.4rem; }
.price-tagline { font-size: 0.9rem; color: var(--sage); min-height: 3em; }
.price {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  margin: 1.1rem 0 0.2rem;
  color: var(--green);
}
.price small {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--sage);
}
.price-from {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sage);
}
.price-card ul {
  list-style: none;
  margin: 1.4rem 0 1.8rem;
  flex-grow: 1;
}
.price-card li {
  font-size: 0.93rem;
  padding: 0.42rem 0 0.42rem 1.7rem;
  position: relative;
  color: #444d40;
}
.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78rem;
  width: 16px;
  height: 16px;
  background: var(--amber);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.price-card .btn { width: 100%; justify-content: center; }

.pricing-note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--sage);
  margin-top: 2rem;
}

/* Testimonials */

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.quote-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
}
.quote-stars { color: var(--amber); letter-spacing: 2px; margin-bottom: 0.9rem; }
.quote-card blockquote {
  font-size: 0.97rem;
  color: #444d40;
  flex-grow: 1;
}
.quote-who {
  margin-top: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cream-dark);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.quote-who strong { font-size: 0.92rem; display: block; }
.quote-who span { font-size: 0.8rem; color: var(--sage); }

/* Team */

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
  max-width: 880px;
  margin: 0 auto;
}
.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem;
  text-align: center;
}
.team-photo {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  margin: 0 auto 1.3rem;
  background: linear-gradient(135deg, var(--cream-dark), #e7e3d6);
  color: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  border: 3px solid var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { margin-bottom: 0.2rem; }
.team-creds {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.9rem;
}
.team-card p { font-size: 0.95rem; color: #555e51; }

/* Values list (About) */

.values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}
.value {
  display: flex;
  gap: 1.1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.value .card-icon { margin: 0; flex-shrink: 0; }
.value h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.value p { font-size: 0.92rem; color: #555e51; }

/* Newsletter */

.newsletter {
  background: var(--teal);
  border-radius: calc(var(--radius) + 8px);
  padding: 3.5rem 3rem;
  color: var(--white);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}
.newsletter h2 { color: var(--white); }
.newsletter p { color: #d6e6e6; margin-top: 0.7rem; }
.newsletter-action { text-align: right; }

/* CTA band */

.cta-band {
  background: var(--green);
  color: var(--white);
  text-align: center;
  padding: 5rem 0;
}
.cta-band h2 { color: var(--white); margin-bottom: 0.8rem; }
.cta-band p { color: #c9d2c3; max-width: 52ch; margin: 0 auto 2rem; }

/* FAQ */

.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.4rem;
  margin-bottom: 0.8rem;
}
.faq summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--teal);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 0.8rem; font-size: 0.95rem; color: #555e51; }

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem;
}
.contact-card h3 { margin-bottom: 0.5rem; }
.contact-card p { font-size: 0.95rem; color: #555e51; margin-bottom: 1.2rem; }
.contact-methods { list-style: none; margin-top: 1rem; }
.contact-methods li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.55rem 0;
  font-size: 0.97rem;
}
.contact-methods svg { width: 18px; height: 18px; color: var(--teal); flex-shrink: 0; }

/* Service detail rows */

.service-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.6rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem;
  margin-bottom: 1.2rem;
}
.service-row .card-icon { margin: 0; }
.service-row h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.service-row p { font-size: 0.97rem; color: #555e51; }
.service-row ul {
  list-style: none;
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1.5rem;
}
.service-row li {
  font-size: 0.92rem;
  color: #444d40;
  padding-left: 1.5rem;
  position: relative;
}
.service-row li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 14px;
  height: 14px;
  background: var(--amber);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: #b9c0b3;
  padding: 4rem 0 2rem;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.site-footer .brand { color: #d8dcd3; margin-bottom: 1rem; }
.site-footer h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer a { color: #b9c0b3; }
.site-footer a:hover { color: var(--white); }
.footer-disclosure {
  border-top: 1px solid #454d41;
  padding-top: 1.6rem;
  font-size: 0.8rem;
  color: #8d958a;
  line-height: 1.6;
}
.footer-disclosure p { margin-bottom: 0.7rem; }

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Page hero (interior pages) ---------- */

.page-hero {
  padding: 4.5rem 0 3.5rem;
  text-align: center;
}
.page-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.2rem); margin-bottom: 1rem; }
.page-hero .lede { margin: 0 auto; }

/* ---------- Responsive ---------- */

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .cards, .steps, .pricing-grid, .testimonials { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .newsletter { grid-template-columns: 1fr; text-align: center; padding: 2.6rem 1.8rem; }
  .newsletter-action { text-align: center; }
}

@media (max-width: 680px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    padding: 1.2rem 4%;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .cards, .steps, .pricing-grid, .pricing-grid.two, .testimonials,
  .values, .team-grid, .contact-grid { grid-template-columns: 1fr; }
  .price-card.featured { order: -1; }
  .service-row { grid-template-columns: 1fr; }
  .service-row ul { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
  .hero { padding: 3.5rem 0 3rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
}
