/*
Theme Name: Artem WP Navy
Description: A navy, electric blue and orange child theme for Artem WP.
Template: artem-wp
Version: 1.1.0
Text Domain: artem-wp-navy
*/

:root {
  --theme-navy: #0a1430;
  --theme-blue-rgb: 2, 151, 222;
  --theme-orange: #fc734d;
  --theme-orange-rgb: 252, 115, 77;
  --theme-orange-hover: #ff9376;
  --theme-orange-text: #ffac95;
  --bg: var(--theme-navy);
  --dark: var(--theme-navy);
  --surface: #172748;
  --surface-muted: #111f3e;
  --ink: #f7fbff;
  --muted: #c2d0e8;
  --line: #334a70;
  --accent: #b5e5ff;
  --accent-strong: #a2dcff;
  --warm: var(--theme-orange);
  --shadow: 0 18px 50px rgba(3, 8, 22, .38);
  --shadow-soft: 0 10px 30px rgba(3, 8, 22, .24);
}

.site-header {
  background: linear-gradient(180deg, #172747, var(--theme-navy));
  border-bottom: 0;
  backdrop-filter: none;
}

.site-main {
  background: var(--bg);
}

.home .site-main { --section-tint: #0d1934; }

/* Adjacent sections meet at the same navy and change shade in their interiors. */
.home .site-main > section:not(.hero-section, .about-section) {
  --section-fade: min(24%, clamp(88px, 12vw, 152px));
  background: linear-gradient(
    180deg,
    var(--bg),
    var(--section-tint) var(--section-fade),
    var(--section-tint) calc(100% - var(--section-fade)),
    var(--bg)
  );
}

.home .site-main > :is(.cases-section, .system-section, .outcomes-section, .services-section) {
  --section-tint: #132143;
}

.home .site-main .about-section { background: var(--bg); }

.home .site-main .hero-section {
  background:
    radial-gradient(ellipse at 68% 110%, rgba(var(--theme-orange-rgb), .72), transparent 46%),
    radial-gradient(ellipse at 100% 105%, rgba(var(--theme-blue-rgb), .88), transparent 56%),
    var(--bg);
  border-bottom-color: var(--line);
}

.home .site-main .hero-section:has(+ .about-section) {
  --glow-extension: clamp(240px, 31vw, 425px);
  position: relative;
  isolation: isolate;
  background: var(--bg);
  border-bottom-color: transparent;
}

/* Center the shared glow on the seam and let it fade into the next section. */
.home .site-main .hero-section:has(+ .about-section)::after {
  content: "";
  position: absolute;
  inset: 0 0 calc(-1 * var(--glow-extension));
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 52% var(--glow-extension) at 72% calc(100% - var(--glow-extension)), rgba(var(--theme-orange-rgb), .56), transparent),
    radial-gradient(ellipse 42% var(--glow-extension) at 100% calc(100% - var(--glow-extension)), rgba(var(--theme-blue-rgb), .72), transparent);
}

.home .site-main .hero-section + .about-section {
  background: transparent;
}

.site-main .hero-panel {
  --accent: #226c9f;
  --accent-strong: #1c5f90;
  background: linear-gradient(150deg, #163565, var(--bg) 55%);
}

.site-main .hero-panel--flow {
  --foundation-accent-rgb: var(--theme-orange-rgb);
}

.site-main :is(.cta-frame, .home-newsletter-panel) {
  background:
    radial-gradient(ellipse at 96% 4%, rgba(var(--theme-blue-rgb), .28), transparent 57%),
    linear-gradient(145deg, var(--surface), var(--bg));
}

.site-main :is(.case-card-media, .term-row a) {
  background: var(--surface-muted);
}

.site-main .case-card-media span {
  color: var(--accent-strong);
}

.site-main :is(.problem-icon, .step-visual) {
  background:
    radial-gradient(ellipse at 88% 8%, rgba(var(--theme-blue-rgb), .18), transparent 70%),
    var(--surface-muted);
  border-color: var(--line);
}

.site-main :is(.metric-tile, .slide-card, .slide-stack span, .kanban-col, .growth-kpi) {
  background: var(--surface);
  border-color: var(--line);
}

.site-main :is(.slide-card span, .kanban-col span) {
  background: rgba(var(--theme-blue-rgb), .36);
}

.site-main .growth-chart {
  border-color: var(--line);
}

.site-main :is(.system-copy p:not(.eyebrow), .system-map p, .outcomes-section .outcome-card p, .cta-copy p:not(.eyebrow)) {
  color: var(--muted);
}

.site-main .cta-frame::before {
  background: linear-gradient(90deg, rgba(10, 20, 48, .78), rgba(10, 20, 48, .32) 57%, transparent);
}

.site-main .cta-frame::after {
  background: linear-gradient(150deg, rgba(var(--theme-blue-rgb), .25), transparent);
}

.site-main :is(.button, .case-card-link, .cta-messenger-button),
.site-main .case-card:hover .case-card-link,
.site-header .header-cta,
.cookie-banner .button {
  background: var(--theme-orange);
  border-color: var(--theme-orange);
  color: var(--theme-navy);
  box-shadow: 0 9px 24px rgba(var(--theme-orange-rgb), .18);
}

.site-main :is(.button, .case-card-link, .cta-messenger-button):hover,
.site-header .header-cta:hover,
.cookie-banner .button:hover {
  background: var(--theme-orange-hover);
  border-color: var(--theme-orange-hover);
}

.site-header .header-cta:focus-visible { outline-color: var(--ink); }

.site-main .button.secondary {
  background: transparent;
  color: var(--theme-orange-text);
  box-shadow: none;
}

.site-main .button.secondary:hover {
  background: rgba(var(--theme-orange-rgb), .12);
}

.site-main .cta-messenger-button:focus-visible {
  outline-color: var(--warm);
}

.site-main .text-link {
  color: var(--theme-orange-text);
}

.site-main :is(.lead-form input:not([type="checkbox"]), .lead-form textarea, .lead-form select) {
  background-color: var(--surface-muted);
  border-color: #6b83ab;
  color: var(--ink);
}

.site-main .home-newsletter-form input[type="email"] {
  background-color: transparent;
  border-color: #6b83ab;
}

.site-main .lead-form :is(input, textarea)::placeholder {
  color: var(--muted);
}

.site-main .consent-check input {
  accent-color: var(--warm);
}

.site-main .lead-form .button:is(:disabled, .is-disabled) {
  background: var(--surface-muted);
  border-color: var(--line);
  color: var(--muted);
  opacity: 1;
  box-shadow: none;
}

.site-footer {
  background: linear-gradient(180deg, var(--bg), #080f25 min(30%, 112px));
  border-top: 1px solid var(--bg);
}

.site-footer :is(p, a, small, address),
.cookie-banner p {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--accent);
}

.cookie-banner {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: var(--shadow);
}

@media (max-width: 900px) {
  .site-main .cta-frame::before {
    background: linear-gradient(180deg, rgba(10, 20, 48, .78), rgba(10, 20, 48, .32) 64%, transparent);
  }
}
