/*
Theme Name: Managed Discovery White
Theme URI: https://example.com/managed-discovery-white
Author: Codex
Description: White variant of the Managed Discovery custom WordPress theme.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: managed-discovery-white
*/

:root {
  --bg: #fbfdff;
  --bg-soft: #ffffff;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-strong: rgba(255, 255, 255, 0.96);
  --line: rgba(18, 29, 58, 0.12);
  --text: #121d3a;
  --muted: #48556f;
  --accent: #37aae1;
  --accent-2: #79d3f4;
  --shadow: 0 18px 42px rgba(18, 29, 58, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(57, 167, 223, 0.12), transparent 24%),
    radial-gradient(circle at 10% 20%, rgba(47, 78, 203, 0.08), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 60%, #f7faff 100%);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.narrow {
  width: min(860px, 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(18, 29, 58, 0.08);
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.02rem;
  width: 13.5rem;
  color: var(--text);
  line-height: 0.9;
}

.brand-managed,
.brand-discovery {
  display: block;
  white-space: nowrap;
}

.brand-managed {
  color: var(--accent);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.brand-discovery {
  color: #000000;
  font-size: 1.02rem;
  font-weight: 300;
  letter-spacing: 0.145em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.site-nav .nav-cta,
.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  color: #f7fbff;
}

.nav-cta {
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--text);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(18, 29, 58, 0.16);
}

.hero {
  padding: 7rem 0 5rem;
  min-height: 86vh;
  display: grid;
  align-items: center;
  position: relative;
}

.hero-grid {
  max-width: 860px;
  padding: 3rem;
  border: 1px solid rgba(18, 29, 58, 0.08);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.94)),
    rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.eyebrow,
.section-label {
  display: inline-block;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero h1 {
  margin: 0;
  line-height: 1;
  letter-spacing: -0.04em;
  text-align: left;
}

.hero-line-one,
.hero-line-two {
  display: block;
  width: 100%;
  text-align: left;
  white-space: nowrap;
}

.hero-line-one {
  font-size: clamp(3.2rem, 7.2vw, 5.6rem);
  line-height: 0.98;
  color: var(--text);
  margin-bottom: 0.36rem;
}

.hero-line-two {
  font-size: clamp(2.2rem, 5.5vw, 4.3rem);
  line-height: 0.98;
  color: var(--accent);
  font-weight: 700;
}

.hero-copy {
  max-width: 720px;
  margin: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 1.125rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.scroll-note {
  color: rgba(18, 29, 58, 0.28);
  font-size: 0.92rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--text);
  color: #ffffff;
  box-shadow: var(--shadow);
  border: 0;
  cursor: pointer;
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.section {
  padding: 5.25rem 0;
}

.section-dark {
  background: rgba(248, 251, 255, 0.8);
}

#model.section-dark {
  background: var(--accent);
}

#model .section-label,
#model h2,
#model p {
  color: #ffffff;
}

#contact.contact-section {
  background: var(--accent);
}

#contact .section-label,
#contact h2,
#contact p,
#contact .contact-label,
#contact .contact-value {
  color: #ffffff;
}

#contact .contact-form-copy {
  color: #121d3a;
}

.section-accent {
  background: linear-gradient(180deg, rgba(47, 78, 203, 0.07), rgba(255, 255, 255, 0));
  border-top: 1px solid rgba(18, 29, 58, 0.05);
  border-bottom: 1px solid rgba(18, 29, 58, 0.05);
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.section h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
}

.section p {
  color: var(--muted);
}

.stats-grid,
.cards {
  display: grid;
  gap: 1rem;
}

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

.stat-card,
.service-card,
.mini-card,
.contact-form,
.contact-notice {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.stat-card strong,
.mini-card h3,
.service-card h3,
.contact-form h3 {
  display: block;
  color: var(--text);
}

.stat-card strong {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}

.stat-card span,
.mini-label {
  color: var(--muted);
}

.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card h3,
.mini-card h3,
.contact-form h3 {
  margin: 0 0 0.55rem;
  font-size: 1.15rem;
}

.mini {
  align-items: stretch;
}

.inline-link {
  color: var(--accent);
  font-weight: 700;
}

.contact-section {
  padding-bottom: 6rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.contact-block {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

.contact-value {
  font-size: 1.1rem;
  font-weight: 700;
}

.contact-link {
  color: var(--accent);
}

.contact-link:hover,
.contact-link:focus-visible {
  color: var(--text);
}

.contact-form p {
  margin-top: 0;
}

.contact-form label {
  display: block;
  margin-bottom: 1rem;
}

.contact-form span {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--text);
  font-weight: 600;
}

input,
textarea {
  display: block;
  width: 100%;
  min-height: 56px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  padding: 0.9rem 1rem;
  font: inherit;
  font-size: 16px;
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

textarea {
  min-height: 180px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #8a97a4;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(189, 123, 54, 0.18);
  border-color: rgba(189, 123, 54, 0.55);
}

.contact-notice {
  margin-bottom: 1rem;
}

.contact-notice p {
  margin: 0;
}

.contact-notice-success {
  border-color: rgba(115, 170, 116, 0.35);
}

.contact-notice-error {
  border-color: rgba(201, 104, 104, 0.35);
}

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

.site-footer {
  background: #050b16;
  border-top: 0;
  color: rgba(255, 255, 255, 0.76);
}

.footer-wrap {
  padding: 3.25rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr 1fr;
  gap: 2rem;
  align-items: start;
}

.footer-column {
  min-width: 0;
}

.footer-kicker,
.footer-heading {
  margin: 0 0 1rem;
  color: #ffffff;
}

.footer-kicker {
  font-size: 1.4rem;
  font-weight: 800;
}

.footer-heading {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-description {
  margin: 0 0 1.2rem;
  color: rgba(255, 255, 255, 0.72);
}

.footer-contact-link,
.footer-link,
.footer-social-link {
  color: #ffffff;
}

.footer-contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.8rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  margin-bottom: 1.4rem;
}

.footer-address {
  display: grid;
  gap: 0.25rem;
}

.footer-address strong {
  color: #ffffff;
}

.footer-services {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.5rem;
}

.footer-services li::marker {
  color: var(--accent);
}

.footer-social-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-social-link svg {
  width: 20px;
  height: 20px;
}

.footer-subscribe-form {
  display: grid;
  gap: 0.9rem;
}

.footer-subscribe-form input {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.footer-subscribe-form input::placeholder {
  color: rgba(255, 255, 255, 0.54);
}

.footer-subscribe-form .button {
  width: 100%;
}

.site-footer .contact-notice {
  background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 900px) {
  .two-col,
  .contact-grid,
  .three-up,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 4.5rem;
    min-height: unset;
  }

  .hero-grid {
    padding: 2rem;
  }

  .contact-grid {
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1120px, calc(100% - 1.25rem));
  }

  .site-header {
    position: static;
    backdrop-filter: none;
  }

  .nav-wrap {
    align-items: flex-start;
    padding: 0.9rem 0 1rem;
  }

  .brand {
    width: 100%;
    max-width: 9.4rem;
    gap: 0.02rem;
  }

  .brand-managed {
    font-size: 0.84rem;
    letter-spacing: 0.09em;
  }

  .brand-discovery {
    font-size: 0.74rem;
    letter-spacing: 0.12em;
  }

  .site-nav {
    display: flex;
    width: 100%;
    gap: 0.55rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.2rem;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    flex: 0 0 auto;
    font-size: 0.9rem;
  }

  .hero h1 {
    font-size: 2.4rem;
    line-height: 1;
  }

  .hero h1 span {
    white-space: normal;
  }

  .hero {
    padding: 2rem 0 3rem;
  }

  .hero-grid {
    padding: 1.4rem;
    border-radius: 24px;
  }

  .eyebrow,
  .section-label {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
  }

  .hero-copy {
    font-size: 1rem;
    margin: 1rem 0 1.4rem;
  }

  .hero-actions {
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }

  .hero-actions .button,
  .contact-form .button,
  .footer-subscribe-form .button {
    width: 100%;
  }

  .section h2 {
    font-size: 1.9rem;
  }

  .stat-card,
  .service-card,
  .mini-card,
  .contact-form,
  .contact-notice {
    padding: 1.1rem;
  }

  .section {
    padding: 4rem 0;
  }

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

  .contact-section {
    padding-bottom: 4.5rem;
  }

  .footer-wrap {
    padding: 2.4rem 0;
  }

  textarea {
    min-height: 160px;
  }
}
