/* =========================================================
   amfinanzas — Alonso Mena, Planificación financiera
   ========================================================= */

/* -------------------- Fuentes autoalojadas -------------------- */
/* Fuentes variables (subconjunto latino) servidas desde /assets/fonts.
   Inter cubre los pesos 400-600 y Cormorant Garamond los pesos 500-700. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/inter-latin-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-latin-var.woff2') format('woff2');
}

:root {
  color-scheme: light;
  --navy: #1c2a37;
  --navy-soft: #2e4155;
  --gold: #a6824c;
  --gold-soft: #c9a874;
  --cream: #faf7f2;
  --white: #ffffff;
  --ink: #22303d;
  --muted: #5c6b78;
  --border: #e6e0d6;

  --font-head: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1180px;
  --radius: 4px;
  --shadow: 0 12px 32px -18px rgba(28, 42, 55, 0.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--navy);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--muted); }

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

ul { padding: 0; margin: 0; list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--navy);
  color: var(--white);
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 16px; top: 16px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.9em;
}

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover { background: var(--navy-soft); box-shadow: var(--shadow); }

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

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

.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-wrap { white-space: normal; text-align: center; line-height: 1.3; }

/* -------------------- Header -------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 20px -12px rgba(28,42,55,0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  flex-shrink: 0;
}
.brand-logo { height: 60px; width: auto; flex-shrink: 0; }
.brand-name {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--navy);
}

.main-nav {
  display: flex;
  gap: 22px;
}
.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--gold);
  transition: right 0.2s ease;
}
.main-nav a:hover::after { right: 0; }

.btn-nav { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 24px 20px;
  border-top: 1px solid var(--border);
}
.mobile-nav a {
  padding: 12px 4px;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:last-child { border-bottom: none; margin-top: 8px; text-align: center; }
.mobile-nav.open { display: flex; }

/* -------------------- Hero -------------------- */
.hero { padding: 96px 0 100px; position: relative; overflow: hidden; }
.hero-decor {
  position: absolute;
  top: -40px;
  right: -140px;
  width: 560px;
  height: 560px;
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.hero-lead { font-size: 1.1rem; max-width: 50ch; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 18px;
}
.hero-note {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

/* -------------------- Value strip -------------------- */
.value-strip {
  background: var(--navy);
  padding: 48px 0;
}
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.value-item { color: var(--white); }
.value-icon {
  display: inline-flex;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border: 1px solid var(--gold-soft);
  border-radius: 50%;
  color: var(--gold-soft);
  margin-bottom: 14px;
}
.value-icon svg { width: 20px; height: 20px; }
.value-item .value-title {
  color: var(--white);
  font-size: 1.05rem;
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 6px;
}
.value-item p {
  color: rgba(255,255,255,0.7);
  font-size: 0.92rem;
  margin: 0;
}

/* -------------------- Sections -------------------- */
.section { padding: 96px 0; }
.section-alt { background: var(--white); }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head .section-lead { font-size: 1.05rem; }
.section-head h2 { margin-bottom: 0.4em; }

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 40px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.service-icon {
  display: inline-flex;
  width: 52px; height: 52px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--cream);
  color: var(--gold);
  margin-bottom: 20px;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card ul { margin-bottom: 22px; }
.service-card li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  color: var(--ink);
}
.service-card li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.card-link {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
}
.card-link:hover { color: var(--gold); }

/* Process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  counter-reset: step;
}
.process-step {
  padding: 28px 22px;
  border-left: 2px solid var(--gold);
}
.process-number {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 6px;
}
.process-step p { margin: 0; font-size: 0.95rem; }
.process-cta { text-align: center; margin-top: 56px; }

/* Principles (Cómo trabajo) */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
}
.principle {
  padding: 36px 30px;
  border-right: 1px solid var(--border);
}
.principle:last-child { border-right: none; }
.principle h3 { margin-bottom: 10px; }
.principle p { margin: 0; font-size: 0.95rem; }

/* Herramientas */
.tools-grid {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: 24px;
  margin-bottom: 32px;
}
.tools-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.tools-stack .tool-card { flex: 1; display: flex; flex-direction: column; }
.tool-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
  transition: border-color 0.2s ease;
}
.tool-card:hover { border-color: var(--gold); }
.tool-card p { flex-grow: 1; }
.tool-card-wide { display: flex; flex-direction: column; }
.tool-icon {
  display: inline-flex;
  flex-shrink: 0;
  width: 52px; height: 52px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--cream);
  color: var(--gold);
  margin-bottom: 20px;
}
.tool-icon svg { width: 26px; height: 26px; }
.tool-card-head {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}
.tool-card-head .tool-icon { margin-bottom: 0; }
.tool-card-head h3 { margin-bottom: 6px; }
.tool-card-head p { margin: 0; font-size: 0.92rem; }

.calc {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.calc-inputs {
  padding: 24px;
  border-right: 1px solid var(--border);
  background: var(--cream);
}
.calc-inputs label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 14px;
}
.calc-note {
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.5;
  margin: -6px 0 18px;
}
.calc-inputs input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.92rem;
  background: var(--white);
  color: var(--ink);
}
.calc-inputs input:focus { outline: none; border-color: var(--gold); }
.calc-results {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--muted);
}
.calc-row strong {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--navy);
}
.calc-row-loss { border-top: 1px solid var(--border); padding-top: 14px; }
.calc-row-loss strong { color: var(--gold); }
.bar-compare { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: flex; align-items: center; gap: 10px; font-size: 0.78rem; color: var(--muted); }
.bar-row span { width: 130px; flex-shrink: 0; }
.bar-track { flex-grow: 1; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; transition: width 0.25s ease; }
.bar-nominal { background: var(--navy); }
.bar-real { background: var(--gold); }

.tools-disclaimer {
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

/* About */
.about-quote {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 1.1em;
}
.about-inner {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 56px;
  align-items: center;
}
.about-photo img {
  border-radius: 8px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.about-role {
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-top: -0.6em;
}
.about-credential {
  font-size: 0.9rem;
  color: var(--navy);
  font-weight: 600;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 8px;
}

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 22px 4px;
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
}
.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 18px; height: 18px;
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background: var(--gold);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq-icon::before { width: 14px; height: 2px; }
.faq-icon::after { width: 2px; height: 14px; transition: transform 0.2s ease; }
.faq-question[aria-expanded="true"] .faq-icon::after { transform: translate(-50%, -50%) scaleY(0); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-answer p { padding: 0 4px 22px; margin: 0; }

/* Contact */
.cal-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 24px;
  max-width: 980px;
  margin: 0 auto 24px;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
}
.cal-cta p { margin: 0; color: var(--ink); font-weight: 500; }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 32px;
  align-items: start;
  max-width: 980px;
  margin: 0 auto;
}
.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
  width: 100%;
}
.contact-info {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
}
.contact-info h3 { margin-bottom: 18px; }
.contact-list { display: flex; flex-direction: column; gap: 16px; }
.contact-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--ink);
}
.contact-list li svg {
  flex-shrink: 0;
  width: 20px; height: 20px;
  margin-top: 2px;
  color: var(--gold);
}
.contact-list address { font-style: normal; }
.contact-list small { display: block; font-size: 0.8rem; color: var(--muted); margin-top: 2px; }
.contact-list a { color: var(--navy); font-weight: 500; }
.contact-list a:hover { color: var(--gold); }
.contact-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.btn-whatsapp {
  background: #25d366;
  color: var(--white);
  margin-top: 24px;
  width: 100%;
}
.btn-whatsapp:hover { background: #1ebe5a; box-shadow: var(--shadow); }
.btn-whatsapp svg { width: 20px; height: 20px; }
.social-links {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  align-items: center;
}
.social-links span { font-size: 0.85rem; color: var(--muted); margin-right: auto; }
.social-links a {
  display: inline-flex;
  width: 38px; height: 38px;
  align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--navy);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.social-links a:hover { border-color: var(--gold); color: var(--gold); }
.social-links a svg { width: 18px; height: 18px; }
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-row input:not([type="checkbox"]), .form-row textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--cream);
  color: var(--ink);
  resize: vertical;
}
.form-row input:not([type="checkbox"]):focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  width: auto;
  margin-top: 3px;
  accent-color: var(--gold);
}
.checkbox-label a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}
.checkbox-label a:hover { color: var(--gold); }
.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  margin: 12px 0 0;
}

/* -------------------- Footer -------------------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 32px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-main {
  flex: 1 1 420px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.footer-logo {
  height: 52px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.footer-brand span {
  font-family: var(--font-head);
  color: var(--white);
  font-size: 1.3rem;
}
.footer-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-nav a { font-size: 0.9rem; }
.footer-nav a:hover { color: var(--gold-soft); }

.footer-contact {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
}
.footer-contact address { font-style: normal; }
.footer-contact a:hover { color: var(--gold-soft); }

.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
}
.footer-legal p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 8px;
  max-width: 70ch;
}
.footer-legal p a {
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.3);
  text-underline-offset: 2px;
}
.footer-legal p a:hover { color: var(--gold-soft); text-decoration-color: var(--gold-soft); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 0.78rem;
  margin-bottom: 10px;
}
.footer-links a { color: rgba(255,255,255,0.7); }
.footer-links a:hover { color: var(--gold-soft); }
.footer-copy { font-size: 0.78rem; margin: 0; }

/* -------------------- Páginas interiores (legales / gracias) -------------------- */
.page-header { padding: 72px 0 40px; }
.page-header h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.page-header .page-updated { font-size: 0.85rem; margin: 0; }
.page-header .legal-body { padding-bottom: 0; }
.legal-body {
  max-width: 760px;
  margin: 0 auto;
  padding-bottom: 96px;
}
.legal-body h2 {
  font-size: 1.45rem;
  margin-top: 2em;
  margin-bottom: 0.5em;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { font-size: 0.97rem; color: var(--ink); }
.legal-body ul { margin: 0 0 1em; padding-left: 20px; list-style: disc; }
.legal-body li { margin-bottom: 6px; }
.legal-body a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.legal-body a:hover { color: var(--gold); }
.legal-body address { font-style: normal; }
.legal-body .legal-summary {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 2em;
}

.thanks {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
  padding-top: 96px;
  padding-bottom: 120px;
}
.thanks-icon {
  display: inline-flex;
  width: 72px; height: 72px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--gold);
  margin-bottom: 24px;
}
.thanks-icon svg { width: 34px; height: 34px; }
.thanks .hero-lead { margin-left: auto; margin-right: auto; }
.thanks .hero-actions { justify-content: center; }
.thanks .btn-whatsapp { width: auto; margin-top: 0; }

/* -------------------- Fade-in on scroll -------------------- */
/* Solo se oculta el contenido cuando hay JavaScript (clase .js en <html>);
   sin JS todo es visible desde el principio. */
.js .fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* -------------------- Responsive -------------------- */
/* Cabecera: el logo recortado es más ancho, así que el nombre de marca
   junto a él se oculta antes de que el menú deje de caber. */
@media (max-width: 1100px) {
  .brand-name { display: none; }
}

@media (max-width: 980px) {
  .main-nav, .btn-nav { display: none; }
  .nav-toggle { display: flex; }

  .hero-decor { opacity: 0.6; width: 400px; height: 400px; }

  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .principles-grid { grid-template-columns: 1fr; }
  .principle { border-right: none !important; border-bottom: 1px solid var(--border); }
  .principle:last-child { border-bottom: none; }
  .tools-grid { grid-template-columns: 1fr; }
  .calc { grid-template-columns: 1fr; }
  .calc-inputs { border-right: none; border-bottom: 1px solid var(--border); }
  .about-inner { grid-template-columns: 1fr; }
  .about-photo { max-width: 280px; margin: 0 auto; }
  .about-copy { text-align: center; }
  .about-credential { margin-left: auto; margin-right: auto; }

  .contact-grid { grid-template-columns: 1fr; max-width: 560px; }
  .cal-cta { max-width: 560px; }

  .footer-inner { flex-direction: column-reverse; align-items: flex-start; }
}

@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .value-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .process-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 64px; }
  .hero-decor { display: none; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .brand-name { display: none; }
  .tool-card-head { flex-direction: column; }
}
