/* ==========================================================================
   lavalleeavocat.com — Sombre & Distingué Theme
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  background-color: #1C1C1C;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

:root {
  --charcoal: #1C1C1C;
  --charcoal-light: #2A2A2A;
  --charcoal-lighter: #333333;
  --champagne: #D4C5A9;
  --dark-gold: #8B7D3C;
  --off-white: #F5F5F5;
  --champagne-dim: rgba(212, 197, 169, 0.15);
}

body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--off-white);
  line-height: 1.6;
  font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.1rem);
  background: var(--charcoal);
}

h1, h2, h3, h4 {
  font-family: Georgia, 'Times New Roman', Times, serif;
  color: var(--champagne);
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.6rem, 1.3rem + 1.5vw, 2.4rem);
  margin-bottom: 1rem;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--charcoal);
  border-bottom: 1px solid var(--charcoal-lighter);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  color: var(--champagne);
  font-family: Georgia, serif;
  font-size: clamp(0.9rem, 0.8rem + 0.5vw, 1.15rem);
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--champagne);
  font-size: 0.9rem;
  padding: 0.3rem 0;
  position: relative;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--dark-gold);
  transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after { width: 100%; }

.lang-toggle {
  color: rgba(212, 197, 169, 0.5);
  font-size: 0.85rem;
}

.lang-toggle .active { color: var(--champagne); font-weight: 700; }

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--champagne); margin: 5px 0; transition: 0.3s; }

#nav-toggle { display: none; }

@media (max-width: 767px) {
  .hamburger { display: block; }
  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--charcoal);
    border-bottom: 1px solid var(--charcoal-lighter);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.2rem;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    pointer-events: none;
  }
  #nav-toggle:checked ~ .nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  min-height: calc(100vh - 60px);
  background: var(--charcoal);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: clamp(3rem, 6vw, 6rem) clamp(1.5rem, 4vw, 4rem);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, var(--charcoal-light) 0%, var(--charcoal) 70%);
}

.hero-inner { position: relative; z-index: 1; max-width: 700px; }

.hero h1 {
  font-size: clamp(2.2rem, 1.8rem + 2.5vw, 3.8rem);
  color: var(--champagne);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.hero .subtitle {
  font-family: Georgia, serif;
  font-size: clamp(1rem, 0.9rem + 0.6vw, 1.4rem);
  color: var(--dark-gold);
  margin-bottom: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero .tagline {
  font-size: clamp(0.95rem, 0.85rem + 0.5vw, 1.15rem);
  color: rgba(245, 245, 245, 0.7);
  margin-bottom: 2.5rem;
  font-style: italic;
}

.hero .divider {
  width: 60px;
  height: 1px;
  background: var(--dark-gold);
  margin: 0 auto 2rem;
}

.btn-primary {
  display: inline-block;
  background: transparent;
  color: var(--champagne);
  padding: 0.85rem 2.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid var(--champagne);
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--champagne);
  color: var(--charcoal);
}

/* ==========================================================================
   Sections (shared)
   ========================================================================== */

.section { padding: clamp(3.5rem, 5vw, 6rem) clamp(1.5rem, 4vw, 6rem); }
.section-inner { max-width: 1100px; margin: 0 auto; }

.section-heading-bar {
  width: 40px;
  height: 1px;
  background: var(--dark-gold);
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   Home navigation cards
   ========================================================================== */

.home-intro { background: var(--charcoal-light); }

.home-intro-text {
  color: var(--off-white);
  max-width: 760px;
  margin-top: 0.5rem;
}

.home-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.home-card {
  display: block;
  background: var(--charcoal);
  border: 1px solid rgba(212, 197, 169, 0.2);
  padding: 1.75rem 1.75rem;
  transition: border-color 0.3s, transform 0.3s;
}

.home-card:hover,
.home-card:focus-visible {
  border-color: var(--champagne);
  transform: translateY(-2px);
}

.home-card h3 {
  color: var(--champagne);
  font-family: Georgia, serif;
  font-size: clamp(1.2rem, 1rem + 0.5vw, 1.5rem);
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.home-card p {
  color: var(--off-white);
  font-size: clamp(0.9rem, 0.85rem + 0.2vw, 1rem);
  margin: 0;
}

@media (min-width: 768px) {
  .home-cards { grid-template-columns: 1fr 1fr 1fr; }
}

/* ==========================================================================
   Services
   ========================================================================== */

.services { background: var(--charcoal-light); }

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

.service-card {
  background: var(--charcoal);
  border: 1px solid rgba(212, 197, 169, 0.2);
  padding: 1.5rem 1.75rem;
  transition: border-color 0.3s, transform 0.3s;
}

.service-card:hover {
  border-color: var(--champagne);
  transform: translateY(-2px);
}

.service-card p {
  color: var(--off-white);
  font-size: clamp(0.9rem, 0.85rem + 0.2vw, 1rem);
}

.tabs { margin-top: 2.5rem; }

.tabs > input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tab-headers {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(212, 197, 169, 0.15);
  margin-bottom: 2rem;
}

.tab-headers label {
  font-family: Georgia, serif;
  font-size: clamp(1rem, 0.9rem + 0.3vw, 1.2rem);
  color: rgba(212, 197, 169, 0.55);
  padding: 0.85rem 1.5rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
  letter-spacing: 0.02em;
  white-space: nowrap;
  user-select: none;
}

.tab-headers label:hover { color: var(--champagne); }
.tab-headers label:focus-visible {
  outline: 2px solid var(--dark-gold);
  outline-offset: 2px;
}

.tab-panels .tab-panel { display: none; }

/* CSS-only tab toggle: each radio id "tab-N" activates the Nth label/panel.
   Add more rules here if practice-areas grow beyond 5. */
#tab-0:checked ~ .tab-headers label:nth-of-type(1),
#tab-1:checked ~ .tab-headers label:nth-of-type(2),
#tab-2:checked ~ .tab-headers label:nth-of-type(3),
#tab-3:checked ~ .tab-headers label:nth-of-type(4),
#tab-4:checked ~ .tab-headers label:nth-of-type(5) {
  color: var(--champagne);
  border-bottom-color: var(--dark-gold);
}

#tab-0:checked ~ .tab-panels .tab-panel:nth-of-type(1),
#tab-1:checked ~ .tab-panels .tab-panel:nth-of-type(2),
#tab-2:checked ~ .tab-panels .tab-panel:nth-of-type(3),
#tab-3:checked ~ .tab-panels .tab-panel:nth-of-type(4),
#tab-4:checked ~ .tab-panels .tab-panel:nth-of-type(5) {
  display: block;
}

@media (min-width: 768px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .tab-headers {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .tab-headers label { padding: 0.85rem 1rem; }
}

/* ==========================================================================
   Profil
   ========================================================================== */

.profil {
  background: linear-gradient(180deg, var(--charcoal) 0%, var(--charcoal-light) 100%);
}

.profil-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 2rem;
  align-items: center;
}

.profil-photo img {
  max-width: 380px;
  width: 100%;
  border: 3px solid var(--champagne);
  padding: 6px;
}

.profil-text p {
  margin-bottom: 1rem;
  color: rgba(245, 245, 245, 0.85);
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.honeypot { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 1rem; min-height: 1.5em; font-size: 0.95rem; }
.form-status.success { color: #8bbf6d; }
.form-status.error { color: #d97c7c; }

@media (min-width: 768px) {
  .profil-grid {
    flex-direction: row;
    align-items: flex-start;
  }
  .profil-photo { flex: 0 0 40%; }
  .profil-text { flex: 1; }
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact { background: var(--charcoal); }

.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 2rem;
}

.contact-info p {
  margin-bottom: 0.75rem;
  color: rgba(245, 245, 245, 0.8);
}

.contact-info strong {
  color: var(--champagne);
  display: block;
  margin-bottom: 0.2rem;
}

.contact-info a:hover { color: var(--champagne); }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }

.contact-form label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--champagne);
  margin-bottom: 0.2rem;
  letter-spacing: 0.03em;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(212, 197, 169, 0.3);
  background: var(--charcoal-light);
  font-size: 1rem;
  font-family: inherit;
  color: var(--off-white);
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--champagne);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(245, 245, 245, 0.3); }

.contact-form textarea { min-height: 140px; resize: vertical; }

@media (min-width: 768px) {
  .contact-grid { flex-direction: row; }
  .contact-info { flex: 1; }
  .contact-form { flex: 1.2; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--charcoal);
  border-top: 1px solid var(--charcoal-lighter);
  color: rgba(212, 197, 169, 0.6);
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.85rem;
}

.footer p + p { margin-top: 0.3rem; }

/* ==========================================================================
   Print
   ========================================================================== */

@media print {
  .nav, .hamburger, .btn-primary, .contact-form { display: none; }
  body { background: #fff; color: #000; }
  h1, h2, h3, h4 { color: #000; }
  .hero { min-height: auto; background: #fff; }
  .hero::before { display: none; }
  .section { padding: 1.5rem 0; }
  .service-card { border-color: #ccc; }
  .profil-photo img { border-color: #ccc; }
}
