/*
 * Style sheet for the IT Global Direction site.
 * The visual direction comes from the latest preview, with additional
 * styles for the preserved PHP contact form experience.
 */

:root {
  --primary-color: #0bc5ea;
  --secondary-color: #16202a;
  --light-color: #f5f9fc;
  --dark-color: #0d1117;
  --card-bg: #1e2a37;
  --border-radius: 8px;
  --transition: 0.3s ease;
  --max-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--secondary-color);
  color: var(--light-color);
  line-height: 1.6;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: #8be9fd;
}

.container {
  width: min(90%, var(--max-width));
  margin: 0 auto;
  padding: 2rem 0;
}

.site-header {
  background-color: rgba(13, 17, 23, 0.94);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  color: var(--light-color);
  font-size: 1.5rem;
  font-weight: 700;
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.main-nav a {
  font-weight: 600;
  padding: 0.5rem 0;
}

.main-nav a:hover {
  border-bottom: 2px solid var(--primary-color);
}

.hero {
  min-height: 80vh;
  background-image: url("hero.png");
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-overlay {
  background: linear-gradient(rgba(22, 32, 42, 0.7), rgba(22, 32, 42, 0.92));
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-content {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #8be9fd;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  margin-bottom: 0.75rem;
  font-weight: 700;
  color: var(--light-color);
  max-width: 12ch;
  line-height: 1.08;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  max-width: 600px;
  color: #c7d5e0;
}

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

.btn,
.btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--border-radius);
  background-color: var(--primary-color);
  color: var(--dark-color);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn {
  padding: 0.75rem 1.5rem;
}

.btn-sm {
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn:hover,
.btn-sm:hover {
  background-color: #8be9fd;
  color: var(--dark-color);
}

.btn-secondary {
  background-color: transparent;
  color: var(--light-color);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  border-color: var(--primary-color);
}

section {
  padding: 4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  text-align: center;
}

section h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

section p {
  color: #c7d5e0;
}

.about-section > .container > p,
.podcast-section > .container > p,
.newsletter-section > .container > p,
.whitepaper-section > .container > p,
.consultant-section > .container > p,
.contact-section > .container > p {
  text-align: center;
  margin-bottom: 1.5rem;
}

.about-grid,
.podcast-list,
.whitepaper-list {
  display: grid;
  gap: 2rem;
}

.about-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.podcast-list,
.whitepaper-list {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card,
.podcast-episode,
.whitepaper,
.contact-form,
.contact-info {
  background-color: var(--card-bg);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.card p,
.podcast-episode p,
.whitepaper p {
  font-size: 0.95rem;
}

.newsletter-cta {
  display: flex;
  justify-content: center;
}

.consultant-section h3 {
  text-align: center;
  font-size: 1.4rem;
  margin-top: 2rem;
}

.consultant-section .btn {
  display: block;
  width: fit-content;
  margin: 1rem auto 0;
}

.alert {
  max-width: 860px;
  margin: 0 auto 1.5rem;
  border-radius: var(--border-radius);
  padding: 1rem 1.25rem;
}

.success {
  background: rgba(11, 197, 234, 0.14);
  border: 1px solid rgba(11, 197, 234, 0.35);
  color: #d7fbff;
}

.error {
  background: rgba(255, 120, 120, 0.14);
  border: 1px solid rgba(255, 120, 120, 0.35);
  color: #ffe1e1;
}

.error ul {
  padding-left: 1.2rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.contact-info {
  list-style: none;
  color: #c7d5e0;
}

.contact-info li + li {
  margin-top: 0.75rem;
}

.contact-form {
  display: grid;
  gap: 0.85rem;
}

.contact-form label {
  font-weight: 600;
  color: var(--light-color);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(13, 17, 23, 0.85);
  color: var(--light-color);
}

.contact-form textarea {
  resize: vertical;
}

.site-footer {
  background-color: var(--dark-color);
  padding: 1rem 0;
  text-align: center;
  color: #8fa3b0;
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .nav-container,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .nav-container {
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .hero,
  .hero-overlay {
    min-height: auto;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }
}
