/* ============================================================
   Salomon Kao Theme — Main Stylesheet
   ============================================================ */

/* ─── IMPORTS ───────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=Sora:wght@400;600;700;800&display=swap');

/* ─── CUSTOM PROPERTIES ─────────────────────────────────────── */
:root {
  --bg-main:         #EEF2F7;
  --bg-white:        #FFFFFF;
  --bg-dark:         #0F1F2E;
  --accent:          #0D7A6F;
  --accent-light:    #E1F5EE;
  --accent-hover:    #0a6560;
  --violet:          #7C3AED;
  --amber:           #D97706;
  --indigo:          #4F46E5;
  --text-dark:       #111827;
  --text-mid:        #6B7280;
  --border:          #E5E7EB;
  --font-body:       'DM Sans', sans-serif;
  --font-title:      'Sora', sans-serif;
  --radius-card:     16px;
  --shadow-card:     0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
  --shadow-hover:    0 4px 12px rgba(0,0,0,0.1), 0 8px 32px rgba(0,0,0,0.07);
  --max-w:           1280px;
}

/* ─── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--bg-white);
  font-size: 15px;
  line-height: 1.75;
  overflow-x: hidden;
}

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

/* ─── UTILITIES ─────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

.eyebrow {
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  display: block;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-title.light { color: #fff; }

.section-sub {
  font-size: 15px;
  color: var(--text-mid);
  max-width: 560px;
  line-height: 1.75;
}
.section-sub.light { color: rgba(255,255,255,0.65); }

/* ─── BADGES ────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-qualite       { background: var(--violet); }
.badge-strategie     { background: var(--amber); }
.badge-organisation  { background: var(--accent); }
.badge-communication { background: var(--indigo); }

/* ─── BUTTONS ───────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 13px 28px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 150ms, transform 100ms;
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-primary:active { transform: scale(0.98); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  padding: 12px 26px;
  border-radius: 8px;
  border: 1.5px solid rgba(255,255,255,0.5);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 150ms, background 150ms;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.06); }

/* ─── REVEAL ANIMATIONS ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── NOISE OVERLAY ─────────────────────────────────────────── */
.noise-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px;
  pointer-events: none;
}

/* ══════════════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════════════ */
#header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-white);
  border-bottom: 0.5px solid var(--border);
  height: 64px;
  transition: box-shadow 200ms;
}
#header.scrolled { box-shadow: 0 1px 8px rgba(0,0,0,0.06); }

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

.logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-name {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.logo-sub {
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}

/* WordPress nav menu override */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links li { list-style: none; }
.nav-links a {
  font-size: 13px;
  color: var(--text-mid);
  text-decoration: none;
  font-weight: 400;
  transition: color 150ms;
}
.nav-links a:hover { color: var(--text-dark); }
.nav-links .nav-cta,
.nav-links li.nav-cta > a,
.nav-links a.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 13px !important;
  font-weight: 500 !important;
  transition: background 150ms !important;
}
.nav-links .nav-cta:hover,
.nav-links li.nav-cta > a:hover {
  background: var(--accent-hover) !important;
}

/* WordPress nav current page */
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a { color: var(--text-dark); font-weight: 500; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 200ms;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--bg-white);
  border-bottom: 0.5px solid var(--border);
  padding: 1rem 0;
  position: absolute;
  width: 100%;
  left: 0;
  top: 64px;
  z-index: 99;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.mobile-nav.open { display: flex; }
.mobile-nav a,
.mobile-nav .mobile-nav-list a {
  font-size: 14px;
  color: var(--text-mid);
  text-decoration: none;
  padding: 0.75rem clamp(1.5rem, 5vw, 4rem);
  transition: color 150ms;
  display: block;
}
.mobile-nav a:hover { color: var(--text-dark); }
.mobile-nav ul { list-style: none; }
.mobile-nav li { list-style: none; }

/* ══════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════ */
#hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 2rem 5rem;
  background: #0a1420;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(10,20,35,0.72), rgba(10,20,35,0.72)),
    url('https://images.unsplash.com/photo-1600880292203-757bb62b4baf?w=1600&q=80') center/cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.1s forwards;
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.25s forwards;
}
.hero-title span { color: var(--accent); }

.hero-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.4s forwards;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.55s forwards;
}

.hero-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 4rem;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.7s forwards;
}
.hero-dot {
  height: 7px;
  border-radius: 4px;
  background: rgba(255,255,255,0.3);
  width: 7px;
  transition: all 300ms;
  cursor: pointer;
}
.hero-dot.active { background: var(--accent); width: 20px; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════════
   ABOUT
   ══════════════════════════════════════════════════════════════ */
#about { background: var(--bg-white); padding: 5rem 0; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: center;
}

.about-photo-wrap { position: relative; }

.about-photo {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 16px;
}

.about-photo-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--accent-light) 0%, #d0ede4 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.75rem;
}
.about-photo-placeholder span { font-size: 12px; color: var(--accent); font-weight: 500; }

.about-badge-float {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--bg-white);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-card);
  text-align: center;
  min-width: 130px;
}
.about-badge-float .big-num {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  display: block;
}
.about-badge-float .big-label {
  font-size: 11px;
  color: var(--text-mid);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.tag {
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-light);
  border-radius: 999px;
  padding: 4px 12px;
  font-weight: 500;
}

.about-cv-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  margin-top: 1.5rem;
  transition: gap 150ms;
}
.about-cv-link:hover { gap: 10px; }

/* ══════════════════════════════════════════════════════════════
   EXPERTISES
   ══════════════════════════════════════════════════════════════ */
#expertises { background: var(--bg-main); padding: 5rem 0; }

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

.expertise-card {
  background: var(--bg-white);
  border-radius: var(--radius-card);
  border: 0.5px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: 2rem;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.expertise-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

.icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}
.icon-box svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.expertise-title {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}
.expertise-desc {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ══════════════════════════════════════════════════════════════
   STATS
   ══════════════════════════════════════════════════════════════ */
#stats { background: var(--bg-dark); padding: 5rem 0; text-align: center; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 3rem;
  position: relative;
}
.stats-grid::before, .stats-grid::after {
  content: '';
  position: absolute;
  top: 15%;
  bottom: 15%;
  width: 0.5px;
  background: rgba(255,255,255,0.1);
}
.stats-grid::before { left: 33.33%; }
.stats-grid::after  { left: 66.66%; }

.stat-cell {
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.stat-icon { width: 36px; height: 36px; margin-bottom: 0.75rem; }
.stat-icon svg {
  width: 36px;
  height: 36px;
  stroke: var(--accent);
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.stat-number {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.stat-label {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ══════════════════════════════════════════════════════════════
   PROJETS
   ══════════════════════════════════════════════════════════════ */
#projets { background: var(--bg-white); padding: 5rem 0; }

.projets-section-header { margin-bottom: 2.5rem; }

.sub-section-label {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 0.5px solid var(--border);
}

.featured-projects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.featured-project-card {
  background: var(--bg-main);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-card);
  padding: 2rem;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.featured-project-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

.project-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.project-status::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.project-title {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}
.project-desc { font-size: 13px; color: var(--text-mid); line-height: 1.7; }

/* Carousel */
.carousel-wrapper { position: relative; margin-bottom: 3rem; }
.carousel-scroll {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.carousel-scroll::-webkit-scrollbar { height: 3px; }
.carousel-scroll::-webkit-scrollbar-track { background: var(--border); border-radius: 2px; }
.carousel-scroll::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

.realization-card {
  min-width: 270px;
  max-width: 270px;
  background: var(--bg-white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.realization-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

.card-top { margin-bottom: 0.75rem; }
.card-title {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
  line-height: 1.4;
}
.card-excerpt { font-size: 12.5px; color: var(--text-mid); line-height: 1.65; flex: 1; }
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 0.5px solid var(--border);
}
.card-date { font-size: 11px; color: var(--text-mid); }
.card-link {
  color: var(--accent);
  font-size: 13px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 3px;
  font-weight: 500;
  transition: gap 150ms;
}
.card-link:hover { gap: 6px; }

/* Articles */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.article-card {
  background: var(--bg-white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.article-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.article-date { font-size: 11px; color: var(--text-mid); }
.article-title { font-family: var(--font-title); font-size: 14px; font-weight: 700; color: var(--text-dark); line-height: 1.4; }
.article-excerpt { font-size: 12.5px; color: var(--text-mid); line-height: 1.65; flex: 1; }
.article-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  margin-top: 0.5rem;
  transition: gap 150ms;
}
.article-link:hover { gap: 7px; }

/* Filters */
.filter-row { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.filter-btn {
  font-size: 12px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 999px;
  border: 0.5px solid var(--border);
  background: var(--bg-white);
  color: var(--text-mid);
  cursor: pointer;
  transition: all 150ms;
  font-family: var(--font-body);
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ══════════════════════════════════════════════════════════════
   TÉMOIGNAGES
   ══════════════════════════════════════════════════════════════ */
#temoignages { background: var(--bg-main); padding: 5rem 0; }

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

.testimonial-card {
  background: var(--bg-white);
  border-radius: var(--radius-card);
  border: 0.5px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: transform 200ms ease;
}
.testimonial-card:hover { transform: translateY(-2px); }

.quote-mark {
  font-size: 3rem;
  line-height: 1;
  color: var(--accent-light);
  font-family: Georgia, serif;
  font-weight: 700;
  margin-bottom: -0.75rem;
}
.testimonial-text { font-size: 14px; color: var(--text-mid); line-height: 1.8; font-style: italic; flex: 1; }
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 0.5px solid var(--border);
}
.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}
.author-name { font-size: 13px; font-weight: 600; color: var(--text-dark); line-height: 1.3; }
.author-role { font-size: 12px; color: var(--text-mid); }

/* ══════════════════════════════════════════════════════════════
   CONTACT
   ══════════════════════════════════════════════════════════════ */
#contact { background: var(--bg-white); padding: 5rem 0; }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.contact-info-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.contact-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon-box svg { width: 18px; height: 18px; stroke: var(--accent); stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.contact-info-label { font-size: 11px; color: var(--text-mid); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; margin-bottom: 2px; }
.contact-info-val { font-size: 14px; color: var(--text-dark); font-weight: 500; }
.contact-info-val a { color: var(--accent); text-decoration: none; }

.contact-form-card {
  background: var(--bg-white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-card);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
}
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 12px; color: var(--text-mid); font-weight: 500; margin-bottom: 6px; letter-spacing: 0.03em; }
.form-input, .form-textarea {
  width: 100%;
  background: #F9FAFB;
  border: 0.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-dark);
  transition: border-color 150ms, box-shadow 150ms;
  outline: none;
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(13,122,111,0.1);
  background: #fff;
}
.form-textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.btn-submit {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 13px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 150ms, transform 100ms;
  margin-top: 0.5rem;
}
.btn-submit:hover { background: var(--accent-hover); }
.btn-submit:active { transform: scale(0.99); }
.btn-submit:disabled { opacity: 0.7; cursor: not-allowed; }

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
  color: var(--accent);
  font-size: 15px;
  font-weight: 500;
}
.form-success svg { width: 48px; height: 48px; stroke: var(--accent); fill: none; stroke-width: 1.5; margin: 0 auto 1rem; display: block; }
.form-error-msg { font-size: 11px; color: #EF4444; margin-top: 4px; display: none; }
.form-error-msg.visible { display: block; }

/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */
#footer {
  background: var(--bg-white);
  border-top: 0.5px solid var(--border);
  padding: 3rem 0 2rem;
  text-align: center;
}
.footer-logo-name { font-family: var(--font-title); font-size: 18px; font-weight: 700; color: var(--text-dark); text-transform: uppercase; letter-spacing: 0.04em; }
.footer-tagline { font-size: 13px; color: var(--text-mid); margin-top: 0.25rem; margin-bottom: 1.5rem; }

.footer-links { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; margin-bottom: 2rem; }
.footer-links a, .footer-links ul { list-style: none; display: contents; }
.footer-links li a, .footer-links > a {
  font-size: 13px;
  color: var(--text-mid);
  text-decoration: none;
  transition: color 150ms;
}
.footer-links li a:hover, .footer-links > a:hover { color: var(--text-dark); }

.footer-divider { height: 0.5px; background: var(--border); margin: 1.5rem 0; }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem; }
.footer-copy { font-size: 11px; color: var(--text-mid); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: 11px; color: var(--text-mid); text-decoration: none; transition: color 150ms; }
.footer-legal a:hover { color: var(--text-dark); }

/* ══════════════════════════════════════════════════════════════
   BLOG / SINGLE
   ══════════════════════════════════════════════════════════════ */
.entry-content h1, .entry-content h2, .entry-content h3 {
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--text-dark);
  margin: 1.5rem 0 0.75rem;
}
.entry-content p { margin-bottom: 1rem; }
.entry-content ul, .entry-content ol { margin: 1rem 0 1rem 1.5rem; }
.entry-content a { color: var(--accent); text-decoration: underline; }
.entry-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  font-style: italic;
  color: var(--text-mid);
  margin: 1.5rem 0;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .expertise-grid    { grid-template-columns: repeat(2, 1fr); }
  .articles-grid     { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-projects { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links  { display: none; }
  .hamburger  { display: flex; }

  .about-grid { grid-template-columns: 1fr; }
  .about-photo-wrap { max-width: 340px; margin: 0 auto; }
  .about-badge-float { right: 0; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid::before { display: none; }
  .stats-grid::after  { left: 50%; }

  .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 640px) {
  .expertise-grid    { grid-template-columns: 1fr; }
  .articles-grid     { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .stats-grid        { grid-template-columns: 1fr; }
  .stats-grid::after { display: none; }
  .form-row          { grid-template-columns: 1fr; }
  .hero-btns         { flex-direction: column; align-items: center; }
}

/* ─── Accessibility ─────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* ─── WordPress Admin Bar ───────────────────────────────────── */
.admin-bar #header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar #header { top: 46px; } }
