/* ============================================
   IT's IT - Site Stylesheet
   Based on Website Plan & BrandScript
   ============================================ */

/* ---------- CSS Variables / Design System ---------- */
:root {
  /* Brand Colors */
  --brand-orange: #F2A04A;
  --brand-orange-dark: #D98B35;
  --brand-orange-light: #F5B36B;
  --deep-navy: #1E3A5F;
  --deep-navy-dark: #152B47;
  --slate-blue: #4A90A4;
  --slate-blue-light: #6BA8B9;
  --off-white: #F9FAFB;
  --charcoal: #111827;
  --warm-gray: #6B7280;
  --light-gray: #E5E7EB;
  --bright-teal: #14B8A6;
  --white: #FFFFFF;

  /* Typography */
  --font-heading: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 300ms ease-in-out;

  /* Layout */
  --max-width: 1400px;
  --nav-height: 72px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--charcoal);
  background-color: var(--white);
  overflow-x: hidden;
}

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

a {
  color: var(--slate-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--deep-navy);
}

ul, ol {
  list-style: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--charcoal);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 500;
}

p {
  color: var(--warm-gray);
  margin-bottom: var(--space-md);
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-4xl) 0;
}

.section--alt {
  background-color: var(--off-white);
}

.section--navy {
  background-color: var(--deep-navy);
  color: var(--white);
}

.section--navy h2,
.section--navy h3,
.section--navy p {
  color: var(--white);
}

.section--navy p {
  color: rgba(255, 255, 255, 0.8);
}

.section--charcoal {
  background-color: var(--charcoal);
  color: var(--white);
}

.section--orange {
  background-color: var(--brand-orange);
  color: var(--white);
}

.section--orange h2,
.section--orange p {
  color: var(--white);
}

/* ---------- Navigation ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--deep-navy);
  box-shadow: var(--shadow-md);
}

.site-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--nav-height);
}

.site-nav__logo img {
  height: 56px;
  display: block;
}

.site-nav__center {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.site-nav__center a {
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.site-nav__center a:hover,
.site-nav__center a.active {
  color: var(--white);
}

.site-nav__right {
  display: flex;
  align-items: center;
}

.site-nav__cta {
  background-color: var(--brand-orange);
  color: var(--white) !important;
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.site-nav__cta:hover {
  background-color: var(--brand-orange-dark);
  color: var(--white);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--white);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.0625rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-normal);
  line-height: 1.4;
}

.btn--primary {
  background-color: var(--brand-orange);
  color: var(--white);
}

.btn--primary:hover {
  background-color: var(--brand-orange-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--secondary {
  background-color: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn--secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  color: var(--white);
}

.btn--white {
  background-color: var(--white);
  color: var(--brand-orange);
}

.btn--white:hover {
  background-color: var(--off-white);
  color: var(--brand-orange-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--navy {
  background-color: var(--deep-navy);
  color: var(--white);
}

.btn--navy:hover {
  background-color: var(--deep-navy-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--lg {
  font-size: 1.125rem;
  padding: 1rem 2.5rem;
}

.btn--sm {
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
}

.text-link {
  color: var(--white);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap var(--transition-normal);
}

.text-link:hover {
  color: var(--white);
  gap: 0.75rem;
}

.text-link--dark {
  color: var(--slate-blue);
}

.text-link--dark:hover {
  color: var(--deep-navy);
}

/* ---------- Hero Section ---------- */
.hero {
  background-color: var(--deep-navy);
  color: var(--white);
  padding: var(--space-4xl) 0;
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero--has-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero--has-bg::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.92) 0%, rgba(17, 24, 39, 0.88) 100%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero__content {
  max-width: 720px;
}

.hero__content--center {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  color: var(--white);
  margin-bottom: var(--space-lg);
}

.hero p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.25rem;
  margin-bottom: var(--space-2xl);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.hero__actions--center {
  justify-content: center;
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  flex-wrap: wrap;
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  font-weight: 500;
}

.hero__trust-item i {
  color: var(--bright-teal);
  font-size: 0.875rem;
}

/* ---------- Section Headers ---------- */
.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-3xl);
}

.section__header h2 {
  margin-bottom: var(--space-md);
}

.section__header p {
  font-size: 1.125rem;
}

/* ---------- Problem Cards ---------- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.problem-card {
  background-color: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  transition: all var(--transition-normal);
}

.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-orange-light);
}

.problem-card__icon {
  width: 56px;
  height: 56px;
  background-color: rgba(242, 160, 74, 0.1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.problem-card__icon i {
  font-size: 1.5rem;
  color: var(--brand-orange);
}

.problem-card h3 {
  margin-bottom: var(--space-sm);
  font-size: 1.25rem;
}

.problem-card p {
  margin-bottom: 0;
  font-size: 1rem;
}

/* ---------- Guide / Empathy Section ---------- */
.guide-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.guide-section__text h2 {
  margin-bottom: var(--space-lg);
}

.guide-section__text p {
  font-size: 1.0625rem;
}

.competency-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.competency-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.competency-item i {
  color: var(--bright-teal);
  font-size: 1.25rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.competency-item span {
  font-weight: 500;
  color: var(--charcoal);
  font-size: 0.9375rem;
}

.guide-section__image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background-color: var(--light-gray);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-section__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-image {
  width: 100%;
  height: 100%;
  min-height: 300px;
  background: linear-gradient(135deg, var(--light-gray) 0%, #d1d5db 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--warm-gray);
  font-size: 0.875rem;
  gap: 0.5rem;
}

.placeholder-image i {
  font-size: 2rem;
  color: var(--warm-gray);
}

/* ---------- Plan / How It Works ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
}

.step-card {
  position: relative;
  padding: var(--space-2xl);
  background-color: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-xl);
}

.step-card__number {
  width: 48px;
  height: 48px;
  background-color: var(--deep-navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: var(--space-lg);
}

.step-card h3 {
  margin-bottom: var(--space-sm);
  font-size: 1.25rem;
  color: var(--deep-navy);
}

.step-card p {
  margin-bottom: 0;
  font-size: 1rem;
}

/* ---------- Service Preview Cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.service-card {
  background-color: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  transition: all var(--transition-normal);
  text-decoration: none;
  display: block;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--slate-blue-light);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  background-color: rgba(74, 144, 164, 0.1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.service-card__icon i {
  font-size: 1.375rem;
  color: var(--slate-blue);
}

.service-card h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-xs);
  color: var(--charcoal);
}

.service-card p {
  margin-bottom: 0;
  font-size: 0.9375rem;
}

/* ---------- Stakes Section ---------- */
.stakes-list {
  max-width: 720px;
  margin: 0 auto;
}

.stakes-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

.stakes-list li:last-child {
  border-bottom: none;
}

.stakes-list li i {
  color: var(--brand-orange);
  margin-top: 4px;
  flex-shrink: 0;
}

/* ---------- Success / Transformation ---------- */
.success-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-3xl);
}

.success-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: var(--space-lg);
  background-color: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-lg);
}

.success-item i {
  color: var(--bright-teal);
  font-size: 1.25rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.success-item p {
  margin-bottom: 0;
  color: var(--charcoal);
  font-weight: 450;
}

.transformation-statement {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: var(--space-2xl);
  background-color: var(--white);
  border-left: 4px solid var(--brand-orange);
  border-radius: var(--radius-md);
}

.transformation-statement p {
  font-size: 1.25rem;
  color: var(--charcoal);
  font-weight: 500;
  margin-bottom: 0;
  font-style: italic;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  text-align: center;
  padding: var(--space-4xl) 0;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: var(--space-md);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--charcoal);
  color: var(--white);
  padding: var(--space-3xl) 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.footer__brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9375rem;
  margin-bottom: var(--space-xs);
}

.footer__brand .site-nav__logo img {
  margin-bottom: var(--space-md);
}

.site-footer h4 {
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: var(--space-lg);
}

.footer__links li {
  margin-bottom: var(--space-xs);
}

.footer__links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: var(--brand-orange-light);
}

.footer__contact p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9375rem;
  margin-bottom: var(--space-xs);
}

.footer__contact a {
  color: rgba(255, 255, 255, 0.6);
}

.footer__contact a:hover {
  color: var(--brand-orange-light);
}

/* Footer Transitional CTA */
.footer__transitional {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-xl) 0;
  text-align: center;
}

.footer__transitional p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  margin-bottom: var(--space-md);
}

.footer__email-form {
  display: flex;
  gap: var(--space-sm);
  max-width: 440px;
  margin: 0 auto;
}

.footer__email-form input {
  flex: 1;
  padding: 0.625rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9375rem;
}

.footer__email-form input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.footer__email-form button {
  padding: 0.625rem 1.25rem;
  background-color: var(--brand-orange);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color var(--transition-fast);
  white-space: nowrap;
}

.footer__email-form button:hover {
  background-color: var(--brand-orange-dark);
}

.footer__bottom {
  padding: var(--space-lg) 0;
  text-align: center;
}

.footer__bottom p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8125rem;
  margin-bottom: 0;
}

/* ---------- Form Styles ---------- */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: var(--space-xs);
  color: var(--charcoal);
  font-size: 0.9375rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--charcoal);
  background-color: var(--white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--slate-blue);
  box-shadow: 0 0 0 3px rgba(74, 144, 164, 0.15);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .guide-section {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .guide-section__image {
    order: -1;
    max-height: 360px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
}

@media (max-width: 768px) {
  .site-nav__center,
  .site-nav__right {
    display: none;
  }

  .site-nav__center.is-open,
  .site-nav__right.is-open {
    display: flex;
  }

  .site-nav.is-open .site-nav__center,
  .site-nav.is-open .site-nav__right {
    display: flex;
  }

  .site-nav.is-open .container {
    flex-wrap: wrap;
  }

  .site-nav.is-open .site-nav__center {
    order: 3;
    width: 100%;
    flex-direction: column;
    padding: var(--space-md) 0;
    gap: var(--space-md);
  }

  .site-nav.is-open .site-nav__right {
    order: 4;
    width: 100%;
    padding-bottom: var(--space-md);
  }

  .site-nav.is-open .site-nav__cta {
    width: 100%;
    text-align: center;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding: var(--space-3xl) 0;
  }

  .hero p {
    font-size: 1.0625rem;
  }

  .hero__trust {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .text-link {
    text-align: center;
    justify-content: center;
  }

  .problem-grid,
  .steps-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .competency-row {
    grid-template-columns: 1fr;
  }

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

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer__email-form {
    flex-direction: column;
  }

  .section {
    padding: var(--space-3xl) 0;
  }

  .cta-banner {
    padding: var(--space-3xl) 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}

/* ---------- Utility ---------- */
.text-center {
  text-align: center;
}

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