/* ============================================
   AC JURISCONSULTE - Cabinet Maître André Chamy
   Editorial Luxury — International Law Firm
   ============================================ */

:root {
  --black: #09090b;
  --black-warm: #0f0f0f;
  --charcoal: #1a1a1e;
  --graphite: #27272a;
  --steel: #3f3f46;
  --smoke: #71717a;
  --ash: #a1a1aa;
  --silver: #d4d4d8;
  --pearl: #e4e4e7;
  --cream: #f8f7f4;
  --ivory: #faf9f6;
  --white: #fefefe;

  --gold: #c4a265;
  --gold-light: #dbc299;
  --gold-muted: #a68b50;
  --gold-faint: rgba(196, 162, 101, 0.08);
  --gold-glow: rgba(196, 162, 101, 0.15);

  --font-display: 'EB Garamond', 'Georgia', serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --max-w: 1280px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: all 0.3s var(--ease); }
ul, ol { list-style: none; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 40px; }

/* ─── Typography ─── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  color: var(--black);
}

h1 { font-size: clamp(3rem, 7vw, 5.5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); letter-spacing: -0.01em; }

.section-label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 5px;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.section-label::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.text-center .section-label { justify-content: center; }
.text-center .section-label::before { display: none; }

.section-desc {
  color: var(--smoke);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 64px;
  line-height: 1.8;
  font-weight: 400;
}

.text-center { text-align: center; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 0;
  border: none;
  cursor: pointer;
  transition: all 0.4s var(--ease);
  letter-spacing: 2px;
  text-transform: uppercase;
  position: relative;
}

.btn-primary {
  background: var(--gold);
  color: var(--black);
}

.btn-primary:hover {
  background: var(--gold-muted);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(196, 162, 101, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--steel);
  border: 1px solid var(--ash);
}

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

.btn-dark {
  background: var(--black);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--charcoal);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

/* ─── Header ─── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.5s var(--ease);
  padding: 28px 0;
}

.header.scrolled {
  background: rgba(254,254,254,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px 0;
  border-bottom: 1px solid var(--pearl);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo img {
  height: 48px;
  width: auto;
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.logo-text { display: flex; flex-direction: column; }

.logo-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--black);
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.header.scrolled .logo-name { color: var(--black); }

.logo-title {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--smoke);
  font-weight: 500;
}

.header.scrolled .logo-title { color: var(--smoke); }

.nav-links { display: flex; align-items: center; gap: 44px; }

.nav-links a {
  color: var(--steel);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  position: relative;
}

.header.scrolled .nav-links a { color: var(--steel); }

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.4s var(--ease);
}

.nav-links a:hover,
.nav-links a.active { color: var(--black); }
.header.scrolled .nav-links a:hover,
.header.scrolled .nav-links a.active { color: var(--black); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta {
  padding: 10px 28px !important;
  background: var(--gold) !important;
  color: var(--black) !important;
  font-weight: 700 !important;
}

.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--gold-muted) !important; color: var(--white) !important; }

/* Mobile */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.menu-toggle span {
  width: 22px;
  height: 1px;
  background: var(--black);
  transition: all 0.3s var(--ease);
}

.header.scrolled .menu-toggle span { background: var(--black); }

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--ivory);
  overflow: hidden;
  padding: 120px 0 80px;
}

/* Subtle grain texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.02'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

/* Gold accent line */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-muted), transparent);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.hero-badge::before {
  content: '';
  width: 48px;
  height: 1px;
  background: var(--gold);
}

.hero-badge span {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 4px;
  text-transform: uppercase;
}

.hero h1 {
  color: var(--black);
  margin-bottom: 32px;
  font-weight: 400;
}

.hero h1 .highlight {
  color: var(--gold-muted);
  font-style: italic;
}

.hero-desc {
  color: var(--steel);
  font-size: 1.1rem;
  line-height: 1.9;
  margin-bottom: 52px;
  max-width: 520px;
  font-weight: 400;
}

.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 64px;
  margin-top: 100px;
  padding-top: 48px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.hero-stat h3 {
  font-size: 3.2rem;
  color: var(--gold-muted);
  font-weight: 400;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

.hero-stat p {
  color: var(--smoke);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 600;
}

.hero-decoration {
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  width: 380px;
  height: 380px;
  border: 1px solid rgba(196, 162, 101, 0.12);
  border-radius: 50%;
  z-index: 1;
}

.hero-decoration::before {
  content: '';
  position: absolute;
  inset: 60px;
  border: 1px solid rgba(196, 162, 101, 0.08);
  border-radius: 50%;
}

.hero-decoration::after {
  content: '';
  position: absolute;
  inset: 120px;
  border: 1px solid rgba(196, 162, 101, 0.05);
  border-radius: 50%;
}

/* ─── Sections ─── */
section { padding: 120px 0; }

/* ─── Expertise Grid ─── */
.expertise { background: var(--ivory); }

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 64px;
}

.expertise-card {
  padding: 52px 40px;
  transition: all 0.5s var(--ease);
  position: relative;
  border-right: 1px solid var(--pearl);
  border-bottom: 1px solid var(--pearl);
  background: transparent;
}

.expertise-card:nth-child(3n) { border-right: none; }
.expertise-card:nth-child(n+4) { /* keep bottom border */ }
.expertise-card:nth-last-child(-n+3) { border-bottom: none; }

.expertise-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.expertise-card:hover { background: var(--white); }
.expertise-card:hover::after { transform: scaleX(1); }

.expertise-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  color: var(--gold);
}

.expertise-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.2;
}

.expertise-card h3 {
  margin-bottom: 16px;
  font-size: 1.45rem;
}

.expertise-card p {
  color: var(--smoke);
  font-size: 0.9rem;
  line-height: 1.75;
}

.expertise-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  color: var(--gold-muted);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.3s var(--ease);
}

.expertise-card:hover .card-link { gap: 14px; color: var(--gold); }

/* ─── About ─── */
.about { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 120px;
  align-items: center;
}

.about-image { position: relative; }

.about-image-wrapper {
  position: relative;
  overflow: hidden;
}

.about-image-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--pearl);
  z-index: 1;
  pointer-events: none;
}

.about-image img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  filter: grayscale(30%) contrast(1.05);
  transition: filter 0.5s var(--ease);
}

.about-image:hover img { filter: grayscale(10%) contrast(1.05); }

.about-experience-badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--black);
  color: var(--white);
  padding: 32px;
  text-align: center;
  z-index: 2;
}

.about-experience-badge .number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 400;
  line-height: 1;
  color: var(--gold-light);
}

.about-experience-badge .label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 700;
  color: var(--steel);
  margin-top: 6px;
}

.about-content h2 { margin-bottom: 32px; }

.about-text {
  color: var(--smoke);
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.85;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 32px;
  margin: 40px 0 48px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--charcoal);
}

.about-feature .check {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

/* ─── Values ─── */
.values {
  background: var(--black);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.values::before,
.values::after {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196,162,101,0.15), transparent);
}
.values::before { top: 0; }
.values::after { bottom: 0; }

.values .section-title { color: var(--white); }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 64px;
}

.value-card {
  padding: 48px 40px;
  border-right: 1px solid rgba(255,255,255,0.05);
  transition: all 0.5s var(--ease);
}

.value-card:nth-child(3n) { border-right: none; }
.value-card:hover { background: rgba(255,255,255,0.02); }

.value-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  color: var(--gold-light);
}

.value-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.2;
}

.value-card h3 {
  color: var(--white);
  margin-bottom: 14px;
  font-size: 1.35rem;
  font-weight: 400;
}

.value-card p {
  color: var(--steel);
  font-size: 0.88rem;
  line-height: 1.8;
}

/* ─── Stats ─── */
.stats {
  background: var(--cream);
  padding: 100px 0;
  border-top: 1px solid var(--pearl);
  border-bottom: 1px solid var(--pearl);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 32px 20px;
  border-right: 1px solid var(--pearl);
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 400;
  color: var(--black);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.stat-label {
  color: var(--smoke);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
}

/* ─── FAQ ─── */
.faq { background: var(--white); }

.faq-grid {
  max-width: 720px;
  margin: 64px auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--pearl);
}

.faq-item:first-child { border-top: 1px solid var(--pearl); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  cursor: pointer;
  font-weight: 500;
  font-size: 1.05rem;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--charcoal);
  transition: color 0.3s var(--ease);
}

.faq-question:hover { color: var(--gold-muted); }

.faq-icon {
  font-size: 1.2rem;
  color: var(--gold);
  transition: transform 0.4s var(--ease);
  flex-shrink: 0;
  margin-left: 24px;
  font-weight: 300;
}

.faq-item.active .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease);
}

.faq-item.active .faq-answer { max-height: 350px; }

.faq-answer p {
  padding: 0 0 28px;
  color: var(--smoke);
  line-height: 1.85;
  font-size: 0.95rem;
}

/* ─── CTA ─── */
.cta {
  background: var(--black);
  text-align: center;
  padding: 120px 0;
  position: relative;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196,162,101,0.15), transparent);
}

.cta h2 { color: var(--white); margin-bottom: 24px; }

.cta p {
  color: var(--steel);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto 48px;
  line-height: 1.8;
}

.cta-contact-info {
  display: flex;
  justify-content: center;
  gap: 64px;
  margin-top: 64px;
  flex-wrap: wrap;
}

.cta-contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--smoke);
  font-size: 0.9rem;
}

.cta-contact-item .icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(196,162,101,0.2);
  color: var(--gold-light);
}

.cta-contact-item .icon svg { width: 16px; height: 16px; }

/* ─── Contact Page ─── */
.contact-section { background: var(--ivory); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  margin-top: 64px;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--white);
  padding: 28px;
  border: 1px solid var(--pearl);
  transition: all 0.4s var(--ease);
}

.contact-info-card:hover { border-color: var(--gold-light); }

.contact-info-card .icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  flex-shrink: 0;
  color: var(--gold-light);
}

.contact-info-card .icon svg { width: 16px; height: 16px; }

.contact-info-card h4 {
  font-family: var(--font-body);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--smoke);
  margin-bottom: 6px;
  font-weight: 700;
}

.contact-info-card p { font-weight: 500; font-size: 0.95rem; color: var(--charcoal); }
.contact-info-card a { color: var(--gold-muted); font-weight: 600; }
.contact-info-card a:hover { color: var(--gold); }

.contact-form-wrapper {
  background: var(--white);
  padding: 48px;
  border: 1px solid var(--pearl);
}

.form-group { margin-bottom: 22px; }

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
  color: var(--charcoal);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--pearl);
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.3s var(--ease);
  background: var(--white);
  color: var(--charcoal);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ─── Map ─── */
.map-section { padding: 0; }
.map-section iframe {
  width: 100%;
  height: 420px;
  border: none;
  filter: grayscale(100%) contrast(1.1) brightness(0.95);
  transition: filter 0.5s var(--ease);
}
.map-section iframe:hover { filter: grayscale(30%) contrast(1.05); }

/* ─── Footer ─── */
.footer {
  background: var(--cream);
  color: var(--smoke);
  padding: 80px 0 0;
  border-top: 1px solid var(--pearl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.5fr;
  gap: 60px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--pearl);
}

.footer-brand .logo { margin-bottom: 24px; }

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.8;
  max-width: 280px;
  color: var(--smoke);
}

.footer h4 {
  color: var(--black);
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 24px;
}

.footer-links a {
  display: block;
  color: var(--smoke);
  padding: 5px 0;
  font-size: 0.88rem;
  transition: all 0.3s var(--ease);
}

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

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.86rem;
  color: var(--smoke);
}

.footer-contact-item .icon { color: var(--gold-muted); margin-top: 3px; flex-shrink: 0; }
.footer-contact-item .icon svg { width: 14px; height: 14px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
  font-size: 0.75rem;
  color: var(--ash);
}

.footer-bottom a { color: var(--gold-muted); }
.footer-bottom a:hover { color: var(--gold); }

/* ─── Page Hero ─── */
.page-hero {
  background: var(--cream);
  padding: 180px 0 100px;
  text-align: center;
  position: relative;
  border-bottom: 1px solid var(--pearl);
}

.page-hero h1 { color: var(--black); margin-bottom: 20px; }
.page-hero p { color: var(--smoke); font-size: 1.05rem; max-width: 500px; margin: 0 auto; line-height: 1.8; }

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 0.65rem;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

.breadcrumb a { color: var(--gold); }

/* ─── Competences Page ─── */
.competence-detail { background: var(--white); }
.competence-detail + .competence-detail { background: var(--ivory); }

.competence-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

.competence-detail:nth-child(even) .competence-detail-grid { direction: rtl; }
.competence-detail:nth-child(even) .competence-detail-grid > * { direction: ltr; }

.competence-detail-content h2 { margin-bottom: 28px; }
.competence-detail-content p { color: var(--smoke); margin-bottom: 16px; line-height: 1.85; }
.competence-detail-content ul { margin: 24px 0; }

.competence-detail-content li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 9px 0;
  color: var(--smoke);
  font-size: 0.95rem;
}

.competence-detail-content li::before {
  content: '';
  width: 5px;
  height: 5px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
  margin-top: 9px;
}

.competence-visual { position: relative; overflow: hidden; }

.competence-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--pearl);
  pointer-events: none;
}

.competence-visual img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  filter: grayscale(25%) contrast(1.05);
  transition: filter 0.5s var(--ease);
}

.competence-visual:hover img { filter: grayscale(5%) contrast(1.05); }

/* ─── Animations ─── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .container { padding: 0 32px; }
  .about-grid, .contact-grid, .competence-detail-grid { grid-template-columns: 1fr; gap: 48px; }
  .competence-detail:nth-child(even) .competence-detail-grid { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .hero-decoration { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-bottom: 1px solid var(--pearl); }
  .expertise-grid, .values-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .container { padding: 0 24px; }

  .nav-links {
    position: fixed; top: 0; right: -100%;
    width: 85%; max-width: 340px; height: 100vh;
    background: var(--black); flex-direction: column;
    justify-content: center; padding: 48px; gap: 28px;
    transition: right 0.4s var(--ease);
    box-shadow: -8px 0 40px rgba(0,0,0,0.5);
  }

  .nav-links.active { right: 0; }
  .nav-links a { color: rgba(255,255,255,0.6) !important; font-size: 0.85rem; }
  .nav-links a:hover { color: var(--white) !important; }

  .menu-toggle { display: flex; }
  .menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .hero { min-height: auto; padding: 140px 0 72px; }
  .hero-stats { gap: 28px; flex-wrap: wrap; }
  .hero-stat h3 { font-size: 2.2rem; }
  .about-image img { height: 360px; }
  .about-features { grid-template-columns: 1fr; }
  .expertise-grid, .values-grid { grid-template-columns: 1fr; }
  .expertise-card { border-right: none !important; }
  .value-card { border-right: none !important; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  section { padding: 80px 0; }
  .form-row { grid-template-columns: 1fr; }
  .cta-contact-info { flex-direction: column; align-items: center; gap: 24px; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 0; }
  .hero-buttons { flex-direction: column; }
  .btn { justify-content: center; width: 100%; }
}

/* ─── Overlay ─── */
.nav-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.6); z-index: 999;
}
.nav-overlay.active { display: block; }

/* ─── Blog Grid ─── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 64px;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--pearl);
  padding: 36px;
  transition: all 0.3s var(--ease);
}

.blog-card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

.blog-category {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold-muted);
  border: 1px solid var(--gold);
  padding: 4px 12px;
  margin-bottom: 20px;
}

.blog-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--black);
  line-height: 1.4;
  margin-bottom: 16px;
}

.blog-excerpt {
  color: var(--smoke);
  font-size: 0.92rem;
  line-height: 1.75;
  margin-bottom: 20px;
}

.blog-meta {
  font-size: 0.75rem;
  color: var(--ash);
  margin-bottom: 16px;
  font-weight: 500;
}

.blog-link {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold-muted);
  transition: color 0.3s var(--ease);
}

.blog-link:hover {
  color: var(--gold);
}

/* ─── btn-secondary ─── */
.btn-secondary {
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--black);
}

.btn-secondary:hover {
  background: var(--graphite);
  border-color: var(--graphite);
}

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

/* ─── Article Content ─── */
.article-content {
  max-width: 720px;
}

.article-content h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--black);
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
}

.article-content p {
  color: var(--charcoal);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.article-content a {
  color: var(--gold-muted);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(196, 162, 101, 0.3);
  text-underline-offset: 3px;
  transition: all 0.2s var(--ease);
}

.article-content a:hover {
  color: var(--gold);
  text-decoration-color: var(--gold);
}

.article-content ul,
.article-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--charcoal);
}

.article-content li {
  margin-bottom: 0.6rem;
  line-height: 1.75;
  font-size: 0.98rem;
}

.article-content blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--gold);
  background: var(--gold-faint);
  font-style: italic;
  color: var(--steel);
  font-size: 1.02rem;
  line-height: 1.75;
}

.article-content blockquote p {
  margin-bottom: 0;
  color: inherit;
}

/* ─── News Carousel ─── */
.news-carousel-section {
  padding: 100px 0;
  background: var(--ivory);
  overflow: hidden;
}

.news-carousel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  gap: 2rem;
}

.news-carousel-nav {
  display: flex;
  gap: .75rem;
  flex-shrink: 0;
}

.carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--pearl);
  background: var(--white);
  color: var(--graphite);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .3s var(--ease);
}

.carousel-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
  transform: scale(1.08);
}

.carousel-btn:active {
  transform: scale(0.95);
}

.news-carousel-track-wrapper {
  overflow: hidden;
  border-radius: 16px;
}

.news-carousel-track {
  display: flex;
  gap: 1.5rem;
  transition: transform .6s var(--ease);
  will-change: transform;
}

.news-slide {
  flex: 0 0 calc(33.333% - 1rem);
  min-width: 0;
  background: var(--white);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  border: 1px solid var(--pearl);
  transition: all .4s var(--ease);
  position: relative;
  overflow: hidden;
}

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

.news-slide:hover {
  border-color: var(--gold-light);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), 0 2px 12px rgba(196, 162, 101, 0.1);
}

.news-slide:hover::before {
  transform: scaleX(1);
}

.news-slide-cat {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gold);
  background: var(--gold-faint);
  padding: .3rem .75rem;
  border-radius: 100px;
  width: fit-content;
}

.news-slide-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--black);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-slide-excerpt {
  font-size: .9rem;
  line-height: 1.6;
  color: var(--smoke);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.news-slide-date {
  font-size: .8rem;
  color: var(--ash);
  font-weight: 500;
  margin-top: auto;
  padding-top: .75rem;
  border-top: 1px solid var(--pearl);
}

.news-carousel-dots {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 2rem;
}

.news-carousel-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 100px;
  background: var(--silver);
  border: none;
  cursor: pointer;
  transition: all .3s var(--ease);
  padding: 0;
}

.news-carousel-dots .dot.active {
  width: 32px;
  background: var(--gold);
}

.news-carousel-dots .dot:hover:not(.active) {
  background: var(--ash);
}

/* Carousel auto-play progress bar */
.news-carousel-section .carousel-progress {
  position: relative;
  height: 2px;
  background: var(--pearl);
  margin-top: 1.5rem;
  border-radius: 2px;
  overflow: hidden;
}

.news-carousel-section .carousel-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  width: 0%;
  border-radius: 2px;
  transition: width linear;
}

@media (max-width: 1024px) {
  .news-slide {
    flex: 0 0 calc(50% - .75rem);
  }
  .news-carousel-section {
    padding: 80px 0;
  }
}

@media (max-width: 768px) {
  .news-carousel-section {
    padding: 56px 0;
  }

  .news-carousel-header {
    flex-direction: row;
    align-items: center;
    margin-bottom: 1.75rem;
    gap: 1rem;
  }

  .news-carousel-header .section-label {
    font-size: .7rem;
  }

  .news-carousel-header .section-title {
    font-size: 1.35rem;
    line-height: 1.3;
  }

  .news-carousel-nav {
    gap: .5rem;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
  }

  .carousel-btn svg {
    width: 16px;
    height: 16px;
  }

  .news-carousel-track-wrapper {
    border-radius: 0;
    margin: 0 -24px;
    padding: 0 24px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 4%, black 88%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, black 4%, black 88%, transparent 100%);
  }

  .news-carousel-track {
    gap: 14px;
    scroll-behavior: smooth;
  }

  .news-slide {
    flex: 0 0 78vw;
    max-width: 320px;
    padding: 1.5rem 1.25rem;
    border-radius: 14px;
    gap: .6rem;
    min-height: 220px;
  }

  .news-slide::before {
    height: 3px;
    transform: scaleX(1);
  }

  .news-slide-cat {
    font-size: .65rem;
    padding: .25rem .6rem;
    letter-spacing: .06em;
  }

  .news-slide-title {
    font-size: 1.05rem;
    -webkit-line-clamp: 2;
    line-height: 1.3;
  }

  .news-slide-excerpt {
    font-size: .82rem;
    line-height: 1.55;
    -webkit-line-clamp: 2;
  }

  .news-slide-date {
    font-size: .75rem;
    padding-top: .6rem;
  }

  .news-carousel-dots {
    margin-top: 1.25rem;
    gap: 6px;
  }

  .news-carousel-dots .dot {
    width: 6px;
    height: 6px;
  }

  .news-carousel-dots .dot.active {
    width: 24px;
  }
}

@media (max-width: 480px) {
  .news-carousel-section {
    padding: 44px 0;
  }

  .news-carousel-header {
    margin-bottom: 1.25rem;
  }

  .news-carousel-header .section-title {
    font-size: 1.2rem;
  }

  .news-carousel-track-wrapper {
    margin: 0 -18px;
    padding: 0 18px;
  }

  .news-slide {
    flex: 0 0 82vw;
    padding: 1.25rem 1.1rem;
    border-radius: 12px;
    min-height: 200px;
  }

  .news-slide-title {
    font-size: .97rem;
  }

  .news-slide-excerpt {
    font-size: .78rem;
    -webkit-line-clamp: 2;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
  }

  .carousel-btn svg {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 380px) {
  .news-carousel-nav {
    display: none;
  }

  .news-slide {
    flex: 0 0 86vw;
  }
}

/* ─── Print ─── */
@media print {
  .header, .footer, .cta, .menu-toggle, .nav-overlay, .news-carousel-section { display: none; }
  body { color: #000; background: #fff; }
  section { padding: 20px 0; }
}
