/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}



/* === DARE custom styles === */
:root {
  --bg: #ffffff;
  --text: #2b1a0f;
  --muted: #7a5a4d;
  --accent: #c74a1e;
  --primary: #e65c24;
  --alt: #fff5ef;
}

html, body { height: 100%; }
body { font-family: system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji"; color: var(--text); background: var(--bg); margin: 0; }

.container { width: min(1100px, 92%); margin: 0 auto; }

/* Reserve space for the fixed header */
main { padding-top: 1rem; }

.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255,255,255,0.9); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid #e6e8eb; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 0; flex-wrap: wrap; gap: 0.5rem 1rem; }
.brand { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; letter-spacing: 0.5px; }
.brand-mark { display: block; }
.brand-name { font-size: 1.05rem; }
.site-nav a { margin-left: 1rem; color: var(--text); text-decoration: none; font-weight: 600; }
.site-nav a:not(.btn):hover { color: var(--primary); }

.hero { padding: 4rem 0 3rem; background: linear-gradient(180deg, #fff4eb 0%, #ffffff 100%); }
.hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; }
.hero h1 { font-size: clamp(1.8rem, 2.8vw + 1rem, 3rem); line-height: 1.1; margin: 0 0 1rem; }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 48ch; }
.hero-art img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 10px 30px rgba(13,27,42,0.12); }
.hero-cta { margin-top: 1.25rem; }

.section { padding: 3rem 0; }
.section.alt { background: var(--alt); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }

.card { background: #fff; border: 1px solid #e8eaee; border-radius: 10px; padding: 1.25rem; box-shadow: 0 1px 2px rgba(0,0,0,0.03); }
/* Add spacing above the Agent-5 image card */
.card.topMarginSmall { margin-top: 1rem; }

.bullet-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.5rem 1rem; list-style: disc; list-style-position: inside; padding-left: 5px; }
.bullet-grid li { background: #fff; border: 1px dashed #c8d1db; padding: 0.5rem 0.75rem 0.5rem 1.25rem; border-radius: 8px; }

.btn { display: inline-block; padding: 0.75rem 1rem; border-radius: 10px; font-weight: 700; text-decoration: none; border: 1px solid transparent; }
.btn-sm { padding: 0.5rem 0.75rem; border-radius: 8px; font-size: 0.9rem; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 14px rgba(230,92,36,.3); }
.btn-primary:hover { color: var(--bg); filter: brightness(0.95); }

.cta { text-align: center; }
.cta p { color: var(--muted); }

.site-footer { border-top: 1px solid #e6e8eb; padding: 1rem 0; background: #fff; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-footer a { color: var(--muted); text-decoration: none; margin-left: 1rem; }
.site-footer a:hover { color: var(--primary); }

/* Accessibility */
.skip-link { position: absolute; left: -999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { left: 0; top: 0; width: auto; height: auto; padding: .5rem 1rem; background: #000; color: #fff; z-index: 9999; }

/* Anchor offset so the sticky header doesn't cover section headings */
section[id] { scroll-margin-top: 72px; }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .site-nav a { margin-left: 0.75rem; }
}


/* Pre-Approved section: make bullet grid vertical within a single card */
#preapproved .bullet-grid {
  display: block;
  list-style: disc;
  margin: 0;
  padding-left: 1.25rem;
}
#preapproved .bullet-grid li {
  background: transparent;
  border: 0;
  padding: 0.25rem 0;
  border-radius: 0;
}

/* === Tabs (Use Cases) === */
.tabs { padding: 0; }
.tablist { display: flex; flex-wrap: wrap; gap: .5rem; padding: .5rem; border-bottom: 1px solid #e8eaee; background: #fff9f5; border-radius: 10px 10px 0 0; }
.tab-button { appearance: none; background: #fff; border: 1px solid #e8eaee; color: var(--text); font-weight: 600; padding: .5rem .75rem; border-radius: 8px; cursor: pointer; }
.tab-button:hover { border-color: #dcdfe4; }
.tab-button.is-active, .tab-button[aria-selected="true"] { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 4px 10px rgba(230,92,36,.18); }
.tab-panel { padding: 1rem; }

/* Use case layout inside panels */
.usecase { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1rem; align-items: center; }
.usecase-media img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 6px 18px rgba(13,27,42,0.08); }
.usecase-copy h3 { margin-top: 0; }
.usecase-copy p { color: var(--muted); }

@media (max-width: 900px) {
  .usecase { grid-template-columns: 1fr; }
}


/* Left column stack helper for vertically stacked cards */
.stack { display: grid; gap: 1rem; }


/* Header nav responsive helpers */
.site-nav { display: flex; flex-wrap: wrap; }

@media (max-width: 900px) {
  .header-inner { align-items: flex-start; }
  .site-nav { width: 100%; }
}


/* === Hamburger Navigation === */
.nav-toggle { display: none; appearance: none; border: 0; background: transparent; padding: .5rem; margin-left: auto; border-radius: 8px; }
.nav-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.nav-toggle-box { display: inline-block; width: 28px; height: 20px; position: relative; }
.nav-toggle-inner,
.nav-toggle-inner::before,
.nav-toggle-inner::after { content: ""; display: block; position: absolute; left: 0; width: 28px; height: 3px; background: var(--text); border-radius: 2px; transition: transform .2s ease, opacity .2s ease, top .2s ease, bottom .2s ease; }
.nav-toggle-inner { top: 50%; transform: translateY(-50%); }
.nav-toggle-inner::before { top: -8px; }
.nav-toggle-inner::after { bottom: -8px; }

/* When expanded, morph into an X */
.nav-toggle[aria-expanded="true"] .nav-toggle-inner { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-inner::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-inner::after { bottom: 0; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  /* Collapse primary nav by default on small screens */
  #primary-nav.site-nav { display: none; width: 100%; flex-direction: column; gap: .5rem; padding-top: .25rem; }
  #primary-nav.site-nav.is-open { display: flex; }
  #primary-nav.site-nav a { margin-left: 0; padding: .25rem 0; }
}

@media (min-width: 901px) {
  .nav-toggle { display: none; }
}


/* Ensure videos within hero-art cards match image styling */
.hero-art video { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 10px 30px rgba(13,27,42,0.12); display: block; }
