/* Esparza IT — static site styles. Dark navy/blue throughout, with one light About panel. */

:root {
  --ink: #050d16;
  --navy: #0b1b2b;
  --surface: #10283d;
  --line: #1d3447;
  --line-strong: #2f4f69;
  --text: #f5f8fc;
  --muted: #a9bbcc;
  --blue: #009fe8;
  --blue-hover: #45c4ff;
  --cyan: #00c8e5;
  --light: #edf3f8;
  --light-ink: #10243a;
  --light-muted: #44596e;
  --light-accent: #06699a;
  --max: 1200px;
  --gutter: 56px;
  --font: "Avenir Next", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(1.75rem, 8.4vw, 3.25rem); font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 650; letter-spacing: -0.03em; }
h3 { font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.015em; }

.container { width: calc(100% - 2 * var(--gutter)); max-width: var(--max); margin-inline: auto; }
.section-pad { padding-block: 104px; }
.accent { color: var(--blue); }
.eyebrow { color: var(--blue); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.17em; line-height: 1.5; text-transform: uppercase; }
.svg-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 12px 20px; background: var(--blue); color: var(--ink); font-weight: 700; border-radius: 4px; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; border-radius: 3px; }

/* Buttons and links */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 50px; padding: 13px 22px;
  border: 1px solid transparent; border-radius: 6px;
  font-size: 0.9375rem; font-weight: 700; line-height: 1.3;
  transition: background-color .2s, box-shadow .2s, transform .2s;
}
.button svg, .text-link svg, .service-link svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform .2s; }
.button-primary { background: var(--blue); color: #03111d; box-shadow: 0 8px 28px rgba(0, 159, 232, .18); }
.button-primary:hover { background: var(--blue-hover); box-shadow: 0 10px 32px rgba(0, 159, 232, .3); }
.button:hover svg, .text-link:hover svg, .service-link:hover svg { transform: translateX(3px); }
.text-link {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); font-size: 0.9375rem; font-weight: 600;
  min-height: 44px;
  text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 6px;
}
.text-link svg { color: var(--blue); }
.text-link:hover { color: var(--blue-hover); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(5, 13, 22, .92); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; height: 80px; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 1.25rem; font-weight: 700; letter-spacing: 0.1em; line-height: 1; white-space: nowrap; }
.brand-it { margin-left: 0.3em; color: var(--blue); }
.brand-symbol { display: flex; flex-direction: column; justify-content: space-between; width: 28px; height: 28px; transform: skew(-18deg); }
.brand-symbol i { display: block; height: 6px; background: linear-gradient(100deg, #1bc9f6, #0a84d6); }
.brand-symbol i:nth-child(2) { width: 74%; }
.brand-symbol i:nth-child(3) { width: 90%; }
.main-nav { display: flex; align-items: center; gap: 36px; font-size: 0.9375rem; font-weight: 500; }
.main-nav > a:not(.nav-cta) { color: #c6d2de; transition: color .2s; }
.main-nav > a:not(.nav-cta):hover { color: var(--blue-hover); }
.nav-cta { min-height: 44px; padding: 10px 18px; margin-left: 12px; font-size: 0.875rem; }
.menu-toggle { display: none; }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(ellipse 60% 80% at 78% 38%, #0b2a45 0%, #081828 38%, var(--ink) 72%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: var(--line); }
.hero-art { position: absolute; top: 50%; right: max(-40px, calc((100vw - var(--max)) / 2 - 90px)); width: min(52vw, 700px); transform: translateY(-56%); pointer-events: none; }
.hero-art img { width: 100%; height: auto; }
.hero-layout { position: relative; display: flex; align-items: center; min-height: 560px; padding-block: 88px 72px; }
.hero-copy { position: relative; z-index: 1; max-width: 600px; }
.hero-copy .eyebrow { margin-bottom: 22px; }
.hero h1 span { display: block; }
.hero-intro { max-width: 520px; margin-top: 24px; color: #c3d0dd; font-size: 1.125rem; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; margin-top: 34px; }
.confidence-strip { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.3fr 1fr; padding-block: 28px 30px; border-top: 1px solid var(--line); }
.confidence-strip li { display: flex; flex-direction: column; gap: 2px; padding-left: 36px; border-left: 1px solid var(--line); }
.confidence-strip li:first-child { padding-left: 0; border-left: 0; }
.confidence-strip strong { font-size: 1rem; font-weight: 600; }
.confidence-strip span { color: var(--muted); font-size: 0.8125rem; }

/* Services */
.services { background: var(--navy); }
.services-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: 72px; align-items: start; }
.services-intro { position: sticky; top: 128px; }
.services-intro .eyebrow { margin-bottom: 18px; }
.services-intro > p:not(.eyebrow) { margin-top: 22px; color: var(--muted); font-size: 1rem; line-height: 1.75; }
.services-intro .text-link { margin-top: 28px; }
.services-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.service { display: flex; flex-direction: column; padding: 34px 0 20px; border-bottom: 1px solid var(--line); }
.service:nth-child(odd):not(.service-secondary) { padding-right: 36px; border-right: 1px solid var(--line); }
.service:nth-child(even) { padding-left: 36px; }
.service-icon { width: 36px; height: 36px; margin-bottom: 20px; color: var(--blue); stroke-width: 1.5; }
.service h3 + p { margin-top: 10px; color: var(--muted); font-size: 0.9375rem; line-height: 1.65; }
.service ul { display: grid; gap: 8px; margin: 18px 0 14px; color: #d3dde7; font-size: 0.875rem; line-height: 1.55; }
.service li { position: relative; padding-left: 16px; }
.service li::before { content: ""; position: absolute; top: 0.6em; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }
.service-link { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; min-height: 44px; margin-top: auto; color: #8fdcff; font-size: 0.875rem; font-weight: 600; }
.service-link:hover { color: #fff; }
.service-secondary { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 22px; padding: 26px 0; border-bottom: 0; }
.service-secondary .service-icon { margin: 0; flex-shrink: 0; color: #6f9dbd; }
.service-secondary > div { flex: 1; min-width: 0; }
.service-secondary h3 { font-size: 1.0625rem; }
.service-secondary .service-link { align-self: center; margin-top: 0; white-space: nowrap; }
.service-tag { margin-bottom: 6px; color: #8aa3b9; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }

/* About — the one light panel */
.about { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); background: var(--light); color: var(--light-ink); }
.about-visual { position: relative; display: grid; place-items: center; min-height: 480px; overflow: hidden; background: radial-gradient(ellipse at 20% 100%, #12405f, transparent 62%), #0a1a2a; }
.about-grid { position: absolute; inset: -20%; background-image: linear-gradient(rgba(112, 160, 196, .13) 1px, transparent 1px), linear-gradient(90deg, rgba(112, 160, 196, .13) 1px, transparent 1px); background-size: 44px 44px; transform: rotate(-16deg); }
.identity-card { position: relative; width: min(300px, calc(100% - 48px)); padding: 32px 30px 30px; background: linear-gradient(135deg, #163b56, #0a1c2e); border: 1px solid #44708e; border-radius: 10px; box-shadow: 18px 26px 44px rgba(2, 10, 20, .5); color: var(--text); transform: rotate(-4deg); }
.profile-monogram { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border: 1px solid #44708e; border-radius: 50%; background: linear-gradient(140deg, #1b405b, #15314a); color: #d5f4ff; font-size: 1.5rem; letter-spacing: -0.04em; }
.profile-dot { position: absolute; right: 0; bottom: 0; width: 13px; height: 13px; border: 3px solid #123049; border-radius: 50%; background: var(--blue); }
.profile-name { margin-top: 18px; font-size: 1.4375rem; font-weight: 600; letter-spacing: -0.02em; }
.profile-role { margin-top: 4px; color: #9cc0d8; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.profile-rule { height: 1px; margin-block: 20px; background: #2b4a61; }
.profile-statement { font-size: 1.0625rem; line-height: 1.5; }
.about-copy { align-self: center; max-width: calc(var(--max) * .55 + var(--gutter)); padding: 96px var(--gutter) 96px 72px; }
.about-copy .eyebrow { margin-bottom: 18px; color: var(--light-accent); }
.about-copy .accent { color: var(--light-accent); }
.about-copy > p:not(.eyebrow) { margin-top: 20px; color: var(--light-muted); font-size: 1rem; line-height: 1.75; }
.about-copy h2 + p { margin-top: 26px; }
.process { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin-top: 32px; padding-top: 28px; border-top: 1px solid #cbd9e5; font-size: 0.9375rem; font-weight: 600; }
.process li { display: flex; align-items: center; gap: 12px; }
.process svg { flex-shrink: 0; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--light-accent); color: #fff; stroke-width: 2.6; }
.about :focus-visible { outline-color: var(--light-accent); }

/* Contact */
.contact { position: relative; background: radial-gradient(ellipse at 0 100%, #0d3552 0, transparent 58%), #07131f; }
.contact-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 96px; align-items: center; }
.contact-copy .eyebrow { margin-bottom: 18px; }
.contact-copy h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
.contact-copy > p:not(.eyebrow) { max-width: 420px; margin-top: 22px; color: #b9c9d8; font-size: 1.0625rem; line-height: 1.75; }
.contact-signature { display: flex; align-items: center; gap: 14px; margin-top: 36px; }
.small-avatar { display: grid; place-items: center; flex-shrink: 0; width: 46px; height: 46px; border: 1px solid #3b5268; border-radius: 50%; background: #112538; color: #b9eaff; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.03em; }
.contact-signature > span:last-child { display: flex; flex-direction: column; min-width: 0; line-height: 1.5; }
.contact-signature strong { color: #e4eef7; font-size: 0.9375rem; font-weight: 600; }
.contact-signature a { padding-block: 6px; color: #8fdcff; font-size: 0.9375rem; overflow-wrap: anywhere; text-decoration: underline; text-decoration-color: rgba(143, 220, 255, .45); text-underline-offset: 4px; }
.contact-signature a:hover { color: #fff; }
.project-panel { padding: 34px; background: linear-gradient(150deg, #10283d, #0c1f31); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: 0 24px 60px rgba(1, 8, 16, .45); }
label { display: block; margin-bottom: 8px; color: #dbe6ef; font-size: 0.875rem; font-weight: 600; }
input, select, textarea { width: 100%; padding: 12px 14px; background: #081726; border: 1px solid #7390aa; border-radius: 6px; color: var(--text); font-size: 1rem; line-height: 1.5; transition: border-color .2s; }
input:hover, select:hover, textarea:hover { border-color: #a3bdd3; }
input { min-height: 48px; color-scheme: dark; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.field-row > div { min-width: 0; }
.field-single { margin-bottom: 20px; }
.optional { color: #a3b8cb; font-weight: 400; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Spam trap: off-screen for people, still present for scripts that fill every field. */
.extra-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.button[disabled] { opacity: .65; cursor: progress; }
a.small-button { display: inline-flex; align-items: center; text-decoration: none; }
a.small-button[hidden] { display: none; }
select { min-height: 48px; margin-bottom: 20px; color-scheme: dark; }
textarea { min-height: 120px; max-height: 360px; resize: vertical; }
textarea::placeholder { color: #8ea3b8; opacity: 1; }
.form-meta { display: flex; justify-content: space-between; gap: 12px; margin: 8px 0 22px; color: #a3b8cb; font-size: 0.8125rem; }
#character-count { white-space: nowrap; font-variant-numeric: tabular-nums; }
.full-width { width: 100%; justify-content: space-between; }
.contact-note { margin-top: 14px; color: #a7bace; font-size: 0.8125rem; line-height: 1.6; }
.brief-result { margin-top: 24px; padding-top: 22px; border-top: 1px solid #3a5268; }
.result-title { font-size: 1rem; font-weight: 600; }
.result-help { margin-top: 6px; color: #b9c9d8; font-size: 0.875rem; line-height: 1.6; }
.brief-result pre { max-height: 200px; margin: 14px 0; padding: 14px; overflow: auto; background: #081726; border: 1px solid #263d52; border-radius: 6px; color: #c8d8e7; font: 0.8125rem/1.7 var(--font); white-space: pre-wrap; overflow-wrap: anywhere; }
.brief-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.small-button { min-height: 40px; padding: 8px 14px; background: #17344d; border: 1px solid #4e7796; border-radius: 6px; color: #ecf7ff; font-size: 0.875rem; font-weight: 600; transition: background-color .2s; }
.small-button:hover { background: #234d6d; }
.status { min-height: 1.4em; margin-top: 10px; color: #8fdcff; font-size: 0.8125rem; }

/* Footer */
.site-footer { padding-top: 36px; background: #040a12; border-top: 1px solid var(--line); }
.footer-main { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 28px; }
.footer-main .wordmark { font-size: 1rem; }
.footer-main .brand-symbol { width: 22px; height: 22px; }
.footer-main .brand-symbol i { height: 5px; }
.footer-main nav { display: flex; gap: 28px; line-height: 44px; color: #c4d2de; font-size: 0.875rem; }
.footer-main nav a:hover { color: var(--blue-hover); }
.footer-bottom { display: flex; justify-content: space-between; gap: 32px; padding-block: 20px 28px; border-top: 1px solid var(--line); color: #8fa4b8; font-size: 0.75rem; line-height: 1.6; }
.footer-bottom > span:first-child { white-space: nowrap; }
.footer-bottom > span:last-child { max-width: 640px; text-align: right; }

@media (max-width: 1100px) {
  :root { --gutter: 36px; }
  .services-layout { gap: 48px; }
  .contact-layout { gap: 56px; }
  .about-copy { padding-left: 48px; }
}

@media (max-width: 900px) {
  .section-pad { padding-block: 76px; }
  .hero { background: radial-gradient(ellipse 90% 60% at 80% 12%, #0b2a45 0%, #081828 45%, var(--ink) 80%); }
  .hero-art { top: -10px; right: -90px; width: 460px; opacity: .5; transform: none; -webkit-mask-image: linear-gradient(100deg, transparent 18%, #000 70%); mask-image: linear-gradient(100deg, transparent 18%, #000 70%); }
  .hero-layout { min-height: 0; padding-block: 76px 56px; }
  .services-layout { grid-template-columns: 1fr; gap: 40px; }
  .services-intro { position: static; max-width: 620px; }
  .about { grid-template-columns: 1fr; }
  .about-visual { order: 2; min-height: 400px; }
  .about-copy { max-width: 700px; padding: 76px var(--gutter); }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .contact-copy > p:not(.eyebrow) { max-width: 560px; }
}

/* Keep this breakpoint in sync with the matchMedia query in script.js. */
@media (max-width: 760px) {
  html { scroll-padding-top: 84px; }
  .header-inner { height: 68px; }
  .menu-toggle { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 9px 14px; background: transparent; border: 1px solid #3c5368; border-radius: 6px; color: var(--text); }
  .menu-label { font-size: 0.875rem; font-weight: 600; }
  .menu-lines { position: relative; width: 18px; height: 10px; border-top: 2px solid #c6d7e4; border-bottom: 2px solid #c6d7e4; }
  .main-nav { position: absolute; top: 68px; right: 0; left: 0; display: none; padding: 14px var(--gutter) 24px; background: var(--navy); border-bottom: 1px solid var(--line-strong); box-shadow: 0 18px 30px rgba(0, 0, 0, .35); }
  .main-nav.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > a:not(.nav-cta) { padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .main-nav .nav-cta { justify-content: space-between; min-height: 50px; margin: 18px 0 0; font-size: 0.9375rem; }
}

@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; }
  :root { --gutter: 20px; }
  .section-pad { padding-block: 64px; }
  .wordmark { font-size: 1.0625rem; gap: 10px; }
  .brand-symbol { width: 24px; height: 24px; }
  .brand-symbol i { height: 5px; }
  .hero-art { top: -84px; right: -150px; width: 380px; opacity: .42; }
  .hero-layout { padding-block: 60px 44px; }
  .hero-copy .eyebrow { margin-bottom: 18px; font-size: 0.6875rem; letter-spacing: 0.13em; }
  .hero-intro { margin-top: 20px; font-size: 1.0625rem; }
  .hero-actions { margin-top: 28px; }
  .confidence-strip { grid-template-columns: 1fr; gap: 16px; padding-block: 24px 28px; }
  .confidence-strip li, .confidence-strip li:first-child { padding: 0; border: 0; }
  .services-grid { grid-template-columns: 1fr; }
  .service, .service:nth-child(odd):not(.service-secondary), .service:nth-child(even) { padding: 28px 0 16px; border-right: 0; }
  .service-secondary { flex-wrap: wrap; align-items: flex-start; gap: 16px; padding-bottom: 0; }
  .service-secondary .service-link { flex-basis: 100%; }
  .about-visual { min-height: 360px; }
  .about-copy { padding-block: 64px; }
  .process { grid-template-columns: 1fr; }
  .project-panel { padding: 24px 20px; }
  .footer-main { flex-wrap: wrap; }
  .footer-bottom { flex-direction: column; gap: 10px; }
  .footer-bottom > span:last-child { text-align: left; }
}

@media (min-width: 901px) {
  h1 { font-size: clamp(3.25rem, 4.7vw, 3.875rem); }
}

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