/* ========================================
   Les Branques — Style Sheet
   ======================================== */

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

:root {
  --teal: #2ECDA7;
  --blue: #0056A0;
  --blue-dark: #004080;
  --teal-light: #e6faf4;
  --blue-light: #e8f1fa;
  --text: #1a1a1a;
  --text-light: #555;
  --white: #ffffff;
  --bg: #ffffff;
  --section-alt: #f8fafb;
  --radius: 10px;
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  --transition: 0.3s ease;
  --nav-height: 72px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hide non-active language spans */
[data-lang] {
  display: none;
}

[data-lang].active {
  display: inline;
}

/* For block-level language elements */
div[data-lang],
p[data-lang],
h1[data-lang],
h2[data-lang],
h3[data-lang],
li[data-lang],
span[data-lang] {
  display: none;
}

div[data-lang].active,
p[data-lang].active,
h1[data-lang].active,
h2[data-lang].active,
h3[data-lang].active,
li[data-lang].active,
span[data-lang].active {
  display: block;
}

span[data-lang].active {
  display: inline;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: var(--white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar__logo img {
  height: 32px;
  width: 32px;
}

.navbar__logo-text {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.3px;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  transition: color var(--transition);
  letter-spacing: 0.01em;
}

.navbar__links a:hover {
  color: var(--blue);
}

.navbar__right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.lang-switcher button {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all var(--transition);
}

.lang-switcher button:hover {
  color: var(--blue);
}

.lang-switcher button.active {
  color: var(--white);
  background: var(--blue);
}

.lang-switcher .sep {
  color: #ccc;
  user-select: none;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  margin-top: var(--nav-height);
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, var(--teal-light) 0%, var(--white) 40%, var(--blue-light) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(46, 205, 167, 0.08);
  pointer-events: none;
}

.hero__content {
  max-width: 680px;
}

.hero__content h1 {
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--text);
}

.hero__content h1 em {
  font-style: normal;
  color: var(--blue);
}

.hero__content p {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero__cta {
  display: inline-block;
  padding: 14px 36px;
  background: var(--blue);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
}

.hero__cta:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

/* ---------- Section Shared ---------- */
.section {
  padding: 100px 0;
}

.section--alt {
  background: var(--section-alt);
}

.section__title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.section__subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 600px;
  margin-bottom: 56px;
}

/* ---------- About ---------- */
.about__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.about__text p {
  margin-bottom: 16px;
  color: var(--text-light);
}

.about__values {
  display: grid;
  gap: 20px;
}

.value-card {
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--teal);
}

.value-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.value-card p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ---------- Practice Areas ---------- */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.practice-card {
  padding: 36px 28px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  text-align: center;
  border-top: 3px solid transparent;
}

.practice-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  border-top-color: var(--teal);
}

.practice-card__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.practice-card:nth-child(1) .practice-card__icon { background: var(--teal-light); }
.practice-card:nth-child(2) .practice-card__icon { background: var(--blue-light); }
.practice-card:nth-child(3) .practice-card__icon { background: #fef4e6; }
.practice-card:nth-child(4) .practice-card__icon { background: #f0e8fa; }

.practice-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.practice-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-info {
  display: grid;
  gap: 28px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-item__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-item p {
  font-size: 0.9rem;
  color: var(--text-light);
}

.contact-map {
  width: 100%;
  height: 320px;
  border-radius: var(--radius);
  background: var(--section-alt);
  border: 2px dashed #d0d5dd;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ---------- Footer ---------- */
.footer {
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .practice-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about__content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .hero__content h1 {
    font-size: 2.4rem;
  }
}

@media (max-width: 640px) {
  .navbar__links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transform: translateY(-110%);
    transition: transform var(--transition);
    z-index: 999;
  }

  .navbar__links.open {
    transform: translateY(0);
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

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

  .hero__content h1 {
    font-size: 2rem;
  }

  .hero__content p {
    font-size: 1rem;
  }

  .section {
    padding: 64px 0;
  }

  .section__title {
    font-size: 1.6rem;
  }

  .lang-switcher {
    font-size: 0.75rem;
  }
}
