/* ABA Surveys - site styles (measured from the original at 1440px) */
:root {
  --text: #29293a;
  --dark: #0e0e0f;
  --muted: #a1a1b7;      /* body copy on inner pages */
  --label: #b3b3bf;      /* small labels */
  --title: #022a37;      /* block titles */
  --accent: #4c4c83;     /* line buttons */
  --navy: rgb(34, 33, 60);
  --red: #e0463c;
  --footer: #5dadf8;
  --footer-bar: #a7d1fa;
  --sans: "Reem Kufi", "Helvetica Neue", Arial, sans-serif;
  --serif: "EB Garamond", Georgia, serif;
  --ruda: "Ruda", "Reem Kufi", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 400 19px/32px var(--sans); color: var(--text); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5 { font-weight: 400; margin: 0; }

.container { max-width: 1170px; margin: 0 auto; padding: 0 15px; }
.narrow { padding-left: 100px; padding-right: 100px; }   /* original inner text inset */

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 20; padding: 30px 0 40px; }
.site-header--overlay { position: absolute; top: 0; left: 0; right: 0; }
.site-header .container { display: flex; justify-content: space-between; align-items: flex-start; }
.header-contact { line-height: 30px; }
.header-contact .phone { font: 400 20px/30px Arial, sans-serif; letter-spacing: 1px; }
.header-contact .email { font-size: 16px; }
.header-contact a { display: block; }
.nav { display: flex; gap: 30px; }
.nav a { font-size: 20px; line-height: 45px; letter-spacing: 2px; text-transform: uppercase; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: var(--text); transform: scaleX(0); transition: transform .25s; }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; margin: 6px 0; background: var(--dark); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 670px; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; transition: opacity 1.2s ease; }
.hero-slide.is-active { opacity: 1; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: #fff; opacity: .5; }   /* original: 50% white over slides */
.hero-title { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; }
.hero-title .big { font: 400 100px/1 var(--serif); letter-spacing: 10px; }
.hero-title .small { font: 400 48px/1.4 var(--sans); letter-spacing: 10px; }
.hero-dots { position: absolute; bottom: 30px; left: 0; right: 0; z-index: 3; display: flex; justify-content: center; gap: 10px; }
.hero-dots button { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--text); background: transparent; padding: 0; cursor: pointer; }
.hero-dots button.is-active { background: var(--text); }
.scroll-down { position: absolute; bottom: 70px; left: 50%; transform: translateX(-50%); z-index: 3; color: var(--red); font-size: 34px; line-height: 1; }

.page-hero { position: relative; height: 720px; background: center top / cover no-repeat; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: #fff; opacity: .8; }   /* same dimming as original */
.page-hero .hero-title { justify-content: flex-start; padding-top: 140px; }
.page-hero .hero-title span { font: 400 70px/76px var(--sans); letter-spacing: 7px; }

/* ---------- Common blocks ---------- */
.page-title { font: 400 48px/60px var(--sans); letter-spacing: 7px; text-transform: uppercase; }
.page-title--xl { font-size: 70px; line-height: 78px; letter-spacing: 10px; }
.center { text-align: center; }
.muted { color: var(--muted); }

.btn { display: inline-block; padding: 12px 30px; border-top: 1px solid var(--accent); border-bottom: 1px solid var(--accent); color: var(--accent); font-size: 12px; line-height: 32px; letter-spacing: 4px; text-transform: uppercase; transition: background .2s, color .2s; }
.btn:hover { background: var(--accent); color: #fff; }
.btn--solid { background: var(--dark); color: #fff; border: 0; padding: 19px 40px; font-size: 14px; }
.btn--solid:hover { background: var(--text); }

.block-title { font: 400 24px/40px var(--sans); letter-spacing: 8px; color: var(--title); text-align: center; margin-bottom: 30px; }
.label { font: 400 14px/38px var(--serif); letter-spacing: 4px; color: var(--label); text-align: center; }

/* ---------- Home ---------- */
.intro { position: relative; background: center / cover no-repeat; padding: 60px 0 80px; }
.intro::before { content: ""; position: absolute; inset: 0; background: #fff; opacity: .87; }
.intro .container { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.intro h2 { font: 400 30px/30px var(--serif); text-align: center; margin-bottom: 34px; }
.intro h2.sm { font-size: 25px; }
.intro p { line-height: 35px; }
.intro ul { margin: 0; padding-left: 20px; }
.intro .btn { display: block; width: fit-content; margin: 30px auto 0; }

/* ---------- Reach us ---------- */
.reach { text-align: center; padding: 100px 0 80px; }
.reach .kicker { font: 400 20px/24px var(--sans); letter-spacing: 8px; color: #adadb8; }
.reach h2 { font: 400 50px/56px var(--serif); letter-spacing: 10px; margin: 6px 0; }
.reach .sep { margin: 0 auto; }
.reach .btn--solid { margin-top: 40px; }
.reach .info { margin-top: 40px; font: 400 21px/34px var(--serif); letter-spacing: .3px; color: #818194; }

/* ---------- About ---------- */
.about { background: center top repeat-y; padding: 0 0 60px; }
.about .text { max-width: 680px; padding-left: 100px; }
.about .page-title { text-align: center; padding: 40px 0 50px; }
.about p { font: 400 19px/32px var(--ruda); color: var(--muted); }
.about h2 { font: 400 19px/32px var(--ruda); color: var(--text); margin-top: 30px; }

/* ---------- Services ---------- */
.statement { padding: 150px 0 120px; }
.statement .page-title { margin-bottom: 50px; }
.statement p { color: var(--muted); }
.feature { display: grid; grid-template-columns: 1fr 1fr; min-height: 845px; }
.feature-media { position: relative; background: center / cover no-repeat; display: grid; place-items: center; }
.feature-media::before { content: ""; position: absolute; inset: 0; background: var(--navy); opacity: .8; }
.feature-media--light::before { opacity: .75; }
.feature-media img { position: relative; width: 420px; max-width: 80%; }
.feature-text { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 60px 30px; }
.feature-text > * { max-width: 345px; }
.feature-text p, .feature-text li { font-size: 18px; color: var(--muted); }
.feature-text p { text-align: center; }
.feature-text ul { margin: 0 0 20px; padding-left: 20px; }
.feature-text .btn { margin-top: 30px; font-size: 13px; }
.feature--flip .feature-media { order: 2; }

/* ---------- Works ---------- */
.works-head { padding: 30px 0 120px; }
.work { display: grid; grid-template-columns: 1fr 1fr; align-items: center; margin-bottom: 120px; }
.work-images img { width: 100%; }
.work-text { display: flex; flex-direction: column; align-items: center; padding: 0 60px; }
.work-text > * { max-width: 305px; width: 100%; }
.work-text .sep { width: 36px; margin: 20px auto 30px; }
.work-text p { font-size: 18px; color: var(--muted); }
.work--flip .work-images { order: 2; }

/* ---------- Contact ---------- */
.contact { padding: 100px 0 80px; }
.contact-band { position: relative; height: 313px; margin: 10px 0 30px; background: center / cover no-repeat; }
.contact-band::before { content: ""; position: absolute; inset: 0; background: #fff; opacity: .92; }   /* original: 92% white */
.contact-info { padding-left: 65px; margin-bottom: 50px; }

/* ---------- Footer ---------- */
.footer-nav { background: var(--footer); }
.footer-nav .nav { justify-content: center; flex-wrap: wrap; gap: 0 30px; padding: 0 20px; }
.footer-nav .nav a { font-size: 14px; line-height: 100px; letter-spacing: .5px; }
.footer-bar { background: var(--footer-bar); color: #818194; text-align: center; font-size: 16px; letter-spacing: 1px; line-height: 90px; }
.to-top { position: fixed; right: 25px; bottom: 25px; z-index: 30; width: 40px; height: 40px; border-radius: 50%; background: var(--text); color: #fff; display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .3s; }
.to-top.is-visible { opacity: .8; pointer-events: auto; }

/* ---------- Tablet / mobile ---------- */
@media (max-width: 1199px) {
  .nav-toggle { display: block; }
  .site-header .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; padding: 10px 20px; box-shadow: 0 10px 20px rgba(0,0,0,.08); }
  .site-header .nav.is-open { display: flex; }
  .site-header .nav a { align-self: flex-start; line-height: 40px; font-size: 18px; }
  .intro .container { grid-template-columns: 1fr 1fr; gap: 50px 30px; }
}
@media (max-width: 767px) {
  body { font-size: 17px; line-height: 30px; }
  .site-header { padding: 20px 0; }
  .header-contact .phone { font-size: 16px; }
  .header-contact .email { font-size: 14px; }
  .narrow { padding-left: 15px; padding-right: 15px; }
  .about .text { padding-left: 0; }
  .hero { height: 480px; }
  .hero-title .big { font-size: 60px; }
  .hero-title .small { font-size: 29px; }
  .page-hero { height: 360px; }
  .page-hero .hero-title { padding-top: 90px; }
  .page-hero .hero-title span { font-size: 40px; line-height: 46px; }
  .page-title { font-size: 32px; line-height: 40px; letter-spacing: 5px; }
  .page-title--xl { font-size: 38px; line-height: 46px; letter-spacing: 5px; }
  .intro .container, .feature, .work { grid-template-columns: 1fr; }
  .feature { min-height: 0; }
  .feature-media { min-height: 360px; }
  .feature--flip .feature-media, .work--flip .work-images { order: 0; }
  .work { margin-bottom: 70px; }
  .work-text { padding: 30px 0 0; }
  .statement { padding: 60px 0; }
  .reach h2 { font-size: 34px; letter-spacing: 6px; }
  .contact-band { height: 180px; margin-bottom: 20px; }
  .contact-info { padding-left: 0; }
  .btn--solid { display: block; max-width: 100%; padding: 16px 15px; font-size: 12px; letter-spacing: 2px; text-align: center; }
  .footer-nav { padding: 20px 0; }
  .footer-nav .nav a { line-height: 40px; }
  .footer-bar { line-height: 60px; font-size: 14px; }
  .about { background-image: none !important; }
}

/* ---------- Lightbox (Client Work) ---------- */
[data-lightbox] { position: relative; display: block; cursor: zoom-in; }
[data-lightbox]::before { content: ""; position: absolute; inset: 0; background: rgba(34, 33, 58, .75); opacity: 0; transition: opacity .3s; }   /* original hover layer */
[data-lightbox]::after { content: "+"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: #fff; font: 300 48px/1 var(--sans); opacity: 0; transition: opacity .3s; }
[data-lightbox]:hover::before, [data-lightbox]:hover::after { opacity: 1; }
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; background: rgba(14, 14, 15, .9); }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; background: #fff; box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 40px; line-height: 1; padding: 15px; cursor: pointer; opacity: .8; }
.lightbox button:hover { opacity: 1; }
.lightbox .lb-close { top: 15px; right: 20px; }
.lightbox .lb-prev { left: 15px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 15px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: #fff; font-size: 14px; letter-spacing: 2px; }
