/* Lally Wealth Management — shared site stylesheet
   Transcribed 1:1 from the real source design tokens (tailwind.config.ts + src/index.css)
   so every page matches the live site exactly. */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --background: 42 33% 96%;
  --foreground: 215 45% 16%;

  --card: 42 40% 98%;
  --card-foreground: 215 45% 16%;

  --primary: 215 55% 18%;
  --primary-foreground: 42 33% 96%;

  --secondary: 95 30% 38%;
  --secondary-foreground: 42 33% 96%;

  --muted: 42 25% 90%;
  --muted-foreground: 215 20% 38%;

  --accent: 175 60% 22%;
  --accent-foreground: 42 33% 96%;

  --border: 42 20% 86%;

  --radius: 1.25rem;

  --brand-cream-deep: 38 35% 92%;

  --shadow-soft: 0 20px 60px -30px hsl(215 55% 18% / 0.25);
  --shadow-card: 0 1px 0 hsl(42 20% 86%), 0 30px 60px -40px hsl(215 55% 18% / 0.18);

  --transition-base: 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}

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

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}

a { color: inherit; text-decoration: none; }

.font-serif-display { font-family: 'Cormorant Garamond', 'Times New Roman', serif; }

.container-tight {
  margin: 0 auto;
  width: 100%;
  max-width: 72rem; /* max-w-6xl */
  padding: 0 1.5rem;
}
@media (min-width: 1024px) {
  .container-tight { padding: 0 2rem; }
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  border: 1px solid hsl(var(--accent));
  background: hsl(var(--accent));
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: hsl(var(--accent-foreground));
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: hsl(var(--background) / 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid hsl(var(--border) / 0.6);
}

.site-nav {
  display: flex;
  height: 6rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-nav .logo img { height: 3.5rem; width: auto; object-fit: contain; }

.nav-links {
  display: none;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
}
@media (min-width: 1024px) { .nav-links { display: flex; } }

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground) / 0.8);
  transition: color var(--transition-base);
}
.nav-links a:hover, .nav-links a.active { color: hsl(var(--accent)); }

.nav-services { position: relative; }
.nav-services > button {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: none;
  border: none;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground) / 0.8);
  cursor: pointer;
}
.nav-services > button:hover { color: hsl(var(--accent)); }
.nav-services-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 1rem;
  width: 18rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 0.5rem;
  display: none;
  flex-direction: column;
}
.nav-services:hover .nav-services-menu,
.nav-services:focus-within .nav-services-menu { display: flex; }
.nav-services-menu a {
  border-radius: 0.5rem;
  padding: 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: hsl(var(--primary));
}
.nav-services-menu a:hover { background: hsl(var(--accent) / 0.1); }
.nav-services-menu .view-all {
  display: flex; align-items: center; justify-content: space-between;
  color: hsl(var(--accent));
}
.nav-services-menu hr { border: none; border-top: 1px solid hsl(var(--border)); margin: 0.5rem 0; }

.nav-right { display: none; align-items: center; gap: 1rem; }
@media (min-width: 1024px) { .nav-right { display: flex; } }
.nav-secure {
  display: inline-flex; align-items: center; gap: 0.375rem;
  font-size: 0.875rem; font-weight: 500; color: hsl(var(--foreground) / 0.8);
}
.nav-secure:hover { color: hsl(var(--accent)); }

/* ---------- Mobile nav toggle + menu ---------- */
.nav-toggle {
  display: flex; align-items: center; justify-content: center;
  height: 2.5rem; width: 2.5rem; flex: none;
  border-radius: 9999px; border: 1px solid hsl(var(--border));
  background: hsl(var(--background)); color: hsl(var(--foreground));
  cursor: pointer; padding: 0;
}
@media (min-width: 1024px) { .nav-toggle { display: none; } }
.nav-toggle .icon-close { display: none; }
.nav-toggle.open .icon-menu { display: none; }
.nav-toggle.open .icon-close { display: block; }

.mobile-menu {
  display: none;
  position: fixed;
  top: 6rem; left: 0; right: 0; bottom: 0;
  z-index: 49;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem 1.5rem 3rem;
  background: hsl(var(--background));
  border-top: 1px solid hsl(var(--border));
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu > a:not(.btn) {
  font-size: 1.0625rem; font-weight: 500; color: hsl(var(--foreground) / 0.85);
}
.mobile-menu > a:not(.btn):hover, .mobile-menu > a.active { color: hsl(var(--accent)); }
.mobile-services {
  display: flex; flex-direction: column; gap: 1rem;
  padding-left: 1rem; border-left: 1px solid hsl(var(--border));
}
.mobile-services span {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: hsl(var(--muted-foreground));
}
.mobile-services a { font-size: 1rem; color: hsl(var(--foreground) / 0.8); }
.mobile-secure {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 1.0625rem; font-weight: 500; color: hsl(var(--foreground) / 0.85);
}
.mobile-menu .btn { align-self: flex-start; }
@media (min-width: 1024px) { .mobile-menu, .nav-toggle { display: none !important; } }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  white-space: nowrap; border-radius: 9999px; font-size: 0.875rem; font-weight: 500;
  transition: background-color var(--transition-base), color var(--transition-base);
  border: none; cursor: pointer;
}
.btn-pill { height: 2.5rem; padding: 0 1.25rem; }
.btn-pill-lg { height: 3rem; padding: 0 1.75rem; font-size: 0.95rem; }
.btn-hero { background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); box-shadow: var(--shadow-soft); }
.btn-hero:hover { background: hsl(var(--accent) / 0.9); }
.btn-ghostlink { border: 1px solid hsl(var(--accent)); background: transparent; color: hsl(var(--accent)); }
.btn-ghostlink:hover { background: hsl(var(--accent) / 0.1); }

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

.site-footer { border-top: 1px solid hsl(var(--border)); background: hsl(var(--brand-cream-deep)); }
.footer-grid { display: grid; gap: 3rem; padding: 4rem 0; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(12, 1fr); } }
.footer-col-5 { grid-column: span 5; }
.footer-col-4 { grid-column: span 4; }
.footer-col-3 { grid-column: span 3; }
.site-footer img { height: 3rem; width: auto; }
.site-footer p { color: hsl(var(--muted-foreground)); }
.site-footer h4 { font-size: 1.125rem; color: hsl(var(--primary)); }
.site-footer ul { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.site-footer ul a, .footer-tel { font-size: 0.875rem; color: hsl(var(--muted-foreground)); }
.site-footer ul a:hover, .footer-tel:hover { color: hsl(var(--accent)); }
.footer-tel { display: inline-block; margin-top: 0.75rem; color: hsl(var(--accent)); }
.footer-tel:hover { text-decoration: underline; }
.footer-legal {
  margin-top: 3.5rem; border-top: 1px solid hsl(var(--border)); padding-top: 2rem;
  font-size: 0.75rem; line-height: 1.6; color: hsl(var(--muted-foreground));
}
.footer-legal p { margin: 0 0 1rem; }
.footer-legal a { text-decoration: underline; }
.footer-legal a:hover { color: hsl(var(--accent)); }
.footer-copyright { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; padding-top: 0.5rem; }

/* ---------- Generic layout helpers ---------- */

main { min-height: 100vh; background: hsl(var(--background)); }
/* Tightened per client review (2026-09-14): less dead space between blocks site-wide. */
.section-pad { padding: 4rem 0; }
@media (min-width: 768px) { .section-pad { padding: 5.5rem 0; } }
@media (min-width: 768px) { .section-pad-lg { padding: 5rem 0; } }
.grid-12 { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 768px) { .grid-12 { grid-template-columns: repeat(12, 1fr); } }
.grid-12-wide { gap: 3rem; }
@media (min-width: 768px) { .col-5 { grid-column: span 5; } }
@media (min-width: 768px) { .col-7 { grid-column: span 7; } }
@media (min-width: 768px) { .col-align-top { padding-top: 2.5rem; } }
.section-pad-btm { padding: 3.5rem 0; }
@media (min-width: 768px) { .section-pad-btm { padding: 5rem 0; } }
.section-pad-sm { padding: 3rem 0; }
@media (min-width: 768px) { .section-pad-sm { padding: 4rem 0; } }
.pb-loose { padding-bottom: 2.5rem; }
@media (min-width: 768px) { .pb-loose { padding-bottom: 4rem; } }
.section-pad-btm-sm { padding: 3rem 0; }
@media (min-width: 768px) { .section-pad-btm-sm { padding: 4.5rem 0; } }
.text-muted { color: hsl(var(--muted-foreground)); }
.text-accent { color: hsl(var(--accent)); }
.card {
  border-radius: 1.5rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
}

.pill-muted {
  display: inline-flex; align-items: center; border-radius: 9999px;
  border: 1px solid hsl(var(--border)); background: hsl(var(--card) / 0.6);
  padding: 0.25rem 0.75rem; font-size: 0.75rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.18em; color: hsl(var(--muted-foreground));
}

em.accent { font-style: italic; color: hsl(var(--accent)); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 8rem 0 3rem; }
@media (min-width: 768px) { .hero { padding-top: 10rem; padding-bottom: 5rem; } }
.hero-inner { text-align: center; }
.hero h1 { margin-top: 2rem; font-size: 2.75rem; line-height: 1.08; color: hsl(var(--primary)); text-wrap: balance; }
@media (min-width: 768px) { .hero h1 { font-size: 4.5rem; } }
@media (min-width: 1024px) { .hero h1 { font-size: 5.5rem; } }
.hero-lead { max-width: 42rem; margin: 2rem auto 0; font-size: 1.125rem; color: hsl(var(--muted-foreground)); }
@media (min-width: 768px) { .hero-lead { font-size: 1.25rem; } }
.hero-actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem; }
.hero-image-wrap { position: relative; margin-top: 4rem; }
@media (min-width: 768px) { .hero-image-wrap { margin-top: 6rem; } }
.hero-image { position: relative; overflow: hidden; border-radius: 2rem; box-shadow: var(--shadow-soft); }
.hero-image img { width: 100%; height: 420px; object-fit: cover; }
@media (min-width: 768px) { .hero-image img { height: 560px; } }
.hero-image::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 10rem;
  background: linear-gradient(to top, hsl(var(--background)), transparent);
}

/* ---------- Approach stats (home) ---------- */
.stat-grid { margin-top: 2.5rem; display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .stat-grid { grid-template-columns: repeat(3, 1fr); } }
.stat-card { border-radius: 1rem; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); padding: 1.5rem; min-width: 0; }
.stat-card .k { font-family: 'Cormorant Garamond', serif; font-size: 1.75rem; color: hsl(var(--accent)); line-height: 1.2; }
@media (min-width: 1280px) { .stat-card .k { font-size: 2.25rem; } }
.stat-card .v { margin-top: 0.5rem; font-size: 0.875rem; color: hsl(var(--muted-foreground)); }

/* ---------- Services grid (home) ---------- */
.services-grid { margin-top: 2.5rem; display: grid; gap: 1px; overflow: hidden; border-radius: 1.5rem; background: hsl(var(--border)); }
@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.service-tile { background: hsl(var(--card)); padding: 2rem; transition: background-color var(--transition-base); }
@media (min-width: 768px) { .service-tile { padding: 2.5rem; } }
.service-tile:hover { background: hsl(var(--background)); }
.service-tile svg { color: hsl(var(--accent)); }
.service-tile h3 { margin-top: 1.5rem; font-size: 1.5rem; color: hsl(var(--primary)); }
.service-tile p { margin-top: 0.75rem; color: hsl(var(--muted-foreground)); }

/* ---------- Income card (home + income page) ---------- */
.income-card { border-radius: 1.5rem; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); box-shadow: var(--shadow-card); padding: 2rem; }
@media (min-width: 768px) { .income-card { padding: 2.5rem; } }
.income-card .label { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.2em; color: hsl(var(--primary)); }
.income-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.75rem; }
@media (min-width: 640px) { .income-list { grid-template-columns: 1fr 1fr; } }
.income-list li { display: flex; align-items: flex-start; gap: 0.75rem; color: hsl(var(--foreground) / 0.85); font-size: 0.95rem; }
.income-list svg { flex: none; margin-top: 0.15rem; color: hsl(var(--accent)); }
.income-quote { margin-top: 2rem; border-top: 1px solid hsl(var(--border)); padding-top: 1.5rem; font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; font-style: italic; color: hsl(var(--primary)); }

/* ---------- Process (dark section) ---------- */
.section-dark { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.pill-dark { border-color: hsl(var(--primary-foreground) / 0.2); background: hsl(var(--primary-foreground) / 0.1); color: hsl(var(--primary-foreground) / 0.8); }
.process-grid { margin-top: 3rem; display: grid; gap: 3rem; }
@media (min-width: 768px) { .process-grid { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }
.process-step { border-top: 1px solid hsl(var(--primary-foreground) / 0.2); padding-top: 2rem; }
.process-step .n { font-family: 'Cormorant Garamond', serif; font-size: 2.25rem; color: hsl(var(--brand-cream-deep) / 0.7); }
.process-step h3 { margin-top: 1rem; font-size: 1.875rem; }
.process-step p { margin-top: 1.25rem; line-height: 1.7; color: hsl(var(--primary-foreground) / 0.8); }

/* ---------- Contact (home) ---------- */
.benefit-grid { margin-top: 1.5rem; display: grid; gap: 1.25rem; list-style: none; padding: 0; }
@media (min-width: 768px) { .benefit-grid { grid-template-columns: 1fr 1fr; } }
.benefit-grid li { display: flex; align-items: flex-start; gap: 1rem; }
.benefit-icon { margin-top: 0.25rem; flex: none; display: flex; height: 1.75rem; width: 1.75rem; align-items: center; justify-content: center; border-radius: 9999px; background: hsl(var(--accent) / 0.1); color: hsl(var(--accent)); }
.benefit-grid .t { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; color: hsl(var(--primary)); }
.benefit-grid p { margin: 0.25rem 0 0; color: hsl(var(--muted-foreground)); line-height: 1.6; }
.eyebrow-label { font-family: 'Inter', sans-serif; font-size: 1.0625rem; font-weight: 700; letter-spacing: 0.01em; color: hsl(var(--primary)); }
@media (min-width: 768px) { .eyebrow-label { font-size: 1.1875rem; } }

/* ---------- Legal pages ---------- */
.legal-hero { padding: 9rem 0 3rem; }
@media (min-width: 768px) { .legal-hero { padding-top: 11rem; } }
.legal-h1 { margin-top: 1.5rem; font-size: 2.5rem; line-height: 1.05; color: hsl(var(--primary)); }
@media (min-width: 768px) { .legal-h1 { font-size: 3.75rem; } }
.legal-sub { margin-top: 2rem; max-width: 42rem; font-size: 1.125rem; line-height: 1.7; color: hsl(var(--foreground) / 0.8); }
@media (min-width: 768px) { .legal-sub { font-size: 1.25rem; } }
.legal-body { max-width: 48rem; padding-bottom: 6rem; color: hsl(var(--foreground) / 0.8); }
.legal-notice { border-radius: 0.75rem; border: 1px solid hsl(var(--border)); background: hsl(var(--brand-cream-deep)); padding: 1.5rem; }
@media (min-width: 768px) { .legal-notice { padding: 2rem; } }
.legal-notice h2 { font-size: 1.5rem; color: hsl(var(--primary)); }
.legal-notice p { margin-top: 1rem; font-size: 1rem; line-height: 1.7; }
.legal-body .section { margin-top: 3rem; }
.legal-body h2 { font-size: 1.5rem; color: hsl(var(--primary)); }
.legal-body h3 { margin-top: 1.5rem; font-family: 'Inter', sans-serif; font-weight: 700; font-size: 1.125rem; color: hsl(var(--primary)); }
.legal-body p { margin-top: 1rem; font-size: 1rem; line-height: 1.7; }
.legal-body ul { margin-top: 0.5rem; padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.legal-body li { font-size: 1rem; line-height: 1.6; }
.legal-contact { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.25rem; font-size: 1rem; }
.legal-contact .name { font-weight: 700; color: hsl(var(--primary)); }

/* ---------- Lead-magnet / funnel pages ---------- */
.guide-hero { padding: 9rem 0 3rem; }
@media (min-width: 768px) { .guide-hero { padding-top: 11rem; } }
.guide-title { font-size: 2.25rem; line-height: 1.05; text-align: center; color: hsl(var(--primary)); }
@media (min-width: 768px) { .guide-title { font-size: 3.75rem; } }
.guide-title-sm { max-width: 56rem; margin: 0 auto; font-size: 1.875rem; line-height: 1.2; text-align: center; color: hsl(var(--secondary)); }
@media (min-width: 768px) { .guide-title-sm { font-size: 3rem; } }
.guide-lead { max-width: 42rem; margin: 1.5rem auto 0; text-align: center; font-size: 1.125rem; line-height: 1.7; color: hsl(var(--foreground) / 0.8); }
@media (min-width: 768px) { .guide-lead { font-size: 1.25rem; } }
.guide-split { margin-top: 3rem; display: grid; gap: 2.5rem; align-items: stretch; }
@media (min-width: 1024px) { .guide-split { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.guide-form-card { overflow: hidden; border-radius: 1rem; background: white; box-shadow: var(--shadow-card); }
.guide-form-card iframe { display: block; width: 100%; min-height: 580px; border: 0; }
.guide-cover { display: flex; align-items: center; justify-content: center; padding: 1rem 0; }
.guide-cover img { width: 100%; max-width: 24rem; border-radius: 0.5rem; filter: drop-shadow(0 25px 25px rgb(0 0 0 / 0.15)); }
.embed-card { overflow: hidden; border-radius: 1rem; background: white; box-shadow: var(--shadow-card); padding: 1rem; max-width: 42rem; margin: 0 auto; }
@media (min-width: 768px) { .embed-card { padding: 1.5rem; } }
.btn-solid {
  display: inline-flex; align-items: center; justify-content: center;
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
  padding: 1rem 2rem; font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.18em;
  transition: opacity var(--transition-base);
}
.btn-solid:hover { opacity: 0.9; }
.tax-disclaimer { max-width: 42rem; margin: 0 auto; text-align: center; font-size: 0.875rem; line-height: 1.6; color: hsl(var(--foreground) / 0.5); }
.thankyou-title { font-size: 1.875rem; line-height: 1.1; color: hsl(var(--primary)); }
@media (min-width: 768px) { .thankyou-title { font-size: 3rem; } }
.thankyou-lead { margin-top: 1.5rem; max-width: 42rem; font-size: 1.125rem; line-height: 1.7; color: hsl(var(--foreground) / 0.7); }
.whats-inside { margin-top: 3rem; max-width: 42rem; border-radius: 1.5rem; border: 1px solid hsl(var(--border)); background: white; box-shadow: var(--shadow-card); padding: 2rem; }
.whats-inside h2 { font-size: 1.5rem; color: hsl(var(--secondary)); }
.whats-inside ul { list-style: none; margin: 1.25rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.whats-inside li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.875rem; line-height: 1.5; color: hsl(var(--foreground) / 0.75); }
.whats-inside li .check { flex: none; color: hsl(var(--accent)); }
