/* ============================================
   THE ESTATES LAW FIRM - Main Stylesheet
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --color-navy: #1B2A4A;
  --color-navy-dark: #0F1D35;
  --color-navy-light: #2A3D62;
  --color-gold: #C9A84C;
  --color-gold-light: #D4B95E;
  --color-gold-dark: #B8942E;
  --color-cream: #FAF8F5;
  --color-white: #FFFFFF;
  --color-text: #3A3A3A;
  --color-text-light: #6B6B6B;
  --color-border: #E0DCD5;
  --font-heading: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --max-width: 1200px;
  --transition: 0.3s ease;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
  color: var(--color-text);
}

/* --- Utility --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1rem;
}

.section-title {
  margin-bottom: 1.5rem;
}

.gold-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
  border: none;
  margin-bottom: 2rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.875rem 2rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-transform: uppercase;
  line-height: 1;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(201, 168, 76, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.45);
  transform: translateY(-2px);
}

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

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

.btn-outline-dark {
  background: transparent;
  color: var(--color-navy);
  border: 2px solid var(--color-navy);
}

.btn-outline-dark:hover {
  background: var(--color-navy);
  color: var(--color-white);
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--transition);
}

.header--transparent {
  background: transparent;
}

.header--scrolled {
  background: var(--color-navy-dark);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.header__logo {
  display: flex;
  align-items: center;
}

.header__logo img {
  height: 50px;
  width: auto;
}

/* --- Wordmark Logo --- */
.header__wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1;
}

.header__wordmark-line1 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-white);
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  line-height: 1.1;
  white-space: nowrap;
}

.header__wordmark-line2 {
  font-family: var(--font-body);
  font-size: 0.55rem;
  color: var(--color-gold);
  letter-spacing: 5px;
  text-transform: uppercase;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.4rem;
  white-space: nowrap;
}

.header__wordmark-line2::before,
.header__wordmark-line2::after {
  content: '';
  display: block;
  width: 1.75rem;
  height: 1px;
  background: var(--color-gold);
  opacity: 0.8;
}

.header__wordmark-tagline {
  font-family: var(--font-body);
  font-size: 0.48rem;
  color: var(--color-gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 0.4rem;
  white-space: nowrap;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  padding: 0.25rem 0;
  white-space: nowrap;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width var(--transition);
}

.nav__link:hover {
  color: var(--color-white);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__cta {
  margin-left: 1rem;
}

/* Mobile Menu Toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: all var(--transition);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-navy) 50%, var(--color-navy-light) 100%);
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(201, 168, 76, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(201, 168, 76, 0.05) 0%, transparent 40%);
  pointer-events: none;
}

/* Subtle geometric pattern */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background:
    linear-gradient(135deg, transparent 40%, rgba(201, 168, 76, 0.03) 40%, rgba(201, 168, 76, 0.03) 41%, transparent 41%),
    linear-gradient(135deg, transparent 55%, rgba(201, 168, 76, 0.02) 55%, rgba(201, 168, 76, 0.02) 56%, transparent 56%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 0 2rem;
}

.hero__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 3rem;
}

.hero__label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 2rem;
  height: 1px;
  background: var(--color-gold);
}

.hero__title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  color: var(--color-white);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.hero__title span {
  color: var(--color-gold);
}

.hero__description {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 580px;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Decorative vertical line on right side of hero */
.hero__decor {
  position: absolute;
  right: 10%;
  top: 20%;
  height: 60%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(201, 168, 76, 0.2), transparent);
  z-index: 1;
}

/* --- Practice Areas Section --- */
.practice-areas {
  padding: 6rem 0;
  background: var(--color-cream);
}

.practice-areas__header {
  text-align: center;
  margin-bottom: 4rem;
}

.practice-areas__header p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--color-text-light);
  font-size: 1.05rem;
}

.practice-areas__header .gold-line {
  margin: 0 auto 2rem;
}

.practice-areas__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.practice-card {
  background: var(--color-white);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  transition: all var(--transition);
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.practice-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.practice-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(27, 42, 74, 0.1);
}

.practice-card:hover::before {
  transform: scaleX(1);
}

.practice-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.practice-card__icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--color-gold);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.practice-card__title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-navy);
  margin-bottom: 0.75rem;
}

.practice-card__text {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.practice-card__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.practice-card__link:hover {
  color: var(--color-navy);
}

.practice-card__link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

.practice-card__link:hover svg {
  transform: translateX(4px);
}

/* --- Why Choose Us Section --- */
.why-us {
  padding: 6rem 0;
  background: var(--color-white);
}

.why-us__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.why-us__content .gold-line {
  margin-bottom: 1.5rem;
}

.why-us__content p {
  color: var(--color-text-light);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.why-us__features {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.why-us__feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.why-us__feature-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-top: 2px;
}

.why-us__feature-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-gold);
  fill: none;
  stroke-width: 2;
}

.why-us__feature-text {
  font-size: 0.95rem;
  color: var(--color-text);
}

.why-us__feature-text strong {
  color: var(--color-navy);
}

.why-us__image {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.why-us__image-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--color-navy-dark), var(--color-navy));
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
  gap: 1rem;
}

.why-us__image-placeholder svg {
  width: 64px;
  height: 64px;
  stroke: var(--color-gold);
  fill: none;
  stroke-width: 1;
  opacity: 0.5;
}

/* Attorney Caption */
.why-us__caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.85rem 1rem;
  background: var(--color-navy-dark);
  border-radius: 0 0 8px 8px;
  border-top: 2px solid var(--color-gold);
}

.why-us__caption-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-white);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.why-us__caption-title {
  font-size: 0.75rem;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
  margin-top: 0.15rem;
}

/* Gold border around entire image + caption */
.why-us__image {
  border: 3px solid var(--color-gold);
  border-radius: 8px;
}

/* --- CTA Banner Section --- */
.cta-banner {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--color-navy-dark), var(--color-navy));
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(201, 168, 76, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.cta-banner__content {
  position: relative;
  z-index: 2;
}

.cta-banner h2 {
  color: var(--color-white);
  margin-bottom: 1rem;
  font-size: 2.25rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Footer --- */
.footer {
  background: var(--color-navy-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 0;
}

.footer__main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand {
  max-width: 300px;
}

.footer__brand .header__logo {
  margin-bottom: 1.25rem;
}

.footer__brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-white);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.footer__links li {
  margin-bottom: 0.75rem;
}

.footer__links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--transition);
}

.footer__links a:hover {
  color: var(--color-gold);
  padding-left: 4px;
}

/* Footer Contact Info */
.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.footer__contact-item svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-gold);
  fill: none;
  stroke-width: 1.5;
  flex-shrink: 0;
  margin-top: 3px;
}

/* Google Reviews */
.footer__reviews {
  margin-top: 1.5rem;
}

.footer__reviews-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  transition: all var(--transition);
}

.footer__reviews-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-gold);
}

.footer__stars {
  display: flex;
  gap: 2px;
}

.footer__stars svg {
  width: 16px;
  height: 16px;
  fill: #FBBC04;
}

.footer__reviews-text {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer__reviews-text strong {
  color: var(--color-white);
}

/* Footer CTA */
.footer__cta {
  margin-top: 2rem;
}

/* Social Media Icons */
.footer__social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 0 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 1rem;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--transition);
}

.footer__social-link svg {
  width: 18px;
  height: 18px;
}

.footer__social-link:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-white);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(201, 168, 76, 0.35);
}

/* Footer Bottom */
.footer__bottom {
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero__title {
    font-size: 2.75rem;
  }

  .why-us__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer__main {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .nav__list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--color-navy-dark);
    flex-direction: column;
    padding: 1.5rem 2rem 2rem;
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav__list.active {
    display: flex;
  }

  .nav__list li {
    width: 100%;
  }

  .nav__link {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav__cta {
    margin-left: 0;
    margin-top: 1rem;
  }

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

  .nav__toggle {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding: 8rem 0 5rem;
  }

  .hero__title {
    font-size: 2.25rem;
  }

  .hero__description {
    font-size: 1rem;
  }

  .hero__decor {
    display: none;
  }

  .practice-areas {
    padding: 4rem 0;
  }

  .practice-areas__grid {
    grid-template-columns: 1fr;
  }

  .footer__main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 1.85rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .hero__actions {
    flex-direction: column;
  }

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

  .header__logo-name {
    font-size: 1rem;
  }

  .header__logo img {
    height: 40px;
  }

  .header__logo-placeholder {
    width: 50px;
    height: 50px;
    font-size: 1.1rem;
  }
}

/* --- Letter from the Founder --- */
.founder-letter {
  padding: 6rem 0;
  background: var(--color-cream);
  position: relative;
  overflow: hidden;
}

.founder-letter::before {
  content: '\201C';
  position: absolute;
  top: -0.5rem;
  left: 2rem;
  font-family: var(--font-heading);
  font-size: 18rem;
  color: var(--color-gold);
  opacity: 0.045;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.founder-letter__inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.founder-letter__text-col h2 {
  margin-bottom: 0.5rem;
}

.founder-letter__text-col .gold-line {
  margin-bottom: 1.75rem;
}

.founder-letter__body p {
  font-size: 1rem;
  color: var(--color-text-light);
  line-height: 1.9;
  margin-bottom: 1.25rem;
}

.founder-letter__body p:last-child {
  margin-bottom: 0;
}

.founder-letter__sign-off {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.founder-letter__warmly {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--color-text-light);
  margin-bottom: 0.25rem;
}

.founder-letter__sig-name {
  font-family: 'Great Vibes', cursive;
  font-size: 2.4rem;
  color: var(--color-navy);
  font-weight: 400;
  letter-spacing: 0.5px;
  margin-bottom: 0.2rem;
  display: block;
  line-height: 1.2;
}

.founder-letter__sig-title {
  font-size: 0.8rem;
  color: var(--color-text-light);
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 0.35rem;
}

.founder-letter__sig-tagline {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  margin-top: 0.5rem;
}
