/* ==========================================================================
   TOOLTUTORS GLOBAL MOBILE-FIRST STYLESHEET
   ========================================================================== */

:root {
  --bg-primary: #0A192F;
  --bg-secondary: #112240;
  --bg-card: #172A45;
  --accent-orange: #FF6B35;
  --accent-orange-hover: #E05522;
  --text-primary: #FFFFFF;
  --text-muted: #8892B0;
  --text-light: #A8B2D1;
  --border-color: #233554;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.4);
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --header-height: 95px; /* Increased from 70px to push page content down */
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

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

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

/* ==========================================================================
   HEADER & MOBILE NAVIGATION
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(10, 25, 47, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.header-container {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-container {
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 75px;
  width: auto;
  transition: transform 0.2s ease;
}

.brand-logo:hover {
  transform: scale(1.02);
}

/* Hamburger Menu Toggle */
.mobile-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1002;
}

.mobile-toggle span {
  width: 100%;
  height: 2.5px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Off-Canvas Navigation Drawer */
.nav-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background-color: var(--bg-secondary);
  box-shadow: -5px 0 25px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  padding: 6rem 2rem 2rem 2rem;
  gap: 1.5rem;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1001;
}

.nav-menu.active {
  right: 0;
}

.nav-link {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-light);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-orange);
}

.nav-cta-btn {
  margin-top: 1rem;
  text-align: center;
  background-color: var(--accent-orange);
  color: var(--text-primary);
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  transition: background 0.2s ease;
}

.nav-cta-btn:hover {
  background-color: var(--accent-orange-hover);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   LAYOUT COMPONENTS & TYPOGRAPHY
   ========================================================================== */

main {
  margin-top: var(--header-height);
  padding-top: 1.5rem; /* Additional offset buffer for headings */
  flex: 1;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.section-title {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

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

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

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

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

/* Cards Grid */
.grid-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-orange);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
  padding: 2.5rem 1.25rem 4rem;
  text-align: center;
  background: radial-gradient(circle at top, rgba(255, 107, 53, 0.12) 0%, rgba(10, 25, 47, 0) 70%);
}

.hero-badge {
  display: inline-block;
  background-color: rgba(255, 107, 53, 0.15);
  color: var(--accent-orange);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255, 107, 53, 0.3);
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-title span {
  color: var(--accent-orange);
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto;
}

/* ==========================================================================
   FORMS & INPUTS
   ========================================================================== */

.form-container {
  max-width: 650px;
  margin: 0 auto;
  background-color: var(--bg-secondary);
  padding: 2rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-orange);
}

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

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.checkbox-group input {
  width: 20px;
  height: 20px;
  accent-color: var(--accent-orange);
  margin-top: 3px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 3rem 1.25rem 2rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent-orange);
}

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (TABLET & DESKTOP)
   ========================================================================== */

@media (min-width: 768px) {
  .mobile-toggle {
    display: none;
  }

  .nav-menu {
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    box-shadow: none;
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 2rem;
  }

  .nav-link {
    padding: 0;
    border: none;
    font-size: 0.95rem;
  }

  .nav-cta-btn {
    margin-top: 0;
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
  }

  .hero {
    padding: 6rem 1.25rem;
  }

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

  .hero-actions {
    flex-direction: row;
    max-width: none;
    justify-content: center;
  }

  .btn {
    width: auto;
  }

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

  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }

  .form-container {
    padding: 3rem 2.5rem;


  }
}

/* ==========================================================================
   HERO TWO-COLUMN LAYOUT (ADDED OVERRIDES)
   ========================================================================== */

/* Mobile First Layout (Stacked) */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  padding: 2.5rem 1.25rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.hero-content {
  flex: 1;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto;
}

/* Portrait Image Handling */
.hero-image {
  flex: 1;
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  max-width: 450px; /* Constrains width */
  max-height: 550px; /* Prevents the 1536px height from blowing out the layout */
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  object-fit: cover; /* Fills the box without squishing the image */
  object-position: top center; /* Keeps the tradesman's face in frame if cropped */
}

/* Desktop Layout (Side-by-Side) */
@media (min-width: 900px) {
  .hero {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
  }
  
  .hero-content {
    padding-right: 2rem;
  }
  
  .hero-description {
    margin-left: 0;
    margin-right: 0;
  }
  
  .hero-actions {
    flex-direction: row;
    max-width: none;
    justify-content: flex-start;
  }
}