/* ============================================================
   ALTITUDE AVOCATS — style.css
   Brand: dark slate blue-grey · white · warm off-white
   Fonts: Cormorant Garamond (headings) · Inter (body)
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --primary:      #2c3a47;
  --primary-dark: #1e2830;
  --secondary:    #4a6278;
  --accent:       #8fa8bb;
  --accent-light: #c8d8e2;
  --white:        #ffffff;
  --off-white:    #f7f6f4;
  --light-grey:   #edecea;
  --text:         #2c2c2c;
  --text-muted:   #6b7d8c;
  --border:       #dde3e8;

  --font-serif:   'Cormorant Garamond', Georgia, serif;
  --font-sans:    'Inter', system-ui, sans-serif;

  --nav-h:        120px;
  --radius:       4px;
  --transition:   0.3s ease;
  --shadow:       0 4px 24px rgba(44, 58, 71, 0.10);
  --shadow-lg:    0 12px 48px rgba(44, 58, 71, 0.15);
}

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

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

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Container ──────────────────────────────────────────────── */
.container {
  width: 90%;
  max-width: 1160px;
  margin: 0 auto;
}

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.section-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.8;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border: 1.5px solid var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--white);
}

.btn-full { width: 100%; text-align: center; }

/* ── Fade-in animation ──────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   HEADER
   ============================================================ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: var(--white);
  box-shadow: 0 1px 0 var(--border);
  transition: box-shadow var(--transition);
}

#header.scrolled {
  box-shadow: 0 2px 12px rgba(44, 58, 71, 0.10);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.logo { display: flex; align-items: center; }
.logo-img { height: 100px; width: auto; max-height: calc(var(--nav-h) - 16px); }
.logo-text {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--primary);
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--primary); }

/* Language toggle */
.lang-toggle {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--secondary);
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.lang-toggle:hover {
  color: var(--primary);
  border-color: var(--secondary);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(155deg, var(--primary-dark) 0%, var(--primary) 45%, var(--secondary) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(30,40,48,0.3) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: calc(var(--nav-h) + 3rem) 0 5rem;
}

.hero-label-group {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.hero-label-divider {
  display: inline-block;
  width: 1px;
  height: 1rem;
  background: rgba(255,255,255,0.25);
}

.hero-eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 0;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 300;
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-sub {
  font-size: 1.08rem;
  color: rgba(255,255,255,0.78);
  max-width: 580px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero-pillars {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.95);
}
.pillar-dot { color: var(--accent-light); }

/* ============================================================
   SERVICES
   ============================================================ */
.section-services {
  padding: 7rem 0;
  background: var(--white);
}

.section-header {
  margin-bottom: 4rem;
}

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

.service-card {
  padding: 3rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 2);
  transition: box-shadow var(--transition), transform var(--transition);
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-card--accent {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.75rem;
  color: var(--accent);
}
.service-card--accent .service-icon { color: var(--accent-light); }

.service-title {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 400;
  color: var(--primary);
  margin-bottom: 0.85rem;
}
.service-card--accent .service-title { color: var(--white); }

.service-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.75rem;
}
.service-card--accent .service-desc { color: rgba(255,255,255,0.7); }

.service-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.service-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 1.25rem;
  position: relative;
}
.service-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.8rem;
}
.service-card--accent .service-list li { color: rgba(255,255,255,0.75); }
.service-card--accent .service-list li::before { color: var(--accent-light); }

/* ============================================================
   DIFFERENTIATOR
   ============================================================ */
.section-diff {
  padding: 6rem 0;
  background: var(--off-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.diff-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.diff-text p {
  font-size: 0.97rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-top: 1rem;
}

.diff-companies {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.diff-company {
  padding: 1.5rem 1.75rem;
  padding-right: 160px;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  transition: box-shadow var(--transition);
}
.diff-company:hover { box-shadow: var(--shadow); }

.diff-company-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--primary);
}

.diff-company-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.diff-company-press {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.85rem;
  background: var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  text-align: center;
}
.diff-press-label {
  display: block;
  font-size: 0.62rem;
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.4rem;
}

.diff-company-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0;
}
.diff-company-links a {
  font-size: 0.72rem;
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 0.2s;
}
.diff-company-links a:hover {
  color: #fff;
}

/* ============================================================
   ABOUT
   ============================================================ */
.section-about {
  padding: 7rem 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-text p {
  font-size: 0.97rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.linkedin-link {
  display: inline-flex;
  align-items: center;
  color: var(--secondary);
  margin-left: 0.5rem;
  vertical-align: middle;
  transition: color 0.2s;
}
.linkedin-link:hover { color: var(--primary); }

.about-subtitle {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}

.about-credentials {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.credential {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.credential-value {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--primary);
  line-height: 1;
}

.credential-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

/* Sidebar */
.about-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

.sidebar-block {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
}
.sidebar-block:last-child { border-bottom: none; }

.sidebar-block h4 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.sidebar-block ul {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.sidebar-block li {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================================
   CONTACT
   ============================================================ */
.section-contact {
  padding: 7rem 0;
  background: var(--off-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
  align-items: start;
}

.contact-text p {
  font-size: 0.97rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.contact-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.contact-item a {
  font-size: 0.97rem;
  color: var(--primary);
  transition: color var(--transition);
}
.contact-item a:hover { color: var(--secondary); }

/* Form */
.contact-form {
  background: var(--white);
  padding: 2.5rem;
  border-radius: calc(var(--radius) * 2);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(74, 98, 120, 0.1);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-group select { appearance: none; cursor: pointer; }

.form-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* ============================================================
   PUBLICATIONS
   ============================================================ */
.section-publications {
  padding: 7rem 0;
  background: var(--white);
}

.pub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.pub-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 2);
  text-decoration: none;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.pub-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--accent);
}

.pub-source {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.pub-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--primary);
  line-height: 1.35;
  flex: 1;
}

.pub-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.pub-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.pub-arrow {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 0.9rem;
  color: var(--accent);
  opacity: 0;
  transition: opacity var(--transition);
}
.pub-card:hover .pub-arrow { opacity: 1; }

/* Sidebar publication links */
.sidebar-pub-link {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  transition: color var(--transition);
  text-decoration: none;
}
.sidebar-pub-link:hover { color: var(--primary); }
.sidebar-pub-link span { font-size: 0.7rem; color: var(--accent); }

.sidebar-pub-more {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--secondary);
  text-decoration: none;
  transition: color var(--transition);
}
.sidebar-pub-more:hover { color: var(--primary); }

@media (max-width: 900px) {
  .pub-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .pub-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--primary-dark);
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-logo { height: 36px; width: auto; }
.footer-logo-text {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--white);
}

.footer-tagline {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.08em;
  margin-top: 0.4rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}
.footer-links a {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }

.footer-right { text-align: right; }
.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}
.footer-url {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.2);
  margin-top: 0.25rem;
  letter-spacing: 0.06em;
}

.footer-disclaimer {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 2rem;
  padding: 1.5rem 5%;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
}
.footer-disclaimer p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  text-align: center;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .services-grid,
  .diff-inner,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-sidebar { position: static; }
  .section-diff { padding: 5rem 0; }
  .section-services,
  .section-about,
  .section-contact,
  .section-publications { padding: 6rem 0; }
}

@media (max-width: 700px) {
  :root { --nav-h: 64px; }

  /* ── Header & Logo ── */
  .logo-img { height: 44px; max-height: 44px; }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 2rem 2rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { color: var(--text-muted); font-size: 1rem; }
  .nav-hamburger { display: flex; }

  /* ── Hero ── */
  .hero-content { padding-top: calc(var(--nav-h) + 2rem); padding-bottom: 4rem; }
  .hero-title { font-size: 2rem; }
  .hero-sub { font-size: 1rem; }
  .hero-label-group { flex-wrap: wrap; gap: 0.6rem; }
  .hero-pillars { font-size: 0.88rem; gap: 0.4rem; }
  .hero-ctas { flex-direction: column; }
  .btn { text-align: center; }

  /* ── Section padding ── */
  .section-services,
  .section-about,
  .section-contact,
  .section-publications { padding: 5rem 0; }
  .section-diff { padding: 4rem 0; }
  .section-header { margin-bottom: 2.5rem; }

  /* ── Diff company cards: press panel becomes bottom strip ── */
  .diff-company {
    padding-right: 1.75rem;
    padding-bottom: 0;
  }
  .diff-company-press {
    order: 10; /* push to bottom since it's first in DOM */
    position: static;
    width: calc(100% + 3.5rem);
    margin: 0.75rem -1.75rem -1.5rem;
    border-radius: 0 0 var(--radius) var(--radius);
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    height: auto;
  }
  .diff-press-label { display: none; }

  /* ── Form ── */
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 1.5rem; }

  /* ── About ── */
  .about-credentials { gap: 1.5rem; flex-wrap: wrap; }

  /* ── Footer ── */
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .footer-right { text-align: left; }
  .footer-links { flex-wrap: wrap; gap: 1rem; }
}

@media (max-width: 480px) {
  .section-services,
  .section-diff,
  .section-about,
  .section-contact,
  .section-publications { padding: 4rem 0; }

  .service-card { padding: 2rem 1.5rem; }
  .pub-card { padding: 1.25rem; }
  .contact-form { padding: 1.25rem; }
  .hero-pillars { font-size: 0.82rem; gap: 0.35rem; }
  .hero-title { font-size: 1.85rem; }
  .section-title { font-size: 1.8rem; }
  .about-credentials { gap: 1.25rem; }
  .credential-value { font-size: 1.8rem; }
}
