/* Out West AI - Public Website Styles */
/* Design: Navy/Orange/Cream palette, DM Sans typography */

/* ========== LOCAL FONTS ========== */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/dm-sans-normal-400.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/dm-sans-italic-400.woff2') format('woff2');
}

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

:root {
  --navy: #1b2a3d;
  --navy-deep: #152233;
  --navy-light: #243447;
  --orange: #e8872e;
  --orange-hover: #d47722;
  --cream: #f5f0e8;
  --cream-dark: #ebe5da;
  --white: #ffffff;
  --text-light: #c8cdd4;
  --text-muted: #8a919a;
  --text-dark: #1b2a3d;
  --card-border: rgba(200, 205, 212, 0.2);
  --card-border-light: rgba(27, 42, 61, 0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: 96px;
}

h1, h2, h3, h4 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  line-height: 1.15;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== NAV ========== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0 40px;
  height: 96px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  transition: background 0.3s;
}
.site-nav .nav-logo { grid-column: 2; justify-self: center; }
.site-nav .nav-links { grid-column: 3; justify-self: end; }
.site-nav .mobile-toggle { grid-column: 3; justify-self: end; }

.site-nav.scrolled {
  background: rgba(21, 34, 51, 0.98);
  backdrop-filter: blur(8px);
}

.nav-logo {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  text-decoration: none;
  color: var(--white);
  overflow: hidden;
  height: 86px;
  align-self: center;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
}

.nav-logo-img {
  height: 110px;
  width: auto;
  border-radius: 6px;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-light);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--white); }

.nav-cta {
  background: transparent;
  color: var(--orange) !important;
  border: 1.5px solid var(--orange);
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
}

.nav-cta:hover {
  background: var(--orange);
  color: var(--white) !important;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
}

/* ========== HERO ========== */
.hero {
  background: linear-gradient(180deg, var(--navy-deep) 0%, #2a3d52 40%, #4a5a6a 70%, #7a6a55 90%, #a07040 100%);
  padding: 160px 0 100px;
  margin-top: -68px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 80%, rgba(232, 135, 46, 0.08) 0%, transparent 60%);
}

.hero .container { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  padding: 8px 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 40px;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
}

.hero h1 {
  font-size: clamp(48px, 6vw, 76px);
  color: var(--white);
  margin-bottom: 28px;
  max-width: 700px;
}

.hero h1 .accent { color: var(--orange); }

.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.btn-primary-ow {
  background: var(--orange);
  color: var(--white);
  border: none;
  padding: 16px 32px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn-primary-ow:hover { background: var(--orange-hover); transform: translateY(-1px); color: var(--white); }

.btn-secondary-ow {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.25);
  padding: 16px 32px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn-secondary-ow:hover { border-color: rgba(255,255,255,0.5); color: var(--white); }

.hero-checks {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-checks span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
}

.hero-checks span::before {
  content: '\2713';
  color: var(--orange);
  font-weight: 700;
}

/* ========== SECTION LABELS ========== */
.section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}

/* ========== SOLUTIONS ========== */
.solutions {
  background: var(--navy);
  padding: 100px 0 120px;
}

.solutions h2 {
  font-size: clamp(32px, 4vw, 48px);
  color: var(--white);
  margin-bottom: 16px;
}

.solutions .section-desc {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 56px;
}

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

.solution-card {
  background: transparent;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 36px 32px;
  transition: border-color 0.3s, transform 0.3s;
}

.solution-card:hover {
  border-color: rgba(200, 205, 212, 0.35);
  transform: translateY(-2px);
}

.solution-icon {
  width: 48px;
  height: 48px;
  background: var(--navy-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 24px;
}

.solution-card h3 {
  font-size: 22px;
  color: var(--white);
  margin-bottom: 12px;
}

.solution-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}

/* ========== HOW IT WORKS ========== */
.how-it-works {
  background: var(--cream);
  padding: 100px 0 120px;
}

.how-it-works .section-label,
.how-it-works h2 {
  text-align: center;
}

.how-it-works h2 {
  font-size: clamp(32px, 4vw, 48px);
  color: var(--text-dark);
  margin-bottom: 16px;
}

.how-it-works .section-desc {
  text-align: center;
  color: var(--text-muted);
  font-size: 17px;
  max-width: 550px;
  margin: 0 auto 64px;
}

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

.step-number {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 48px;
  color: var(--orange);
  margin-bottom: 8px;
  padding-bottom: 16px;
  border-top: 3px solid var(--orange);
  padding-top: 16px;
}

.step h3 {
  font-size: 22px;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.step p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}

/* ========== WHY SECTION ========== */
.why-section {
  background: var(--cream);
  padding: 80px 0 120px;
}

.why-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.why-section h2 {
  font-size: clamp(32px, 4vw, 46px);
  color: var(--text-dark);
  margin-bottom: 28px;
  line-height: 1.2;
}

.why-text p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-card-ow {
  background: var(--navy);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 32px 28px;
}

.stat-number {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 42px;
  color: var(--orange);
  margin-bottom: 8px;
}

.stat-card-ow h4 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--white);
  margin-bottom: 8px;
}

.stat-card-ow p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

/* ========== EXAMPLES ========== */
.examples {
  background: var(--cream);
  padding: 80px 0 120px;
  border-top: 1px solid var(--cream-dark);
}

.examples h2 {
  font-size: clamp(32px, 4vw, 48px);
  color: var(--text-dark);
  margin-bottom: 12px;
}

.examples > .container > .section-desc {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 48px;
}

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

.example-card {
  background: var(--white);
  border: 1px solid var(--card-border-light);
  border-radius: 16px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
}

.example-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}

.example-card h3 {
  font-size: 22px;
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.3;
}

.example-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
  flex: 1;
}

.example-result {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--card-border-light);
  font-size: 15px;
  font-weight: 600;
  color: var(--orange);
}

/* ========== ABOUT ========== */
.about-section {
  background: var(--navy);
  padding: 120px 0;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

.about-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-circle {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.about-circle-img {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #e8872e, #d47722, #b55e1a);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(232, 135, 46, 0.3);
  font-size: 40px;
}

.about-circle-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 28px;
  color: var(--text-light);
  text-align: center;
  line-height: 1.3;
  opacity: 0.7;
}

.about-section h2 {
  font-size: clamp(32px, 4vw, 46px);
  color: var(--white);
  margin-bottom: 28px;
}

.about-content p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.about-tag {
  border: 1.5px solid var(--orange);
  color: var(--orange);
  border-radius: 100px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
}

/* ========== TESTIMONIALS ========== */
.testimonials {
  background: var(--navy-deep);
  padding: 100px 0 120px;
}

.testimonials .section-label,
.testimonials h2 {
  text-align: center;
}

.testimonials h2 {
  font-size: clamp(32px, 4vw, 48px);
  color: var(--white);
  margin-bottom: 56px;
}

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

.testimonial-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
}

.testimonial-quote-icon {
  font-family: 'DM Sans', sans-serif;
  font-size: 48px;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 20px;
  opacity: 0.6;
}

.testimonial-card blockquote {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.7;
  flex: 1;
  font-style: normal;
  margin: 0;
  padding: 0;
  border: 0;
}

.testimonial-author {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--card-border);
}

.testimonial-author strong {
  display: block;
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
}

.testimonial-author span {
  color: var(--text-muted);
  font-size: 13px;
}

/* ========== FAQ ========== */
.faq {
  background: var(--cream);
  padding: 100px 0 120px;
}

.faq .section-label,
.faq h2 {
  text-align: center;
}

.faq h2 {
  font-size: clamp(32px, 4vw, 48px);
  color: var(--text-dark);
  margin-bottom: 48px;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.04);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
}

.faq-question:hover { background: rgba(0,0,0,0.02); }

.faq-icon {
  font-size: 20px;
  color: var(--orange);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer-inner {
  padding: 0 28px 22px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}

/* ========== CONTACT ========== */
.contact-section {
  background: var(--navy);
  padding: 100px 0 120px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}

.contact-section h2 {
  font-size: clamp(32px, 4vw, 46px);
  color: var(--white);
  margin-bottom: 20px;
}

.contact-desc {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 36px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-light);
  font-size: 15px;
}

.contact-info-icon {
  font-size: 18px;
}

.contact-form-ow {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group label {
  display: block;
  color: var(--text-light);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.form-group label .req { color: var(--orange); }

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--navy-deep);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 14px 18px;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  transition: border-color 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange);
}

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

.form-submit {
  width: 100%;
  padding: 18px;
  font-size: 16px;
}

.form-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 4px;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--navy-deep);
  padding: 72px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 60px;
  padding-bottom: 48px;
}

.footer-logo {
  height: 56px;
  width: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 340px;
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-nav-col h4,
.footer-contact-col h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 6px;
}

.footer-nav-col a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s;
}

.footer-nav-col a:hover { color: var(--white); }

.footer-contact-col p {
  color: var(--text-light);
  font-size: 15px;
  margin-bottom: 24px;
  line-height: 1.5;
}

.footer-cta {
  display: inline-block;
  padding: 14px 28px;
  font-size: 15px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-left {
  color: var(--text-muted);
  font-size: 14px;
}

/* Footer links — prevent default browser blue against the dark navy bg */
.footer-left a,
.footer-contact-col p a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-left a:hover,
.footer-contact-col p a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-right-text {
  color: var(--text-muted);
  font-size: 14px;
  font-style: italic;
}

/* ========== PAGE HEADER (sub-pages) ========== */
.page-header {
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--white);
  padding: 140px 0 60px;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 12px;
}

.page-header p {
  color: var(--text-muted);
  font-size: 17px;
}

/* Portfolio cards (sub-pages) */
.portfolio-card {
  background: var(--white);
  border: 1px solid var(--card-border-light);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
}

.portfolio-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.portfolio-card .card-img-top {
  height: 200px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.2);
  font-size: 3rem;
}

.portfolio-card .card-body { padding: 1.5rem; }
.portfolio-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.portfolio-card .tech-stack { font-size: 0.8rem; color: var(--orange); font-weight: 500; }

/* Service cards (sub-pages) */
.service-card {
  background: var(--white);
  border: 1px solid var(--card-border-light);
  border-radius: 16px;
  padding: 36px 32px;
  height: 100%;
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--orange);
}

.service-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--orange), var(--orange-hover));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--white);
  font-size: 1.5rem;
}

.service-card h3 { font-size: 22px; margin-bottom: 12px; }
.service-card p { color: var(--text-muted); font-size: 15px; line-height: 1.65; margin-bottom: 0; }

/* CTA section (sub-pages) */
.cta-section {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}

.cta-section h2 { font-size: clamp(32px, 4vw, 46px); margin-bottom: 16px; }
.cta-section p { color: var(--text-muted); font-size: 17px; margin-bottom: 32px; }

/* Contact form on sub-pages */
.contact-form .form-control {
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid var(--card-border-light);
  font-family: 'DM Sans', sans-serif;
}

.contact-form .form-control:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 0.2rem rgba(232, 135, 46, 0.2);
}

/* ========== ANIMATIONS ========== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .solutions-grid,
  .examples-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  .why-layout,
  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .site-nav { padding: 0 20px; }
  .nav-links { display: none; }
  .mobile-toggle { display: block; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--navy-deep);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .hero { padding: 130px 0 80px; }

  .solutions-grid,
  .examples-grid,
  .testimonials-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid { grid-template-columns: 1fr 1fr; }

  .about-circle { width: 280px; height: 280px; }
  .about-circle-text { font-size: 22px; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; }
}

/* Flash messages on public pages */
.flash-container {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  max-width: 600px;
  width: 90%;
}

.flash-container .alert {
  border-radius: 10px;
  padding: 16px 24px;
  font-size: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* ========== 2026 REBRAND: Products & Video Hero ========== */

:root {
  --color-primary: #34455C;      /* Midnight Plains */
  --color-agdiary: #0C7366;      /* AgDiary teal-green */
  --color-agdiary-dark: #095A50; /* deeper variant for buttons/hover */
  --color-committeehq: #2A6B9E;  /* Artesian Blue */
  --color-papersafe: #3D7857;    /* Mulga Green */
  --color-councilsafe: #4E7A8C;  /* Floodplain Grey-Blue */
  --color-bushtelegraph: #C4892A;/* Spinifex Gold */
  --color-skyg: #7B5C8E;         /* Dusk Plains */
  --color-yardtally: #CC5533;    /* placeholder = Station Rust */
}

/* Hero with background video — video block at top with the badge + headline
   overlaid at its top edge; subhead + buttons stack below the video on the
   dark navy background. Consistent across all viewport sizes. */
.hero.hero-video {
  background: var(--navy-deep);
  min-height: 0;
  padding: 0;
  display: block;
}
.hero.hero-video::before { display: none; }

.hero-media {
  position: relative;
  width: 100%;
  padding-top: 96px; /* reserve space under the fixed nav */
  overflow: hidden;
  margin-bottom: 0;
}
.hero-bg-video,
.hero-bg-image {
  display: block;
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
}
.hero-bg-image {
  background-size: cover;
  background-position: center;
}
.hero-overlay { display: none; }

.hero-headline {
  position: absolute;
  top: 68px;
  left: 0;
  right: 0;
  padding: 36px 0 0;
  z-index: 2;
  pointer-events: none;
  /* Subtle gradient so the headline reads over bright golden-hour footage */
  background: linear-gradient(180deg, rgba(10, 15, 20, 0.55) 0%, rgba(10, 15, 20, 0.25) 60%, rgba(10, 15, 20, 0) 100%);
  padding-bottom: 60px;
}
.hero-headline > .container { pointer-events: auto; text-align: center; }
.hero-headline .hero-badge {
  margin-bottom: 20px;
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.15);
}
.hero-headline h1 {
  color: var(--white);
  font-size: clamp(28px, 4.2vw, 54px);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
  white-space: nowrap;
  margin: 0 0 18px;
}
.hero-headline h1 .accent { color: var(--orange); }

.hero-headline .hero-sub {
  color: rgba(245, 240, 232, 0.95);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
  max-width: 720px;
  margin: 0 auto 24px;
  font-size: 17px;
}
.hero-headline .hero-buttons {
  justify-content: center;
  margin-bottom: 0;
}

.hero h1 { max-width: none; }

/* ========== PRODUCTS SECTION ========== */
.products {
  background: var(--cream);
  padding: 100px 0;
}
.products h2 { color: var(--color-primary); font-size: clamp(32px, 4vw, 44px); margin-bottom: 12px; }
.products .section-label { color: var(--color-primary); }
.products .section-desc { color: var(--text-muted); max-width: 620px; margin-bottom: 56px; font-size: 17px; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
  margin-bottom: 64px;
}

.product-card {
  background: var(--white);
  border-radius: 14px;
  padding: 36px 32px;
  border-top: 6px solid var(--color-primary);
  box-shadow: 0 8px 30px rgba(27, 42, 61, 0.08);
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.product-card.visible { opacity: 1; transform: translateY(0); }

.product-agdiary {
  background: var(--color-agdiary);
  border-top: none;
  color: #ffffff;
}
.product-agdiary .product-mark { color: #ffffff; }
.product-agdiary h3 { color: #ffffff; }
.product-agdiary .product-tag { color: rgba(255,255,255,0.8); }
.product-agdiary .product-body { color: rgba(255,255,255,0.9); }
.product-agdiary .product-status {
  background: #ffffff;
  color: var(--color-agdiary);
}
.product-agdiary .product-external-link a {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.product-agdiary .product-external-link a:hover { opacity: 0.85; }
.product-agdiary .notify-form input[type="email"] {
  background: rgba(255,255,255,0.95);
  border-color: rgba(255,255,255,0.25);
}
.product-agdiary .notify-form input[type="email"]:focus {
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.22);
}
.product-agdiary .notify-form button {
  background: #CC5533; /* Station Rust, matches YardTally button */
  color: #ffffff;
  border: none;
}
.product-agdiary .notify-form button:hover {
  background: #B74A2C;
}
.product-agdiary .notify-result.success { color: #c8f4e7; }
.product-agdiary .notify-result.error { color: #ffd2c5; }
.product-agdiary .product-logo-img {
  height: 96px;
  max-width: 100%;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}
.product-yardtally { border-top-color: var(--color-yardtally); }

.product-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.product-mark {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--color-primary);
  text-decoration: none;
  transition: opacity 0.15s;
}
a.product-mark:hover { opacity: 0.75; }
.product-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  transition: opacity 0.15s;
}
.product-logo-link:hover { opacity: 0.8; }
.product-logo-img {
  height: 56px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}
/* YardTally ships an app icon rather than a logo — render as an iOS-style
   squircle so it reads correctly against the card's white background. */
.product-yardtally .product-logo-img {
  height: 96px;
  width: 96px;
  max-width: 96px;
  border-radius: 22px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.product-external-link {
  margin-top: -4px;
}
.product-external-link a {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-agdiary);
  text-decoration: none;
  letter-spacing: 0.2px;
  transition: opacity 0.15s;
}
.product-agdiary .product-external-link a { color: var(--color-agdiary); }
.product-yardtally .product-external-link a { color: var(--color-yardtally); }
.product-external-link a:hover { opacity: 0.75; text-decoration: underline; }
.product-agdiary .product-mark { color: var(--color-agdiary); }
.product-yardtally .product-mark { color: var(--color-yardtally); }

.product-status {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(52, 69, 92, 0.08);
  padding: 6px 12px;
  border-radius: 100px;
}

.product-card h3 {
  font-size: 26px;
  color: var(--color-primary);
  line-height: 1.2;
  margin-top: 6px;
}
.product-yardtally h3 { color: var(--color-yardtally); }
.product-yardtally .product-status { background: rgba(204, 85, 51, 0.12); color: var(--color-yardtally); }
.product-tag {
  font-size: 15px;
  color: var(--text-muted);
  font-style: italic;
  margin: -4px 0 8px;
}
.product-body { font-size: 15px; color: #4a5668; line-height: 1.65; }

/* Notify form */
.notify-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto; /* push form to card bottom so the two cards align */
  padding-top: 14px;
}
.notify-form input[type="email"] {
  flex: 1 1 200px;
  padding: 12px 14px;
  border: 1px solid var(--card-border-light);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: var(--white);
  color: var(--text-dark);
}
.notify-form input[type="email"]:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(52, 69, 92, 0.12);
}
.notify-form button {
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  background: var(--color-primary);
  color: var(--white);
  transition: background 0.2s, transform 0.1s;
}
.product-yardtally .notify-form button { background: var(--color-yardtally); }
.notify-form button:hover { filter: brightness(1.08); }
.notify-form button:disabled { opacity: 0.6; cursor: wait; }

.notify-result {
  flex-basis: 100%;
  font-size: 14px;
  min-height: 18px;
  color: var(--text-muted);
}
.notify-result.success { color: #2f7a4c; font-weight: 600; }
.notify-result.error { color: #b23a2e; font-weight: 600; }

/* Products - "In the works" list */
.products-more {
  background: var(--white);
  border-radius: 12px;
  padding: 28px 32px;
  border: 1px solid var(--card-border-light);
}
.products-more-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--color-primary);
  margin-bottom: 14px;
}
.products-more-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px 28px;
}
.products-more-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--color-primary);
}
.products-more-list .pm-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.products-more-list .pm-info strong {
  font-weight: 700;
  font-size: 16px;
  color: var(--color-primary);
  line-height: 1.25;
}
.products-more-list .muted {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.4;
}
.products-more-list .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 7px;
}
.dot-papersafe { background: var(--color-papersafe); }
.dot-committeehq { background: var(--color-committeehq); }
.dot-councilsafe { background: var(--color-councilsafe); }
.dot-bushtelegraph { background: var(--color-bushtelegraph); }
.dot-sparkly { background: #D94A8F; /* Sparkle Magenta */ }
.dot-skyg { background: var(--color-skyg); }

/* Visually hidden (accessibility) */
.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;
}

/* Reduced motion — pause instead of hiding, so the still frame still fills the hero */
@media (prefers-reduced-motion: reduce) {
  .hero-bg-video { animation-play-state: paused; }
}

/* Narrow mobile typography tweaks */
@media (max-width: 640px) {
  .products { padding: 64px 0; }
  .product-card { padding: 28px 24px; }
  .products-more { padding: 20px 22px; }

  /* Mobile: lift the text block off the video so nothing overlaps the
     end-frame logo. Video sits on its own, text stacks below. */
  .hero.hero-video { padding: 0 0 48px; }
  .hero-media { padding-top: 68px; overflow: visible; margin-bottom: 0; }
  .hero-headline {
    position: static;
    background: none;
    padding: 28px 0 0;
    text-align: center;
  }
  .hero-headline h1 {
    font-size: clamp(30px, 8vw, 44px);
    white-space: normal;
    margin-bottom: 20px;
    text-shadow: none;
  }
  .hero-headline .hero-sub {
    font-size: 17px;
    line-height: 1.55;
    margin-bottom: 28px;
    max-width: 92%;
    text-shadow: none;
  }
  .hero-headline .hero-buttons { gap: 12px; }
  .hero-headline .btn-primary-ow,
  .hero-headline .btn-secondary-ow { padding: 15px 22px; font-size: 16px; }
}

/* ========== LEGAL / STATIC CONTENT PAGES ========== */
.legal-page { padding: 80px 0 100px; background: var(--cream); color: var(--text-dark); }
.legal-header { margin-bottom: 40px; }
.legal-header .section-label { color: var(--color-primary); margin-bottom: 12px; }
.legal-header h1 {
  color: var(--color-primary);
  font-size: clamp(32px, 4vw, 44px);
  margin-bottom: 12px;
}
.legal-updated { color: var(--text-muted); font-size: 14px; }
.legal-body { max-width: 780px; font-size: 16px; line-height: 1.75; }
.legal-body h2 {
  color: var(--color-primary);
  font-size: 22px;
  margin-top: 40px;
  margin-bottom: 12px;
}
.legal-body p { margin-bottom: 16px; }
.legal-body ul { margin: 0 0 16px 22px; padding: 0; }
.legal-body li { margin-bottom: 6px; }
.legal-body a { color: var(--color-agdiary); text-decoration: underline; }
.legal-body a:hover { color: var(--color-primary); }
.legal-body strong { color: var(--color-primary); }

/* ========== ABOUT PAGE ========== */
.page-header {
  background: var(--navy-deep);
  padding: 80px 0 60px;
  color: var(--white);
}
.page-header .section-label { color: var(--orange); }
.about-hero h1 {
  font-size: clamp(36px, 5.5vw, 64px);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 28px;
}
.about-hero h1 .accent { color: var(--orange); }
.page-header-sub {
  color: var(--text-light);
  font-size: 18px;
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto;
}

.about-story { background: var(--cream); padding: 80px 0; }
.about-story h2 { color: var(--color-primary); font-size: clamp(28px, 3.5vw, 40px); margin-bottom: 28px; }
.about-story-body { max-width: 780px; font-size: 17px; line-height: 1.8; color: #3f4a5c; }
.about-story-body p { margin-bottom: 18px; }

.about-team { background: var(--white); padding: 90px 0; }
.about-team h2 { color: var(--color-primary); font-size: clamp(28px, 3.5vw, 40px); margin-bottom: 12px; }
.about-team .section-desc { color: var(--text-muted); font-size: 17px; margin-bottom: 48px; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.team-member {
  background: var(--cream);
  padding: 36px 30px;
  border-radius: 14px;
  border-top: 5px solid var(--color-primary);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s, transform 0.6s;
}
.team-member.visible { opacity: 1; transform: translateY(0); }
.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--white);
  font-weight: 700;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  letter-spacing: 1px;
}
.team-member h3 {
  color: var(--color-primary);
  font-size: 22px;
  margin-bottom: 4px;
}
.team-role {
  color: var(--color-agdiary);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.team-bio { font-size: 15px; line-height: 1.7; color: #3f4a5c; }

.about-values { background: var(--cream); padding: 90px 0; }
.about-values h2 { color: var(--color-primary); font-size: clamp(28px, 3.5vw, 40px); margin-bottom: 40px; }
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 640px) {
  .values-grid { grid-template-columns: 1fr; }
}
.value-card {
  background: var(--white);
  padding: 30px 28px;
  border-radius: 12px;
  border-left: 4px solid var(--color-primary);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s, transform 0.6s;
}
.value-card.visible { opacity: 1; transform: translateY(0); }
.value-card h3 { color: var(--color-primary); font-size: 19px; margin-bottom: 10px; }
.value-card p { color: #4a5668; font-size: 15px; line-height: 1.65; }

.about-company { background: var(--white); padding: 80px 0; }
.about-company h2 { color: var(--color-primary); font-size: clamp(26px, 3vw, 36px); margin-bottom: 16px; }
.about-company p { color: var(--text-muted); font-size: 16px; line-height: 1.7; max-width: 420px; }
.about-company-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.company-facts dl {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 14px 20px;
  font-size: 15px;
}
.company-facts dt {
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
  padding-top: 2px;
}
.company-facts dd { color: var(--color-primary); font-weight: 600; }
.company-facts a { color: var(--color-agdiary); }

.about-cta { background: var(--navy-deep); padding: 80px 0; color: var(--white); }
.about-cta h2 { color: var(--white); font-size: clamp(28px, 3.5vw, 40px); margin-bottom: 16px; }
.about-cta .contact-desc { color: var(--text-light); }

@media (max-width: 720px) {
  .about-company-grid { grid-template-columns: 1fr; gap: 32px; }
  .company-facts dl { grid-template-columns: 140px 1fr; }
}

/* ========== CUSTOM BUILDS PAGE ========== */
.custom-hero { padding: 80px 0 60px; }
.custom-hero h1 { font-size: clamp(32px, 5vw, 56px); }
.custom-hero h1 .accent { color: var(--orange); }

.custom-what { background: var(--white); padding: 80px 0; }
.custom-what h2 { color: var(--color-primary); font-size: clamp(28px, 3.5vw, 40px); margin-bottom: 12px; }
.custom-what .section-desc { color: var(--text-muted); max-width: 620px; font-size: 17px; margin-bottom: 40px; }
.custom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.custom-card {
  background: var(--cream);
  padding: 28px 26px;
  border-radius: 12px;
  border-left: 4px solid var(--color-primary);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s, transform 0.6s;
}
.custom-card.visible { opacity: 1; transform: translateY(0); }
.custom-card h3 { color: var(--color-primary); font-size: 20px; margin-bottom: 10px; }
.custom-card p { color: #4a5668; font-size: 15px; line-height: 1.65; }

.custom-how { background: var(--cream); padding: 80px 0; }
.custom-how h2 { color: var(--color-primary); font-size: clamp(28px, 3.5vw, 40px); margin-bottom: 32px; }
.custom-process {
  list-style: none;
  padding: 0;
  counter-reset: custom-step;
  display: grid;
  gap: 18px;
  max-width: 820px;
}
.custom-process li {
  counter-increment: custom-step;
  position: relative;
  padding: 22px 24px 22px 74px;
  background: var(--white);
  border-radius: 10px;
  font-size: 16px;
  line-height: 1.65;
  color: #3f4a5c;
  border-left: 3px solid var(--color-primary);
}
.custom-process li::before {
  content: counter(custom-step);
  position: absolute;
  left: 22px;
  top: 22px;
  width: 36px;
  height: 36px;
  background: var(--color-primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
}
.custom-process li strong { color: var(--color-primary); display: block; margin-bottom: 4px; }

.custom-terms { background: var(--white); padding: 80px 0; }
.custom-terms h2 { color: var(--color-primary); font-size: clamp(28px, 3.5vw, 40px); margin-bottom: 16px; }
.custom-terms-intro {
  max-width: 780px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 32px;
}
.custom-terms .legal-body h3 {
  color: var(--color-primary);
  font-size: 19px;
  margin-top: 28px;
  margin-bottom: 8px;
}
.custom-terms-note {
  max-width: 780px;
  margin-top: 32px;
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

.custom-cta { background: var(--navy-deep); padding: 80px 0; color: var(--white); }
.custom-cta h2 { color: var(--white); font-size: clamp(28px, 3.5vw, 40px); margin-bottom: 16px; }
.custom-cta .contact-desc { color: var(--text-light); }
