/* =========================================
   CINQ AMIS — Shared Stylesheet
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Nunito+Sans:wght@300;400;600;700&display=swap');

/* ── Variables ── */
:root {
  --navy:      #000033;
  --navy-mid:  #0a0a4a;
  --orange:    #e85415;
  --orange-lt: #ff6b35;
  --white:     #ffffff;
  --off-white: #f6f6f8;
  --gray-lt:   #ebebeb;
  --gray-mid:  #999;
  --text:      #222233;
  --heading:   'Bebas Neue', sans-serif;
  --body:      'Nunito Sans', sans-serif;
  --max:       1200px;
  --transition: 0.25s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--body); color: var(--text); background: var(--white); line-height: 1.65; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Utilities ── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section--dark  { background: var(--navy); color: var(--white); }
.section--gray  { background: var(--off-white); }
.section--orange { background: var(--orange); color: var(--white); }

.tag { font-family: var(--heading); letter-spacing: 3px; font-size: 13px; color: var(--orange); text-transform: uppercase; }
.tag--white { color: rgba(255,255,255,0.6); }

h1,h2,h3,h4 { font-family: var(--heading); letter-spacing: 1px; line-height: 1.1; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.7rem); }

.lead { font-size: 1.1rem; color: #555; max-width: 680px; }
.lead--white { color: rgba(255,255,255,0.85); }

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--heading);
  font-size: 1rem;
  letter-spacing: 2px;
  border: 2px solid currentColor;
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
}
.btn--orange { background: var(--orange); color: var(--white); border-color: var(--orange); }
.btn--orange:hover { background: var(--orange-lt); border-color: var(--orange-lt); }
.btn--outline-white { background: transparent; color: var(--white); border-color: var(--white); }
.btn--outline-white:hover { background: var(--white); color: var(--navy); }
.btn--outline-navy { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline-navy:hover { background: var(--navy); color: var(--white); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }
.mb-56 { margin-bottom: 56px; }

/* ── Navbar ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--navy);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  height: 72px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.navbar__logo img { height: 52px; filter: brightness(0) invert(1); }
.navbar__links { display: flex; gap: 36px; align-items: center; }
.navbar__links a {
  font-family: var(--heading); font-size: 0.95rem; letter-spacing: 2px;
  color: rgba(255,255,255,0.8);
  transition: color var(--transition);
  text-transform: uppercase;
}
.navbar__links a:hover,
.navbar__links a.active { color: var(--orange); }
.navbar__toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.navbar__toggle span { display: block; width: 26px; height: 2px; background: var(--white); margin: 5px 0; transition: all var(--transition); }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  background: var(--navy);
  background-image: linear-gradient(135deg, rgba(0,0,51,0.85) 0%, rgba(0,0,51,0.6) 100%);
  background-size: cover;
  background-position: center;
  display: flex; align-items: center;
  padding-top: 72px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--orange-lt));
}
.hero--short {
  min-height: 50vh;
}
.hero__inner { position: relative; z-index: 1; }
.hero__eyebrow { display: inline-block; background: var(--orange); color: var(--white); font-family: var(--heading); font-size: 0.85rem; letter-spacing: 3px; padding: 6px 16px; margin-bottom: 24px; }
.hero__title { color: var(--white); margin-bottom: 24px; }
.hero__title span { color: var(--orange); }
.hero__sub { color: rgba(255,255,255,0.8); font-size: 1.1rem; max-width: 620px; margin-bottom: 36px; }

/* ── Orange accent bar ── */
.accent-bar { height: 4px; background: linear-gradient(90deg, var(--orange), var(--orange-lt)); }

/* ── Section header ── */
.section-header { margin-bottom: 56px; }
.section-header--center { text-align: center; }
.section-header--center .lead { margin: 12px auto 0; }

/* ── Two-column feature cards ── */
.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-lt);
  padding: 40px;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
  background: var(--orange);
}
.feature-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.1); transform: translateY(-3px); }
.feature-card h3 { margin-bottom: 16px; }
.feature-card p { color: #555; margin-bottom: 24px; }

/* ── Service cards ── */
.service-card {
  padding: 36px 28px;
  background: var(--white);
  border-top: 3px solid var(--orange);
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  transition: box-shadow var(--transition), transform var(--transition);
}
.service-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.12); transform: translateY(-4px); }
.service-card__icon { font-size: 2.5rem; margin-bottom: 20px; }
.service-card h3 { margin-bottom: 12px; }
.service-card p { color: #555; font-size: 0.95rem; }

/* ── Stats ── */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,0.15); }
.stat-item { background: var(--navy); padding: 48px 32px; text-align: center; }
.stat-item__number { font-family: var(--heading); font-size: clamp(3rem, 6vw, 5rem); color: var(--orange); line-height: 1; margin-bottom: 8px; }
.stat-item__label { color: rgba(255,255,255,0.75); font-size: 0.95rem; letter-spacing: 1px; }

/* ── Testimonial ── */
.testimonial {
  background: var(--navy);
  padding: 64px 80px;
  position: relative;
}
.testimonial::before {
  content: '"';
  position: absolute; top: 24px; left: 40px;
  font-family: Georgia, serif; font-size: 8rem; color: var(--orange); line-height: 1; opacity: 0.3;
}
.testimonial__text { font-size: 1.1rem; color: rgba(255,255,255,0.9); line-height: 1.8; font-style: italic; max-width: 900px; position: relative; z-index: 1; }
.testimonial__author { margin-top: 28px; font-family: var(--heading); font-size: 1.1rem; color: var(--orange); letter-spacing: 1px; }

/* ── Blog cards ── */
.blog-card { background: var(--white); box-shadow: 0 2px 16px rgba(0,0,0,0.07); overflow: hidden; transition: box-shadow var(--transition), transform var(--transition); }
.blog-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.14); transform: translateY(-4px); }
.blog-card__image { height: 200px; overflow: hidden; }
.blog-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.blog-card:hover .blog-card__image img { transform: scale(1.05); }
.blog-card__body { padding: 28px; }
.blog-card__tag { font-family: var(--heading); font-size: 0.8rem; letter-spacing: 2px; color: var(--orange); margin-bottom: 12px; }
.blog-card__title { font-size: 1.05rem; color: var(--navy); margin-bottom: 16px; font-family: var(--body); font-weight: 700; line-height: 1.4; }
.blog-card__link { font-family: var(--heading); font-size: 0.85rem; letter-spacing: 1.5px; color: var(--orange); display: inline-flex; align-items: center; gap: 6px; }
.blog-card__link::after { content: '→'; transition: transform var(--transition); }
.blog-card:hover .blog-card__link::after { transform: translateX(4px); }

/* ── Contact form ── */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px; color: #444; }
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-lt);
  font-family: var(--body); font-size: 1rem;
  outline: none;
  transition: border-color var(--transition);
  background: var(--white);
}
.form-control:focus { border-color: var(--orange); }
textarea.form-control { resize: vertical; min-height: 120px; }

/* ── Client logos ── */
.client-logos { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: center; }
.client-logos img { height: 50px; width: auto; filter: grayscale(100%); opacity: 0.6; transition: filter var(--transition), opacity var(--transition); }
.client-logos img:hover { filter: grayscale(0%); opacity: 1; }

/* ── Step plan ── */
.steps-list { display: flex; flex-direction: column; gap: 48px; }
.step-item { display: grid; grid-template-columns: 100px 1fr; gap: 32px; align-items: start; }
.step-item__number { font-family: var(--heading); font-size: 5rem; color: var(--orange); line-height: 1; }
.step-item__content h3 { margin-bottom: 8px; }
.step-item__content p { color: #555; }

/* ── Footer ── */
.footer { background: var(--navy); color: rgba(255,255,255,0.7); padding: 64px 0 0; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; padding-bottom: 48px; }
.footer__brand > img { height: 60px; margin-bottom: 20px; filter: brightness(0) invert(1); }
.footer__brand p { font-size: 0.9rem; line-height: 1.7; }
.footer__col h4 { font-family: var(--heading); letter-spacing: 2px; font-size: 0.95rem; color: var(--white); margin-bottom: 20px; }
.footer__col ul li { margin-bottom: 10px; }
.footer__col ul li a { font-size: 0.9rem; transition: color var(--transition); }
.footer__col ul li a:hover { color: var(--orange); }
.footer__contact p { font-size: 0.9rem; margin-bottom: 8px; }
.footer__contact a:hover { color: var(--orange); }
.footer__badge { margin-top: 20px; }
.footer__badge img { height: 56px; filter: none !important; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.85rem;
}
.footer__social a { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer__social a:hover { color: var(--orange); }

/* ── Subscribe strip ── */
.subscribe-strip { background: rgba(255,255,255,0.05); border-top: 1px solid rgba(255,255,255,0.1); padding: 32px 0; }
.subscribe-form { display: flex; gap: 0; max-width: 440px; }
.subscribe-form input {
  flex: 1; padding: 12px 16px;
  border: 2px solid rgba(255,255,255,0.3); border-right: none;
  background: transparent; color: var(--white);
  font-family: var(--body); font-size: 0.95rem; outline: none;
}
.subscribe-form input::placeholder { color: rgba(255,255,255,0.4); }
.subscribe-form input:focus { border-color: var(--orange); }
.subscribe-form button {
  padding: 12px 24px;
  background: var(--orange); color: var(--white);
  border: 2px solid var(--orange);
  font-family: var(--heading); letter-spacing: 2px; font-size: 0.85rem;
  cursor: pointer; transition: background var(--transition);
}
.subscribe-form button:hover { background: var(--orange-lt); border-color: var(--orange-lt); }

/* ── Page hero (inner pages) ── */
.page-hero {
  background: var(--navy);
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; top: -50%; right: -10%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,84,21,0.1), transparent 70%);
}
.page-hero h1 { color: var(--white); }
.page-hero p { color: rgba(255,255,255,0.75); max-width: 600px; margin-top: 16px; font-size: 1.1rem; }

/* ── Orange divider ── */
.divider { width: 60px; height: 4px; background: var(--orange); margin: 16px 0; }
.divider--center { margin: 16px auto; }

/* ── Icon list ── */
.check-list { display: flex; flex-direction: column; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list li::before { content: '▶'; color: var(--orange); font-size: 0.7rem; margin-top: 4px; flex-shrink: 0; }

/* ── Mobile nav ── */
@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
  .navbar__links {
    display: none; flex-direction: column; gap: 0;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--navy);
    padding: 16px 0;
  }
  .navbar__links.open { display: flex; }
  .navbar__links a { padding: 14px 24px; width: 100%; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .navbar__toggle { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
  .testimonial { padding: 48px 24px; }
  .section { padding: 56px 0; }
  .hero--short { min-height: 60vw; }
  .step-item { grid-template-columns: 60px 1fr; }
  .step-item__number { font-size: 3.5rem; }
}

/* ── Fade-in animation ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s ease both; }
.fade-up--d1 { animation-delay: 0.15s; }
.fade-up--d2 { animation-delay: 0.3s; }
.fade-up--d3 { animation-delay: 0.45s; }
