/* =========================
   Exulans Enterprises — style.css
   Theme: primary #06243a, accent #4381b8, bg #fff
   ========================= */

/* Colors / tokens */
:root {
  --primary: #06243a;
  --accent:  #4381b8;
  --bg:      #ffffff;
  --text:    #06243a;
  --footer:  #4381b8; /* footer text color per current file */
}

/* Base */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Links */
a, a:visited { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header & Footer */
.site-header, .site-footer {
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--primary);
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Header overlay: floats above hero video */
.site-header.overlay {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 2;
  background: transparent;
  border-bottom: none;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* Overlay header nav readability */
.site-header.overlay .nav a {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}
.site-header.overlay .nav a:hover { border-bottom: 1px solid #fff; }

/* Overlay header: keep Contact link in accent */
.site-header.overlay .nav a[href="contact.php"],
.site-header.overlay .nav a[href="contact.php"]:visited {
  color: var(--accent);
  text-shadow: none;
}
.site-header.overlay .nav a[href="contact.php"]:hover {
  border-bottom: 1px solid var(--accent);
}

/* Footer */
.site-footer {
  border-bottom: 0;
  text-align: center;
  color: var(--footer);
}

/* Logo & Nav */
.logo a { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 64px; width: auto; display: block; }

.nav a {
  color: var(--primary);
  margin-left: 1rem;
  padding-bottom: .2rem;
}
.nav a:hover { border-bottom: 1px solid var(--primary); }

/* Contact link (normal header) in accent */
.nav a[href="contact.php"],
.nav a[href="contact.php"]:visited { color: var(--accent); }
.nav a[href="contact.php"]:hover { border-bottom: 1px solid var(--accent); }

/* Main wrapper */
.site-main { max-width: 1100px; margin: 0 auto; padding: 2rem; }
.site-main.no-top { padding-top: 0; } /* remove gap on hero pages */

/* =========================
   HERO — Full-bleed 16:9 video
   ========================= */
.hero {
  position: relative;
  overflow: hidden;

  /* Break out of centered container */
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;

  /* Layout */
  height: 100vh; /* full viewport; covers header beneath */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
  border: 0;
  z-index: 0;
}

/* Cover the hero area without letterboxing */
.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;        /* 9/16 of width keeps 16:9 */
  min-height: 100vh;      /* fill tall screens */
  min-width: 177.78vh;    /* 16/9 of height for ultra-tall screens */
  transform: translate(-50%, -50%);
  object-fit: cover;
  object-position: center center;
  z-index: 0;
}

/* iOS Safari helper */
@supports (-webkit-touch-callout: none) {
  .hero-video {
    height: 100vh;
    width: 177.78vh;      /* keep 16:9 while prioritizing height */
  }
}

/* Hero overlay (content card) */
.hero-overlay {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 2rem;
  max-width: 800px;
  background: rgba(0,0,0,0.0);
  border: 0;
}
.hero-overlay h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--primary);
  margin: 0 0 .5rem;
  line-height: 1.2;
}
.hero-overlay p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #363636;
}

/* Buttons */
.btn {
  display: inline-block;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
  padding: .75rem 1.25rem;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  border-radius: 6px;
}
.btn:hover { background: #fff; color: var(--primary); }
.hero-overlay .btn {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.hero-overlay .btn:hover {
  background: #fff;
  color: var(--accent);
  border-color: var(--accent);
}

/* =========================
   CONTACT FORM (overlay version)
   ========================= */
.hero-overlay h2.center { color: var(--primary); }

.hero-overlay .contact-form {
  margin: 0 auto;
  width: min(640px, 100%);
  display: grid;
  grid-template-columns: 180px 1fr; /* label / field */
  column-gap: 12px;
  row-gap: 10px;
  align-items: center;
}

.hero-overlay .contact-form label {
  text-align: right;
  margin: 0;
  color: var(--primary);
}

.hero-overlay .contact-form input,
.hero-overlay .contact-form textarea {
  grid-column: 2;
  background: rgba(255,255,255,0.95);
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: .6rem;
  width: 100%;
}
.hero-overlay .contact-form textarea { resize: vertical; }

/* Button spans both columns and is centered */
.hero-overlay .contact-form .btn {
  grid-column: 1 / -1;
  justify-self: center;
  width: max-content;
  margin-top: .5rem;
}

/* Mobile stacking */
@media (max-width: 640px) {
  .hero-overlay .contact-form {
    grid-template-columns: 1fr;
    width: 100%;
  }
  .hero-overlay .contact-form label { text-align: left; }
  .hero-overlay .contact-form input,
  .hero-overlay .contact-form textarea,
  .hero-overlay .contact-form .btn { grid-column: 1; }
  .hero-overlay .contact-form .btn { justify-self: stretch; }
}

/* =========================
   PILLARS / WHAT WE DO
   ========================= */
.pillars { padding: 3rem 1rem; }
.pillars h2 { margin-top: 0; text-align: center; }

.grid {
  list-style: none;
  padding: 0;
  margin: 1rem auto 0;
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: .75rem;
}
.grid li {
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
  padding: .9rem;
  text-align: center;
}

/* Honeypot (hidden) */
.hp-label, .hp-input {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Media / utilities */
img, svg, video { max-width: 100%; height: auto; display: block; }
.center { text-align: center; }

/* Small screens general tweaks */
@media (max-width: 640px) {
  .site-header, .site-footer { padding: .85rem 1rem; }
  .nav a { margin-left: .75rem; }
  .site-main { padding: 1.5rem 1rem; }
  .hero-overlay { margin: 0 1rem; }
}

/* ---------- Tuning for contact.php form ---------- */

/* Use a variable for the desktop label column so we can offset cleanly */
:root { --contact-label-col: 180px; }

/* Desktop (wider screens): scoot the whole two-column block slightly left
   by half of the label column width so it appears visually centered */
@media (min-width: 901px) {
  .hero-overlay .contact-form {
    grid-template-columns: var(--contact-label-col) 1fr;
    width: min(640px, 100%);
    margin: 0 auto;
    transform: translateX(calc(var(--contact-label-col) / -2));
  }
  .hero-overlay .contact-form label { text-align: right; }
  .hero-overlay .contact-form input,
  .hero-overlay .contact-form textarea { grid-column: 2; }
  .hero-overlay .contact-form .btn {
    grid-column: 1 / -1;      /* keep button centered under both columns */
    justify-self: center;
    width: max-content;
  }
}

/* Mobile: keep label and input on the SAME line (two columns) */
@media (max-width: 640px) {
  .hero-overlay .contact-form {
    grid-template-columns: 42% 58%;  /* label / field */
    width: 100%;
    margin: 0;                       /* let it fill the overlay nicely */
    transform: none;                  /* cancel desktop left-offset */
  }
  .hero-overlay .contact-form label { text-align: right; }
  .hero-overlay .contact-form input,
  .hero-overlay .contact-form textarea { grid-column: 2; }
  .hero-overlay .contact-form .btn {
    grid-column: 1 / -1;             /* button spans both columns */
    justify-self: stretch;            /* full width on mobile (optional) */
  }
}

/* Center the Send button under the heading */

/* Base: span both columns and center */
.hero-overlay .contact-form .btn {
  grid-column: 1 / -1;
  justify-self: center;
  width: max-content;
}

/* Desktop (we offset the whole form left; compensate the button right) */
@media (min-width: 901px) {
  :root { --contact-label-col: 180px; } /* keep in sync with your grid */
  .hero-overlay .contact-form .btn {
    transform: translateX(calc(var(--contact-label-col) / 2));
  }
}

/* Mobile: keep label+field on one line AND center the button */
@media (max-width: 640px) {
  .hero-overlay .contact-form .btn {
    justify-self: center;   /* was stretch; center instead */
    width: max-content;
    transform: none;        /* no compensation needed on mobile */
  }
}

/* 1) Nuke any actual borders around the hero */
.hero { border: 0 !important; }
.site-header.overlay { border-bottom: 0 !important; }
/* (If you ever added a footer border) */
.site-footer { border: 0 !important; }

/* 2) Prevent the 1px hairline under the video (rounding fix) */
.hero {
  min-height: calc(100vh + 1px);   /* bleed past the fold by 1px */
  transform: translateZ(0);        /* GPU hint avoids hairlines */
}
.hero-video {
  height: calc(56.25vw + 2px);     /* 16:9 + small bleed */
  min-height: calc(100vh + 2px);   /* ensure cover on tall screens */
  will-change: transform;
}

/* iOS Safari helper */
@supports (-webkit-touch-callout: none) {
  .hero-video {
    height: calc(100vh + 2px);
    width: 177.78vh;               /* 16:9 while prioritizing height */
  }
}

/* Optional last resort (Safari on some GPUs):
   pull the next section up by 1px to hide any sliver */
.hero + * { margin-top: -1px; }


/* reCAPTCHA row alignment in the grid */
.hero-overlay .contact-form .captcha-row {
  grid-column: 1 / -1;      /* span both columns */
  justify-self: center;
  margin: .25rem 0 .5rem;
}

/* Desktop: compensate for your left-shift so the captcha centers like the H2 and button */
@media (min-width: 901px) {
  :root { --contact-label-col: 180px; } /* keep in sync with your form */
  .hero-overlay .contact-form .captcha-row {
    transform: translateX(calc(var(--contact-label-col) / 2));
  }
}

/* Mobile: keep it centered without transforms */
@media (max-width: 640px) {
  .hero-overlay .contact-form .captcha-row {
    transform: none;
    justify-self: center;
  }
}

/* Optional: scale widget down slightly on very narrow screens */
@media (max-width: 360px) {
  .hero-overlay .contact-form .captcha-row .g-recaptcha {
    transform: scale(0.9);
    transform-origin: center;
  }
}


/* ===== Contact form left shift tuning (desktop only) ===== */
:root {
  --contact-label-col: 180px;   /* your label column width */
  --contact-left-nudge: 28px;   /* increase/decrease to scoot more/less left */
}

@media (min-width: 901px) {
  /* Shift the whole 2-col form left a bit more */
  .hero-overlay .contact-form {
    transform: translateX(calc((var(--contact-label-col) / -2) - var(--contact-left-nudge)));
  }

  /* Compensate the button so it stays centered under <h2> */
  .hero-overlay .contact-form .btn {
    transform: translateX(calc((var(--contact-label-col) / 2) + var(--contact-left-nudge)));
  }

  /* If you added reCAPTCHA, center it under <h2> as well */
  .hero-overlay .contact-form .captcha-row {
    transform: translateX(calc((var(--contact-label-col) / 2) + var(--contact-left-nudge)));
  }
}

/* Mobile keeps label + field on the same line; no offset */
@media (max-width: 640px) {
  .hero-overlay .contact-form {
    transform: none;
    grid-template-columns: 42% 58%;
  }
  .hero-overlay .contact-form .btn,
  .hero-overlay .contact-form .captcha-row {
    transform: none;
  }
}

.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }







