/* =====================================================================
   Nasbah Technologies
   A 1:1 rebuild of the former WordPress (Astra) site in plain CSS.
   Fonts (all Google Fonts): Montserrat and EB Garamond stand in for the old
   site's Adobe Fonts Proxima Nova and Adobe Garamond Pro; Raleway as before.
   ===================================================================== */

:root {
  --brand: #552e2a;        /* header, buttons */
  --heading: #3a3a3a;
  --text: #4b4f58;
  --muted: #666;
  --line: #ddd;
  --field: #fafafa;
  --error: #b42318;

  --font-display: Montserrat, "Helvetica Neue", Arial, sans-serif;
  --font-body: "EB Garamond", Garamond, "Times New Roman", Georgia, serif;
  --font-heading: Raleway, "Helvetica Neue", Arial, sans-serif;

  --container: 1200px;
  --gutter: 20px;
}

/* ---- reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
img, iframe { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }

/* ---- base ---- */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 20px; }
body {
  font-family: var(--font-body); font-size: 18px; line-height: 1.65; color: var(--text); background: #fff;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
h1, h2, h3, h4 { color: var(--heading); font-weight: 500; line-height: 1.3; }
h2, .page-title { font-family: var(--font-heading); font-size: 32px; font-weight: 500; }
p + p { margin-top: 1.5em; }
a { color: var(--brand); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
[tabindex="-1"]:focus { outline: none; }

.container { max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.center { text-align: center; }

.skip { position: absolute; left: 12px; top: -100px; z-index: 20; padding: 10px 14px; background: #000; color: #fff; text-decoration: none; }
.skip:focus { top: 12px; }
/* Read by screen readers, not shown (the contact page has no visible title, as on the old site). */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- header ---- */
.site-header { background: var(--brand); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 102px; }
.logo img { width: 200px; height: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-family: var(--font-display); font-size: 14px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255, 255, 255, .74); text-decoration: none; padding: 0 12px; line-height: 70px;
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav .pill {
  margin-left: 22px; line-height: 1; padding: 10px 40px; border: 2px solid #fff; border-radius: 30px;
  color: #fff; letter-spacing: 1px;
}
.nav .pill:hover { background: #fff; color: var(--brand); }
.menu-toggle { display: none; background: none; border: 2px solid rgba(255, 255, 255, .74); border-radius: 4px; color: #fff; padding: 8px 12px; cursor: pointer; font-family: var(--font-display); font-size: 14px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; }

@media (max-width: 921px) {
  .menu-toggle { display: block; }
  .site-header .container { flex-wrap: wrap; min-height: 80px; padding-block: 10px; }
  .logo img { width: 160px; }
  .nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; padding-bottom: 16px; }
  .nav.open { display: flex; }
  .nav a { line-height: 48px; border-top: 1px solid rgba(255, 255, 255, .15); }
  .nav .pill { margin: 12px 0 0; text-align: center; line-height: 1; }
}

/* ---- photo bands (hero, road, quote) ---- */
.band { min-height: 500px; background-size: cover; background-position: center; display: grid; place-items: center; text-align: center; padding: 60px var(--gutter); }
.band h1 {
  font-family: var(--font-display); font-size: 68px; font-weight: 600; line-height: 1; text-transform: uppercase; color: #fff;
  max-width: 820px; text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}
.band blockquote { font-family: var(--font-body); font-style: italic; font-size: 32px; line-height: 1.3; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .4); }
.hero { background-image: url("../images/hero.webp"); }
.road { background-image: url("../images/road.webp"); }
.quote { background-image: url("../images/quote.webp"); }
@media (max-width: 921px) { .band { min-height: 360px; } .band h1 { font-size: 44px; } .band blockquote { font-size: 24px; } }
@media (max-width: 544px) { .band h1 { font-size: 34px; } }

/* ---- sections ---- */
.section { padding-block: 80px; }
.section-head { margin-bottom: 24px; }
.page-head { padding-block: 100px 40px; }
.page-head .page-title { margin-bottom: 24px; }
.intro { max-width: 1000px; margin-inline: auto; }

/* ---- service cards ---- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 20px; align-items: center; }
.cards figure { text-align: center; }
.cards img { width: 100%; height: auto; }
.cards figcaption { margin-top: 16px; }
.cards.cropped { gap: 40px; max-width: 1160px; margin-inline: auto; }
.cards.cropped img { aspect-ratio: 360 / 350; object-fit: cover; }
@media (max-width: 921px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 544px) { .cards { grid-template-columns: 1fr; } }

/* ---- partners ---- */
.partners { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 40px; margin-top: 40px; }
.partners img { width: 320px; height: auto; }

/* ---- team ---- */
.team { max-width: 1110px; margin-inline: auto; }
.member { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: center; padding-block: 60px; }
.member + .member { border-top: 1px solid #555; }
.member img { width: 280px; height: auto; }
.member h2 {
  font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  color: var(--heading); margin-bottom: 16px;
}
.member p { font-size: 17px; }
.member.reverse { grid-template-columns: 1fr 280px; text-align: right; }
.member.reverse img { order: 2; }
@media (max-width: 768px) {
  .member, .member.reverse { grid-template-columns: 1fr; text-align: left; }
  .member.reverse img { order: 0; }
}

/* ---- contact ---- */
.contact-row { display: grid; grid-template-columns: 340px 1fr; gap: 40px; align-items: start; padding-block: 50px; }
main > section:first-of-type .contact-row { padding-top: 110px; }
.contact-row h2 { margin-bottom: 20px; }
.contact-row address { font-style: normal; }
.contact-row address p + p { margin-top: .6em; }
.contact-row h2 + address, .contact-row address + h2 { margin-top: 0; }
.map { width: 100%; aspect-ratio: 16 / 9; border: 0; }
@media (max-width: 921px) { .contact-row { grid-template-columns: 1fr; } }

/* ---- form (shared js/form.js contract) ---- */
.form-group { border: 0; padding: 0; margin: 0 0 18px; }
.form-group legend, .field > label { display: block; font-size: 16px; font-weight: 700; margin-bottom: 8px; padding: 0; }
.fields-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 544px) { .fields-2 { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field input, .field textarea {
  width: 100%; padding: 8px; font-size: 15px; line-height: 1.65; color: var(--muted);
  background: var(--field); border: 1px solid var(--line); border-radius: 2px;
}
.field textarea { min-height: 288px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.field .sublabel { display: block; font-size: 15px; font-weight: 400; padding-top: 5px; margin: 0; }
.field .err { display: none; font-size: 15px; color: var(--error); }
.field.invalid input, .field.invalid textarea { border-color: var(--error); }
.field.invalid .err { display: block; }
.req { color: var(--error); }
.button {
  display: inline-block; background: var(--brand); color: #fff; border: 0; border-radius: 0; padding: 10px 40px;
  font-family: var(--font-body); font-size: 18px; line-height: 1; cursor: pointer; text-decoration: none;
}
.button:hover { filter: brightness(1.15); }
.form-error { color: var(--error); margin-top: 12px; }
.form-error:empty { display: none; }
.success { display: none; }
body.done form { display: none; }
body.done .success { display: block; }
.success h3 { font-family: var(--font-heading); font-size: 24px; margin-bottom: 8px; }

/* ---- footer ---- */
.site-footer { border-top: 1px solid #eaeaea; }
.site-footer .container { display: flex; justify-content: flex-end; padding-block: 25px; }
