/* ==========================================================================
   Hawchar Contracting - www.hawcharcontracting.com
   Styling taken from "catalog Hawchar final.pdf":
     page background #f2f4f5, headline blues #0050ad / #0064ad / #0074ad,
     body ink #231f20, cream wave lines #fffaeb, Oswald-Bold headlines,
     Montserrat body, DM Sans labels, the curved-line wave and the
     stepped blue corner block from the closing page.
   ========================================================================== */

:root {
  --page: #f2f4f5;          /* catalog slide background */
  --panel: #efefef;         /* About-page copy panels */
  --white: #ffffff;
  --blue: #0050ad;          /* brand blue */
  --blue-deep: #004aad;     /* wave fill, contents numerals */
  --blue-mid: #0064ad;      /* section headlines, "Doha-Qatar" */
  --blue-bright: #0074ad;   /* large cover headlines */
  --blue-pale: #0089ad;     /* cover word "PROJECT" */
  --ink: #231f20;           /* catalog body text */
  --muted: #56606a;
  --rule: #cccccc;          /* contents side bar */
  --cream: #fffaeb;         /* wave lines on blue slides */
  --logo-navy: #386481;
  --shell: 1240px;
  --pad: clamp(1.1rem, 4vw, 3rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.68;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }

a { color: var(--blue); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }

:focus-visible { outline: 3px solid var(--blue-mid); outline-offset: 2px; }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--pad); }
.shell-wide { width: 100%; max-width: 1560px; margin-inline: auto; padding-inline: var(--pad); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--blue); color: #fff; padding: .7rem 1.1rem;
  font-family: "DM Sans", sans-serif; font-weight: 700;
}
.skip:focus { left: .5rem; top: .5rem; }

/* ---------------------------------------------------------------- headings */
h1, h2, h3, h4 { font-family: "Oswald", "Arial Narrow", sans-serif; font-weight: 700; margin: 0; }

h1 {
  font-size: clamp(2.05rem, 8.6vw, 5.3rem);
  line-height: .96;
  letter-spacing: .012em;
  text-transform: uppercase;
  color: var(--blue-bright);
}
h2 {
  font-size: clamp(1.65rem, 5.2vw, 3.3rem);
  line-height: 1.02;
  letter-spacing: .012em;
  text-transform: uppercase;
  color: var(--blue-mid);
}
h3 {
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  line-height: 1.16;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--ink);
}
h4 {
  font-family: "DM Sans", sans-serif;
  font-size: 1rem; letter-spacing: .02em; color: var(--blue);
}

p { margin: 0 0 1.05rem; }
p:last-child { margin-bottom: 0; }
h1 + p, h2 + p, h3 + p, h2 + ul, h3 + ul { margin-top: .85rem; }

.eyebrow {
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  font-size: .74rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin: 0 0 .9rem;
}
.lead { font-size: clamp(1rem, 2.1vw, 1.2rem); color: #33383d; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

/* ------------------------------------------------- catalog wave + corner block */
.motif {
  position: absolute;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
.motif-wave-blue { background-image: url("../img/catalog-wave-blue.svg"); }
.motif-wave-light { background-image: url("../img/catalog-wave-light.svg"); }

.corner-block {
  position: absolute;
  left: 0; bottom: 0;
  width: min(30rem, 62vw);
  aspect-ratio: 936 / 281;
  background: url("../img/catalog-corner-block.svg") left bottom / 100% 100% no-repeat;
  pointer-events: none;
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: "DM Sans", sans-serif; font-weight: 700;
  font-size: .82rem; letter-spacing: .11em; text-transform: uppercase;
  padding: .95rem 1.5rem; border: 2px solid var(--blue);
  background: var(--blue); color: #fff; text-decoration: none;
  transition: background .18s ease, color .18s ease;
}
.btn:hover, .btn:focus-visible { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; text-decoration: none; }
.btn-ghost { background: transparent; color: var(--blue); }
.btn-ghost:hover, .btn-ghost:focus-visible { background: var(--blue); color: #fff; }
.btn-light { background: #fff; border-color: #fff; color: var(--blue); }
.btn-light:hover, .btn-light:focus-visible { background: var(--cream); border-color: var(--cream); color: var(--blue-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(242, 244, 245, .95);
  backdrop-filter: blur(9px);
  border-bottom: 1px solid #dde2e6;
}
.header-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 68px;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand img { height: 46px; width: auto; }
.brand-lockup {
  font-family: "Montserrat", sans-serif; font-weight: 700;
  font-size: .64rem; line-height: 1.35; letter-spacing: .17em;
  color: var(--blue-mid); text-transform: uppercase;
  display: none;
}
.brand-lockup span { display: block; }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 40px; padding: 0 9px;
  background: transparent; border: 1px solid #cfd6dc; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--blue); }

.site-nav { display: none; }
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block;
  font-family: "DM Sans", sans-serif; font-weight: 700;
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  padding: .85rem .2rem; border-bottom: 1px solid #e2e6ea;
}
.site-nav a[aria-current="page"], .site-nav a:hover, .site-nav a:focus-visible {
  color: var(--blue); text-decoration: none;
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .brand-lockup { display: block; }
  .brand img { height: 48px; }
  .site-nav { display: block !important; }
  .site-nav ul { display: flex; gap: clamp(.8rem, 2vw, 1.9rem); align-items: center; }
  .site-nav a { padding: .4rem 0; border-bottom: 2px solid transparent; }
  .site-nav a[aria-current="page"], .site-nav a:hover, .site-nav a:focus-visible { border-bottom-color: var(--blue); }
  .site-nav .nav-cta a {
    background: var(--blue); color: #fff; padding: .7rem 1.05rem; border-bottom: 0;
  }
  .site-nav .nav-cta a:hover { background: var(--blue-deep); border-bottom-color: transparent; }
}

/* ---------------------------------------------------------------- hero (cover page) */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(2.6rem, 8vw, 6rem) 0 clamp(2.2rem, 6vw, 4rem);
}
.hero .motif-wave-blue {
  top: -18%; left: -30%;
  width: min(46rem, 96vw); aspect-ratio: 1 / 1;
  opacity: .17;
  transform: scaleX(-1);
}
.hero-in { position: relative; z-index: 1; max-width: 62rem; }
.rulebox {
  display: inline-block;
  border: 3px solid var(--ink);
  padding: clamp(1.1rem, 3.4vw, 2.1rem) clamp(1.2rem, 4vw, 2.6rem);
  margin-bottom: 1.4rem;
  background: rgba(242, 244, 245, .55);
}
.rulebox h1 { color: var(--blue-bright); }
.rulebox h1 .thin { display: block; font-size: .47em; color: var(--blue); letter-spacing: .05em; }
.hero-mail {
  font-family: "Montserrat", sans-serif; font-weight: 700;
  font-size: clamp(.72rem, 1.9vw, .95rem); letter-spacing: .08em;
  text-transform: uppercase; color: var(--blue-deep);
  word-break: break-word;
}

/* ---------------------------------------------------------------- sections */
.section { padding: clamp(2.6rem, 6.5vw, 5rem) 0; position: relative; }
.section-head { max-width: 46rem; margin-bottom: clamp(1.6rem, 4vw, 2.6rem); }
.section-alt { background: var(--white); }

.band {
  position: relative; overflow: hidden;
  background: var(--blue-mid); color: #fff;
  padding: clamp(2.6rem, 7vw, 5rem) 0;
}
.band h2, .band h3 { color: #fff; }
.band .eyebrow { color: var(--cream); }
.band p { color: #f3f8ff; }
.band .motif-wave-light.m-left {
  left: -30%; top: -30%; width: min(46rem, 94vw); aspect-ratio: 1/1; opacity: .62;
}
.band .motif-wave-light.m-right {
  right: -26%; bottom: -36%; width: min(46rem, 94vw); aspect-ratio: 1/1; opacity: .62;
  transform: scaleX(-1);
}
.band-in { position: relative; z-index: 1; }

/* ------------------------------------------------- about panels (catalog p3) */
.panel {
  background: var(--panel);
  padding: clamp(1.2rem, 3.4vw, 2.1rem);
}
.panel-blue-edge { border-left: 5px solid var(--blue); }

.split {
  display: grid; gap: clamp(1.4rem, 4vw, 3rem);
  align-items: start;
}
@media (min-width: 880px) {
  .split { grid-template-columns: 1.15fr .85fr; }
  .split-even { grid-template-columns: 1fr 1fr; }
  .split-reverse > :first-child { order: 2; }
}

/* ------------------------------------------------- numbered contents list (catalog p2) */
.numlist { list-style: none; margin: 0; padding: 0; position: relative; }
.numlist li {
  display: grid; grid-template-columns: 3.4rem 1fr; align-items: center;
  gap: .4rem 1rem; padding: .7rem 0;
  border-bottom: 1px solid #dfe3e6;
}
.numlist li:last-child { border-bottom: 0; }
.numlist .num {
  font-family: "Oswald", sans-serif; font-weight: 700;
  font-size: clamp(1.4rem, 3.6vw, 1.95rem);
  color: var(--blue-deep);
  background: var(--rule);
  text-align: center; padding: .25rem 0;
}
.numlist .txt {
  font-family: "DM Sans", sans-serif; font-weight: 500;
  font-size: clamp(.9rem, 2.2vw, 1.1rem);
  letter-spacing: .05em; text-transform: uppercase; color: var(--ink);
}

/* ------------------------------------------------- stat + objective cards (catalog p4/p8) */
.grid { display: grid; gap: clamp(.9rem, 2.4vw, 1.5rem); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--white);
  border: 2px solid var(--blue);
  padding: clamp(1.1rem, 3vw, 1.7rem);
  height: 100%;
}
.card-cap {
  background: var(--blue);
  color: #fff;
  font-family: "DM Sans", sans-serif; font-style: italic; font-weight: 700;
  font-size: 1.05rem; text-align: center;
  padding: .5rem 1rem;
}
.card-cap + .card { border-top: 0; }
.card h3 { margin-bottom: .55rem; color: var(--blue); }
.card p { font-size: .95rem; }

.stat { background: var(--white); border-top: 4px solid var(--blue); padding: 1.2rem 1.25rem; }
.stat b {
  display: block; font-family: "Oswald", sans-serif; font-weight: 700;
  font-size: clamp(2rem, 6vw, 3.1rem); line-height: 1; color: var(--blue-bright);
}
.stat span {
  display: block; margin-top: .45rem;
  font-family: "DM Sans", sans-serif; font-size: .82rem;
  letter-spacing: .09em; text-transform: uppercase; color: var(--muted);
}

.tick { list-style: none; margin: 0; padding: 0; }
.tick li { position: relative; padding: .3rem 0 .3rem 1.5rem; font-size: .97rem; }
.tick li::before {
  content: ""; position: absolute; left: 0; top: .92em;
  width: .58rem; height: .58rem; background: var(--blue);
}

/* ------------------------------------------------- photo tiles (catalog slide captions) */
.shots { display: grid; gap: clamp(.7rem, 1.8vw, 1.1rem); grid-template-columns: 1fr; }
@media (min-width: 700px) { .shots { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .shots-3 { grid-template-columns: repeat(3, 1fr); } }

.shot {
  position: relative; margin: 0; overflow: hidden;
  background: #d9dde0; aspect-ratio: 16 / 9;
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.6rem 1rem .85rem;
  background: linear-gradient(to top, rgba(0, 0, 0, .62), rgba(0, 0, 0, 0));
  font-family: "DM Sans", sans-serif; color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .55);
}
.shot-cap b {
  display: block; font-weight: 700;
  font-size: clamp(1rem, 2.5vw, 1.4rem); line-height: 1.12;
}
.shot-cap span {
  display: block; font-weight: 700;
  font-size: clamp(.8rem, 1.9vw, 1rem); line-height: 1.2; opacity: .93;
}
.shot-hero { aspect-ratio: 16 / 9; }
@media (min-width: 900px) { .shot-hero { aspect-ratio: 21 / 9; } }
/* the catalog sets its slide captions very large - match that on the lead photo */
.shot-hero .shot-cap { padding: 4rem clamp(1rem, 3vw, 2.2rem) clamp(1rem, 2.4vw, 1.8rem); }
.shot-hero .shot-cap b { font-size: clamp(1.4rem, 4.2vw, 2.9rem); }
.shot-hero .shot-cap span { font-size: clamp(.95rem, 2.4vw, 1.5rem); }

button.shot {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  font: inherit; color: inherit; text-align: left;
}
button.shot img { transition: transform .4s ease; }
button.shot:hover img, button.shot:focus-visible img { transform: scale(1.035); }

.project-group { margin-bottom: clamp(2.2rem, 5vw, 3.4rem); }
.project-group h2 { font-size: clamp(1.4rem, 3.6vw, 2.2rem); }
.project-group .group-meta {
  font-family: "DM Sans", sans-serif; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  font-size: .76rem; color: var(--blue); margin: .4rem 0 1.1rem;
}

/* ---------------------------------------------------------------- service rows */
.service {
  display: grid; gap: clamp(1rem, 3vw, 2rem); align-items: center;
  padding: clamp(1.3rem, 3.4vw, 2.2rem) 0;
  border-top: 1px solid #dee3e7;
}
.service:first-of-type { border-top: 0; }
@media (min-width: 820px) {
  .service { grid-template-columns: 1fr 1.05fr; }
  .service:nth-child(even) .service-media { order: 2; }
}
.service-no {
  font-family: "Oswald", sans-serif; font-weight: 700;
  font-size: 1.1rem; color: var(--blue); letter-spacing: .14em;
  display: block; margin-bottom: .35rem;
}
.service h3 { color: var(--blue-mid); font-size: clamp(1.15rem, 3vw, 1.7rem); margin-bottom: .6rem; }

/* ------------------------------------------------- closing / thank-you (catalog p74) */
.thanks {
  position: relative; overflow: hidden;
  background: var(--page);
  padding: clamp(2.8rem, 7vw, 5.2rem) 0 clamp(6.5rem, 13vw, 9rem);
}
.thanks .motif-wave-blue {
  right: -16%; top: 2%;
  width: min(38rem, 104vw); aspect-ratio: 1 / 1.02;
  opacity: .85;
}
.thanks .corner-block { width: min(25rem, 56vw); opacity: .95; }
.thanks-in { position: relative; z-index: 1; }
.thanks-grid { display: grid; gap: clamp(1.8rem, 5vw, 3rem); }
@media (min-width: 900px) { .thanks-grid { grid-template-columns: 1.35fr .65fr; align-items: start; } }

.thanks h2 { color: var(--blue-mid); }
.thanks .note {
  font-family: "DM Sans", sans-serif; font-style: italic;
  font-size: clamp(1rem, 2.4vw, 1.3rem); line-height: 1.34;
  color: var(--ink); margin: 1.1rem 0 .9rem; max-width: 30rem;
}
.trust {
  font-family: "Montserrat", sans-serif; font-weight: 700;
  font-size: clamp(1.15rem, 3.4vw, 1.9rem); line-height: 1.15;
  color: #005fad; margin: 0 0 .5rem;
}
.contact-lines { list-style: none; margin: 0; padding: 0; }
.contact-lines li { margin: .12rem 0; }
.contact-lines a, .contact-lines span {
  font-family: "Montserrat", sans-serif; font-weight: 700;
  color: var(--blue); text-decoration: none;
  font-size: clamp(.95rem, 2.5vw, 1.35rem); line-height: 1.3;
  word-break: break-word;
}
.contact-lines .phone { font-size: clamp(1.15rem, 3.2vw, 1.75rem); color: #005aad; }
.contact-lines a:hover { text-decoration: underline; }

/* the logo lockup sits over the wave on the catalog's closing page - keep it readable */
.thanks-mark { position: relative; text-align: left; }
.thanks-mark::before {
  content: ""; position: absolute; inset: -2rem -1.5rem -1.5rem -2rem;
  background: radial-gradient(closest-side, rgba(242, 244, 245, .94) 45%, rgba(242, 244, 245, 0) 100%);
  z-index: -1;
}
@media (min-width: 900px) { .thanks-mark { text-align: right; } }
.thanks-mark img { width: 150px; height: auto; margin-inline: 0; }
@media (min-width: 900px) { .thanks-mark img { margin-left: auto; } }
.mark-lockup {
  font-family: "Montserrat", sans-serif; font-weight: 700;
  font-size: .78rem; letter-spacing: .17em; line-height: 1.5;
  text-transform: uppercase; color: var(--blue-mid); margin: .7rem 0 0;
}
.mark-city {
  font-family: "DM Sans", sans-serif; font-weight: 700;
  font-size: clamp(1.25rem, 3.4vw, 1.75rem); color: var(--blue-mid); margin: .5rem 0 0;
}

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--white); border-top: 4px solid var(--blue); padding: clamp(2rem, 5vw, 3rem) 0 1.2rem; }
.footer-grid { display: grid; gap: 1.8rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.1fr .9fr .9fr; } }
.site-footer img { height: 62px; width: auto; }
.site-footer h3 { font-size: .95rem; letter-spacing: .12em; color: var(--blue); margin-bottom: .7rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: .3rem 0; font-size: .93rem; }
.site-footer a { color: var(--ink); }
.site-footer a:hover { color: var(--blue); }
.footer-bar {
  margin-top: 1.8rem; padding-top: 1rem; border-top: 1px solid #e3e7ea;
  display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; justify-content: space-between;
  font-size: .8rem; color: var(--muted);
}
.footer-bar .trustline {
  font-family: "Montserrat", sans-serif; font-weight: 700; color: var(--blue); letter-spacing: .04em;
}

/* ---------------------------------------------------------------- map */
.map-frame { border: 3px solid var(--blue); background: var(--white); line-height: 0; }
.map-frame iframe { width: 100%; height: clamp(260px, 42vw, 420px); border: 0; display: block; }

/* ---------------------------------------------------------------- lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 90;
  display: none; align-items: center; justify-content: center;
  background: rgba(18, 22, 26, .94);
  padding: clamp(.6rem, 3vw, 2.4rem);
}
.lightbox.is-open { display: flex; }
.lightbox figure { margin: 0; max-width: 1400px; width: 100%; }
.lightbox img {
  width: 100%; height: auto; max-height: 76vh; object-fit: contain; background: #000;
}
.lightbox figcaption {
  font-family: "DM Sans", sans-serif; color: #fff; padding-top: .8rem;
}
.lightbox figcaption b { display: block; font-size: clamp(1rem, 2.4vw, 1.3rem); }
.lightbox figcaption span { display: block; opacity: .82; font-size: .9rem; }
.lb-btn {
  position: absolute; background: rgba(0, 80, 173, .92); color: #fff;
  border: 0; width: 48px; height: 48px; cursor: pointer;
  font-size: 1.4rem; line-height: 1; font-family: "DM Sans", sans-serif;
}
.lb-btn:hover { background: var(--blue-deep); }
.lb-close { top: clamp(.5rem, 2vw, 1.4rem); right: clamp(.5rem, 2vw, 1.4rem); }
.lb-prev { left: clamp(.4rem, 1.6vw, 1.2rem); top: 50%; transform: translateY(-50%); }
.lb-next { right: clamp(.4rem, 1.6vw, 1.2rem); top: 50%; transform: translateY(-50%); }
body.lb-locked { overflow: hidden; }

/* ---------------------------------------------------------------- 404 */
.page-404 { padding: clamp(3rem, 10vw, 7rem) 0; position: relative; overflow: hidden; }
.page-404 .motif-wave-blue {
  right: -28%; top: -26%; width: min(38rem, 100vw); aspect-ratio: 1/1; opacity: .5;
}

/* On narrow screens the catalog motifs have to step back so the copy stays readable. */
@media (max-width: 899px) {
  .thanks { padding-bottom: clamp(5rem, 16vw, 7rem); }
  .thanks .motif-wave-blue {
    right: -32%; top: auto; bottom: -4%;
    width: min(26rem, 86vw); opacity: .3;
  }
  .thanks .corner-block { width: min(17rem, 46vw); }
  .band .motif-wave-light.m-left,
  .band .motif-wave-light.m-right { opacity: .3; }
  .page-404 .motif-wave-blue { opacity: .28; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
