/* Alex Castro and Associates PLLC — site stylesheet */

:root {
  --navy-950: #08152b;
  --navy-900: #0b1f3a;
  --navy-800: #12305a;
  --navy-700: #14315c;
  --navy-600: #1d4176;
  --gold-600: #a9822f;
  --gold-500: #c19a42;
  --gold-400: #d4b872;
  --gold-100: #f4ead0;
  --ivory: #f7f5f0;
  --paper: #fffdf9;
  --ink: #191b1f;
  --muted: #565c68;
  --line: #e4e0d6;
  --shadow: 0 20px 50px -25px rgba(8, 21, 43, 0.35);
  --radius: 10px;
  --serif: "Playfair Display", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

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

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: var(--navy-900);
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }

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

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 0.9em;
}

.section {
  padding: 88px 0;
}
.section--tight { padding: 56px 0; }
.section--navy {
  background: var(--navy-900);
  color: #dfe6f2;
}
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p { color: #b9c4da; }
.section--ivory-alt { background: var(--paper); }

.section-head {
  max-width: 680px;
  margin: 0 auto 3rem;
  text-align: center;
}
.section-head p { max-width: 620px; margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn--gold {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: #241a05;
  box-shadow: 0 10px 25px -10px rgba(193, 154, 66, 0.65);
}
.btn--gold:hover { box-shadow: 0 14px 30px -10px rgba(193, 154, 66, 0.8); }

.btn--outline {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
  background: transparent;
}
.btn--outline:hover { background: rgba(255,255,255,0.1); }

.btn--navy-outline {
  border-color: var(--navy-900);
  color: var(--navy-900);
  background: transparent;
}
.btn--navy-outline:hover { background: var(--navy-900); color: #fff; }

.btn--block { width: 100%; justify-content: center; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 21, 43, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 184, 114, 0.2);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand-mark {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-400);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--gold-400);
  flex-shrink: 0;
}
.brand-text { line-height: 1.15; }
.brand-text .name {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.brand-text .suffix {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--gold-400);
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-desktop { display: flex; align-items: center; gap: 2.2rem; }
.nav-desktop a {
  color: #cfd8e8;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  padding: 6px 0;
  transition: color 0.15s ease;
}
.nav-desktop a:hover, .nav-desktop a.active { color: #fff; }
.nav-desktop a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--gold-400);
}
.nav-cta { display: flex; align-items: center; gap: 1.4rem; }
.nav-phone {
  display: none;
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: all 0.2s ease;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--navy-950);
  padding: 8px 24px 24px;
  border-bottom: 1px solid rgba(212,184,114,0.2);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: #dfe6f2;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.98rem;
}
.mobile-menu .btn { margin-top: 14px; }

@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: block; }
  .nav-phone { display: none !important; }
}
@media (min-width: 901px) {
  .nav-phone { display: block; }
}

/* Hero */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 480px at 85% -10%, rgba(212,184,114,0.18), transparent 60%),
    linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-700) 100%);
  color: #fff;
  padding: 110px 0 100px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 90px);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}
.hero h1 { color: #fff; }
.hero .lede {
  font-size: 1.12rem;
  color: #c2cbdd;
  max-width: 540px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 2rem; }

.hero-badge-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(212,184,114,0.3);
  border-radius: var(--radius);
  padding: 1.8rem;
  backdrop-filter: blur(6px);
}
.hero-badge-card h3 { color: #fff; font-size: 1.05rem; margin-bottom: 1.1rem; }
.stat-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.stat-row:last-child { border-bottom: none; }
.stat-row .num { font-family: var(--serif); font-weight: 700; color: var(--gold-400); font-size: 1.15rem; }
.stat-row .label { color: #b9c4da; font-size: 0.85rem; text-align: right; max-width: 62%; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* Credential strip */
.credential-strip {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.credential-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 2.4rem 24px;
}
.credential-item { text-align: center; }
.credential-item .figure {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--navy-900);
}
.credential-item .caption {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-top: 4px;
}
@media (max-width: 760px) {
  .credential-strip .container { grid-template-columns: repeat(2, 1fr); }
}

/* Cards */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.4rem; }

@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--gold-400);
}
.card .icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--gold-100);
  color: var(--gold-600);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
}
.card h3 { margin-bottom: 0.5em; }
.card p { margin-bottom: 0; font-size: 0.95rem; }
.card-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-800);
  letter-spacing: 0.02em;
}
.card-link:hover { color: var(--gold-600); }

/* Practice area detail blocks */
.practice-block {
  border-top: 1px solid var(--line);
  padding: 4rem 0;
}
.practice-block:first-of-type { border-top: none; }
.practice-block-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}
.practice-block-num {
  font-family: var(--serif);
  font-size: 3.4rem;
  font-weight: 700;
  color: var(--gold-100);
  -webkit-text-stroke: 1.5px var(--gold-400);
  line-height: 1;
}
.practice-list {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1.5rem;
}
.practice-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.94rem;
  color: var(--ink);
}
.practice-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 8px; height: 8px;
  background: var(--gold-500);
  border-radius: 50%;
}
@media (max-width: 860px) {
  .practice-block-grid { grid-template-columns: 1fr; }
  .practice-list { grid-template-columns: 1fr; }
}

/* Attorney bio */
.bio-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3.2rem;
  align-items: start;
}
.bio-portrait {
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--navy-800), var(--navy-950));
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-400);
  font-family: var(--serif);
  font-size: 3.4rem;
  font-weight: 700;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: sticky;
  top: 110px;
}
.bio-fact-list {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 1.4rem 0 0;
  border-top: 1px solid var(--line);
}
.bio-fact-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  font-size: 0.88rem;
}
.bio-fact-list .k { color: var(--muted); }
.bio-fact-list .v { color: var(--navy-900); font-weight: 600; text-align: right; }

@media (max-width: 860px) {
  .bio-layout { grid-template-columns: 1fr; }
  .bio-portrait { position: static; max-width: 260px; margin: 0 auto 2rem; }
}

/* Why hire list */
.why-list { list-style: none; margin: 0; padding: 0; }
.why-list li {
  display: flex;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.why-list li:last-child { border-bottom: none; }
.why-list .check {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(212,184,114,0.15);
  border: 1px solid var(--gold-400);
  color: var(--gold-400);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  margin-top: 2px;
}
.why-list p { margin: 0; color: #cfd8e8; font-size: 0.95rem; }
.why-list strong { color: #fff; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: #241a05;
  text-align: center;
  padding: 4.2rem 0;
}
.cta-band h2 { color: #241a05; }
.cta-band p { color: #4a3a12; max-width: 560px; margin: 0 auto 1.6rem; }

/* Contact page */
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}
.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.2rem;
}
.contact-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; }
.contact-card .icon-sm {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--gold-100);
  color: var(--gold-600);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-card a.link { color: var(--navy-800); font-weight: 600; }
.contact-card a.link:hover { color: var(--gold-600); }

.form-field { margin-bottom: 1.2rem; }
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 6px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 0.95rem;
  background: var(--paper);
  color: var(--ink);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(193,154,66,0.18);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 620px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
}
.form-note { font-size: 0.8rem; color: var(--muted); margin-top: 0.8rem; }
.form-success {
  display: none;
  background: #eef7ef;
  border: 1px solid #bfe0c4;
  color: #205026;
  padding: 1rem 1.2rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}
.form-success.show { display: block; }

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  height: 260px;
}

/* Footer */
.site-footer {
  background: var(--navy-950);
  color: #9aa7bd;
  padding: 60px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-grid h4 {
  color: #fff;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.6rem; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--gold-400); }
.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand p { color: #8592a8; font-size: 0.88rem; max-width: 320px; }
.footer-bottom {
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.78rem;
  color: #6d7996;
}
.footer-disclaimer {
  font-size: 0.76rem;
  color: #6d7996;
  max-width: 900px;
  margin: 1.4rem 0 0;
  line-height: 1.6;
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Page hero (interior pages) */
.page-hero {
  background: linear-gradient(160deg, var(--navy-950), var(--navy-800));
  color: #fff;
  padding: 68px 0 56px;
  text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: 0.4em; }
.page-hero .lede { color: #b9c4da; max-width: 620px; margin: 0 auto; }
.breadcrumb {
  font-size: 0.8rem;
  color: var(--gold-400);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
