/* =============================================
   ELLER LEGAL — MAIN STYLESHEET
   Estate Planning Attorney | Fort Worth, TX
   ============================================= */

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

/* === CSS Variables === */
:root {
  --navy:        #0c1a35;
  --navy-mid:    #152a50;
  --navy-light:  #1e3a6e;
  --gold:        #c49a3c;
  --gold-light:  #ddb96a;
  --gold-pale:   rgba(196,154,60,0.10);
  --cream:       #f7f4ee;
  --cream-dark:  #e8e3d8;
  --white:       #ffffff;
  --text-dark:   #0c1a35;
  --text-body:   #2e3a52;
  --text-mid:    #5a6880;
  --border:      rgba(196,154,60,0.30);
  --shadow:      0 4px 24px rgba(12,26,53,0.10);
  --shadow-lg:   0 12px 48px rgba(12,26,53,0.18);
  --radius:      4px;
  --transition:  0.3s ease;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  color: var(--text-body);
  background: var(--cream);
  line-height: 1.8;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

/* === Typography === */
h1, h2, h3, h4, h5 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--navy);
  line-height: 1.2;
  font-weight: 600;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.15rem; }
p { margin-bottom: 1.2rem; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: 'Lato', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: block;
}

/* === Layout === */
.container       { max-width: 1140px; margin: 0 auto; padding: 0 28px; }
.container--narrow { max-width: 780px; margin: 0 auto; padding: 0 28px; }
.section         { padding: 96px 0; }
.section--dark   { background: var(--navy); }
.section--cream  { background: var(--cream); }
.section--white  { background: var(--white); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.text-center { text-align: center; }
.text-white  { color: var(--white) !important; }
.text-gold   { color: var(--gold); }
.mt-sm { margin-top: 16px; }
.mt-md { margin-top: 32px; }
.mt-lg { margin-top: 48px; }

.gold-rule { width: 52px; height: 2px; background: var(--gold); margin: 18px 0 28px; }
.gold-rule--center { margin: 18px auto 28px; }

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: 'Lato', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}
.btn--gold {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(196,154,60,0.4);
}
.btn--gold:hover {
  background: var(--gold-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(196,154,60,0.5);
}
.btn--outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.55);
}
.btn--outline-white:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border-color: var(--white);
}
.btn--outline-gold {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}
.btn--outline-gold:hover {
  background: var(--gold);
  color: var(--white);
}

/* === NAVIGATION === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(12,26,53,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(196,154,60,0.18);
  transition: box-shadow var(--transition);
}
.nav.scrolled { box-shadow: 0 4px 32px rgba(0,0,0,0.35); }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
}
.nav__logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
}
.nav__logo span { color: var(--gold); }
.nav__logo:hover { color: var(--white); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav__links > li > a {
  font-family: 'Lato', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  transition: color var(--transition);
}
.nav__links > li > a:hover,
.nav__links > li > a.active { color: var(--gold); }
.nav__cta {
  background: var(--gold) !important;
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: var(--radius);
  letter-spacing: 0.08em !important;
}
.nav__cta:hover { background: var(--gold-light) !important; color: var(--white) !important; }

/* Dropdown */
.nav__item { position: relative; }
.nav__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 210px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.22s ease;
  list-style: none;
}
.nav__item:hover .nav__dropdown { opacity: 1; visibility: visible; top: calc(100% + 4px); }
.nav__dropdown a {
  display: block;
  padding: 10px 20px;
  color: var(--text-body) !important;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: none !important;
  font-weight: 400 !important;
}
.nav__dropdown a:hover { color: var(--gold) !important; background: var(--cream); }

/* Mobile toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav__toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
}

/* === HERO === */
.hero {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 140px 0 100px;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%; right: -8%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(196,154,60,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.hero__bg-line {
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: 40%;
  border-left: 1px solid rgba(196,154,60,0.08);
  background: linear-gradient(180deg, transparent 0%, rgba(196,154,60,0.03) 50%, transparent 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: 'Lato', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.hero__eyebrow::before {
  content: '';
  display: block;
  width: 36px; height: 1px;
  background: var(--gold);
}
.hero h1 { color: var(--white); margin-bottom: 28px; font-weight: 700; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero__subtitle {
  color: rgba(255,255,255,0.68);
  font-size: 1.08rem;
  line-height: 1.85;
  margin-bottom: 40px;
  max-width: 560px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__geo {
  position: absolute;
  bottom: 48px; left: 0; right: 0;
  z-index: 2;
}
.hero__geo-inner {
  max-width: 1140px;
  margin: 0 auto; padding: 0 28px;
  display: flex; justify-content: flex-end;
}
.hero__geo-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

/* === AWARDS STRIP === */
.awards-strip {
  background: var(--gold);
  padding: 30px 0;
}
.awards-strip__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.award-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--white);
}
.award-item__icon { font-size: 1.5rem; flex-shrink: 0; }
.award-item__text {
  font-family: 'Lato', sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.5;
}
.awards-strip__divider {
  width: 1px; height: 36px;
  background: rgba(255,255,255,0.38);
  flex-shrink: 0;
}

/* === PRACTICE CARDS === */
.practice-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.practice-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--gold);
  transition: height 0.4s ease;
}
.practice-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.practice-card:hover::before { height: 100%; }
.practice-card__icon { font-size: 2.2rem; margin-bottom: 20px; }
.practice-card h3 { font-size: 1.4rem; margin-bottom: 12px; }
.practice-card p { font-size: 0.92rem; color: var(--text-mid); line-height: 1.75; }
.practice-card__link {
  display: inline-block;
  margin-top: 22px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.practice-card__link:hover { color: var(--navy); }

/* === ABOUT TEASER === */
.about-photo { position: relative; }
.about-photo img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.about-photo__badge {
  position: absolute;
  bottom: -24px; right: -24px;
  background: var(--navy);
  color: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(196,154,60,0.35);
  font-family: 'Lato', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.5;
  box-shadow: var(--shadow);
}
.about-photo__badge strong { color: var(--gold); display: block; font-size: 0.9rem; }

.credential-list { list-style: none; margin: 24px 0; }
.credential-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.93rem;
}
.credential-list li::before {
  content: '◆';
  color: var(--gold);
  font-size: 0.55rem;
  margin-top: 7px;
  flex-shrink: 0;
}

/* === SERVICE AREA === */
.service-area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 40px;
}
.service-area-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(196,154,60,0.22);
  border-radius: var(--radius);
  padding: 16px 18px;
  text-align: center;
  color: rgba(255,255,255,0.78);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* === AWARD BADGES (Attorney page) === */
.award-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0;
}
.award-badge {
  background: var(--navy);
  color: var(--white);
  padding: 14px 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(196,154,60,0.3);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 10px;
}
.award-badge .badge-year { color: var(--gold); display: block; font-size: 0.85rem; }

/* === PAGE HERO (interior pages) === */
.page-hero {
  background: var(--navy);
  padding: 148px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 45%; height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(196,154,60,0.04) 100%);
  border-left: 1px solid rgba(196,154,60,0.06);
  pointer-events: none;
}
.page-hero h1 { color: var(--white); }
.page-hero .lead {
  color: rgba(255,255,255,0.65);
  font-size: 1.08rem;
  max-width: 580px;
  margin-top: 18px;
  line-height: 1.85;
}
.breadcrumb {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--gold); }
.breadcrumb span { margin: 0 8px; }

/* === CONTENT BLOCKS === */
.content-block {
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}
.info-box {
  border-left: 3px solid var(--gold);
  background: var(--gold-pale);
  padding: 24px 28px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 32px 0;
}
.info-box p { font-size: 0.95rem; }

.checklist { list-style: none; }
.checklist li {
  padding: 11px 0;
  border-bottom: 1px solid var(--cream-dark);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.95rem;
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.two-col-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
}

/* === CONTACT FORM === */
.contact-form {
  background: var(--white);
  padding: 48px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--cream);
  transition: border-color var(--transition);
  outline: none;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: var(--white);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* === FOOTER === */
.footer {
  background: #07101f;
  color: rgba(255,255,255,0.58);
  padding: 72px 0 36px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer__brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
}
.footer__brand span { color: var(--gold); }
.footer__tagline { font-size: 0.88rem; line-height: 1.75; margin-bottom: 24px; }
.footer h4 {
  font-family: 'Lato', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a { font-size: 0.87rem; color: rgba(255,255,255,0.58); }
.footer ul li a:hover { color: var(--gold); }
.footer__contact-line {
  font-size: 0.87rem;
  margin-bottom: 10px;
  line-height: 1.6;
}
.footer__contact-line a { color: rgba(255,255,255,0.58); }
.footer__contact-line a:hover { color: var(--gold); }
.footer__disclaimer {
  font-size: 0.74rem;
  color: rgba(255,255,255,0.32);
  line-height: 1.7;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  margin-top: 24px;
}
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
}

/* === CTA BAND === */
.cta-band {
  background: var(--navy-mid);
  padding: 72px 0;
  text-align: center;
  border-top: 1px solid rgba(196,154,60,0.15);
  border-bottom: 1px solid rgba(196,154,60,0.15);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .grid-2 { grid-template-columns: 1fr; gap: 48px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .form-row { grid-template-columns: 1fr; }
  .two-col-list { grid-template-columns: 1fr; }
  .contact-form { padding: 32px 20px; }
  .content-block { padding: 32px 24px; }
  .hero { min-height: auto; padding: 120px 0 72px; }
  .hero__geo { display: none; }
  .awards-strip__divider { display: none; }
  .awards-strip__inner { gap: 28px; }
  .about-photo__badge { position: static; margin-top: 16px; display: inline-block; }
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav.mobile-open .nav__links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 78px; left: 0; right: 0;
    background: var(--navy);
    padding: 28px 24px;
    gap: 20px;
    border-top: 1px solid rgba(196,154,60,0.15);
    z-index: 999;
    max-height: calc(100vh - 78px);
    overflow-y: auto;
  }
  .nav.mobile-open .nav__dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    background: transparent;
    border: none;
    border-left: 2px solid rgba(196,154,60,0.3);
    padding: 4px 0 4px 16px;
    margin-top: 8px;
    min-width: auto;
  }
  .nav.mobile-open .nav__dropdown a {
    color: rgba(255,255,255,0.65) !important;
    padding: 8px 0;
  }
}
