/* =========================================================================
   Jesus M. Castillo, CPA — stylesheet
   Palette: deep navy + emerald accent + clean neutrals. Serif headings.
   ========================================================================= */

:root {
  --ink:        #0f2536;
  --ink-700:    #16344a;
  --ink-600:    #20455f;
  --slate:      #3c5870;
  --muted:      #566872;
  --muted-soft: #8597a0;
  --line:       #e4eaec;
  --mist:       #f4f7f7;
  --mist-2:     #eaf0f0;
  --paper:      #ffffff;

  --accent:     #1c8a6a;
  --accent-600: #16745a;
  --accent-700: #0f5c47;
  --accent-soft:#eaf5f1;
  --accent-glow: rgba(28, 138, 106, .3);

  --font-serif: "Lora", Georgia, "Times New Roman", serif;
  --font-body:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-sm: 9px; --r: 14px; --r-lg: 22px; --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(15,37,54,.06), 0 2px 6px rgba(15,37,54,.05);
  --shadow:    0 14px 40px -16px rgba(15,37,54,.22);
  --shadow-lg: 0 34px 64px -26px rgba(15,37,54,.4);

  --maxw: 1140px;
  --gutter: clamp(20px, 5vw, 52px);
  --header-h: 78px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body); color: var(--ink); background: var(--paper);
  line-height: 1.65; font-size: 17px; -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: #fff; }

h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 4.8vw, 3.7rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.35rem); }
p { color: var(--muted); }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(62px, 8.5vw, 116px); }
.section--mist { background: var(--mist); }
.section--ink { background: var(--ink); color: #d5e0e6; }
.section--tight { padding-block: clamp(46px, 6vw, 76px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-size: .78rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent-700);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); border-radius: 2px; }
.section--ink .eyebrow { color: var(--accent); }
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 58px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head p { margin-top: 15px; font-size: 1.07rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; font-family: var(--font-body); font-weight: 600; font-size: .97rem;
  border-radius: var(--r-pill); transition: transform .18s ease, box-shadow .25s ease, background .2s ease, color .2s ease;
  white-space: nowrap; line-height: 1;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -10px var(--accent-glow); }
.btn--primary:hover { background: var(--accent-600); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--ink); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--on-dark { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.3); }
.btn--on-dark:hover { box-shadow: inset 0 0 0 2px #fff; transform: translateY(-2px); }
.btn--lg { padding: 17px 32px; font-size: 1.03rem; }
.btn--block { width: 100%; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h); display: flex; align-items: center; transition: background .3s ease, box-shadow .3s ease; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; }
.site-header.scrolled { background: rgba(255,255,255,.94); backdrop-filter: saturate(160%) blur(12px); box-shadow: 0 1px 0 var(--line), var(--shadow-sm); }

.brand { display: flex; align-items: center; gap: 13px; flex-shrink: 0; }
.brand__mark {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 11px;
  background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-weight: 600; font-size: 1.04rem; letter-spacing: .02em;
  position: relative; overflow: hidden;
}
.brand__mark::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--accent); }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-serif); font-weight: 600; font-size: 1.16rem; color: #fff; transition: color .3s ease; }
.brand__tag { font-size: .6rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.72); margin-top: 3px; transition: color .3s ease; }
.scrolled .brand__name { color: var(--ink); }
.scrolled .brand__tag { color: var(--accent-700); }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a { font-size: .93rem; font-weight: 500; white-space: nowrap; color: rgba(255,255,255,.86); padding: 9px 11px; border-radius: var(--r-pill); transition: color .2s, background .2s; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.12); }
.scrolled .nav a { color: var(--ink-600); }
.scrolled .nav a:hover { color: var(--ink); background: var(--mist-2); }

.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.header-phone { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 1rem; color: #fff; transition: color .3s ease; }
.header-phone svg { width: 18px; height: 18px; color: var(--accent); }
.scrolled .header-phone { color: var(--ink); }

.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; align-items: center; justify-content: center; }
.nav-toggle span { position: relative; width: 22px; height: 2px; background: #fff; border-radius: 2px; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s; }
.nav-toggle span::before { top: -7px; } .nav-toggle span::after { top: 7px; }
.scrolled .nav-toggle span, .scrolled .nav-toggle span::before, .scrolled .nav-toggle span::after { background: var(--ink); }

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; color: #fff; padding-top: var(--header-h); isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(108deg, rgba(10,26,38,.95) 0%, rgba(10,26,38,.82) 42%, rgba(10,26,38,.45) 80%, rgba(10,26,38,.25) 100%); }
.hero__inner { padding-block: clamp(40px, 8vw, 86px); max-width: 720px; }
.hero .eyebrow { color: var(--accent); margin-bottom: 22px; }
.hero h1 { color: #fff; }
.hero h1 .accent { color: var(--accent); font-style: italic; }
.hero__sub { margin-top: 22px; font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: rgba(255,255,255,.85); max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 42px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.16); }
.hero__trust li { display: flex; align-items: center; gap: 10px; font-size: .92rem; font-weight: 500; color: rgba(255,255,255,.9); }
.hero__trust svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }
.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.scroll-cue span { width: 1px; height: 36px; background: linear-gradient(rgba(255,255,255,.7), transparent); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0%,100% { opacity: .2; transform: scaleY(.6); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } }

/* Split hero (portrait + text) */
.hero--split { min-height: 92vh; min-height: 92svh; background: linear-gradient(158deg, #0c1f2e 0%, var(--ink) 46%, #103140 100%); }
.hero__glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(58% 50% at 82% 16%, rgba(28,138,106,.22), transparent 70%); pointer-events: none; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 5vw, 72px); align-items: center; width: 100%; }
.hero--split .hero__inner { padding-block: clamp(30px, 5vw, 56px); }
.hero__portrait { position: relative; justify-self: center; max-width: 460px; width: 100%; }
.hero__portrait > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 22%; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.hero__portrait::before { content: ""; position: absolute; inset: auto -16px -16px auto; width: 140px; height: 140px; border: 3px solid var(--accent); border-radius: var(--r-lg); z-index: -1; }
.hero__portrait-tag { position: absolute; left: -18px; bottom: 26px; background: #fff; color: var(--ink); border-radius: var(--r); padding: 13px 20px; box-shadow: var(--shadow-lg); }
.hero__portrait-tag strong { font-family: var(--font-serif); display: block; font-size: 1rem; }
.hero__portrait-tag span { font-size: .78rem; color: var(--muted); }

/* Proof strip */
.proof-strip { background: var(--ink); color: #fff; }
.proof-strip .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; padding-block: 30px; }
.proof-item { display: flex; align-items: center; gap: 14px; }
.proof-item svg { width: 30px; height: 30px; color: var(--accent); flex-shrink: 0; }
.proof-item strong { font-family: var(--font-serif); font-weight: 600; font-size: 1.05rem; display: block; line-height: 1.2; }
.proof-item span { font-size: .85rem; color: rgba(255,255,255,.7); }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.svc-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px 30px; box-shadow: var(--shadow-sm); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; display: flex; flex-direction: column; }
.svc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.svc-card__icon { width: 56px; height: 56px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-700); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; }
.svc-card__icon svg { width: 28px; height: 28px; }
.svc-card h3 { margin-bottom: 10px; }
.svc-card p { font-size: .97rem; flex: 1; }
.svc-card ul { margin-top: 16px; display: grid; gap: 9px; }
.svc-card li { position: relative; padding-left: 26px; font-size: .92rem; color: var(--ink-600); }
.svc-card li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* About */
.about { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 6vw, 78px); align-items: center; }
.about__media { position: relative; }
.about__photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.about__media::before { content: ""; position: absolute; inset: auto auto -18px -18px; width: 130px; height: 130px; border: 3px solid var(--accent); border-radius: var(--r-lg); z-index: -1; }
.about__monogram { aspect-ratio: 1; border-radius: var(--r-lg); background: linear-gradient(150deg, var(--ink-700), var(--ink)); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.about__monogram::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(28,138,106,.22), transparent 60%); }
.about__monogram .mono { font-family: var(--font-serif); font-size: clamp(4rem, 11vw, 7rem); font-weight: 600; letter-spacing: .04em; }
.about__monogram .mono-sub { margin-top: 10px; font-size: .8rem; letter-spacing: .34em; text-transform: uppercase; color: var(--accent); }
.about__monogram .mono-rule { width: 64px; height: 3px; background: var(--accent); border-radius: 3px; margin: 20px 0; }
.about__badge { position: absolute; right: -16px; bottom: -20px; background: var(--accent); color: #fff; border-radius: var(--r); padding: 18px 22px; box-shadow: var(--shadow-lg); max-width: 210px; }
.about__badge strong { font-family: var(--font-serif); font-size: 1.02rem; display: block; }
.about__badge span { font-size: .84rem; opacity: .92; }
.about__copy .lead { font-size: 1.12rem; color: var(--ink-600); margin-top: 16px; }
.about__copy p + p { margin-top: 16px; }
.about__points { display: grid; gap: 14px; margin-top: 26px; }
.about__points li { display: flex; gap: 13px; align-items: flex-start; font-size: .98rem; color: var(--ink-600); }
.about__points svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }

/* Feature grid (why) */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 30px 26px; transition: transform .25s ease, box-shadow .25s ease; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature__ico { width: 50px; height: 50px; border-radius: 13px; background: var(--accent-soft); color: var(--accent-700); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.feature__ico svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature p { font-size: .94rem; }

/* Process */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { position: relative; padding-top: 14px; }
.step__num { font-family: var(--font-serif); font-weight: 600; font-size: 2.5rem; color: transparent; -webkit-text-stroke: 1px var(--accent); line-height: 1; margin-bottom: 14px; }
.section--ink .step h3 { color: #fff; }
.section--ink .step p { color: rgba(213,224,230,.72); }
.step h3 { font-size: 1.14rem; margin-bottom: 8px; }
.step p { font-size: .94rem; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 22px; right: -14px; width: 28px; height: 2px; background: rgba(28,138,106,.4); }

/* Houston band */
.local { position: relative; isolation: isolate; color: #fff; overflow: hidden; }
.local__bg { position: absolute; inset: 0; z-index: -2; }
.local__bg img { width: 100%; height: 100%; object-fit: cover; }
.local__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10,26,38,.94), rgba(10,26,38,.7)); }
.local .wrap { padding-block: clamp(56px, 8vw, 92px); }
.local h2 { color: #fff; max-width: 600px; }
.local p { color: rgba(255,255,255,.82); max-width: 560px; margin-top: 16px; font-size: 1.05rem; }
.local__btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 40px; }
.faq h3 { font-size: 1.1rem; margin-bottom: 8px; display: flex; gap: 10px; align-items: flex-start; }
.faq h3 svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.faq p { font-size: .96rem; padding-left: 30px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 5vw, 68px); align-items: start; }
.contact__info { display: grid; gap: 18px; margin-top: 30px; }
.contact-row { display: flex; gap: 16px; align-items: flex-start; }
.contact-row__ico { flex-shrink: 0; width: 48px; height: 48px; border-radius: 13px; background: var(--accent-soft); color: var(--accent-700); display: flex; align-items: center; justify-content: center; }
.contact-row__ico svg { width: 23px; height: 23px; }
.contact-row strong { font-family: var(--font-serif); display: block; font-size: 1.02rem; }
.contact-row a, .contact-row span { color: var(--muted); }
.contact-row a:hover { color: var(--accent-700); }

.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-body); font-size: .85rem; font-weight: 600; color: var(--ink-600); }
.field input, .field select, .field textarea { font: inherit; font-size: .98rem; color: var(--ink); padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--mist); transition: border-color .2s, background .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px var(--accent-glow); }
.form-note { font-size: .82rem; color: var(--muted-soft); margin-top: 14px; text-align: center; }
.form-status { font-size: .92rem; font-weight: 600; padding: 12px 16px; border-radius: var(--r-sm); margin-top: 4px; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: var(--accent-soft); color: var(--accent-700); border: 1px solid #cfe9e0; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(213,224,230,.72); }
.site-footer .wrap { padding-block: clamp(50px, 7vw, 76px) 0; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 40px; padding-bottom: 46px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .brand__name, .footer-brand .brand__tag { color: #fff; }
.footer-brand .brand__tag { color: var(--accent); }
.footer-brand p { margin-top: 18px; font-size: .94rem; color: rgba(213,224,230,.6); max-width: 340px; }
.footer-col h4 { font-family: var(--font-serif); font-size: 1rem; color: #fff; margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a, .footer-contact li { font-size: .93rem; color: rgba(213,224,230,.7); transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.footer-contact li { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 12px; }
.footer-contact svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 24px; font-size: .84rem; color: rgba(213,224,230,.5); }
.footer-disclaimer { font-size: .78rem; color: rgba(213,224,230,.4); padding-bottom: 24px; max-width: 760px; }

/* Reveal */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.6,.2,1), transform .7s cubic-bezier(.2,.6,.2,1); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *,*::before,*::after { animation-duration:.001ms!important; transition-duration:.001ms!important; } [data-reveal]{opacity:1;transform:none;} }

/* Responsive */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2)::after { display: none; }
}
/* Header collapses to a hamburger a bit earlier than the page layout, so the
   full nav + click-to-call phone never crowds or clips at the right edge. */
@media (max-width: 1080px) {
  .nav, .header-phone { display: none; }
  .nav-toggle { display: flex; }
  .nav.open { display: flex; flex-direction: column; align-items: stretch; gap: 4px; position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff; padding: 16px var(--gutter) 24px; box-shadow: var(--shadow); border-top: 1px solid var(--line); }
  .nav.open a { color: var(--ink-600); padding: 14px 16px; border-radius: 12px; font-size: 1.05rem; }
}
@media (max-width: 980px) {
  .about, .contact { grid-template-columns: 1fr; }
  .about__media { max-width: 380px; margin-inline: auto; }
  .hero--split { min-height: 0; }
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .hero__portrait { order: -1; max-width: 320px; }
  .hero__portrait::before { display: none; }
  .hero__portrait-tag { left: 12px; }
  .services-grid, .faq-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  body { font-size: 16px; }
}
@media (max-width: 560px) {
  .feature-grid, .process { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .proof-strip .wrap { gap: 18px; }
  .proof-item { width: calc(50% - 14px); }
}
