/* Chouitex v2: clean, modern layout built on the original brand palette */

:root {
  --primary: #85A8AA;
  --primary-dark: #6a8e90;
  --primary-soft: #eef4f4;
  --ink: #282b31;
  --text: #555a60;
  --muted: #8a8f95;
  --line: #e5e8ea;
  --bg: #ffffff;
  --bg-alt: #f7f9f9;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(40, 43, 49, 0.06);
  --header-h: 78px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Raleway", sans-serif;
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 16px;
}

p { margin: 0 0 14px; }
a { color: var(--primary-dark); text-decoration: none; transition: color .2s; }
a:hover { color: var(--ink); }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: 2px solid var(--primary);
  transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.logo img { height: 58px; width: auto; }
.main-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; }
.main-nav a {
  display: block;
  padding: 8px 11px;
  font-family: "Raleway", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  border-radius: 6px;
}
.main-nav a:hover { color: var(--primary-dark); background: var(--primary-soft); }
.nav-toggle { display: none; background: none; border: 0; font-size: 24px; color: var(--ink); cursor: pointer; padding: 6px; }

/* Hero */
.hero {
  position: relative;
  color: #fff;
  background: var(--ink) url(../img/hero.jpg) center / cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(40,43,49,.92) 0%, rgba(40,43,49,.75) 55%, rgba(40,43,49,.35) 100%);
}
.hero .container { position: relative; padding-top: 110px; padding-bottom: 150px; }
.hero-kicker { display: inline-block; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--primary); font-weight: 700; margin-bottom: 18px; }
.hero h1 { color: #fff; font-size: 54px; font-weight: 800; margin-bottom: 18px; }
.hero p.lead { font-size: 21px; max-width: 640px; color: rgba(255,255,255,.85); margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Info strip under the hero */
.info-strip { position: relative; margin-top: -80px; z-index: 2; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-radius: var(--radius); box-shadow: 0 20px 50px rgba(40,43,49,.12); overflow: hidden; }
.info-item { padding: 30px 32px; display: flex; gap: 18px; align-items: flex-start; }
.info-item + .info-item { border-left: 1px solid var(--line); }
.info-item .fa { font-size: 22px; color: var(--primary); width: 46px; height: 46px; line-height: 46px; text-align: center; background: var(--primary-soft); border-radius: 50%; flex-shrink: 0; }
.info-item h3 { font-size: 17px; margin-bottom: 6px; }
.info-item p { margin: 0; font-size: 15px; }
.info-item a { font-weight: 600; }
.info-item ul { list-style: none; font-size: 15px; }
.info-item ul span { color: var(--ink); font-weight: 600; }

/* Client logos marquee: scrolls left to right, fades in on the left and out on the right */
.logo-marquee { padding: 60px 0 0; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 15%, #000 85%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 15%, #000 85%, transparent 100%);
}
.marquee-track { display: flex; width: max-content; animation: marquee-right 80s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 60px; padding-right: 60px; }
.marquee-group img { height: 56px; width: auto; filter: grayscale(100%); opacity: .7; transition: filter .3s, opacity .3s; }
.marquee-group img:hover { filter: none; opacity: 1; }
.marquee-link { text-align: center; margin: 28px 0 0; }
@keyframes marquee-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* Sections */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin-bottom: 50px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--primary-dark); margin-bottom: 12px; }
.section-head.center .eyebrow { justify-content: center; }
.eyebrow .letter { width: 30px; height: 30px; line-height: 28px; text-align: center; border: 2px solid var(--primary); border-radius: 50%; font-size: 13px; letter-spacing: 0; }
.section-head h2 { font-size: 38px; font-weight: 800; margin: 0; }
.section-head p { margin: 16px 0 0; font-size: 17px; }

/* Lists */
.check-list { list-style: none; }
.check-list li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.check-list li::before { content: "\f00c"; font-family: FontAwesome; position: absolute; left: 0; top: 1px; color: var(--primary); font-size: 14px; }
.check-list ul { list-style: none; margin-top: 10px; }
.check-list ul li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); top: 11px; left: 6px; }
.num-list { list-style: none; counter-reset: num; }
.num-list li { position: relative; padding-left: 40px; margin-bottom: 12px; counter-increment: num; }
.num-list li::before { content: counter(num); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; line-height: 26px; text-align: center; border-radius: 50%; background: var(--primary-soft); color: var(--primary-dark); font-size: 13px; font-weight: 700; }

/* Cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.card h3 { font-size: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card-wide { grid-column: span 2; }

/* About */
.about-intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: start; margin-bottom: 60px; }
.about-intro .lead-text p { font-size: 19px; color: var(--ink); }
.about-intro .lead-text p:first-child::first-letter { font-family: "Raleway", sans-serif; }
.card-icon { display: inline-block; font-size: 22px; color: var(--primary); width: 52px; height: 52px; line-height: 52px; text-align: center; border-radius: 50%; background: var(--primary-soft); margin-bottom: 18px; }
.more-link { font-family: "Raleway", sans-serif; font-weight: 700; font-size: 14px; }
.closing { margin-top: 50px; padding: 28px 32px; border-left: 4px solid var(--primary); background: var(--primary-soft); border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink); font-weight: 600; }

/* Founder */
.founder { display: grid; grid-template-columns: 360px 1fr; gap: 60px; align-items: start; }
.founder-photo { position: sticky; top: calc(var(--header-h) + 30px); margin: 0; }
.founder-photo img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.founder-photo figcaption { margin-top: 16px; text-align: center; font-family: "Raleway", sans-serif; font-weight: 700; color: var(--ink); }
.founder-photo figcaption span { display: block; font-weight: 500; color: var(--muted); font-size: 14px; }
.founder h3 { font-size: 22px; margin-top: 36px; }
.founder h3:first-child { margin-top: 0; }
.note { margin-top: 30px; font-size: 13px; color: var(--muted); font-style: italic; padding: 14px 18px; border: 1px solid var(--line); border-radius: 8px; list-style: none; counter-reset: note; }
.note li { counter-increment: note; margin-bottom: 2px; }
.note li::before { content: "(" counter(note) ") "; font-style: normal; font-weight: 700; color: var(--primary-dark); }
.badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary-dark); background: var(--primary-soft); padding: 10px 20px; margin-bottom: 12px; }

/* Services */
.service-block { display: grid; grid-template-columns: 300px 1fr; gap: 50px; padding: 50px 0; border-top: 1px solid var(--line); }
.service-block:first-of-type { border-top: 0; padding-top: 0; }
.service-block .service-title .letter { font-family: "Raleway", sans-serif; font-size: 64px; font-weight: 800; color: var(--primary); line-height: 1; display: block; margin-bottom: 14px; }
.service-block .service-title h3 { font-size: 24px; }
.service-items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service-item { padding: 26px 28px; background: var(--bg-alt); border-radius: var(--radius); border: 1px solid transparent; transition: border-color .2s, background .2s; }
.service-item:hover { background: #fff; border-color: var(--primary); }
.service-item .code { font-size: 12px; font-weight: 700; color: var(--primary-dark); letter-spacing: .1em; }
.service-item h4 { font-size: 18px; margin: 6px 0 10px; }
.service-item p { margin: 0; font-size: 15px; }
.service-item p + p { margin-top: 10px; }
.service-item-wide { grid-column: 1 / -1; }

/* Training tables */
.training-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.training-table th { text-align: left; font-family: "Raleway", sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 2px solid var(--primary); }
.training-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.training-table tbody tr:last-child td { border-bottom: 0; }
.training-table tbody tr:hover td { background: var(--bg-alt); }
.training-table td:first-child { width: 64px; font-weight: 700; color: var(--primary-dark); white-space: nowrap; }
.training-table th:last-child, .training-table td:last-child { text-align: right; white-space: nowrap; }

/* Sectors */
.sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; }
.sectors li { display: flex; align-items: center; gap: 16px; padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); font-family: "Raleway", sans-serif; font-weight: 700; color: var(--ink); }
.sectors .fa { font-size: 20px; color: var(--primary); width: 44px; height: 44px; line-height: 44px; text-align: center; border-radius: 50%; background: var(--primary-soft); flex-shrink: 0; }

/* Gallery */
/* Mosaic: 4 columns, portrait photos span 2 rows, panoramas span 2 columns */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; grid-auto-flow: dense; gap: 16px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); filter: grayscale(25%); transition: filter .3s, transform .3s; }
.gallery .tall { grid-row: span 2; object-position: center top; }
.gallery .wide { grid-column: span 2; }
.gallery img { cursor: zoom-in; }
.gallery img:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(20, 22, 26, .94); display: none; align-items: center; justify-content: center; padding: 60px 80px; }
.lightbox.open { display: flex; }
.lightbox-figure { margin: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lightbox-figure img { max-width: 100%; max-height: calc(100% - 40px); object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox-counter { margin-top: 14px; color: rgba(255,255,255,.7); font-size: 14px; letter-spacing: .08em; }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 26px; line-height: 48px; cursor: pointer; transition: background .2s; }
.lightbox button:hover, .lightbox button:focus-visible { background: var(--primary); outline: none; }
.lightbox-close { top: 16px; right: 16px; font-size: 20px !important; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }
.gallery img:hover { filter: none; transform: scale(1.02); }

/* Experiences */
.experiences { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.experience { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s; }
.experience:hover { transform: translateY(-4px); }
.experience img { width: 100%; aspect-ratio: 250 / 340; object-fit: cover; }
.experience span { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; font-weight: 700; font-size: 14px; color: var(--ink); }
.experience span .fa { color: var(--primary); }

/* Clients */
.clients { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; align-items: center; }
.clients div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; height: 110px; display: flex; align-items: center; justify-content: center; }
.clients img { max-height: 70px; width: auto; filter: grayscale(100%); opacity: .75; transition: filter .3s, opacity .3s; }
.clients div:hover img { filter: none; opacity: 1; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.contact-info { background: var(--ink); color: rgba(255,255,255,.8); padding: 50px 44px; }
.contact-info h2 { color: #fff; font-size: 30px; }
.contact-info ul { list-style: none; margin: 28px 0 0; }
.contact-info li { display: flex; gap: 16px; margin-bottom: 18px; }
.contact-info li .fa { color: var(--primary); font-size: 18px; width: 20px; margin-top: 4px; text-align: center; }
.contact-info a { color: #fff; }
.contact-info a:hover { color: var(--primary); }
.contact-map iframe { width: 100%; height: 100%; min-height: 460px; border: 0; display: block; }

/* Footer */
.site-footer { background: #1f2226; color: rgba(255,255,255,.6); padding: 60px 0 0; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 50px; padding-bottom: 50px; }
.footer-logo { background: #fff; display: inline-block; padding: 10px 14px; border-radius: 8px; margin-bottom: 18px; }
.footer-logo img { height: 70px; width: auto; }
.site-footer h4 { color: #fff; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 20px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(255,255,255,.75); }
.site-footer a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.to-top { width: 40px; height: 40px; line-height: 40px; text-align: center; border-radius: 50%; background: var(--primary); color: #fff !important; }

/* Responsive */
@media (max-width: 1100px) {
  .main-nav a { padding: 8px 8px; font-size: 13px; }
  .service-block { grid-template-columns: 1fr; gap: 24px; }
  .founder { grid-template-columns: 280px 1fr; gap: 40px; }
}

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .main-nav { position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 12px 24px 20px; gap: 0; }
  .main-nav a { padding: 12px 8px; font-size: 15px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .hero h1 { font-size: 40px; }
  .info-grid { grid-template-columns: 1fr; }
  .info-item + .info-item { border-left: 0; border-top: 1px solid var(--line); }
  .about-intro, .founder, .contact, .footer-grid { grid-template-columns: 1fr; }
  .about-intro { gap: 30px; }
  .founder-photo { position: static; max-width: 400px; margin: 0 auto; }
  .grid-3, .sectors { grid-template-columns: repeat(2, 1fr); }
  .experiences { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .clients { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 70px 0; }
  .hero .container { padding-top: 70px; padding-bottom: 130px; }
  .hero h1 { font-size: 32px; }
  .hero p.lead { font-size: 17px; }
  .section-head h2 { font-size: 28px; }
  .founder-photo { max-width: none; }
  .grid-2, .grid-3, .sectors, .service-items { grid-template-columns: 1fr; }
  .gallery { grid-auto-rows: 140px; gap: 10px; }
  .lightbox { padding: 70px 12px 90px; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 20px; transform: none; }
  .lightbox-prev { left: calc(50% - 60px); }
  .lightbox-next { right: calc(50% - 60px); }
  .card, .service-item { padding: 24px; }
  .card-wide { grid-column: auto; }
  .training-table td, .training-table th { padding-left: 8px; padding-right: 8px; }
  .clients { grid-template-columns: repeat(2, 1fr); }
  .contact-info { padding: 36px 24px; }
  .footer-bottom { flex-direction: column; gap: 14px; }
}
