/* =========================
   Global Reset & Variables
   ========================= */
:root {
  --brand-blue: #007bff;
  --brand-orange: #ff6f00;
  --brand-green: #00c853;
  --text-dark: #333;
  --text-light: #555;
  --bg-light: #f5f5f5;
  --border-light: #ddd;

  /* Header/logo sizing */
  --logo-height: 60px;

  /* Hero tile (homepage pattern) */
  --hero-tile-w: 307px;
  --hero-tile-h: 205px;
  --hero-tile-scale: 1;

  /* Login layout rail */
  --login-max: 520px;
  --login-label-w: 120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: Arial, sans-serif;
  line-height: 1.7;
  color: var(--text-dark);
  background: #fff;
}

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

/* =========================
   Layout Container
   ========================= */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================
   Links
   ========================= */
a {
  text-decoration: none;
  color: var(--brand-blue);
  transition: color 0.3s;
}
a:hover { color: #0056b3; }

/* =========================
   Page Title
   ========================= */
.page-title {
  color: #000;
  text-align: center;
  font-size: 2rem;
  margin: 20px 0;
}

/* =========================
   Header & Navigation
   ========================= */
header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 18px 30px;
  background: var(--bg-light);
  border-bottom: 2px solid var(--border-light);
  position: relative;
}
header .logo {
  display: flex;
  align-items: center;
  margin-right: 20px;
  line-height: 0;
}
header .logo img {
  display: block;
  height: var(--logo-height, 60px);
  width: auto;
}

/* Desktop nav */
header nav { flex-grow: 1; text-align: right; }
header nav ul {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  margin-right: 40px;
  list-style: none;
  padding-left: 0;
}
header nav ul li { margin: 0; }
@media (min-width: 769px) {
  header nav ul li a {
    display: inline-block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    padding: 0 12px;
    line-height: var(--logo-height);
    transition: color 0.3s ease;
  }
}
header nav ul li a:hover { color: var(--brand-blue); }

/* Hamburger (mobile only) */
.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;                 /* hidden on desktop */
  cursor: pointer;
  margin-left: auto;
  height: var(--logo-height, 60px);
  align-items: center;
  justify-content: center;
}
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  background: #797979;
  height: 3px;
  width: 25px;
  border-radius: 2px;
  position: relative;
}
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: '';
  position: absolute;
}
.nav-toggle-label span::before { top: -8px; }
.nav-toggle-label span::after  { top: 8px; }

/* Mobile Navigation */
@media (max-width: 768px) {
  .nav-toggle-label { display: flex; }   /* show hamburger */

  header nav {
    display: none;
    position: absolute;
    top: 70%;
    right: 30px;
    background: #E8E8E8;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 0;
    width: max-content;    /* shrink-wrap */
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    z-index: 9999;
  }
  .nav-toggle:checked + .nav-toggle-label + nav { display: block; }

  header nav ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    margin: 0;
    gap: 0;
    list-style: none;
    padding: 6px 0;
  }
  header nav ul li {
    padding: 0 14px;
    margin: 0;
    width: 100%;
    border-bottom: 1px solid #BEBEBE;
  }
  header nav ul li:last-child { border-bottom: none; }
  header nav ul li a {
    display: block;
    width: 100%;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    text-align: center;
  }
}

/* Desktop-only: never show hamburger (safety) */
@media (min-width: 769px) {
  .nav-toggle,
  .nav-toggle-label { display: none !important; }
}

/* =========================
   Buttons
   ========================= */
.btn-primary {
  --btn-bg-start: var(--brand-orange);
  --btn-bg-end: #B85000;
  --btn-shadow: 0 8px 20px rgba(255,111,0,0.25);
  --btn-shadow-hover: 0 10px 24px rgba(255,111,0,0.35);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 14px 26px;
  min-height: 48px;
  border: 0;
  border-radius: 999px;

  background-image: linear-gradient(to bottom, var(--btn-bg-start), var(--btn-bg-end));
  color: #fff;
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 0 rgba(0,0,0,0.15);
  box-shadow: var(--btn-shadow);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, filter .2s ease;
}
.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: var(--btn-shadow-hover);
}
.btn-primary:active {
  transform: translateY(0);
  filter: brightness(0.98);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}
.btn-primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,111,0,0.25), var(--btn-shadow-hover);
}
.btn-primary:disabled {
  opacity: .65;
  cursor: not-allowed;
  transform: none;
  filter: none;
  box-shadow: none;
}

/* Accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .btn-primary { transition: none; }
}

/* =========================
   Page Banner (full-bleed)
   ========================= */
.page-banner {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: 220px;
  background-color: #000;
  background-image:
    linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)),
    var(--banner-img);             /* page supplies this via inline var */
  background-repeat: no-repeat, repeat;
  background-size: auto, 307px 205px;
  background-position: center, top left;
}
/* Single photo banner (e.g., Contact) */
.page-banner--photo {
  background-image: var(--banner-img);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  aspect-ratio: 1536 / 771;       /* we-are-here.jpg ratio */
  min-height: unset;
}

/* Hide honeypot from humans & assistive tech, keep it in the DOM for bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* =========================
   Full-bleed Hero (homepage)
   ========================= */
.hero {
  text-align: center;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: 0;

  background-color: #000;
  background-image:
    linear-gradient(rgba(0,0,0,.40), rgba(0,0,0,.40)),
    url('../images/background-919x679.jpg');
  background-repeat: no-repeat, repeat;
  background-size:
    auto,
    calc(var(--hero-tile-w) * var(--hero-tile-scale))
    calc(var(--hero-tile-h) * var(--hero-tile-scale));
  background-position: center, top left;
}
.hero .inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 20px;
  text-align: center;
}
.hero h1 { color: #fff; }
.hero p  { color: #ddd; }
.hero .tagline {
  font-style: italic;
  font-size: 1.15rem;
  letter-spacing: 0.2px;
  opacity: 0.9;
}

/* =========================
   Alternating Features
   ========================= */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  margin: 0;
}
.feature__content h2 { margin-bottom: 12px; }
.feature__content p  { margin-bottom: 10px; }
.feature__content ul { padding-left: 20px; margin-top: 6px; }

.feature__media img {
  width: 100%;
  height: auto;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.feature.feature--reverse .feature__content { order: 2; }
.feature.feature--reverse .feature__media   { order: 1; }

@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; gap: 24px; }
  .feature .feature__media   { order: 1; }
  .feature .feature__content { order: 2; }
}

/* =========================
   Lists in content areas
   ========================= */
main ul, section ul, .container ul, footer ul { padding-left: 20px; }
section { margin-bottom: 50px; }

h2 {
  font-size: 1.8rem;
  color: var(--text-dark);
  margin-bottom: 15px;
  border-left: 6px solid var(--brand-green);
  padding-left: 12px;
}
section:nth-of-type(2) h2 { border-color: var(--brand-blue); }
section:nth-of-type(3) h2 { border-color: var(--brand-orange); }
section:nth-of-type(4) h2 { border-color: var(--brand-green); }
section:nth-of-type(5) h2 { border-color: var(--brand-blue); }
section:nth-of-type(6) h2 { border-color: var(--brand-orange); }
section:nth-of-type(7) h2 { border-color: var(--brand-green); }

ul li { margin-bottom: 10px; }

/* =========================
   Footer
   ========================= */
footer {
  text-align: center;
  padding: 25px;
  margin-top: 50px;
  font-size: 0.9rem;
  color: #4F3E2B; /* your chosen tone */
}

/* =========================
   Contact: list + errors
   ========================= */
.contact-wrap ul,
.contact-intro ul,
.contact-wrap .alert ul {
  list-style: none;
  padding-left: 0;
  margin: 6px 0;
}
.contact-wrap ul li,
.contact-intro ul li,
.contact-wrap .alert ul li {
  margin: 3px 0;
  line-height: 1.3;
}
/* Contact page: remove bounding box for errors */
.contact-wrap .alert,
.contact-intro .alert {
  background: none;
  border: 0;
  padding: 0;
  color: #B00020;
  margin: 8px 0 12px;
}

/* =========================
   Contact form: two columns
   ========================= */
.contact-form--two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 12px;
  row-gap: 18px;
  align-items: start;
}
.contact-form--two-col .form-field {
  display: grid;
  grid-template-columns: minmax(15px, 95px) 1fr; /* right label, left control */
  column-gap: 16px;
  align-items: center;
}
.contact-form--two-col .form-field label {
  text-align: right;
  color: #6f6f6f;
  font-size: .9rem;
  font-weight: 200;
  line-height: 1.2;
}
.contact-form--two-col .form-field input,
.contact-form--two-col .form-field textarea { width: 100%; }

.contact-form--two-col .form-field--full {
  grid-column: 1 / -1;
  align-items: start;
}
.contact-form--two-col .form-actions {
  grid-column: 1 / -1;
  justify-self: center;
  text-align: center;
  margin-top: 4px;
}

@media (max-width: 680px) {
  .contact-form--two-col { grid-template-columns: 1fr; }
  .contact-form--two-col .form-field { grid-template-columns: 1fr; }
  .contact-form--two-col .form-field label {
    text-align: left;
    margin-bottom: 4px;
  }
  .contact-form .btn-primary {
    width: 100%;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Make the reCAPTCHA row span both columns and center it */
.contact-form--two-col .recaptcha-row {
  grid-column: 1 / -1;        /* full width of the 2-col grid */
  display: flex;               /* use flex to center the widget */
  justify-content: center;     /* <-- centers like the button */
  margin: 8px 0 12px;          /* nice spacing above/below */
}

/* Fallback (or extra safety): center the widget itself */
.recaptcha-row .g-recaptcha {
  display: block;
  margin: 0 auto;
}

/* =========================
   Login page
   ========================= */

/* Full-page seamless background */
body.login-page {
  background-image:
    linear-gradient(rgba(0,0,0,0.60), rgba(0,0,0,0.60)),
    url('../images/background-919x679.jpg');
  background-repeat: no-repeat, repeat;
  background-position: center, top left;
  background-size: cover, calc(919px * 0.5) calc(679px * 0.5);
  background-attachment: fixed, scroll;
  min-height: 100vh;
}

/* Rail + centering */
.login-container {
  max-width: var(--login-max);
  margin: 48px auto 0;
  text-align: center;
  padding: 0 16px;
}

.login-logo {
  height: 80px;
  width: auto;
  margin: 8px auto 24px;
  border-radius: 16px;
}

/* Alerts (scoped to login so contact stays clean) */
.login-page .alert.error {
  background: rgba(255,255,255,0.75);
  color: #BD5200;
  padding: 10px 12px;
  border-radius: 8px;
  margin: 10px auto 16px;
  text-align: center;
  max-width: var(--login-max);
}

/* Form rows */
.login-form .form-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 24px auto;
  max-width: var(--login-max);
}
.login-form label {
  color: #fff;
  font-weight: 600;
  margin: 0;
  width: var(--login-label-w);
  text-align: right;
}
.login-form input {
  flex: 1 1 260px;
  max-width: 240px;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  color: #333;
  font-size: 16px;                /* avoid iOS zoom */
  line-height: 1.2;
  -webkit-appearance: none;
  appearance: none;
}

/* Button row */
.login-form .form-actions {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}
.login-form .form-actions .btn-primary {
  padding: 12px 28px;
  font-size: 1rem;
}

/* Help text */
.login-help {
  color: #FFDABD;
  margin-top: 16px;
  line-height: 1.5;
  max-width: var(--login-max);
  margin-left: auto;
  margin-right: auto;
}
.login-help a { color: #fff; text-decoration: underline; }

/* Mobile tweaks (single authoritative block) */
@media (max-width: 480px) {
  .login-form .form-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 14px;
  }
  .login-form label {
    width: auto;
    text-align: left;
    margin-bottom: 6px;
  }
  .login-form input {
    height: 36px;               /* compact, non-square */
    padding: 0 10px;            /* no vertical padding with fixed height */
    line-height: 36px;          /* centers text vertically */
    border-radius: 6px;
  }
}

/* ---- iOS/phone clamp for tall inputs on the login page ---- */
/* Make sure small screens always get a 36px-tall control */
@media (max-width: 480px) {
  .login-form input[type="text"],
  .login-form input[type="password"] {
    -webkit-appearance: none !important;
    appearance: none !important;

    height: 36px !important;
    max-height: 36px !important;
    min-height: 0 !important;

    padding-block: 0 !important;   /* = padding-top & padding-bottom */
    padding-top: 0 !important;
    padding-bottom: 0 !important;

    line-height: 36px !important;  /* vertically center text */
    border-radius: 6px !important;
    box-sizing: border-box;         /* already global, but be explicit */
    font-size: 16px;                /* avoid iOS zoom on focus */
  }

  /* Keep rows tight so the new compact inputs don't look "square" by spacing */
  .login-form .form-row {
    gap: 8px !important;
    margin-bottom: 12px !important;
  }
}

/* Extra nudge for iOS Safari/Chrome only */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 480px) {
    .login-form input[type="text"],
    .login-form input[type="password"] {
      height: 36px !important;
      line-height: 36px !important;
      padding-block: 0 !important;
    }
  }
}
