/* ==========================================================================
   Redline Coaching and Consulting — Stylesheet
   --------------------------------------------------------------------------
   Edit colors/fonts in the :root variables below to re-skin the whole site.
   ========================================================================== */

:root {
  /* Brand colors */
  --red:        #e10600;          /* primary red — fire engine */
  --red-deep:   #b80500;          /* deeper red for hover/gradients */
  --red-glow:   rgba(225, 6, 0, 0.35);
  --black:      #0a0a0a;          /* near-black background */
  --black-2:    #111111;          /* slightly lighter for alt sections */
  --black-3:    #1a1a1a;          /* card backgrounds */
  --white:      #ffffff;
  --gray-1:     #e6e6e6;          /* primary body text */
  --gray-2:     #a0a0a0;          /* muted text */
  --gray-3:     #5a5a5a;          /* borders/dividers */
  --border:     rgba(255, 255, 255, 0.08);

  /* Typography */
  --font-head:  'Oswald', 'Impact', sans-serif;
  --font-body:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --container:  1200px;
  --container-narrow: 760px;
  --radius:     6px;
  --radius-lg:  12px;

  /* Motion */
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1rem; /* sections don't butt against the viewport top */
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--black);
  color: var(--gray-1);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { color: var(--white); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--red); }

/* Visible keyboard focus — accessibility */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.01em;
  line-height: 1.1;
  margin: 0 0 0.5em;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 1rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 0.95rem; letter-spacing: 0.12em; }

p  { margin: 0 0 1rem; }

.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--red);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.lede {
  font-size: 1.15rem;
  color: var(--gray-2);
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

.accent  { color: var(--red); }
.muted   { color: var(--gray-2); }
.small   { font-size: 0.875rem; }
.centered { text-align: center; }
.centered .lede { margin-bottom: 2rem; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container.narrow { max-width: var(--container-narrow); }

.section {
  padding: 6rem 0;
  position: relative;
}
.section-alt { background: var(--black-2); }

/* Thin red separator line at the top of each alt section */
.section-alt::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--red);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.95rem 2rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s var(--ease);
  text-align: center;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 6px 24px var(--red-glow);
}
.btn-primary:hover {
  background: var(--red-deep);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px var(--red-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-ghost:hover {
  background: var(--white);
  color: var(--black);
}

.btn-lg { padding: 1.1rem 2.5rem; font-size: 1.1rem; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--black);
}

/* Decorative background — pure CSS gradient + SVG-style glow.
   No image needed. */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(225, 6, 0, 0.25), transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(225, 6, 0, 0.15), transparent 50%),
    linear-gradient(180deg, #000 0%, #0a0a0a 100%);
  z-index: 0;
}
/* Subtle diagonal pattern overlay */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.015) 0px,
    rgba(255, 255, 255, 0.015) 1px,
    transparent 1px,
    transparent 12px
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 5rem 1.5rem;
}

/* Hero brand mark — wraps the responsive banner/logo image.
   Sized differently per breakpoint so each asset feels intentional. */
.hero-brand {
  margin: 0 auto 2rem;
  padding: 0;
  display: flex;
  justify-content: center;
  /* Remove the default <h1> typography since the image IS the heading */
  font-size: 0;
  line-height: 0;
}
.hero-brand picture,
.hero-brand img {
  display: block;
}

/* Mobile-first: show the square logo, cap at a comfortable size. */
.hero-brand img {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* Desktop: show the wide banner — bigger, no card treatment since the
   banner already has its own dark background that blends with the page. */
@media (min-width: 768px) {
  .hero-brand img {
    max-width: 760px;
    border-radius: var(--radius);
    box-shadow: 0 16px 60px rgba(0, 0, 0, 0.55);
  }
}

.hero-sub {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  color: var(--gray-1);
  max-width: 42ch;
  margin: 0 auto 2.5rem;
  font-family: var(--font-head);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Scroll cue — animated chevron at bottom of hero */
.scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 2px solid var(--gray-2);
  border-radius: 14px;
  opacity: 0.7;
}
.scroll-cue span {
  display: block;
  width: 3px;
  height: 8px;
  background: var(--gray-1);
  border-radius: 2px;
  margin: 6px auto;
  animation: scroll-bounce 1.6s infinite var(--ease);
}
@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%      { transform: translateY(10px); opacity: 0.3; }
}

/* ---------- Logo ---------- */
.logo-text {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-head);
  text-transform: uppercase;
  text-align: left;
  color: var(--white);
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--red);
  color: var(--white);
  font-size: 1.9rem;
  font-weight: 700;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px var(--red-glow);
}
.logo-name {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.05;
}
.logo-name small {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--gray-2);
}
.logo-text.small .logo-mark { width: 40px; height: 40px; font-size: 1.4rem; }
.logo-text.small .logo-name { font-size: 1rem; }

/* ==========================================================================
   TWO-COLUMN (About)
   ========================================================================== */
.two-col {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.media-placeholder {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(225, 6, 0, 0.2), rgba(0, 0, 0, 0.6)),
    repeating-linear-gradient(45deg, var(--black-3) 0 10px, var(--black-2) 10px 20px);
  border: 1px dashed var(--gray-3);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--gray-2);
  padding: 2rem;
  font-size: 0.9rem;
}
.media-placeholder small {
  display: block;
  margin-top: 0.5rem;
  color: var(--gray-3);
  font-family: monospace;
}

.headshot {
  border-radius: var(--radius-lg);
  border: 3px solid var(--red);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   GRIDS (Services, Why, Testimonials)
   ========================================================================== */
.grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Service cards ---------- */
.card {
  background: var(--black-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(225, 6, 0, 0.4);
}
.card:hover::before { transform: scaleX(1); }

.card-icon {
  width: 48px;
  height: 48px;
  color: var(--red);
  margin-bottom: 1.25rem;
}
.card-icon svg { width: 100%; height: 100%; }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--gray-2); margin: 0; }

.card-cta {
  background: linear-gradient(135deg, var(--red-deep), var(--red));
  border-color: var(--red);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.card-cta h3, .card-cta p { color: var(--white); }
.card-cta p { margin-bottom: 1.25rem; }

/* ---------- Steps (How It Works) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.step {
  text-align: center;
  padding: 2rem 1rem;
}
.step-num {
  font-family: var(--font-head);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  margin-bottom: 1rem;
  opacity: 0.85;
}
.step h3 { margin-bottom: 0.75rem; }
.step p  { color: var(--gray-2); }

/* ---------- Benefit blocks ---------- */
.benefit {
  padding: 2rem;
  border-left: 3px solid var(--red);
  background: var(--black-3);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.benefit h3 { margin-bottom: 0.5rem; }
.benefit p  { color: var(--gray-2); margin: 0; }

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--black-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 0;
  position: relative;
}
.testimonial::before {
  content: "“";
  position: absolute;
  top: -0.5rem;
  left: 1rem;
  font-family: var(--font-head);
  font-size: 5rem;
  color: var(--red);
  line-height: 1;
  opacity: 0.6;
}
.testimonial p {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--gray-1);
  margin-bottom: 1rem;
  position: relative;
}
.testimonial footer {
  font-size: 0.85rem;
  color: var(--gray-2);
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   IMAGE BREAK — full-width photo divider (Mountain View)
   ========================================================================== */
.image-break {
  width: 100%;
  overflow: hidden;
  position: relative;
  /* Subtle red top accent so it ties to the brand */
  border-top: 3px solid var(--red);
}
.image-break img {
  width: 100%;
  height: clamp(260px, 45vw, 520px);
  object-fit: cover;
  display: block;
  /* Slight darkening to keep the page mood dark */
  filter: brightness(0.85) saturate(1.05);
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}
.faq summary {
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--red);
  font-size: 1.75rem;
  font-weight: 400;
  transition: transform 0.2s var(--ease);
}
.faq[open] summary::after { content: "−"; }
.faq summary:hover { color: var(--red); }
.faq p {
  margin: 1rem 0 0;
  color: var(--gray-2);
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.section-cta {
  background:
    radial-gradient(circle at 50% 0%, rgba(225, 6, 0, 0.2), transparent 60%),
    var(--black-2);
}
.contact-meta {
  margin-top: 2.5rem;
  color: var(--gray-2);
}
.contact-meta a { color: var(--white); border-bottom: 1px solid var(--red); }
.contact-meta a:hover { color: var(--red); }
.contact-meta .dot { margin: 0 0.75rem; color: var(--red); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #050505;
  border-top: 1px solid var(--border);
  padding-top: 4rem;
  color: var(--gray-2);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer-brand .logo-text { margin-bottom: 1rem; }

/* Real-logo image used in the footer (replaces the old text logo block).
   The logo file has a light background — capping width keeps it tidy. */
.footer-logo {
  width: 100%;
  max-width: 170px;
  height: auto;
  margin-bottom: 1rem;
  border-radius: var(--radius);
}
.footer-nav h4,
.footer-contact h4 {
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-nav li { margin-bottom: 0.5rem; }
.footer-nav a {
  color: var(--gray-2);
  font-size: 0.95rem;
}
.footer-nav a:hover { color: var(--red); }

.footer-contact p { font-size: 0.95rem; }
.footer-contact a { color: var(--gray-2); }
.footer-contact a:hover { color: var(--red); }

/* "Social Media Links:" label above the icon row */
.social-label {
  font-family: var(--font-head);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gray-2);
  margin: 1.25rem 0 0.5rem;
}

/* Social icons */
.social {
  display: flex;
  gap: 0.75rem;
  margin-top: 0;
}
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--black-3);
  border: 1px solid var(--border);
  color: var(--gray-1);
  transition: all 0.2s var(--ease);
}
.social a svg { width: 18px; height: 18px; }
.social a:hover {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray-3);
}

/* ==========================================================================
   BACK-TO-TOP BUTTON
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px var(--red-glow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.25s var(--ease);
  z-index: 100;
}
.back-to-top svg { width: 22px; height: 22px; }
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--red-deep);
  color: var(--white);
  transform: translateY(-3px);
}

/* ==========================================================================
   LEGAL PAGES (terms.html / privacy.html)
   ========================================================================== */
.legal-page {
  padding: 4rem 0 6rem;
  max-width: 760px;
  margin: 0 auto;
}
.legal-page h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}
.legal-page h2 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
  color: var(--white);
}
.legal-page p,
.legal-page li {
  color: var(--gray-1);
  font-size: 0.97rem;
}
.legal-page ul { padding-left: 1.25rem; }
.legal-page .updated {
  color: var(--gray-2);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}
.legal-page a { color: var(--red); border-bottom: 1px solid var(--red); }
.legal-disclaimer {
  background: rgba(225, 6, 0, 0.1);
  border-left: 3px solid var(--red);
  padding: 1rem 1.25rem;
  margin: 2rem 0;
  font-size: 0.9rem;
  color: var(--gray-1);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.legal-back {
  display: inline-block;
  margin: 1.5rem 0;
  color: var(--gray-2);
  font-size: 0.9rem;
}
.legal-back:hover { color: var(--red); }

/* ==========================================================================
   RESPONSIVE — mobile first means we keep desktop minor tweaks below
   ========================================================================== */
@media (max-width: 900px) {
  .section { padding: 4rem 0; }
  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps  { grid-template-columns: 1fr; gap: 1rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .container { padding: 0 1.25rem; }
  .section   { padding: 3.5rem 0; }
  .grid-3, .footer-inner { grid-template-columns: 1fr; }
  .hero-inner { padding: 4rem 1.25rem; }
  .logo-mark { width: 44px; height: 44px; font-size: 1.6rem; }
  .logo-name { font-size: 1.1rem; }
  .back-to-top { bottom: 1rem; right: 1rem; width: 44px; height: 44px; }
  .contact-meta .dot { display: block; margin: 0.5rem 0; }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
