/* ==========================================================================
   Concept FP DRC — style.css
   Bureau d'études techniques — Plomberie / Ventilation / Climatisation
   Palette officielle (brochure + carte de visite) :
     --dark  : bleu marine profond (texte, fonds sombres)
     --cyan  : cyan/turquoise (accents, liens, pictos)
     --steel : bleu acier (dégradés, survols)
     --gold  : or (accents rares, séparateurs premium)
   ========================================================================== */

:root {
  --dark: #0e2b35;
  --dark-2: #123a47;
  --slate: #2c5060;
  --steel: #2a8fae;
  --cyan: #1bbcd8;
  --gold: #e8b020;
  --bg: #ffffff;
  --bg-alt: #f6fafc;
  --bg-card: #f7fbfd;
  --line: #dfe9ec;
  --text: #1c3138;
  --text-soft: #4d6570;
  --text-invert: #eef7f9;
  --text-invert-soft: #b7d3da;
  --shadow: 0 18px 40px -20px rgba(14, 43, 53, 0.35);
  --shadow-sm: 0 8px 20px -12px rgba(14, 43, 53, 0.3);
  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1180px;
  --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.15; }
p { margin: 0; line-height: 1.7; color: var(--text-soft); }
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}
section { position: relative; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(135deg, #f2c04a, var(--gold));
  color: var(--dark);
  box-shadow: var(--shadow-sm);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(232, 176, 32, 0.55); }
.btn-outline {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-2px); }
.btn-outline-dark {
  border-color: var(--slate);
  color: var(--slate);
}
.btn-outline-dark:hover { background: var(--slate); color: #fff; }

/* ---------- Topbar / Nav ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
}
.topbar.solid {
  background: rgba(14, 43, 53, 0.94);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: 0 6px 24px -10px rgba(0,0,0,0.35);
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 38px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  color: #eef7f9;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--gold);
  transition: right 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.nav-links a.active { color: var(--gold); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta-mobile { display: none; }
.burger { display: none; }

@media (max-width: 900px) {
  .nav-links { position: fixed; top: 0; right: -100%; height: 100vh; width: min(320px, 82vw);
    background: var(--dark); flex-direction: column; justify-content: center; gap: 28px;
    transition: right 0.4s ease; box-shadow: -20px 0 40px rgba(0,0,0,0.3); overflow-y: auto; padding: 40px 0; }
  .nav-links.open { right: 0; }
  .nav-cta { display: none; }
  .nav-cta-mobile { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 6px; }
  .burger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; z-index: 1100; padding: 6px; }
  .burger span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: 0.3s; }
  .burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 360px) {
  .brand img { height: 32px; }
}

/* ---------- Hero (rotating banner) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.8s ease;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,30,38,0.78) 0%, rgba(10,30,38,0.55) 40%, rgba(10,30,38,0.92) 100%);
}
.hero-content { position: relative; z-index: 2; color: #fff; padding-top: 90px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cyan); font-weight: 600; margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--gold); }
.hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 4.1rem);
  color: #fff;
  max-width: 820px;
  letter-spacing: -0.01em;
}
.hero h1 em { font-style: normal; color: var(--cyan); }
.hero-sub {
  margin-top: 24px; max-width: 620px; font-size: 1.12rem;
  color: var(--text-invert-soft); line-height: 1.7;
}
.hero-actions { margin-top: 42px; display: flex; gap: 18px; flex-wrap: wrap; }
.hero-pillars {
  margin-top: 70px; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: rgba(255,255,255,0.14); border-radius: var(--radius);
  overflow: hidden; max-width: 760px;
}
.hero-pillar { background: rgba(10,30,38,0.55); padding: 20px 22px; }
.hero-pillar strong { display: block; color: #fff; font-size: 0.95rem; margin-bottom: 4px; }
.hero-pillar span { color: var(--text-invert-soft); font-size: 0.82rem; }
.hero-dots { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 10px; }
.hero-dots button { width: 8px; height: 8px; border-radius: 50%; border: none; background: rgba(255,255,255,0.35); cursor: pointer; padding: 0; transition: 0.3s; }
.hero-dots button.active { background: var(--gold); width: 22px; border-radius: 4px; }
.scroll-cue {
  position: absolute; bottom: 30px; right: 40px; z-index: 3; color: var(--text-invert-soft);
  writing-mode: vertical-rl; font-size: 0.75rem; letter-spacing: 0.15em; display: flex; align-items: center; gap: 10px;
}
.scroll-cue::after { content: ""; width: 1px; height: 40px; background: rgba(255,255,255,0.4); display: block; }

/* smaller page hero (inner pages) */
.page-hero {
  position: relative; padding: 190px 0 110px; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 60%, var(--slate) 100%);
}
.page-hero .bg-photo { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.28; }
.page-hero .bg-tint { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,32,40,0.55), rgba(11,32,40,0.94)); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); max-width: 760px; }
.page-hero p { margin-top: 18px; max-width: 620px; color: var(--text-invert-soft); font-size: 1.05rem; }
.breadcrumb { font-size: 0.82rem; color: var(--text-invert-soft); margin-bottom: 18px; letter-spacing: 0.04em; }
.breadcrumb span { color: var(--gold); }

/* ---------- Section headers ---------- */
.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--steel); font-weight: 700; margin-bottom: 16px;
}
.section-label::before { content: ""; width: 26px; height: 2px; background: var(--gold); }
.section-title { font-size: clamp(1.7rem, 3.2vw, 2.5rem); color: var(--dark); max-width: 700px; }
.section-title .accent { color: var(--steel); }
.section-sub { margin-top: 16px; max-width: 640px; font-size: 1.03rem; }
.section-head { margin-bottom: 54px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .section-sub { margin-left: auto; margin-right: auto; }
.section-head.center .section-label::before { display: none; }

section.pad { padding: 100px 0; }
section.pad-sm { padding: 70px 0; }
.bg-alt { background: var(--bg-alt); }
.bg-dark { background: var(--dark); color: var(--text-invert); }
.bg-dark p { color: var(--text-invert-soft); }
.bg-dark .section-title { color: #fff; }

/* ---------- Stats bar ---------- */
.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-radius: var(--radius); overflow: hidden;
  background: var(--dark); box-shadow: var(--shadow);
}
.stats-bar .stat { padding: 34px 20px; text-align: center; border-right: 1px solid rgba(255,255,255,0.1); }
.stats-bar .stat:last-child { border-right: none; }
.stats-bar .stat .num { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; color: var(--gold); }
.stats-bar .stat .lbl { margin-top: 6px; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-invert-soft); }
@media (max-width: 720px) {
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stats-bar .stat:nth-child(2) { border-right: none; }
  .stats-bar .stat { border-bottom: 1px solid rgba(255,255,255,0.1); }
}

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card .icon {
  width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--cyan), var(--steel)); color: #fff; margin-bottom: 20px; font-size: 1.4rem;
}
.card h3 { font-size: 1.12rem; color: var(--dark); margin-bottom: 10px; }
.card p { font-size: 0.93rem; }
.card ul { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.card ul li { font-size: 0.88rem; color: var(--text-soft); padding-left: 18px; position: relative; }
.card ul li::before { content: "—"; position: absolute; left: 0; color: var(--cyan); }

.num-card { position: relative; background: var(--bg-card); border-radius: var(--radius); padding: 34px 28px; border: 1px solid var(--line); }
.num-card .n { position: absolute; top: 18px; right: 24px; font-size: 2.6rem; font-weight: 700; color: rgba(42,143,174,0.15); }
.num-card h3 { font-size: 1.05rem; color: var(--dark); margin-bottom: 8px; max-width: 80%; }
.num-card p { font-size: 0.9rem; }

/* pillar list (ADN) */
.pillars { display: flex; flex-direction: column; gap: 0; }
.pillar { display: grid; grid-template-columns: 64px 1fr; gap: 22px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.pillar:last-child { border-bottom: none; }
.pillar .pnum { width: 52px; height: 52px; border-radius: 50%; background: var(--dark); color: var(--gold); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.pillar h3 { font-size: 1.2rem; color: var(--dark); margin-bottom: 10px; }
.pillar ul { display: flex; flex-direction: column; gap: 7px; }
.pillar ul li { font-size: 0.93rem; color: var(--text-soft); padding-left: 16px; position: relative; }
.pillar ul li::before { content: "•"; position: absolute; left: 0; color: var(--gold); }

/* Quote block */
.quote-block { position: relative; padding: 60px 0; }
.quote-block blockquote {
  font-size: clamp(1.2rem, 2.4vw, 1.7rem); font-weight: 500; line-height: 1.5; color: var(--dark);
  max-width: 880px; position: relative; padding-left: 34px; border-left: 3px solid var(--gold); margin: 0 auto;
}
.quote-block cite { display: block; margin-top: 22px; font-style: normal; font-size: 0.9rem; color: var(--text-soft); font-weight: 600; padding-left: 34px; }
.quote-block.dark blockquote { color: #fff; }
.quote-block.dark cite { color: var(--text-invert-soft); }

/* Timeline (parcours) */
.timeline { position: relative; padding-left: 32px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 42px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: -32px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--gold); }
.tl-year { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--steel); font-weight: 700; margin-bottom: 6px; }
.tl-item h3 { font-size: 1.15rem; color: var(--dark); margin-bottom: 8px; }

/* Gallery (savoir-faire) */
.gallery-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.gallery-tab {
  padding: 10px 20px; border-radius: 100px; border: 1px solid var(--line); background: #fff;
  font-size: 0.85rem; font-weight: 600; color: var(--text-soft); cursor: pointer; transition: 0.25s;
}
.gallery-tab:hover { border-color: var(--cyan); color: var(--steel); }
.gallery-tab.active { background: var(--dark); border-color: var(--dark); color: #fff; }
.gallery-panels { position: relative; }
.gallery-panel { display: none; }
.gallery-panel.active { display: block; animation: fadein 0.5s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(8px);} to { opacity: 1; transform: none; } }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-grid.small { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 980px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } .gallery-grid.small { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 620px) { .gallery-grid, .gallery-grid.small { grid-template-columns: repeat(2, 1fr); } }
.gphoto { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; cursor: pointer; background: var(--bg-alt); }
.gphoto img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gphoto:hover img { transform: scale(1.08); }
.gphoto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10,30,38,0.55)); opacity: 0; transition: 0.3s; }
.gphoto:hover::after { opacity: 1; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(8,20,25,0.94); z-index: 3000; display: none; align-items: center; justify-content: center; padding: 40px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.lightbox-close { position: absolute; top: 26px; right: 32px; color: #fff; font-size: 2rem; cursor: pointer; line-height: 1; opacity: 0.8; }
.lightbox-close:hover { opacity: 1; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 2.2rem; cursor: pointer; padding: 12px 18px; opacity: 0.6; user-select: none; }
.lightbox-nav:hover { opacity: 1; }
.lightbox-nav.prev { left: 10px; }
.lightbox-nav.next { right: 10px; }

/* Projects (réalisations) */
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 720px) { .project-grid { grid-template-columns: 1fr; } }
.project-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.project-card .pv { font-weight: 700; color: var(--dark); font-size: 0.98rem; }
.project-card .pd { color: var(--text-soft); font-size: 0.85rem; margin-top: 3px; }
.project-card .plg { flex-shrink: 0; text-align: right; }
.project-card .plg b { display: block; color: var(--steel); font-size: 1.05rem; }
.project-card .plg span { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-soft); }

.extended-list { columns: 3 280px; column-gap: 34px; }
@media (max-width: 720px) { .extended-list { columns: 1; } }
.ext-item { break-inside: avoid; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 0.86rem; }
.ext-item .ev { font-weight: 600; color: var(--dark); }
.ext-item .ed { color: var(--text-soft); display: block; font-size: 0.8rem; margin-top: 2px; }
.show-more-wrap { text-align: center; margin-top: 40px; }
#extended-wrap { max-height: 620px; overflow: hidden; position: relative; transition: max-height 0.6s ease; }
#extended-wrap::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(180deg, transparent, var(--bg-alt)); pointer-events: none; }
#extended-wrap.expanded { max-height: 20000px; }
#extended-wrap.expanded::after { display: none; }

/* Client logos wall */
.clients-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
@media (max-width: 980px) { .clients-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 620px) { .clients-grid { grid-template-columns: repeat(3, 1fr); } }
.client-logo {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; padding: 16px; height: 92px;
  filter: grayscale(45%); opacity: 0.85; transition: 0.3s;
}
.client-logo:hover { filter: grayscale(0%); opacity: 1; box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.client-logo img { max-height: 44px; max-width: 100%; object-fit: contain; }
.client-logo.partner-logo { height: 130px; padding: 22px; }
.client-logo.partner-logo img { max-height: 84px; }

/* Segments (marchés) */
.segment { display: flex; align-items: flex-start; gap: 18px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.segment:last-child { border-bottom: none; }
.segment .sicon { width: 48px; height: 48px; border-radius: 10px; background: var(--bg-card); display: flex; align-items: center; justify-content: center; color: var(--steel); font-size: 1.3rem; flex-shrink: 0; }
.segment h3 { font-size: 1.05rem; color: var(--dark); margin-bottom: 6px; }
.segment p { font-size: 0.92rem; }

/* Risk table (pourquoi) */
.risk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 820px) { .risk-grid { grid-template-columns: 1fr; } }
.risk-col h4 { font-size: 0.95rem; color: var(--dark); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.risk-col.good h4::before { content: "✓"; width: 26px; height: 26px; border-radius: 50%; background: var(--cyan); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; flex-shrink: 0; }
.risk-col.bad h4::before { content: "!"; width: 26px; height: 26px; border-radius: 50%; background: #d9534f; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; flex-shrink: 0; }
.risk-col ul { display: flex; flex-direction: column; gap: 12px; }
.risk-col li { font-size: 0.92rem; color: var(--text-soft); padding-left: 36px; }

/* Timeline / missions */
.missions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 720px) { .missions { grid-template-columns: 1fr; } }
.mission { text-align: center; padding: 30px 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.mission .tag { font-size: 0.75rem; letter-spacing: 0.1em; color: var(--gold); font-weight: 700; margin-bottom: 10px; }
.mission h3 { font-size: 1.05rem; color: var(--dark); }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--dark), var(--dark-2) 55%, var(--slate));
  color: #fff; border-radius: var(--radius); padding: 60px 50px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  box-shadow: var(--shadow);
}
.cta-band h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); max-width: 480px; }
.cta-band p { margin-top: 10px; color: var(--text-invert-soft); }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-block { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-block:last-child { border-bottom: none; }
.contact-block .cicon { width: 46px; height: 46px; border-radius: 10px; background: var(--dark); color: var(--gold); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-block h4 { font-size: 0.95rem; color: var(--dark); margin-bottom: 4px; }
.contact-block p { font-size: 0.92rem; }
.contact-block a { color: var(--steel); font-weight: 600; }
.office-tag { display: inline-block; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; background: var(--bg-card); color: var(--steel); padding: 3px 10px; border-radius: 100px; margin-bottom: 10px; font-weight: 700; }

form.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.contact-form label { font-size: 0.8rem; font-weight: 600; color: var(--dark); margin-bottom: 6px; display: block; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  font-family: var(--font); font-size: 0.92rem; color: var(--text); background: #fff; transition: 0.25s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(27,188,216,0.15); }
.contact-form textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.78rem; color: var(--text-soft); margin-top: 4px; }

/* Footer */
footer { background: var(--dark); color: var(--text-invert-soft); padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,0.1); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 36px; margin-bottom: 18px; }
.footer-brand p { font-size: 0.88rem; max-width: 280px; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; transition: 0.25s; }
.footer-social a:hover { background: var(--cyan); border-color: var(--cyan); }
.footer-col h5 { color: #fff; font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 20px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-col span { font-size: 0.88rem; color: var(--text-invert-soft); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 26px 0; font-size: 0.78rem; color: rgba(238,247,249,0.5); gap: 16px; }
.footer-bottom a { color: rgba(238,247,249,0.5); }
.footer-bottom > span:first-child { text-align: left; }
.footer-bottom > span:last-child { text-align: right; }
@media (max-width: 700px) {
  .footer-bottom { grid-template-columns: 1fr; text-align: center; gap: 8px; }
  .footer-bottom > span:first-child, .footer-bottom > span:last-child { text-align: center; }
  .footer-bottom .credit { justify-content: center; }
}

/* Back to top */
.back-to-top {
  position: fixed; bottom: 26px; right: 26px; z-index: 900;
  width: 54px; height: 54px; border-radius: 50%; background: var(--dark); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: #fff;
  box-shadow: 0 12px 28px -8px rgba(14,43,53,0.5);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background 0.25s ease;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--cyan); }

/* Reveal on scroll — progressive enhancement: content is fully visible by
   default so it never depends on JavaScript running; only once the 'js'
   class is present (added synchronously at the top of <body>) do .reveal
   elements start hidden and fade in via IntersectionObserver. */
.reveal { transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal { opacity: 0; transform: translateY(26px); }
.js .reveal.in { opacity: 1; transform: none; }

/* Misc */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 36px; } }
.img-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.img-frame img { width: 100%; height: 100%; object-fit: cover; }
.badge-float {
  position: absolute; bottom: -22px; left: -22px; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px 26px; display: flex; align-items: center; gap: 14px;
}
.badge-float .n { font-size: 1.6rem; font-weight: 700; color: var(--steel); }
.badge-float span { font-size: 0.75rem; color: var(--text-soft); max-width: 110px; display: block; }
@media (max-width: 620px) { .badge-float { left: 12px; bottom: -18px; padding: 14px 18px; } }

/* ---- Preloader ---- */
.preloader {
  position: fixed; inset: 0; z-index: 10000;
  background: #ffffff;
  display: flex; align-items: center; justify-content: center;
  opacity: 1; visibility: visible;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.preloader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.preloader-logo {
  width: 150px; height: auto;
  animation: preloaderBreathe 2.4s ease-in-out infinite;
}
.preloader-bar { width: 110px; height: 2px; border-radius: 2px; background: rgba(14,43,53,0.12); overflow: hidden; }
.preloader-bar-fill { display: block; height: 100%; width: 30%; background: var(--cyan); border-radius: 2px; animation: preloaderBar 1.1s ease-in-out infinite; }
@keyframes preloaderBreathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.055); } }
@keyframes preloaderBar { 0% { transform: translateX(-120%); } 100% { transform: translateX(320%); } }
/* No-JS fallback: never leave a stuck overlay if scripting is unavailable */
html:not(.js) .preloader { display: none; }

/* ---- Footer designer credit ---- */
.footer-bottom .credit { display: flex; align-items: center; gap: 5px; }
.footer-bottom .credit .heart { color: var(--gold); font-size: 0.85em; }
.footer-bottom .credit a { color: rgba(238,247,249,0.7); text-decoration: none; border-bottom: 1px solid rgba(238,247,249,0.3); transition: 0.2s; }
.footer-bottom .credit a:hover { color: var(--cyan); border-color: var(--cyan); }
