/*
 * What the showcase sections add to the Strive template. assets/strive/main.css is the
 * template's own stylesheet, unmodified, so a newer Strive release can replace it; every
 * change and addition lives here instead.
 */

/* ── colour contrast ─────────────────────────────────────────────────────
 * Strive's orange, #ea7c00, gives white button text 2.8:1 and is 2.6:1 as link text on
 * its cream sections; WCAG AA asks 4.5:1. No single orange passes both against white and
 * against Strive's near-black, so light sections use a darker one (5.3:1 with white, 4.8:1
 * on cream) and dark sections keep the original, which is 7.1:1 on black, with dark text
 * on its buttons (6.6:1). The scrolled header goes black rather than Strive's grey, on
 * which no orange reaches 4.5:1 for the active menu item. */
:root {
  --accent-color: #a65600;
  --nav-hover-color: #ea7c00;
  --nav-dropdown-hover-color: #a65600;
}
.dark-background {
  --accent-color: #ea7c00;
  --contrast-color: #111111;
}
.scrolled .header, .index-page.scrolled .header { --background-color: #060606; }
.header .logo span { color: #ea7c00; }
/* Strive greys secondary text by making it 30 to 50% transparent, 2.5 to 4.2:1; at 15%
   it is 5.4:1 or better on white and on cream. */
.section-title p, .svc-stats dt, .portfolio .portfolio-card .portfolio-info .svc-sev-key,
.features .features-content > p, .features .main-feature .feature-text p, .features .feature-card p,
.pricing .pricing-item .price .period, .pricing .pricing-item .description, .svc-note, .svc-intro {
  color: color-mix(in srgb, var(--default-color), transparent 15%);
}
/* Orange text on an orange tint needs a shade more than on white. */
.services .services-content .subtitle, .faq .faq-list .faq-item h3 .num { color: color-mix(in srgb, var(--accent-color), #000 15%); }

/* ── WordPress around the sections ───────────────────────────────────── */
.svc-wrap { margin-top: 0 !important; margin-bottom: 0 !important; padding: 0 !important; max-width: none !important; }
/* The fixed header sits below the admin bar when an editor is signed in. */
.header.fixed-top { top: var(--wp-admin--admin-bar--height, 0px); }

/* ── header ──────────────────────────────────────────────────────────── */
/* The site name is a paragraph, not Strive's h1, so the hero's heading is the page's only h1. */
.header .logo .sitename { font-family: var(--heading-font); font-size: 30px; margin: 0; font-weight: 600; color: var(--heading-color); }
@media (max-width: 1200px) { .header .logo .sitename { font-size: 24px; } }
.header .logo:focus-visible, .navmenu a:focus-visible, .mobile-nav-toggle:focus-visible { outline: 2px solid var(--accent-color); outline-offset: 3px; }
/* Strive's toggle is an icon; this one is a button, given a 44px target. */
.mobile-nav-toggle {
  background: none; border: 0; padding: 0; width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
}
@media (max-width: 575.98px) {
  .header .cta-btn { display: none; }
}
/* Without the script the toggle could not open anything, so it goes, and the footer
   carries every link. */
html:not(.svc-js) .mobile-nav-toggle { display: none !important; }
@media (max-width: 1199.98px) { html:not(.svc-js) .navmenu { display: none; } }

/* ── hero ────────────────────────────────────────────────────────────── */
.hero .info h1 {
  margin-bottom: 30px; padding-bottom: 30px; font-size: 52px; font-weight: 700;
  position: relative; color: var(--heading-color);
}
.hero .info h1:after {
  content: ""; position: absolute; display: block; width: 80px; height: 4px;
  background: var(--accent-color); left: 0; right: 0; bottom: 0; margin: auto;
}
@media (max-width: 768px) { .hero .info h1 { font-size: 34px; } }
.svc-eyebrow {
  font-family: var(--nav-font); font-size: 13px !important; letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent-color) !important; margin-bottom: 18px;
}
.hero .info .btn-get-started.svc-btn-ghost { background: transparent; color: #ffffff; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--default-color), transparent 40%); }
.hero .info .btn-get-started.svc-btn-ghost:hover { background: var(--surface-color); color: var(--accent-color); }
/* The slides are real figures, light and dense, so they sit further back than Strive's
   photographs do, or the headline has diagram lines running through it. */
.hero .carousel-item::before { background-color: color-mix(in srgb, var(--background-color), transparent 14%); }
.hero .carousel-item img { filter: blur(1.5px) grayscale(1); transform: scale(1.03); }
/* What each background slide shows, since it is a real figure rather than stock art. */
.svc-slide-label {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 28px; margin: 0; text-align: center;
  font-family: var(--nav-font); font-size: 13px; letter-spacing: 1px;
  color: color-mix(in srgb, var(--default-color), transparent 35%);
}
@media (max-width: 768px) {
  .hero .info { padding-left: 16px; padding-right: 16px; }
  .hero .carousel-control-prev, .hero .carousel-control-next { display: none; }
}

/* ── how it works ────────────────────────────────────────────────────── */
.svc-phases { padding-left: 0; }
.svc-phases .service-card { height: 100%; }
/* Strive crops its photo to a fixed height; a figure has to be shown whole. */
.services .services-image { height: auto; align-items: center; }
.services .services-image img { object-fit: contain; max-height: none; width: 100%; background: #fff; border-radius: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); }

/* ── showcase ────────────────────────────────────────────────────────── */
.svc-intro { max-width: 760px; margin: -28px 0 32px; color: color-mix(in srgb, var(--default-color), transparent 15%); }
.portfolio .portfolio-card { display: flex; flex-direction: column; }
.portfolio .portfolio-card .portfolio-img img { aspect-ratio: 1280 / 860; object-fit: cover; object-position: top; width: 100%; }
.portfolio .portfolio-card .portfolio-info .portfolio-tags a {
  font-size: 0.85rem; padding: 6px 14px; border-radius: 20px; font-weight: 500;
  background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  color: color-mix(in srgb, var(--accent-color), #000 25%);
}
.portfolio .portfolio-card .portfolio-info .portfolio-tags a:hover { background-color: var(--accent-color); color: var(--contrast-color); }
.svc-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin: 16px 0; }
.svc-stats dt { font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; color: color-mix(in srgb, var(--default-color), transparent 15%); }
.svc-stats dd { margin: 0; font-family: var(--heading-font); font-size: 1.4rem; font-weight: 800; color: var(--heading-color); overflow-wrap: anywhere; }
.svc-sev { display: flex; height: 22px; border-radius: 6px; overflow: hidden; font-size: 0.75rem; font-weight: 700; color: #fff; }
.svc-sev span { display: flex; align-items: center; justify-content: center; min-width: 22px; }
.svc-sev .svc-h { background: #b42318; }
.svc-sev .svc-m { background: #b54708; }
.svc-sev .svc-l { background: #475467; }
.portfolio .portfolio-card .portfolio-info .svc-sev-key { margin: 6px 0 16px; font-size: 0.8rem; color: color-mix(in srgb, var(--default-color), transparent 15%); }
.svc-note { margin-top: 32px; font-size: 0.9rem; color: color-mix(in srgb, var(--default-color), transparent 15%); }

/* ── pricing ─────────────────────────────────────────────────────────── */
.svc-steps { padding-left: 0; margin-bottom: 24px; }
.svc-steps li { display: flex; gap: 14px; }
.svc-steps span {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--heading-font); font-weight: 800; color: var(--contrast-color); background: var(--accent-color);
}
.svc-steps b { font-family: var(--heading-font); color: var(--heading-color); font-size: 1.05rem; }
.svc-steps p { margin: 4px 0 0; font-size: 0.95rem; }
.pricing .price { overflow-wrap: anywhere; }

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.faq .faq-list .faq-item h3:focus-visible { outline: 2px solid var(--accent-color); outline-offset: -2px; }
.faq .faq-list .faq-item .faq-content { padding: 0 25px 20px 68px; }
@media (max-width: 576px) { .faq .faq-list .faq-item .faq-content { padding: 0 20px 16px; } }
/* Without the script an answer could never open, so every answer shows. */
html:not(.svc-js) .faq .faq-list .faq-item .faq-content { display: block; }
html:not(.svc-js) .faq .faq-toggle { display: none; }

/* ── footer ──────────────────────────────────────────────────────────── */
.svc-footer-fine { font-size: 0.8rem; margin: 6px 0 0; color: color-mix(in srgb, var(--default-color), transparent 40%); }

/* ── scroll animation ────────────────────────────────────────────────────
 * AOS's stylesheet hides every [data-aos] element until the script animates it. Content
 * starts hidden only when the head script set .svc-motion (no reduced-motion request);
 * otherwise it is plainly visible. If AOS has not started 2.5s in (the CDN is blocked,
 * the script failed), the content is revealed anyway. */
html:not(.svc-motion) [data-aos] { opacity: 1 !important; transform: none !important; transition: none !important; }
html.svc-motion:not(.svc-aos) [data-aos] { animation: svc-show 0s 2.5s forwards; }
@keyframes svc-show { to { opacity: 1; transform: none; } }
