/* ========================================
   Recalde Law Firm — Style Sheet
   ======================================== */

:root {
  --navy: #1a2332;
  --navy-light: #243044;
  --slate: #3d4f5f;
  --gold: #b08d57;
  --gold-light: #c9a96e;
  --cream: #faf8f5;
  --white: #ffffff;
  --gray-100: #f5f5f3;
  --gray-200: #e8e6e1;
  --gray-400: #9a9590;
  --gray-600: #6b6560;
  --gray-800: #3a3530;
  --text: #2c2825;
  --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1120px;
  --radius: 4px;
  --transition: 0.25s ease;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  transition: box-shadow var(--transition);
}
.nav.scrolled {
  box-shadow: 0 1px 12px rgba(0,0,0,0.08);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.01em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate);
  letter-spacing: 0.01em;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--navy); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: var(--transition);
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 12px 28px;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--navy-light);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}
.btn-nav {
  padding: 8px 20px;
  background: var(--navy);
  color: var(--white) !important;
  border-radius: var(--radius);
}
.btn-nav:hover {
  background: var(--navy-light);
}

/* ---- Hero ---- */
.hero {
  padding: 180px 0 120px;
  background: linear-gradient(165deg, var(--navy) 0%, #1e2d40 55%, #243044 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(176,141,87,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hero-content {
  max-width: 760px;
  position: relative;
  z-index: 1;
}
.hero-kicker {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 24px;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.18;
  color: var(--white);
  margin-bottom: 28px;
}
.hero-sub {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.6);
  margin-bottom: 40px;
  max-width: 620px;
}
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero .btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.hero .btn-primary:hover {
  background: var(--gold-light);
}
.hero .btn-outline {
  border-color: rgba(255,255,255,0.3);
  color: var(--white);
}
.hero .btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}

/* ---- Sections ---- */
.section {
  padding: 96px 0;
}
.section-alt {
  background: var(--cream);
}
.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 48px;
  position: relative;
  padding-bottom: 16px;
}
.section-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--gold);
}

/* ---- Section Intro ---- */
.section-intro {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 680px;
  line-height: 1.75;
  margin-top: -24px;
  margin-bottom: 48px;
}

/* ---- Practice Areas (Accordion) ---- */
.practice-block {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 16px;
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.practice-block:hover {
  border-color: var(--gold);
}
.practice-block.open {
  border-color: var(--gold);
  box-shadow: 0 4px 24px rgba(0,0,0,0.05);
}
.practice-block-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 32px;
  cursor: pointer;
  user-select: none;
}
.practice-block-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  color: var(--gold);
  margin-top: 2px;
}
.practice-block-icon svg {
  width: 100%;
  height: 100%;
}
.practice-block-title {
  flex: 1;
}
.practice-block-title h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.practice-block-summary {
  font-size: 0.925rem;
  color: var(--gray-600);
  line-height: 1.6;
}
.practice-toggle {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--gold);
  flex-shrink: 0;
  width: 28px;
  text-align: center;
  line-height: 1;
  margin-top: 4px;
}

/* Accordion detail panel */
.practice-block-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.practice-block.open .practice-block-detail {
  max-height: 1200px;
}
.practice-detail-inner {
  padding: 0 32px 36px 88px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.practice-description p {
  font-size: 0.925rem;
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 16px;
}
.practice-description p:last-child {
  margin-bottom: 0;
}
.practice-services h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 16px;
}
.practice-services ul {
  list-style: none;
  padding: 0;
}
.practice-services li {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.6;
  padding: 6px 0 6px 20px;
  position: relative;
  border-bottom: 1px solid var(--gray-100);
}
.practice-services li:last-child {
  border-bottom: none;
}
.practice-services li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---- Who We Serve ---- */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.client-item {
  padding: 28px 32px;
  background: var(--white);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
}
.client-item h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}
.client-item p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.65;
}

/* ---- About ---- */
.about-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: start;
}
.about-photo img {
  width: 100%;
  border-radius: var(--radius);
  filter: grayscale(10%);
}
.about-lead {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 20px;
  line-height: 1.7;
}
.about-text p {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin-bottom: 16px;
  line-height: 1.75;
}
.about-location {
  font-weight: 600;
  color: var(--navy) !important;
  margin-top: 8px;
}

/* ---- Insights ---- */
.insights-intro {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 540px;
  margin-bottom: 32px;
}
.insights-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.insight-link {
  display: grid;
  grid-template-columns: 120px 1fr 80px;
  gap: 16px;
  align-items: center;
  padding: 20px 24px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  transition: background var(--transition);
}
.insight-link:first-child {
  border-top: 1px solid var(--gray-200);
  border-radius: var(--radius) var(--radius) 0 0;
}
.insight-link:last-child {
  border-radius: 0 0 var(--radius) var(--radius);
}
.insight-link:hover {
  background: var(--cream);
}
.insight-tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
}
.insight-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
}
.insight-date {
  font-size: 0.8rem;
  color: var(--gray-400);
  text-align: right;
}
.insights-cta {
  display: flex;
}

/* ---- Contact ---- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-lead {
  font-size: 1.05rem;
  color: var(--gray-600);
  margin-bottom: 36px;
  line-height: 1.7;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-item strong {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
}
.contact-item a,
.contact-item span {
  font-size: 0.95rem;
  color: var(--navy);
}
.contact-item a:hover {
  color: var(--gold);
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--slate);
  letter-spacing: 0.01em;
}
.form-group input,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.925rem;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-group textarea {
  resize: vertical;
}
.contact-form .btn {
  align-self: flex-start;
}

/* ---- Footer ---- */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 48px 0;
}
.footer-inner {
  text-align: center;
}
.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-disclaimer {
  font-size: 0.8rem;
  max-width: 560px;
  margin: 0 auto 12px;
  line-height: 1.6;
}
.footer-copy {
  font-size: 0.8rem;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--gray-200);
    display: none;
  }
  .nav-links.open { display: flex; }

  .hero { padding: 130px 0 80px; }
  .hero h1 { font-size: 2.1rem; }

  .section { padding: 64px 0; }

  .practice-detail-inner {
    grid-template-columns: 1fr;
    padding-left: 32px;
  }
  .clients-grid { grid-template-columns: 1fr; }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-photo {
    max-width: 220px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .insight-link {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .insight-date {
    text-align: left;
  }
}
