/* ==========================================================================
   Four Owls Advisory — Master Theme Stylesheet
   Built from Four_Owls_Advisory_Master_Design_Theme_Guide
   ========================================================================== */

:root {
  --fo-navy: #00205B;
  --fo-midnight: #13133E;
  --fo-rich-blue: #0A509E;
  --fo-gray: #7C7E7F;
  --fo-light-blue-gray: #ADC7DC;
  --fo-light-gray: #E0E2E6;
  --fo-off-white: #F7F9FC;
  --fo-gold: #E9A139;
  --fo-text: #1F2430;
  --fo-white: #FFFFFF;

  --font-display: 'Libre Baskerville', Georgia, 'Cambria', serif;
  --font-body: 'Inter', 'Avenir Next', Arial, Helvetica, sans-serif;

  --max-width: 1200px;
  --header-h: 84px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--fo-text);
  line-height: 1.65;
  background: var(--fo-white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 6%;
}

h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  color: var(--fo-navy);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 18px 0;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--fo-gold);
  margin-bottom: 14px;
}

.section-head {
  max-width: 720px;
  margin: 0 0 48px 0;
}

.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-head p {
  color: var(--fo-gray);
  font-size: 17px;
  margin: 0;
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(0, 32, 91, 0.0);
  backdrop-filter: blur(0px);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), height 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(0,32,91,0.08), 0 12px 30px -18px rgba(0,32,91,0.25);
  height: 72px;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img { height: 46px; width: auto; transition: height 0.35s var(--ease), opacity 0.2s linear; }
.site-header.is-scrolled .brand img { height: 40px; }

.brand-mark-navy { display: none; }
.site-header.is-scrolled .brand-mark-white { display: none; }
.site-header.is-scrolled .brand-mark-navy { display: block; }

.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.5px;
  color: var(--fo-white);
  transition: color 0.35s var(--ease);
}

.site-header.is-scrolled .brand-word { color: var(--fo-navy); }

.main-nav { display: flex; align-items: center; gap: 34px; }

.main-nav a {
  text-decoration: none;
  color: var(--fo-white);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.3px;
  position: relative;
  padding: 4px 0;
  transition: color 0.3s var(--ease);
}

.site-header.is-scrolled .main-nav a { color: var(--fo-navy); }

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--fo-gold);
  transition: width 0.3s var(--ease);
}

.main-nav a:hover::after { width: 100%; }

.main-nav .button { color: var(--fo-navy); }
.site-header.is-scrolled .main-nav .button { color: var(--fo-white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--fo-white);
  transition: all 0.3s var(--ease);
}

.site-header.is-scrolled .nav-toggle span { background: var(--fo-navy); }

/* ---------------------------------------------------------------- buttons */

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.2px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.button-primary {
  background: var(--fo-gold);
  color: var(--fo-midnight);
}

.button-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 24px -12px rgba(233,161,57,0.55); }

.button-outline {
  border-color: rgba(255,255,255,0.55);
  color: var(--fo-white);
  background: transparent;
}

.button-outline:hover { border-color: var(--fo-white); transform: translateY(-2px); }

.button-navy {
  background: var(--fo-navy);
  color: var(--fo-white);
}

.button-navy:hover { background: var(--fo-rich-blue); transform: translateY(-2px); box-shadow: 0 14px 24px -14px rgba(10,80,158,0.55); }

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--fo-navy);
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  will-change: transform;
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,32,91,0.78) 0%, rgba(0,32,91,0.62) 45%, rgba(19,19,62,0.88) 100%);
}

.hero-star {
  position: absolute;
  z-index: -1;
  opacity: 0.10;
  pointer-events: none;
}

.hero .container { position: relative; padding-top: var(--header-h); }

.hero-content { max-width: 760px; }

.hero-content .eyebrow { color: var(--fo-gold); }

.hero h1 {
  font-size: clamp(36px, 5.4vw, 60px);
  color: var(--fo-white);
  line-height: 1.14;
  margin-bottom: 24px;
}

.hero p.lead {
  font-size: clamp(17px, 1.6vw, 20px);
  color: rgba(255,255,255,0.86);
  max-width: 620px;
  margin: 0 0 34px 0;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 44px;
  margin-top: 64px;
  flex-wrap: wrap;
}

.hero-stats div { border-left: 2px solid var(--fo-gold); padding-left: 16px; }

.hero-stats .num {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--fo-white);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}

.hero-stats .label {
  font-size: 12.5px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}

.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.55);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.scroll-cue .line {
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, rgba(255,255,255,0.7), transparent);
  animation: scrollcue 1.8s ease-in-out infinite;
}

@keyframes scrollcue {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  60% { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ---------------------------------------------------------------- sections */

section { padding: 110px 0; position: relative; }

.section-alt { background: var(--fo-off-white); }

.section-navy {
  background: var(--fo-midnight);
  color: rgba(255,255,255,0.85);
}

.section-navy h2, .section-navy h3 { color: var(--fo-white); }
.section-navy .section-head p { color: rgba(255,255,255,0.62); }

/* about / mission-vision */

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 70px;
  align-items: start;
}

.about-copy p { font-size: 16.5px; color: #3A4152; }

.mv-cards { display: grid; gap: 20px; }

.mv-card {
  background: var(--fo-white);
  border: 1px solid var(--fo-light-gray);
  border-left: 3px solid var(--fo-gold);
  border-radius: 10px;
  padding: 30px 32px;
}

.mv-card h3 { font-size: 18px; margin-bottom: 10px; }
.mv-card p { margin: 0; color: var(--fo-gray); font-size: 15.5px; }

.credential-strip {
  margin-top: 60px;
  padding: 34px 38px;
  background: var(--fo-navy);
  border-radius: 14px;
  color: rgba(255,255,255,0.88);
  display: flex;
  gap: 28px;
  align-items: center;
}

.credential-strip .icon-mark {
  flex-shrink: 0;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
}

.credential-strip p { margin: 0; font-size: 15.5px; line-height: 1.65; color: rgba(255,255,255,0.92); }
.credential-strip strong { color: var(--fo-gold); font-weight: 600; }

/* ---------------------------------------------------------------- cards / grid */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.card {
  background: var(--fo-white);
  border: 1px solid var(--fo-light-gray);
  border-radius: 12px;
  padding: 34px 30px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 40px -24px rgba(0,32,91,0.28);
  border-color: transparent;
}

.card .num {
  font-family: var(--font-display);
  color: var(--fo-gold);
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 14px;
  display: block;
}

.card h3 { font-size: 19px; margin-bottom: 10px; }

.card p { margin: 0; color: var(--fo-gray); font-size: 15px; }

.card ul {
  margin: 14px 0 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--fo-gray);
}

.card ul li {
  padding: 6px 0 6px 18px;
  position: relative;
  border-top: 1px solid var(--fo-light-gray);
}

.card ul li:first-child { border-top: none; }

.card ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 15px;
  width: 6px; height: 6px;
  background: var(--fo-gold);
  transform: rotate(45deg);
}

/* industries — compact tiles */

.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.industry-tile {
  padding: 28px 26px;
  border-radius: 12px;
  background: var(--fo-white);
  border: 1px solid var(--fo-light-gray);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.industry-tile:hover { transform: translateY(-4px); border-color: var(--fo-light-blue-gray); }

.industry-tile h3 { font-size: 17px; margin-bottom: 8px; }
.industry-tile p { margin: 0; color: var(--fo-gray); font-size: 14.5px; }

/* ---------------------------------------------------------------- team */

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.team-card {
  text-align: left;
  background: var(--fo-white);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--fo-light-gray);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.team-card:hover { transform: translateY(-6px); box-shadow: 0 26px 44px -26px rgba(0,32,91,0.3); }

.team-photo { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--fo-light-gray); }

.team-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }

.team-card:hover .team-photo img { transform: scale(1.06); }

.team-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,32,91,0.55) 100%);
}

.team-body { padding: 24px 26px 28px; }

.team-body h3 { font-size: 18px; margin-bottom: 4px; }

.team-body .tagline {
  font-weight: 600;
  color: var(--fo-rich-blue);
  font-size: 13.5px;
  letter-spacing: 0.3px;
  margin-bottom: 14px;
  display: block;
}

.team-body p.bio {
  font-size: 14.5px;
  color: var(--fo-gray);
  margin: 0;
  line-height: 1.6;
}

/* ---------------------------------------------------------------- contact */

.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 { color: var(--fo-white); }

.contact-info p { color: rgba(255,255,255,0.68); font-size: 16px; }

.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  font-size: 15.5px;
}

.contact-detail a { text-decoration: none; color: var(--fo-white); }
.contact-detail a:hover { color: var(--fo-gold); }

.contact-detail .icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.contact-form {
  background: var(--fo-white);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.5);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--fo-navy);
  margin-bottom: 7px;
  letter-spacing: 0.2px;
}

.field-optional {
  font-weight: 400;
  color: var(--fo-gray);
  text-transform: none;
  letter-spacing: 0;
}

.field input, .field textarea, .field select {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--fo-light-gray);
  border-radius: 7px;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--fo-text);
  background: var(--fo-off-white);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--fo-rich-blue);
  box-shadow: 0 0 0 3px rgba(10,80,158,0.14);
  background: var(--fo-white);
}

.field input.is-invalid, .field textarea.is-invalid {
  border-color: #C0364A;
  background: #FDF4F5;
}

.field input.is-invalid:focus, .field textarea.is-invalid:focus {
  border-color: #C0364A;
  box-shadow: 0 0 0 3px rgba(192,54,74,0.14);
}

.field-error {
  display: none;
  margin-top: 7px;
  font-size: 12.5px;
  color: #C0364A;
  font-weight: 500;
}

.field-error.show { display: block; }

.field textarea { resize: vertical; min-height: 120px; }

.hp-field { position: absolute; left: -9999px; top: -9999px; }

.form-status {
  margin-top: 16px;
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  display: none;
}

.form-status.show { display: block; }
.form-status.success { background: #E7F5EC; color: #1D6B3E; }
.form-status.error { background: #FBEAEA; color: #A6303B; }

.submit-btn { width: 100%; justify-content: center; }

/* ---------------------------------------------------------------- footer */

.site-footer {
  background: var(--fo-midnight);
  color: rgba(255,255,255,0.55);
  padding: 60px 0 30px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { height: 40px; width: auto; }
.footer-brand span { font-family: var(--font-display); color: var(--fo-white); font-size: 17px; }

.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-nav a { text-decoration: none; color: rgba(255,255,255,0.65); font-size: 14px; }
.footer-nav a:hover { color: var(--fo-gold); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 24px;
  font-size: 13px;
}

.footer-bottom a { text-decoration: none; color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: var(--fo-white); }

/* ---------------------------------------------------------------- reveal animation */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }

.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-stagger > *:nth-child(1) { transition-delay: 0.03s; }
.reveal-stagger > *:nth-child(2) { transition-delay: 0.11s; }
.reveal-stagger > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger > *:nth-child(4) { transition-delay: 0.27s; }
.reveal-stagger > *:nth-child(5) { transition-delay: 0.35s; }
.reveal-stagger > *:nth-child(6) { transition-delay: 0.43s; }

/* ---------------------------------------------------------------- responsive
   Breakpoint tiers, desktop-first (max-width cascades downward):
     1600px  large / ultrawide desktop     — roomier container
     1439px  standard laptop (1280–1439)   — 4-across team holds
     1279px  small laptop / iPad Pro 12.9" landscape (1194–1279)
     1023px  tablet landscape / iPad Pro 12.9" portrait (900–1023)
      899px  tablet portrait — iPad, iPad Air, iPad Pro 11" (768–899)
      767px  large phones landscape / small tablets (600–767)
      599px  phablets (480–599)
      430px  large phones — iPhone Pro Max, Galaxy S/Note (415–430)
      390px  standard phones — iPhone 12–15, Pixel (375–412)
      359px  small/older phones — iPhone SE, compact Android
   ---------------------------------------------------------------------- */

/* Large / ultrawide desktop: give the layout a bit more breathing room */
@media (min-width: 1600px) {
  :root { --max-width: 1320px; }
  .hero h1 { font-size: clamp(52px, 4.4vw, 68px); }
}

/* Small laptop / iPad Pro 12.9" landscape */
@media (max-width: 1279px) {
  :root { --max-width: 1080px; }
  .card { padding: 28px 22px; }
}

/* Tablet landscape / iPad Pro 12.9" portrait — team stays 4-across but tightens */
@media (max-width: 1023px) {
  .about-grid, .contact-wrap { grid-template-columns: 1fr; }
  .contact-form { order: -1; }

  .grid { grid-template-columns: repeat(2, 1fr); }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { gap: 20px; }
  .team-body { padding: 20px 20px 22px; }
  .team-body p.bio { font-size: 14px; }

  .hero h1 { font-size: clamp(34px, 5vw, 48px); }
}

/* Tablet portrait — iPad, iPad Air, iPad Pro 11", Android tablets */
@media (max-width: 899px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(320px, 82vw);
    background: var(--fo-navy);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 26px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    box-shadow: -20px 0 60px rgba(0,0,0,0.3);
  }

  .main-nav.is-open { transform: translateX(0); }
  .main-nav a { color: var(--fo-white) !important; font-size: 17px; }

  section { padding: 72px 0; }
  .credential-strip { flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }

  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Large phones landscape / small tablets portrait */
@media (max-width: 767px) {
  .container { padding: 0 5.5%; }
  section { padding: 60px 0; }

  .hero { min-height: 92vh; }
  .hero h1 { font-size: clamp(30px, 6.4vw, 40px); line-height: 1.18; }
  .hero p.lead { font-size: 16.5px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .button { justify-content: center; }
  .hero-stats { gap: 22px 30px; margin-top: 44px; }

  .grid { grid-template-columns: 1fr; }
  .industry-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }

  .section-head h2 { font-size: 26px; }
  h2 { font-size: 27px; }
}

/* Phablets */
@media (max-width: 599px) {
  .brand-word { font-size: 16px; }
  .brand img, .footer-brand img { height: 36px; }

  .hero-stats { flex-direction: column; gap: 16px; }
  .hero-stats div { border-left: 2px solid var(--fo-gold); padding-left: 14px; }

  .contact-form { padding: 30px 24px; }
  .credential-strip { padding: 26px 22px; }

  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Standard phones — iPhone 12–15, Pixel, most Android */
@media (max-width: 430px) {
  .container { padding: 0 5%; }
  section { padding: 52px 0; }

  :root { --header-h: 68px; }
  .brand-word { font-size: 14.5px; }

  .eyebrow { font-size: 11px; letter-spacing: 2px; }
  .hero h1 { font-size: clamp(27px, 7.6vw, 34px); }
  .hero p.lead { font-size: 15.5px; }
  .hero-content .eyebrow { margin-bottom: 10px; }

  .card, .industry-tile { padding: 24px 20px; }
  .team-body { padding: 18px 18px 20px; }

  .mv-card { padding: 24px 22px; }
  .contact-form { padding: 24px 18px; border-radius: 12px; }
  .field input, .field textarea, .field select { padding: 12px 13px; }
}

/* Small / older phones — iPhone SE, compact Android (~360px and below) */
@media (max-width: 359px) {
  .hero h1 { font-size: 25px; }
  .hero p.lead { font-size: 14.5px; }
  .button { padding: 12px 18px; font-size: 13.5px; }
  .hero-stats .num { font-size: 24px; }
}
