/*
Theme Name: Engel IT Services
Theme URI: https://engelitservices.local
Author: Nick Engel
Author URI: https://engelitservices.local
Description: Custom WordPress theme for Engel IT Services inspired by the provided homepage composite.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: engel-it-services
*/

:root {
  --bg: #061426;
  --bg-soft: #0c1d33;
  --panel: rgba(10, 26, 48, 0.78);
  --panel-solid: #0f2340;
  --line: rgba(116, 154, 214, 0.18);
  --line-strong: rgba(116, 154, 214, 0.3);
  --text: #f3f7ff;
  --muted: #adc0dc;
  --dark-text: #11213b;
  --light-surface: #f6f9ff;
  --white: #ffffff;
  --primary: #1d76ff;
  --primary-2: #06b6ff;
  --shadow: 0 24px 60px rgba(2, 12, 28, 0.22);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --content-width: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--dark-text);
  background: var(--white);
  line-height: 1.6;
}

body.intake-modal-open {
  overflow: hidden;
}

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

img {
  max-width: 100%;
  display: block;
}

.screen-reader-text {
  position: absolute;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}

.page-content {
  padding: 72px 0 96px;
  background:
    radial-gradient(circle at top left, rgba(18, 113, 255, 0.12), transparent 24%),
    linear-gradient(180deg, #eef4ff 0%, #ffffff 32%);
}

.content-card {
  background: var(--white);
  border: 1px solid rgba(17, 33, 59, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 40px;
}

.entry-title {
  margin: 0 0 18px;
  color: #0b1f3a;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}

.entry-content > *:first-child,
.policy-entry > *:first-child {
  margin-top: 0;
}

.policy-card {
  max-width: 920px;
}

.policy-entry h2 {
  margin: 32px 0 10px;
  color: #0f2a4d;
  font-size: 1.3rem;
}

.policy-entry p {
  margin: 0 0 16px;
  color: #29415e;
}

.policy-entry a {
  color: var(--primary);
  text-decoration: underline;
}

.site-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(18, 113, 255, 0.22), transparent 32%),
    linear-gradient(180deg, #071427 0%, #091a31 34%, #ffffff 34%, #ffffff 100%);
}

.wrap {
  width: min(calc(100% - 32px), var(--content-width));
  margin: 0 auto;
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border: 2px solid var(--primary-2);
  border-radius: 12px;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(6, 182, 255, 0.16);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  background: linear-gradient(180deg, var(--primary-2), var(--primary));
  border-radius: 999px;
}

.brand-mark::before {
  inset: 7px auto 7px 7px;
  width: 4px;
}

.brand-mark::after {
  left: 11px;
  top: 7px;
  width: 20px;
  height: 4px;
  box-shadow: 0 10px 0 0 var(--primary), 0 20px 0 0 var(--primary);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text small {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--primary-2);
}

.brand-text strong {
  font-size: 1.1rem;
}

.main-navigation {
  margin-left: auto;
}

.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.96rem;
}

.main-navigation li {
  position: relative;
}

.main-navigation a:hover,
.main-navigation a:focus {
  color: var(--white);
}

.header-cta,
.button-primary,
.button-secondary,
.wp-block-button__link,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-cta,
.button-primary,
.wp-block-button__link,
button,
input[type="submit"] {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), #0c5cff);
  box-shadow: 0 10px 26px rgba(29, 118, 255, 0.28);
}

.button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.02);
}

.header-cta:hover,
.button-primary:hover,
.button-secondary:hover,
.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover {
  transform: translateY(-1px);
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  padding: 48px 0 44px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 11, 22, 0.92) 0%, rgba(4, 13, 26, 0.8) 38%, rgba(4, 13, 26, 0.48) 62%, rgba(4, 13, 26, 0.16) 100%),
    radial-gradient(circle at 20% 15%, rgba(29, 118, 255, 0.18), transparent 22%);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 9, 20, 0.82) 0%, rgba(3, 9, 20, 0.52) 28%, rgba(3, 9, 20, 0.14) 56%),
    url('/2f37dd59-e5e4-48d1-a1f3-18eefa878d37.png');
  background-size: cover, cover;
  background-position: center center, center center;
  opacity: 1;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 34px;
  align-items: center;
  min-height: 660px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--primary-2);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(2.7rem, 5.5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.accent-line {
  color: var(--primary-2);
}

.hero-copy p {
  max-width: 620px;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.hero-feature {
  padding: 14px 14px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.04);
}

.hero-feature strong {
  display: block;
  font-size: 0.92rem;
}

.hero-feature span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.85rem;
}

.hero-panel {
  position: relative;
  z-index: 1;
}

.dashboard-card {
  position: relative;
  padding: 28px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(12, 29, 51, 0.85), rgba(8, 21, 39, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.status-stack {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.status-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-chip strong,
.dashboard-card h3,
.metric-card strong,
.quote-card strong,
.footer-column h4 {
  color: var(--white);
}

.status-chip span,
.metric-card span,
.quote-card p,
.footer-column,
.footer-column a {
  color: var(--muted);
}

.status-pill {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(48, 206, 124, 0.14);
  color: #72f0ac;
  font-size: 0.74rem;
  font-weight: 700;
}

.metrics-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr;
  gap: 14px;
}

.metric-card {
  min-height: 188px;
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.metric-card.graph::after {
  content: "";
  display: block;
  width: 100%;
  height: 90px;
  margin-top: 26px;
  background:
    linear-gradient(180deg, rgba(29, 118, 255, 0.18), transparent),
    linear-gradient(110deg, transparent 0 8%, rgba(6, 182, 255, 0.55) 8% 12%, transparent 12% 22%, rgba(29, 118, 255, 0.7) 22% 28%, transparent 28% 46%, rgba(6, 182, 255, 0.72) 46% 54%, transparent 54% 68%, rgba(29, 118, 255, 0.8) 68% 76%, transparent 76%);
  clip-path: polygon(0% 85%, 12% 74%, 24% 78%, 36% 58%, 52% 65%, 66% 42%, 80% 48%, 100% 8%, 100% 100%, 0% 100%);
  border-radius: 14px;
}

.metric-ring {
  width: 86px;
  height: 86px;
  margin: 20px auto 0;
  border-radius: 50%;
  border: 10px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--primary-2);
  border-right-color: var(--primary);
}

.section {
  padding: 84px 0;
}

.section-light {
  background:
    radial-gradient(circle at top center, rgba(29, 118, 255, 0.1), transparent 36%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.section-dark {
  background:
    radial-gradient(circle at top left, rgba(29, 118, 255, 0.18), transparent 28%),
    linear-gradient(180deg, #08172c 0%, #091b32 100%);
  color: var(--white);
}

.section-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 34px;
}

.section-heading h2 {
  margin: 8px 0 10px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 0;
  color: #5c7193;
}

.section-dark .section-heading p,
.section-dark .industries-note {
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.service-card,
.industry-card,
.quote-card,
.detail-card {
  padding: 26px;
  border-radius: 22px;
  background: var(--white);
  border: 1px solid rgba(16, 43, 74, 0.08);
  box-shadow: 0 18px 50px rgba(8, 27, 52, 0.08);
}

.service-icon,
.industry-icon,
.detail-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 18px;
  font-size: 1.65rem;
  color: var(--primary);
  background: linear-gradient(180deg, rgba(29, 118, 255, 0.11), rgba(6, 182, 255, 0.03));
}

.service-card h3,
.detail-card h3 {
  margin: 0 0 10px;
  font-size: 1.28rem;
}

.service-card p,
.detail-card p,
.industry-card p {
  margin: 0;
  color: #627694;
}

.why-grid,
.process-grid,
.industry-grid,
.testimonial-grid,
.footer-grid {
  display: grid;
  gap: 22px;
}

.why-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  align-items: start;
}

.lead-panel {
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, #f7fbff 0%, #eef5ff 100%);
  border: 1px solid rgba(17, 33, 59, 0.08);
}

.lead-panel h2 {
  margin: 12px 0;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.lead-panel p {
  color: #557091;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.detail-card {
  background: rgba(255, 255, 255, 0.75);
}

.industry-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.industry-card {
  text-align: center;
}

.industry-card h3 {
  margin: 0 0 8px;
}

.industries-note {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 28px;
}

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

.process-step {
  position: relative;
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.step-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 999px;
  color: var(--white);
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.process-step h3,
.cta-panel h2 {
  margin: 0 0 10px;
}

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

.quote-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.quote-card strong {
  display: block;
  margin-top: 18px;
  font-size: 0.95rem;
}

.quote-card span {
  color: #c1d1ea;
  font-size: 0.88rem;
}

.stars {
  margin-top: 18px;
  color: #ffd34f;
  letter-spacing: 0.2em;
}

.cta-band {
  padding: 0 0 84px;
  background: linear-gradient(180deg, #091b32 0%, #0a1a31 100%);
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px;
  border-radius: 28px;
  color: var(--white);
  background:
    radial-gradient(circle at top left, rgba(6, 182, 255, 0.3), transparent 20%),
    linear-gradient(135deg, #1163ff 0%, #0d3f9b 100%);
  box-shadow: 0 30px 60px rgba(4, 18, 44, 0.25);
}

.cta-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.site-footer {
  color: var(--white);
  background: #061426;
  padding: 70px 0 24px;
}

.footer-grid {
  grid-template-columns: 1.3fr 0.8fr 0.8fr 0.9fr;
  align-items: start;
}

.footer-brand p,
.footer-column ul {
  margin: 0;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column li + li {
  margin-top: 8px;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.social-badge {
  min-width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9cb4d6;
  font-size: 0.92rem;
}

.footer-bottom nav {
  display: flex;
  gap: 18px;
}

.intake-flash {
  margin-bottom: 24px;
  padding: 16px 18px;
  border-radius: 16px;
  font-weight: 600;
}

.intake-flash-success {
  color: #0f5132;
  background: #d1f7df;
  border: 1px solid #9fdfb7;
}

.intake-flash-error {
  color: #842029;
  background: #f8d7da;
  border: 1px solid #efb2b8;
}

.intake-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
}

.intake-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 15, 29, 0.78);
  backdrop-filter: blur(8px);
}

.intake-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 24px), 760px);
  max-height: calc(100vh - 40px);
  margin: 20px auto;
  overflow: auto;
  border-radius: 28px;
  background: linear-gradient(180deg, #f9fbff 0%, #ffffff 100%);
  box-shadow: 0 30px 70px rgba(3, 16, 34, 0.32);
}

.intake-modal__content {
  padding: 32px;
}

.intake-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(17, 33, 59, 0.1);
  background: #ffffff;
  color: var(--dark-text);
  box-shadow: none;
  font-size: 1.4rem;
}

.intake-form {
  margin-top: 22px;
}

.intake-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.intake-form label,
.intake-form__full {
  display: block;
}

.intake-form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.intake-form span,
.intake-form__full span {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--dark-text);
}

.intake-form input,
.intake-form select,
.intake-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(17, 33, 59, 0.14);
  border-radius: 14px;
  background: #ffffff;
  font: inherit;
  color: var(--dark-text);
}

.intake-form textarea {
  resize: vertical;
}

.intake-form__full {
  display: block;
  margin-top: 16px;
}

.intake-form__actions {
  margin-top: 18px;
}

.page-content {
  padding: 100px 0;
}

.content-card {
  padding: 40px;
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 18px 50px rgba(8, 27, 52, 0.08);
}

.entry-title {
  margin-top: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
}

.menu-toggle {
  display: none;
}

@media (max-width: 1080px) {
  .hero-grid,
  .why-grid,
  .footer-grid,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .hero-features,
  .card-grid,
  .detail-grid,
  .industry-grid,
  .process-grid,
  .testimonial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-panel {
    display: grid;
  }
}

@media (max-width: 840px) {
  .header-inner {
    flex-wrap: wrap;
    justify-content: center;
    padding: 18px 0;
  }

  .main-navigation {
    width: 100%;
    order: 3;
    margin-left: 0;
  }

  .main-navigation ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 18px;
  }

  .hero {
    padding-top: 26px;
  }

  .hero-grid {
    min-height: auto;
  }

  .hero-features,
  .card-grid,
  .detail-grid,
  .industry-grid,
  .process-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .intake-form__grid {
    grid-template-columns: 1fr;
  }

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

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .hero-copy h1 {
    font-size: 2.5rem;
  }

  .section {
    padding: 68px 0;
  }

  .dashboard-card,
  .lead-panel,
  .content-card,
  .cta-panel {
    padding: 24px;
  }
}
