/* ============================================================
   JHawley Consulting — Stylesheet
   Clean build; values sourced from original site
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?display=swap&family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300&family=Antonio:ital,wght@0,500;0,700');

/* ── Reset ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Design tokens ───────────────────────────────────── */
:root {
  --bg:          #262626;
  --bg-dark:     #101010;
  --gold:        #DAAA00;
  --gold-deep:   #AE8800;
  --white:       #FFFFFF;
  --text:        rgba(255,255,255,0.741);
  --red:         #FF363D;
  --font-display:'Antonio', sans-serif;
  --font-body:   'Inter', sans-serif;
  --pad-v:       8rem;
  --pad-h:       8rem;
  --gutters:     8rem;
  --img-w:       50rem;
  --img-radius:  0.25rem;
  --vh:          100vh;
  /* parallax backgrounds */
  --scroll-y:    0;
}

/* ── Base ─────────────────────────────────────────────── */
html { font-size: 16pt; scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1em;
  line-height: 1.875;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  word-wrap: break-word;
  min-height: var(--vh);
}

/* Diagonal line overlay — fixed, full viewport */
body::before {
  content: '';
  display: block;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20512%20512%22%20width%3D%22512%22%20height%3D%22512%22%20preserveAspectRatio%3D%22none%22%3E%20%3Cstyle%3E%20path%20%7B%20fill%3A%20none%3B%20stroke-linecap%3A%20round%3B%20stroke-width%3A%201.01px%3B%20stroke%3A%20rgba(255%2C255%2C255%2C0.004)%3B%20vector-effect%3A%20non-scaling-stroke%3B%20%7D%20%3C%2Fstyle%3E%20%3Cpath%20d%3D%22M-8%2C232L256%2C32%20M520%2C232L256%2C32%22%20%2F%3E%20%3Cpath%20d%3D%22M-8%2C488l264-200%20M520%2C488L256%2C288%22%20%2F%3E%3C%2Fsvg%3E");
  background-size: 175px;
  background-repeat: repeat;
}

/* Page load fade-in */
body.is-loading #home-section,
body.is-loading #footer { opacity: 0; }
#home-section, #footer { transition: opacity 0.5s ease 0.1s; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

mark {
  background: transparent;
  color: var(--gold);
}

/* ── Typography ──────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: -0.1rem;
  line-height: 1.125;
  font-weight: 500;
}

h1 { font-size: 6em; margin-bottom: 1.4rem; }
h2 { font-size: 4em; margin-bottom: 1.5rem; }
h3 { font-size: 3.125em; margin-bottom: 1.2rem; line-height: 1.25; }

#hero-h1 { font-size: 5.5em; }

p {
  font-size: 1em;
  line-height: 1.875;
  font-weight: 300;
  color: var(--text);
  margin-bottom: 1rem;
}
p:last-child { margin-bottom: 0; }

strong { color: inherit; font-weight: 700; }
em { font-style: italic; }

/* ── Eyebrow / section label ─────────────────────────── */
.eyebrow {
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 1.125em;
  font-weight: 600;
  letter-spacing: 0.4rem;
  text-transform: uppercase;
  line-height: 1.625;
  margin-bottom: 1.5rem;
}
/* The pill badge inside the eyebrow */
.eyebrow strong {
  display: inline-block;
  background-color: var(--gold);
  color: #262626;
  font-family: var(--font-body);
  font-size: 1em;
  text-transform: none;
  letter-spacing: 2px;
  padding: 6px 18px;
  font-weight: 600;
  border-radius: 100px;
}

.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.875em;
  font-weight: 400;
  letter-spacing: 0.3rem;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

/* ── Button ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-body);
  font-size: 0.875em;
  font-weight: 500;
  letter-spacing: 0.4rem;
  text-transform: uppercase;
  padding: 1.484375rem 2.375rem;
  border-radius: 2.5rem;
  border: 2px solid var(--gold);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  text-decoration: none;
  margin-top: 1.5rem;
}
.btn svg {
  fill: var(--gold);
  flex-shrink: 0;
  width: 1.875em;
  height: 1.875em;
  pointer-events: none;
  transition: fill 0.25s ease;
}
.btn:hover {
  color: var(--gold);
  border-color: var(--gold);
  transform: scale(1.025);
}
.btn:hover svg { fill: var(--gold); }

/* ── Section layout ──────────────────────────────────── */
.section {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: var(--vh);
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-wrap {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  padding: var(--pad-v) var(--pad-h);
  gap: var(--gutters);
}

/* Column widths account for gap so they always sum to 100% */
.col {
  flex: 0 0 calc(var(--col-w) - var(--gutters) / 2);
  max-width: calc(var(--col-w) - var(--gutters) / 2);
}

/* Spacer columns (explore, contact left side) */
.col-spacer { /* intentionally empty */ }

/* ── Background variants ─────────────────────────────── */

/* Dark (#101010) + hex pattern — drift, who */
.bg-dark {
  background-color: var(--bg-dark);
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20512%20512%22%20width%3D%22512%22%20height%3D%22512%22%20preserveAspectRatio%3D%22none%22%3E%20%3Cstyle%20type%3D%22text%2Fcss%22%3E%20path%20%7B%20fill%3A%20none%3B%20stroke%3A%20rgba(255%2C255%2C255%2C0.012)%3B%20stroke-width%3A%204.01px%3B%20stroke-linecap%3A%20round%3B%20stroke-linejoin%3A%20round%3B%20%7D%20%3C%2Fstyle%3E%20%3Cpath%20vector-effect%3D%22non-scaling-stroke%22%20d%3D%22M424%2C331.8c0%2C12.5-6.7%2C24.1-17.5%2C30.3l-132%2C76.2c-10.8%2C6.3-24.2%2C6.3-35%2C0l-132-76.2C96.7%2C355.8%2C90%2C344.3%2C90%2C331.8V179.2c0-12.5%2C6.7-24.1%2C17.5-30.3l132-76.2c10.8-6.3%2C24.2-6.3%2C35%2C0l132%2C76.2c10.8%2C6.3%2C17.5%2C17.8%2C17.5%2C30.3V331.8z%20M238.5%2C73l-256%2C147.6%20M273.5%2C439l252.1-145.4%20M256%2C634.7V378.3c0-12.5%2C6.7-24.1%2C17.5-30.3l252.1-145.4%20M256%2C-122.7v256.4c0%2C12.5-6.7%2C24.1-17.5%2C30.3l-256%2C147.6%22%2F%3E%3C%2Fsvg%3E");
  background-size: 164px;
  background-repeat: repeat;
  border: 1px solid rgba(255,255,255,0.039);
}

/* Mid (#262626) + hex pattern (large) — about */
.bg-mid {
  background-color: var(--bg);
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20512%20512%22%20width%3D%22512%22%20height%3D%22512%22%20preserveAspectRatio%3D%22none%22%3E%20%3Cstyle%20type%3D%22text%2Fcss%22%3E%20path%20%7B%20fill%3A%20none%3B%20stroke%3A%20rgba(255%2C255%2C255%2C0.012)%3B%20stroke-width%3A%204.01px%3B%20stroke-linecap%3A%20round%3B%20stroke-linejoin%3A%20round%3B%20%7D%20%3C%2Fstyle%3E%20%3Cpath%20vector-effect%3D%22non-scaling-stroke%22%20d%3D%22M424%2C331.8c0%2C12.5-6.7%2C24.1-17.5%2C30.3l-132%2C76.2c-10.8%2C6.3-24.2%2C6.3-35%2C0l-132-76.2C96.7%2C355.8%2C90%2C344.3%2C90%2C331.8V179.2c0-12.5%2C6.7-24.1%2C17.5-30.3l132-76.2c10.8-6.3%2C24.2-6.3%2C35%2C0l132%2C76.2c10.8%2C6.3%2C17.5%2C17.8%2C17.5%2C30.3V331.8z%20M238.5%2C73l-256%2C147.6%20M273.5%2C439l252.1-145.4%20M256%2C634.7V378.3c0-12.5%2C6.7-24.1%2C17.5-30.3l252.1-145.4%20M256%2C-122.7v256.4c0%2C12.5-6.7%2C24.1-17.5%2C30.3l-256%2C147.6%22%2F%3E%3C%2Fsvg%3E");
  background-size: 656px;
  background-repeat: repeat;
  border: 1px solid rgba(255,255,255,0.039);
}

/* Gold (#DAAA00) + hex pattern — services grid */
.bg-gold {
  background-color: var(--gold);
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20512%20512%22%20width%3D%22512%22%20height%3D%22512%22%20preserveAspectRatio%3D%22none%22%3E%20%3Cstyle%20type%3D%22text%2Fcss%22%3E%20path%20%7B%20fill%3A%20none%3B%20stroke%3A%20rgba(255%2C255%2C255%2C0.039)%3B%20stroke-width%3A%204.01px%3B%20stroke-linecap%3A%20round%3B%20stroke-linejoin%3A%20round%3B%20%7D%20%3C%2Fstyle%3E%20%3Cpath%20vector-effect%3D%22non-scaling-stroke%22%20d%3D%22M424%2C331.8c0%2C12.5-6.7%2C24.1-17.5%2C30.3l-132%2C76.2c-10.8%2C6.3-24.2%2C6.3-35%2C0l-132-76.2C96.7%2C355.8%2C90%2C344.3%2C90%2C331.8V179.2c0-12.5%2C6.7-24.1%2C17.5-30.3l132-76.2c10.8-6.3%2C24.2-6.3%2C35%2C0l132%2C76.2c10.8%2C6.3%2C17.5%2C17.8%2C17.5%2C30.3V331.8z%20M238.5%2C73l-256%2C147.6%20M273.5%2C439l252.1-145.4%20M256%2C634.7V378.3c0-12.5%2C6.7-24.1%2C17.5-30.3l252.1-145.4%20M256%2C-122.7v256.4c0%2C12.5-6.7%2C24.1-17.5%2C30.3l-256%2C147.6%22%2F%3E%3C%2Fsvg%3E");
  background-size: 164px;
  background-repeat: repeat;
  border: 1px solid rgba(255,255,255,0.18);
}

/* Photo background with dark overlay — hero, genius, explore, contact */
.bg-photo {
  background-color: var(--bg);
  background-repeat: no-repeat, no-repeat;
  background-size: auto, cover;
  background-position: 0% 0%, 50% 50%;
  background-attachment: scroll, fixed;
}
/* The JS sets the actual image URL via data-bg */

/* Extra-dark overlay variant (genius / container11) */
.bg-photo--dark {
  background-color: #080808;
}

/* ── Section 1: Hero ─────────────────────────────────── */
/* #hero h1 intentionally removed — use #hero-h1 instead */

.col-photo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.photo-frame {
  width: 100%;
  max-width: var(--img-w);
  border-radius: var(--img-radius);
  overflow: hidden;
  line-height: 0;
}
.photo-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--img-radius);
}

/* ── Section 2: Drift ────────────────────────────────── */
#drift h2 { font-size: 4.25em; }

/* ── Section 3: Working Genius ───────────────────────── */
#genius h2 { font-size: 3.5em; }
#genius p { max-width: 560px; }

/* ── Section 4a: Services header banner ─────────────── */
.section-banner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--gold-deep);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 3rem var(--pad-h);
  text-align: center;
  width: 100%;
}
.section-banner h2 {
  color: var(--white);
  font-size: 3.5em;
  margin-bottom: 0;
}

/* ── Section 4b: Services 2x2 cards on gold ───────────── */
#services {
  min-height: 0;
  display: block;
  padding: var(--pad-v) var(--pad-h);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  width: 100%;
}

.service-card {
  background-color: rgba(38,38,38,0.88);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 0.375rem;
  padding: 3rem 2.5rem;
}

.service-card h3 {
  font-size: 2.25em;
  color: var(--white);
  margin-bottom: 1rem;
}
.service-card p {
  color: var(--text);
  font-size: 0.9em;
  line-height: 1.875;
  margin: 0;
}

/* ── Section 5: Explore ──────────────────────────────── */
#explore h2 { font-size: 4.25em; }

/* ── Section 6: Who ──────────────────────────────────── */
#who h2 { font-size: 4.25em; }

.who-list {
  margin: 1.2rem 0 1.4rem;
}
.who-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.875;
}
.who-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23DAAA00'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}
.who-list li p {
  margin: 0;
  color: var(--text);
}

/* ── Section 7: About ────────────────────────────────── */
#about h2 { font-size: 3.125em; }

/* ── Section 8: Contact / Form ───────────────────────── */
#contact h2 { font-size: 4.25em; }

#contact-form { margin-top: 2rem; }

.field { margin-bottom: 1.5rem; }
.field:last-of-type { margin-bottom: 0; }

.field input,
.field textarea {
  display: block;
  width: 100%;
  background-color: var(--white);
  border: none;
  border-radius: var(--img-radius);
  height: 4.75rem;
  padding: 0 1.75rem;
  color: #000;
  font-family: var(--font-body);
  font-size: 1em;
  font-weight: 300;
  outline: none;
  transition: box-shadow 0.25s ease;
  -webkit-appearance: none;
}
.field textarea {
  height: 10rem;
  padding: 1.4rem 1.75rem;
  border-radius: var(--img-radius);
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(0,0,0,0.45); }
.field input:focus,
.field textarea:focus { box-shadow: 0 0 0 2px var(--gold), inset 0 0 0 2px var(--gold); }

.cf-turnstile { margin: 1.5rem 0; }

.form-actions { margin-top: 1.5rem; }
.btn-submit { margin-top: 0; }

#form-message {
  margin-top: 1rem;
  font-size: 0.9em;
  display: none;
}
#form-message.success { color: var(--gold); display: block; }
#form-message.error   { color: var(--red);  display: block; }

/* ── Done section ────────────────────────────────────── */
#done-section { display: none; }
#done-section h2 { font-size: 4em; margin-bottom: 1.2rem; }

/* ── Footer ──────────────────────────────────────────── */
#footer {
  position: relative;
  z-index: 1;
  background-color: var(--bg-dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1.75rem var(--pad-h);
  text-align: center;
}
#footer p {
  font-size: 0.75em;
  color: rgba(255,255,255,0.3);
  margin: 0;
}

/* ── Scroll-triggered animations ─────────────────────── */

/* JS adds .anim to each animatable child, then .in when visible */
.anim {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.anim.in {
  opacity: 1;
  transform: translateY(0);
}

/* Section banner animates as one unit */
.section-banner {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.section-banner.in {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive: 1680px ──────────────────────────────── */
@media (max-width: 1680px) {
  html { font-size: 13pt; }
}

/* ── Responsive: 1280px ──────────────────────────────── */
@media (max-width: 1280px) {
  html { font-size: 11pt; }
  :root { --pad-h: 5rem; --gutters: 5rem; }
}

/* ── Responsive: 980px ───────────────────────────────── */
@media (max-width: 980px) {
  html { font-size: 10pt; }
  :root { --pad-v: 6rem; --pad-h: 3rem; --gutters: 3rem; }

  .section-wrap { flex-direction: column; margin-left: 0; }
  .col { flex: none; width: 100% !important; max-width: 100% !important;
         --col-w: 100%; padding-left: 0; }
  .col-spacer { display: none; }

  #hero { min-height: auto; }
  #hero .section-wrap { flex-direction: column-reverse; }
  #hero .col-photo { margin-bottom: 0; }
  .photo-frame { max-width: 100%; }

  #explore { min-height: 0; }

  #about .section-wrap { flex-direction: column-reverse; }

  .services-grid { grid-template-columns: 1fr; }
  .service-card { border-right: none; }
  .service-card:nth-child(n+3) { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .service-card:last-child { border-bottom: none; }

  .section-banner { padding: 2.5rem var(--pad-h); }
}

/* ── Responsive: 736px ───────────────────────────────── */
@media (max-width: 736px) {
  :root { --pad-v: 5rem; --pad-h: 2rem; --gutters: 2rem; }
  h1 { font-size: 4em; }
  h2 { font-size: 3em; }
  h3 { font-size: 2.5em; }
  #genius h2, #explore h2, #who h2, #about h2, #contact h2 { font-size: 2.5em; }
  .section-banner h2 { font-size: 2.5em; }
}
