/* DadMakesItWork - Clean Modern Theme
   Deep blue + white + light gray */

:root {
  --primary: #1e3a5f;
  --primary-dark: #0f172a;
  --primary-light: #2d4a6f;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --white: #ffffff;
  --light-gray: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --text: #1e293b;
  --text-muted: #64748b;
  --shadow: 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);
  --radius: 8px;
  --transition: all 0.2s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--white);
  font-size: 16px;
}

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

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

a:hover {
  color: var(--accent-hover);
}

/* ========== HEADER & NAV ========== */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo span {
  color: #60a5fa;
}

.logo:hover {
  color: var(--primary);
}

.logo:hover span {
  color: #3b82f6;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  align-items: center;
}

.nav-menu a {
  color: var(--gray-700);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary);
  background: var(--gray-100);
}

.nav-cta {
  background: var(--primary) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: var(--radius);
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--primary-dark) !important;
  color: var(--white) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

/* ========== HERO ========== */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 5rem 1.5rem;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-logo {
  height: 150px;
  width: auto;
  margin: 0 auto 1.25rem;
  display: block;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  text-align: center;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--white);
  transform: translateY(-1px);
}

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

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

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

/* ========== SECTIONS ========== */
.section {
  padding: 4.5rem 1.5rem;
}

.section-alt {
  background: var(--light-gray);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ========== CARDS ========== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--gray-100);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.card h3 {
  font-size: 1.2rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.card a {
  font-weight: 600;
  font-size: 0.95rem;
}

/* ========== FEATURED / HOW IT WORKS ========== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  text-align: center;
}

.feature {
  padding: 1.5rem;
}

.feature-number {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 auto 1rem;
}

.feature h3 {
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.feature p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ========== PAGE HERO (inner pages) ========== */
.page-hero {
  background: var(--primary);
  color: var(--white);
  padding: 2.5rem 1.5rem;
}

.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.page-hero-logo img {
  height: 160px;
  width: auto;
  display: block;
}

.page-hero-text {
  text-align: left;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.page-hero p {
  opacity: 0.9;
  max-width: 600px;
}

/* ========== GUIDES / LIST ========== */
.guide-list {
  display: grid;
  gap: 1.25rem;
}

.guide-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: var(--transition);
}

.guide-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.guide-item-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--gray-100);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.guide-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.guide-item h3 a {
  color: var(--primary-dark);
}

.guide-item h3 a:hover {
  color: var(--accent);
}

.guide-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.tag {
  display: inline-block;
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-top: 0.5rem;
  font-weight: 500;
}

/* ========== VIDEOS ========== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

.video-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.video-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.video-thumb {
  background: var(--gray-200);
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  font-size: 3rem;
  position: relative;
}

.video-thumb::after {
  content: '▶';
  position: absolute;
  width: 60px;
  height: 60px;
  background: rgba(30, 58, 95, 0.85);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  padding-left: 4px;
}

.video-info {
  padding: 1.25rem;
}

.video-info h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  color: var(--primary-dark);
}

.video-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ========== ABOUT ========== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text h2 {
  color: var(--primary-dark);
  margin-bottom: 1rem;
  font-size: 1.75rem;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.about-image {
  background: var(--gray-100);
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  font-size: 1.1rem;
  border: 1px solid var(--gray-200);
}

/* ========== CONTACT ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-form label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--gray-700);
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  margin-bottom: 1.25rem;
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-info h3 {
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

/* ========== CTA BANNER ========== */
.cta-banner {
  background: var(--primary);
  color: var(--white);
  padding: 3.5rem 1.5rem;
  text-align: center;
}

.cta-banner h2 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.cta-banner p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--primary-dark);
  color: var(--gray-300);
  padding: 3.5rem 1.5rem 2rem;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-brand .logo span {
  color: #93c5fd;
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 0.5rem;
}

.footer a {
  color: var(--gray-300);
  font-size: 0.95rem;
}

.footer a:hover {
  color: var(--white);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.875rem;
  color: var(--gray-600);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-content,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.5rem;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-menu a {
    width: 100%;
    text-align: center;
    padding: 0.75rem;
  }

  .hero {
    padding: 3.5rem 1.25rem;
  }

  .section {
    padding: 3.5rem 1.25rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .guide-item {
    flex-direction: column;
    gap: 0.75rem;
  }

  .page-hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
  }

  .page-hero-text {
    text-align: center;
  }

  .page-hero-logo img {
    height: 120px;
  }

  .logo {
    font-size: 1.05rem;
  }
}

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

.mt-2 {
  margin-top: 2rem;
}
