/* ============================================
   AMTEI — Design System
   Au service de vos réseaux
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Couleurs identité AMTEI */
  --amtei-blue: #0F4C81;
  --amtei-blue-deep: #0a3a64;
  --amtei-blue-soft: #2a6ba8;
  --amtei-orange: #E8951C;
  --amtei-orange-soft: #f0a945;
  --amtei-grey-blue: #B7C4C9;
  --amtei-grey-soft: #E5EAEC;
  --amtei-cream: #FAF7F2;
  --amtei-ink: #0E1E2B;
  --amtei-white: #ffffff;
  --amtei-line: rgba(15, 76, 129, 0.12);

  /* Typographie */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  /* Espacements */
  --section-y: clamp(64px, 9vw, 140px);
  --container: 100%;
  --gutter: clamp(20px, 4vw, 80px);

  /* Transitions */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--amtei-ink);
  background: var(--amtei-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; transition: color 0.3s var(--ease); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ============ TYPOGRAPHIE ============ */
.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amtei-orange);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--amtei-orange);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--amtei-blue);
  line-height: 1.12;
}

h1 { font-size: clamp(40px, 7vw, 88px); font-weight: 300; }
h2 { font-size: clamp(32px, 5vw, 60px); font-weight: 400; }
h3 { font-size: clamp(22px, 2.5vw, 32px); font-weight: 500; }
h4 { font-size: clamp(18px, 1.8vw, 22px); font-weight: 500; }

h1 em, h2 em, h3 em {
  font-style: italic;
  color: var(--amtei-orange);
  font-weight: 400;
  display: inline-block;
  padding-bottom: 0.08em;
}

p { color: var(--amtei-ink); opacity: 0.82; }
.lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; max-width: 640px; opacity: 0.88; }

/* ============ LAYOUT ============ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: var(--section-y) 0; position: relative; }
.section-tight { padding: calc(var(--section-y) * 0.6) 0; }

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--amtei-line);
  transition: all 0.4s var(--ease);
}
.nav.scrolled {
  padding: 12px 0;
  background: rgba(250, 247, 242, 0.95);
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-brand img { height: 38px; width: auto; }
.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.nav-brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--amtei-blue);
  letter-spacing: -0.02em;
}
.nav-brand-tagline {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amtei-orange);
  margin-top: 4px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--amtei-ink);
  position: relative;
  padding: 8px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 1px;
  background: var(--amtei-orange);
  transition: width 0.4s var(--ease);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a:hover { color: var(--amtei-blue); }
.nav-links a.active { color: var(--amtei-blue); }

.nav-cta {
  background: var(--amtei-blue);
  color: var(--amtei-white) !important;
  padding: 12px 22px !important;
  border-radius: 999px;
  font-size: 13px !important;
  font-weight: 500;
  transition: all 0.3s var(--ease);
}
.nav-cta:hover {
  background: var(--amtei-orange);
  transform: translateY(-1px);
}
.nav-cta::after { display: none; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  width: 22px; height: 1.5px;
  background: var(--amtei-blue);
  transition: all 0.3s var(--ease);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 70px; right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--amtei-cream);
    width: 100%;
    height: calc(100vh - 70px);
    padding: 40px var(--gutter);
    gap: 24px;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    border-top: 1px solid var(--amtei-line);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 22px; font-family: var(--font-display); }
}

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero h1 {
  margin-bottom: 28px;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line span {
  display: inline-block;
  animation: heroReveal 1.1s var(--ease) both;
}
.hero h1 .line:nth-child(1) span { animation-delay: 0.1s; }
.hero h1 .line:nth-child(2) span { animation-delay: 0.25s; }
.hero h1 .line:nth-child(3) span { animation-delay: 0.4s; }

@keyframes heroReveal {
  from { transform: translateY(110%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.hero-tagline {
  display: inline-block;
  margin-bottom: 32px;
  animation: fadeIn 0.8s ease-out;
}
.hero p.lead {
  margin-bottom: 40px;
  animation: fadeIn 1s 0.7s ease-out backwards;
}
.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeIn 1s 0.9s ease-out backwards;
}

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

/* Visuel hero — illustration logo qui flotte */
.hero-visual {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 1.2s 0.5s ease-out backwards;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(232, 149, 28, 0.12), transparent 65%);
  border-radius: 50%;
  animation: pulse 6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.08); opacity: 1; }
}
.hero-visual img {
  width: 60%;
  position: relative;
  z-index: 2;
  animation: float 5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* Visuel hero — variante photo réelle */
.hero-visual-photo {
  aspect-ratio: 4/5;
  border-radius: 6px;
  overflow: hidden;
  background: var(--amtei-blue-deep);
  box-shadow: 0 30px 80px -30px rgba(15, 76, 129, 0.4),
              0 12px 30px -10px rgba(0, 0, 0, 0.15);
}
.hero-visual-photo::before { display: none; }
.hero-visual-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: none;
  display: block;
  transition: transform 8s ease-out;
}
.hero-visual-photo:hover img {
  transform: scale(1.05);
}
.hero-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(15, 76, 129, 0.05) 0%,
    rgba(15, 76, 129, 0.15) 50%,
    rgba(15, 76, 129, 0.75) 100%);
  z-index: 2;
  pointer-events: none;
}
.hero-visual-caption {
  position: absolute;
  bottom: 32px;
  left: 32px;
  right: 32px;
  z-index: 3;
  color: white;
}
.hero-visual-caption .caption-eyebrow {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amtei-orange);
  margin-bottom: 8px;
  font-weight: 500;
}
.hero-visual-caption .caption-text {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
}
@media (max-width: 880px) {
  .hero-visual-photo {
    max-width: 480px;
    margin: 0 auto;
    aspect-ratio: 4/3;
  }
  .hero-visual-caption { bottom: 20px; left: 20px; right: 20px; }
  .hero-visual-caption .caption-text { font-size: 18px; }
}

/* Décor hero */
.hero-bg-text {
  position: absolute;
  bottom: -30px;
  left: 0;
  right: 0;
  font-family: var(--font-display);
  font-size: clamp(80px, 18vw, 240px);
  font-weight: 300;
  font-style: italic;
  color: var(--amtei-blue);
  opacity: 0.04;
  white-space: nowrap;
  text-align: center;
  pointer-events: none;
  letter-spacing: -0.04em;
  z-index: 1;
}

/* Hero stats inline */
.hero-meta {
  display: flex;
  gap: 40px;
  margin-top: 60px;
  padding-top: 32px;
  border-top: 1px solid var(--amtei-line);
  animation: fadeIn 1s 1.1s ease-out backwards;
}
.hero-meta-item .num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 500;
  color: var(--amtei-blue);
  display: block;
  line-height: 1;
}
.hero-meta-item .num em {
  color: var(--amtei-orange);
  font-style: normal;
}
.hero-meta-item .label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amtei-ink);
  opacity: 0.7;
  margin-top: 6px;
  display: block;
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 320px; margin: 0 auto; }
  .hero-meta { flex-wrap: wrap; gap: 24px; }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.4s var(--ease);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--amtei-blue);
  color: var(--amtei-white);
}
.btn-primary:hover {
  background: var(--amtei-orange);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -10px rgba(232, 149, 28, 0.5);
}
.btn-secondary {
  background: transparent;
  color: var(--amtei-blue);
  border: 1px solid var(--amtei-blue);
}
.btn-secondary:hover {
  background: var(--amtei-blue);
  color: var(--amtei-white);
}
.btn-arrow {
  width: 18px; height: 14px;
  position: relative;
  transition: transform 0.4s var(--ease);
}
.btn-arrow::after {
  content: "→";
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ============ SECTION HEADERS ============ */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  margin-bottom: 80px;
  align-items: end;
}
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 { margin-bottom: 0; }

@media (max-width: 880px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 50px; }
}

/* ============ EXPERTISE / SERVICES ============ */
.expertise {
  background: var(--amtei-white);
  position: relative;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--amtei-line);
  border: 1px solid var(--amtei-line);
}
.service-card {
  background: var(--amtei-white);
  padding: 48px 36px;
  position: relative;
  transition: all 0.5s var(--ease);
  cursor: pointer;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--amtei-blue) 0%, var(--amtei-blue-deep) 100%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  z-index: 0;
}
.service-card:hover::before { opacity: 1; }
.service-card > * { position: relative; z-index: 1; transition: color 0.5s var(--ease); }
.service-card:hover h3,
.service-card:hover p,
.service-card:hover .service-num { color: var(--amtei-white); }
.service-card:hover .service-icon {
  background: var(--amtei-orange);
  color: var(--amtei-white);
}

.service-num {
  font-family: var(--font-display);
  font-size: 14px;
  font-style: italic;
  color: var(--amtei-orange);
  margin-bottom: 32px;
  display: block;
}
.service-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--amtei-grey-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  color: var(--amtei-blue);
  transition: all 0.5s var(--ease);
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { margin-bottom: 14px; }
.service-card p { font-size: 15px; line-height: 1.6; }
.service-card .service-link {
  margin-top: 28px;
  font-size: 13px;
  font-weight: 500;
  color: var(--amtei-orange);
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.service-card:hover .service-link { color: var(--amtei-orange-soft); }

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

/* ============ ABOUT / EDITORIAL SECTION ============ */
.editorial {
  background: var(--amtei-cream);
}
.editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
}
.editorial-image {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 4px;
  overflow: hidden;
  background: var(--amtei-blue);
}
.editorial-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(15, 76, 129, 0.4));
}
.editorial-image-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.editorial-image-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}
.editorial-image-bg {
  width: 100%;
  height: 100%;
  display: block;
}
.editorial-image-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  width: 50%;
  max-width: 200px;
  height: auto;
  z-index: 2;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.25));
}
.editorial-content h2 { margin-bottom: 32px; }
.editorial-content p { margin-bottom: 24px; font-size: 17px; line-height: 1.7; }
.editorial-content p:last-of-type { margin-bottom: 40px; }

.editorial-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--amtei-line);
}
.editorial-feature h4 {
  color: var(--amtei-blue);
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-weight: 500;
}
.editorial-feature p {
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 880px) {
  .editorial-grid { grid-template-columns: 1fr; }
  .editorial-image { max-height: 500px; }
}

/* ============ PRODUIT PHARE — ULTRA GRIP ============ */
.feature-product {
  background: var(--amtei-blue);
  color: var(--amtei-white);
  position: relative;
  overflow: hidden;
}
.feature-product::before {
  content: "";
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--amtei-orange) 0%, transparent 65%);
  opacity: 0.18;
  pointer-events: none;
}
.feature-product .eyebrow { color: var(--amtei-orange-soft); }
.feature-product .eyebrow::before { background: var(--amtei-orange-soft); }
.feature-product h2 { color: var(--amtei-white); }
.feature-product h2 em { color: var(--amtei-orange-soft); }
.feature-product p { color: rgba(255, 255, 255, 0.85); }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.feature-list {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.feature-list li {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  align-items: flex-start;
}
.feature-list li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.feature-list .check {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--amtei-orange);
  color: var(--amtei-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  margin-top: 2px;
}
.feature-list .text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--amtei-white);
  margin-bottom: 4px;
}
.feature-list .text span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

.feature-illu {
  position: relative;
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  background: var(--amtei-blue-deep);
}

@media (max-width: 880px) {
  .feature-grid { grid-template-columns: 1fr; gap: 50px; }
}

/* ============ APPLICATIONS / SECTEURS ============ */
.sectors {
  background: var(--amtei-white);
}
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--amtei-line);
  border: 1px solid var(--amtei-line);
}
.sector-card {
  background: var(--amtei-white);
  padding: 36px 28px;
  text-align: left;
  transition: all 0.4s var(--ease);
  cursor: default;
}
.sector-card:hover {
  background: var(--amtei-cream);
}
.sector-card .sector-icon {
  width: 48px; height: 48px;
  margin-bottom: 24px;
  color: var(--amtei-orange);
}
.sector-card h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  margin-bottom: 8px;
  color: var(--amtei-blue);
}
.sector-card p { font-size: 14px; opacity: 0.7; }

@media (max-width: 980px) {
  .sectors-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .sectors-grid { grid-template-columns: 1fr; }
}

/* ============ PROCESS ============ */
.process {
  background: var(--amtei-cream);
  position: relative;
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
  margin-top: 60px;
}
.process-steps::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--amtei-orange) 20%, var(--amtei-orange) 80%, transparent);
  opacity: 0.4;
  z-index: 0;
}
.process-step {
  position: relative;
  text-align: left;
}
.process-step .step-num {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--amtei-cream);
  border: 1px solid var(--amtei-orange);
  color: var(--amtei-blue);
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  font-style: italic;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 2px;
  margin-bottom: 28px;
  position: relative;
  z-index: 2;
  transition: all 0.4s var(--ease);
}
.process-step:hover .step-num {
  background: var(--amtei-orange);
  color: var(--amtei-white);
}
.process-step h4 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--amtei-blue);
  margin-bottom: 12px;
}
.process-step p { font-size: 14px; line-height: 1.55; opacity: 0.75; }

@media (max-width: 880px) {
  .process-steps { grid-template-columns: 1fr 1fr; }
  .process-steps::before { display: none; }
}
@media (max-width: 540px) {
  .process-steps { grid-template-columns: 1fr; }
}

/* ============ CTA BAND ============ */
.cta-band {
  background: var(--amtei-ink);
  color: var(--amtei-white);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  bottom: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--amtei-blue) 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}
.cta-band-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.cta-band h2 {
  color: var(--amtei-white);
  margin-bottom: 24px;
}
.cta-band h2 em { color: var(--amtei-orange); }
.cta-band p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 18px;
  margin-bottom: 40px;
}
.cta-band .btn-secondary {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--amtei-white);
}
.cta-band .btn-secondary:hover {
  background: var(--amtei-orange);
  border-color: var(--amtei-orange);
}

/* ============ FOOTER ============ */
.footer {
  background: var(--amtei-blue-deep);
  color: rgba(255, 255, 255, 0.75);
  padding: 80px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
.footer-brand .nav-brand-name { color: var(--amtei-white); }
.footer-brand p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  margin-top: 20px;
  max-width: 320px;
  line-height: 1.6;
}
.footer h5 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--amtei-white);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.footer ul li {
  margin-bottom: 12px;
  font-size: 14px;
}
.footer ul li a {
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.3s var(--ease);
}
.footer ul li a:hover { color: var(--amtei-orange); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}
.footer-social {
  display: flex;
  gap: 16px;
}
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s var(--ease);
}
.footer-social a:hover {
  background: var(--amtei-orange);
  border-color: var(--amtei-orange);
  color: var(--amtei-white);
}

@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============ PAGE HEADER (Sub-pages) ============ */
.page-header {
  padding: 180px 0 80px;
  background: var(--amtei-cream);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--amtei-line);
}
.page-header-inner {
  position: relative;
  z-index: 2;
}
.page-header .breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--amtei-ink);
  opacity: 0.6;
  margin-bottom: 24px;
}
.page-header .breadcrumb a:hover { color: var(--amtei-orange); }
.page-header .breadcrumb .sep { color: var(--amtei-orange); }
.page-header h1 {
  font-size: clamp(40px, 6vw, 76px);
  margin-bottom: 24px;
}
.page-header .lead { font-size: 18px; }

.page-header-decor {
  position: absolute;
  right: -100px;
  top: 80px;
  width: 480px;
  height: 480px;
  opacity: 0.06;
  pointer-events: none;
}

/* ============ CONTENT PAGES ============ */
.content-section { padding: var(--section-y) 0; }
.content-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
}
.content-aside {
  position: sticky;
  top: 110px;
  align-self: start;
}
.content-aside h4 {
  font-family: var(--font-display);
  color: var(--amtei-orange);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
  margin-bottom: 18px;
}
.content-aside ul { display: flex; flex-direction: column; gap: 10px; }
.content-aside ul li a {
  font-size: 14px;
  color: var(--amtei-ink);
  opacity: 0.7;
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid var(--amtei-line);
  transition: all 0.3s var(--ease);
}
.content-aside ul li a:hover {
  color: var(--amtei-blue);
  opacity: 1;
  padding-left: 8px;
}

.content-main h2 { margin-bottom: 28px; margin-top: 60px; }
.content-main h2:first-child { margin-top: 0; }
.content-main h3 { margin-bottom: 18px; margin-top: 40px; }
.content-main p { margin-bottom: 20px; font-size: 16px; line-height: 1.75; }
.content-main ul {
  margin-bottom: 28px;
  padding-left: 0;
}
.content-main ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
  line-height: 1.6;
}
.content-main ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 12px;
  height: 1px;
  background: var(--amtei-orange);
}

.content-callout {
  background: var(--amtei-white);
  border-left: 3px solid var(--amtei-orange);
  padding: 32px;
  margin: 40px 0;
  border-radius: 0 4px 4px 0;
}
.content-callout h4 {
  color: var(--amtei-blue);
  margin-bottom: 12px;
}
.content-callout p { margin-bottom: 0; }

@media (max-width: 880px) {
  .content-grid { grid-template-columns: 1fr; gap: 40px; }
  .content-aside { position: static; }
}

/* ============ CONTACT FORM ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.contact-info-block {
  margin-bottom: 36px;
}
.contact-info-block h4 {
  font-family: var(--font-display);
  color: var(--amtei-orange);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
  margin-bottom: 12px;
}
.contact-info-block p {
  font-size: 17px;
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--amtei-blue);
  line-height: 1.5;
}
.contact-info-block a { color: var(--amtei-blue); }
.contact-info-block a:hover { color: var(--amtei-orange); }

.contact-form {
  background: var(--amtei-white);
  padding: 48px;
  border-radius: 6px;
  border: 1px solid var(--amtei-line);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 22px;
}
.form-field { margin-bottom: 22px; }
.form-field label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amtei-blue);
  margin-bottom: 8px;
  font-weight: 500;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--amtei-line);
  border-radius: 4px;
  background: var(--amtei-cream);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--amtei-ink);
  transition: all 0.3s var(--ease);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--amtei-orange);
  background: var(--amtei-white);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.contact-form button { width: 100%; justify-content: center; margin-top: 12px; }

@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 32px 24px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ============ ANIMATIONS ON SCROLL ============ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.35s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.45s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.55s; opacity: 1; transform: translateY(0); }

/* ============ UTILS ============ */
.text-orange { color: var(--amtei-orange); }
.text-blue { color: var(--amtei-blue); }
.italic { font-style: italic; }

/* ============ ACCESSIBILITY ============ */
:focus-visible {
  outline: 2px solid var(--amtei-orange);
  outline-offset: 3px;
  border-radius: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}