/*
Theme Name: DEBUG for Ollie
Theme URI: https://debug.legal
Description: Child theme for Ollie, designed for DEBUG.legal — Data Protection & Legal Operations.
Author: DEBUG
Template: ollie
Version: 0.1.0
Text Domain: debug-ollie
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --debug-ink: #132238;
  --debug-text: #425066;
  --debug-blue: #2457f5;
  --debug-blue-dark: #1536a8;
  --debug-blue-soft: #eef4ff;
  --debug-ivory: #fffaf3;
  --debug-warm: #f6e7d3;
  --debug-warm-soft: #fff3e6;
  --debug-white: #ffffff;
  --debug-border: #e6e9ef;
  --debug-shadow: 0 18px 48px rgba(19, 34, 56, .08);
  --debug-radius: 22px;
}

html { scroll-behavior: smooth; }
body { background: var(--debug-ivory); color: var(--debug-text); }

.debug-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 250, 243, .91);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(19, 34, 56, .08);
}
body.admin-bar .debug-header { top: 32px; }

.debug-header-inner,
.debug-footer-inner,
.debug-section-inner {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.debug-brand {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.debug-brand a { color: var(--debug-ink); text-decoration: none; }
.debug-brand .debug-dot { color: var(--debug-blue); letter-spacing: 0; font-size: .72em; text-transform: lowercase; }

.debug-nav .wp-block-navigation-item__content {
  color: var(--debug-ink);
  font-size: .93rem;
  font-weight: 600;
  text-decoration: none;
}
.debug-nav .wp-block-navigation-item__content:hover { color: var(--debug-blue); }

.debug-header-cta .wp-block-button__link,
.debug-primary-button .wp-block-button__link {
  background: var(--debug-blue);
  color: #fff;
  border: 1px solid var(--debug-blue);
  border-radius: 12px;
  font-weight: 700;
  padding: .82rem 1.15rem;
  box-shadow: 0 8px 20px rgba(36, 87, 245, .18);
}
.debug-header-cta .wp-block-button__link:hover,
.debug-primary-button .wp-block-button__link:hover {
  background: var(--debug-blue-dark);
  border-color: var(--debug-blue-dark);
  transform: translateY(-1px);
}
.debug-secondary-button .wp-block-button__link {
  background: rgba(255,255,255,.72);
  color: var(--debug-ink);
  border: 1px solid rgba(19,34,56,.2);
  border-radius: 12px;
  font-weight: 700;
  padding: .82rem 1.15rem;
}
.debug-secondary-button .wp-block-button__link:hover {
  border-color: var(--debug-blue);
  color: var(--debug-blue);
  background: #fff;
}

.debug-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 26%, rgba(36,87,245,.14), transparent 30%),
    radial-gradient(circle at 88% 80%, rgba(236,177,113,.18), transparent 28%),
    linear-gradient(135deg, #fffaf3 0%, #ffffff 48%, #f6f8ff 100%);
  border-bottom: 1px solid rgba(19,34,56,.06);
}
.debug-hero-inner {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
  padding: clamp(78px, 10vw, 132px) 0 clamp(72px, 9vw, 118px);
  position: relative;
  z-index: 2;
}
.debug-hero-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr);
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
}
.debug-eyebrow {
  color: var(--debug-blue);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-bottom: 1rem !important;
}
.debug-hero h1 {
  color: var(--debug-ink);
  font-size: clamp(3.15rem, 6.2vw, 6rem);
  line-height: .98;
  letter-spacing: -.055em;
  max-width: 760px;
  margin: 0 0 1.5rem !important;
}
.debug-hero-copy {
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.65;
  max-width: 680px;
  margin-bottom: 1.8rem !important;
}
.debug-highlight { color: var(--debug-blue); }

.debug-visual {
  min-height: 430px;
  position: relative;
  border-radius: 32px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(36,87,245,.12);
  box-shadow: var(--debug-shadow);
  overflow: hidden;
}
.debug-visual::before,
.debug-visual::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(.1px);
}
.debug-visual::before {
  width: 360px;
  height: 360px;
  right: -90px;
  top: -70px;
  background: radial-gradient(circle at 35% 35%, rgba(36,87,245,.26), rgba(36,87,245,.04) 66%, transparent 67%);
}
.debug-visual::after {
  width: 300px;
  height: 300px;
  left: -95px;
  bottom: -120px;
  background: radial-gradient(circle at 60% 40%, rgba(224,157,88,.24), rgba(224,157,88,.04) 64%, transparent 65%);
}
.debug-signal {
  position: absolute;
  inset: 0;
}
.debug-signal-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(36,87,245,.4), transparent);
  transform-origin: left center;
}
.debug-signal-line.one { width: 73%; left: 12%; top: 34%; transform: rotate(-8deg); }
.debug-signal-line.two { width: 62%; left: 18%; top: 53%; transform: rotate(12deg); }
.debug-signal-line.three { width: 54%; left: 28%; top: 70%; transform: rotate(-14deg); }
.debug-node {
  position: absolute;
  width: 20px;
  height: 20px;
  background: #fff;
  border: 2px solid var(--debug-blue);
  border-radius: 7px;
  box-shadow: 0 8px 20px rgba(36,87,245,.14);
}
.debug-node.n1 { left: 17%; top: 27%; }
.debug-node.n2 { left: 61%; top: 40%; width: 28px; height: 28px; }
.debug-node.n3 { left: 35%; top: 63%; border-color: #d89553; }
.debug-node.n4 { right: 14%; bottom: 18%; width: 36px; height: 36px; }
.debug-visual-note {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 30px;
  padding: 18px 20px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(19,34,56,.09);
  border-radius: 16px;
  color: var(--debug-ink);
  font-weight: 700;
  backdrop-filter: blur(8px);
}
.debug-visual-note small { display: block; color: var(--debug-text); font-weight: 500; margin-top: 4px; }

.debug-section { padding: clamp(72px, 8vw, 112px) 0; }
.debug-section-white { background: #fff; }
.debug-section-warm { background: var(--debug-warm-soft); }
.debug-section-soft { background: var(--debug-blue-soft); }
.debug-section-label {
  color: var(--debug-blue);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.debug-section h2 {
  color: var(--debug-ink);
  letter-spacing: -.035em;
  line-height: 1.08;
  font-size: clamp(2.2rem, 4vw, 4rem);
}
.debug-section-intro { max-width: 720px; font-size: 1.08rem; }

.debug-services-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 38px;
}
.debug-card {
  height: 100%;
  padding: 30px !important;
  border: 1px solid var(--debug-border);
  border-radius: var(--debug-radius);
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 28px rgba(19,34,56,.045);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.debug-card:hover {
  transform: translateY(-4px);
  border-color: rgba(36,87,245,.28);
  box-shadow: var(--debug-shadow);
}
.debug-card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--debug-blue-soft);
  color: var(--debug-blue);
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: 24px;
}
.debug-card h3 { color: var(--debug-ink); margin-top: 0 !important; }
.debug-card a { font-weight: 750; text-decoration: none; }

.debug-method-shell {
  border: 1px solid rgba(36,87,245,.15);
  border-radius: 28px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 14px 36px rgba(19,34,56,.05);
  padding: clamp(30px, 4vw, 54px) !important;
}
.debug-method-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}
.debug-step {
  position: relative;
  padding-top: 12px !important;
}
.debug-step-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--debug-ink);
  color: #fff;
  font-weight: 800;
  margin-bottom: 16px;
}
.debug-step strong { color: var(--debug-ink); font-size: 1.05rem; }
.debug-step p { font-size: .94rem; }

.debug-benefits-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 34px;
}
.debug-benefit {
  padding: 18px 20px !important;
  background: rgba(255,255,255,.62);
  border-radius: 16px;
  border: 1px solid rgba(19,34,56,.07);
}
.debug-benefit strong { color: var(--debug-ink); }
.debug-check { color: var(--debug-blue); font-weight: 900; margin-right: 8px; }

.debug-about-card {
  background: #fff;
  border: 1px solid var(--debug-border);
  border-radius: 28px;
  box-shadow: var(--debug-shadow);
  overflow: hidden;
}
.debug-about-placeholder {
  min-height: 360px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--debug-blue-soft), var(--debug-warm-soft));
  color: var(--debug-ink);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 800;
  letter-spacing: -.06em;
}
.debug-about-copy { padding: clamp(30px, 5vw, 58px) !important; }

.debug-final-cta {
  border-radius: 30px;
  background: var(--debug-ink);
  color: #fff;
  padding: clamp(40px, 6vw, 72px) !important;
  overflow: hidden;
  position: relative;
}
.debug-final-cta h2 { color: #fff; margin-top: 0 !important; }
.debug-final-cta p { color: rgba(255,255,255,.78); }
.debug-final-cta .wp-block-button__link { background: #fff; color: var(--debug-ink); border-radius: 12px; font-weight: 800; }

.debug-footer {
  background: #0e1a2b;
  color: rgba(255,255,255,.72);
  padding: 52px 0 34px;
}
.debug-footer a { color: rgba(255,255,255,.78); text-decoration: none; }
.debug-footer a:hover { color: #fff; }
.debug-footer .debug-brand a { color: #fff; }
.debug-footer-meta { font-size: .88rem; }

@media (max-width: 960px) {
  .debug-hero-grid { grid-template-columns: 1fr; }
  .debug-visual { min-height: 330px; }
  .debug-services-grid { grid-template-columns: 1fr; }
  .debug-method-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .debug-header-cta { display: none; }
}

@media (max-width: 782px) {
  body.admin-bar .debug-header { top: 46px; }
}

@media (max-width: 640px) {
  .debug-header-inner,
  .debug-footer-inner,
  .debug-section-inner,
  .debug-hero-inner { width: min(100% - 28px, 1180px); }
  .debug-hero-inner { padding-top: 64px; }
  .debug-hero h1 { font-size: clamp(2.7rem, 15vw, 4.25rem); }
  .debug-visual { min-height: 270px; }
  .debug-method-grid,
  .debug-benefits-grid { grid-template-columns: 1fr; }
  .debug-final-cta { border-radius: 22px; }
}
