/* ========================================
   FREEDOM ROOFING - MAIN STYLESHEET
   ======================================== 
   Global styles shared across all pages
   Created: November 15, 2025
*/

/* ========================================
   GLOBAL BASE STYLES
   ======================================== */

body { 
  font-family: Arial, sans-serif; 
  margin: 0; 
  padding: 0; 
  overflow-x: hidden; 
}

html { 
  scroll-behavior: smooth; 
}

/* Default section padding and viewport height */
section { 
  padding: 80px 20px; 
  text-align: center; 
  min-height: 100vh; 
}

/* Main content area positioned below fixed navigation */
.content {
  margin-top: 120px;
  padding: 40px 20px;
  min-height: 60vh;
}

/* Override min-height for logo container to prevent excessive spacing */
.logo-container { 
  min-height: auto; 
}

/* ========================================
   HERO SECTION STYLES
   Full-screen hero with background image, overlay, and animated title
   ======================================== */

/* Hero container with gradient overlay on background image */
.hero {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/cottage-768889_1280.jpg') no-repeat center center/cover;
  color: white; 
  height: 100vh; 
  display: flex; 
  flex-direction: column; 
  justify-content: center; 
  align-items: center;
}

/* Hero title using Montserrat font with fade-in animation */
.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 5rem;
  font-weight: 900;
  text-align: center;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeSlide 1s forwards;
}

/* "Freedom" word styling - Blue color with text shadow */
.hero h1 .word-freedom {
  display: block;
  color: #1E3A8A;
  text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.7);
}

/* "Roofing" word styling - Crimson red with text shadow */
.hero h1 .word-roofing {
  display: block;
  color: #DC143C;
  text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.8);
}

/* Hero tagline - larger italic text below main title */
.hero p {
  font-size: 2rem;
  font-style: italic;
  margin-top: 1rem;
}

/* Fade and slide animation for hero title */
@keyframes fadeSlide {
  to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   SCROLL-TRIGGERED ANIMATIONS
   Elements fade in and slide up when scrolled into view
   ======================================== */

/* Initial hidden state for animated elements */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

/* Visible state when element enters viewport */
.animate-on-scroll.visible { 
  opacity: 1; 
  transform: translateY(0); 
}

/* ========================================
   CERTIFICATION LOGOS SECTION
   Infinite horizontal scrolling logo carousel
   ======================================== */

/* Container with gray background for logo carousel */
.logo-container { 
  overflow: hidden; 
  background: #f2f2f2; 
  padding: 40px 0; 
  display: flex; 
  justify-content: center; 
}

/* Logo track with infinite scrolling animation */
.logo-track { 
  display: flex; 
  width: max-content; 
  animation: scrollLogos 20s linear infinite; 
}

/* Individual logo styling with spacing */
.logo-track img { 
  height: 100px; 
  margin: 0 60px; 
  object-fit: contain; 
}

/* Keyframe animation for seamless logo scrolling */
@keyframes scrollLogos { 
  from { transform: translateX(0); } 
  to { transform: translateX(-50%); } 
}

/* ========================================
   SCROLL-JACK VERTICAL SLIDESHOW SECTION
   Interactive slideshow that responds to scroll wheel input
   ======================================== */

/* Slideshow section container - full viewport height */
.slideshow-section {
  height: 100vh;
  overflow: hidden;
  position: relative;
  background: #fafafa;
  display: flex;
  align-items: center;
  padding: 0;
  padding-top: 90px; /* Account for fixed navigation menu */
  box-sizing: border-box;
}

/* Main content wrapper - two column layout (text and slides) */
.slideshow-content {
  display: flex;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  gap: 40px;
  padding: 40px;
}

/* Left column - descriptive text about projects */
.slideshow-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 40px;
}

/* Slideshow text heading */
.slideshow-text h2 {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #333;
}

/* Slideshow text paragraphs */
.slideshow-text p {
  font-size: 1.1em;
  line-height: 1.6;
  color: #666;
  margin-bottom: 15px;
}

/* Right column - slides container with shadow effect */
.slides-container {
  position: relative;
  flex: 1;
  height: 70vh;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

/* Individual slide styling - positioned absolutely for stacking */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2em;
  color: white;
  background-size: cover;
  background-position: center;
  transform: translateY(100%); /* Hidden below by default */
  transition: transform 0.1s ease;
}

/* Active slide - visible in viewport */
.slide.active { 
  transform: translateY(0); 
}

/* Slide 1 - Purple gradient background */
.slide:nth-child(1) {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Slide 2 - Pink/red gradient background */
.slide:nth-child(2) {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* Slide 3 - Blue gradient background */
.slide:nth-child(3) {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* ========================================
   FOOTER SECTION STYLES
   Black footer with three columns: services menu, map, navigation
   ======================================== */

/* Footer container - full viewport height with black background */
.footer-section {
  height: 100vh;
  background: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

/* Footer content wrapper - three column flexbox layout */
.footer-content {
  display: flex;
  width: 100%;
  max-width: 1600px;
  gap: 40px;
  align-items: flex-start;
  padding-top: 60px;
}

/* Left and right footer columns */
.footer-left,
.footer-right {
  flex: 1;
  color: white;
}

/* Footer menu heading with clickable dropdown */
.footer-menu h3 {
  font-size: 1.6em;
  margin-bottom: 25px;
  font-weight: 300;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

/* Dropdown arrow icon - rotates when expanded/collapsed */
.footer-menu h3 .dropdown-arrow {
  font-size: 0.6em;
  margin-left: 10px;
  display: inline-block;
  transform: rotate(0deg);
  transition: transform 0.3s ease;
}

/* Collapsed state - arrow points down */
.footer-menu h3.collapsed .dropdown-arrow {
  transform: rotate(180deg);
}

/* Submenu container - expands/collapses with max-height transition */
.footer-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

/* Submenu link sizing */
.footer-submenu .footer-menu-list a {
  font-size: 1.2em;
}

/* Expanded submenu state */
.footer-submenu.expanded {
  max-height: 300px;
}

/* Footer menu list styling */
.footer-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Footer menu list item spacing */
.footer-menu-list li {
  margin-bottom: 25px;
}

/* Footer menu links styling with hover effect */
.footer-menu-list a {
  color: white;
  text-decoration: none;
  font-size: 1.6em;
  font-weight: 300;
  transition: opacity 0.3s ease;
}

/* Footer link hover state */
.footer-menu-list a:hover {
  opacity: 0.7;
}

/* Footer navigation grid - two column layout */
.footer-nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 60px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Footer nav grid item */
.footer-nav-grid li {
  margin: 0;
}

/* Footer nav grid links */
.footer-nav-grid a {
  color: white;
  text-decoration: none;
  font-size: 1.4em;
  font-weight: 300;
  transition: opacity 0.3s ease;
}

/* Footer nav grid link hover */
.footer-nav-grid a:hover {
  opacity: 0.7;
}

/* Google Maps iframe container in footer center */
.footer-map {
  flex: 1.2;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  margin-top: 60px;
}

/* Google Maps iframe styling */
.footer-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Contact button in footer */
.contact-button {
  display: inline-block;
  margin-top: 30px;
  padding: 15px 50px;
  border: 2px solid white;
  color: white;
  text-decoration: none;
  font-size: 1.5em;
  border-radius: 5px;
  transition: background 0.3s ease, color 0.3s ease;
}

/* Contact button hover state */
.contact-button:hover {
  background: white;
  color: black;
}

/* ========================================
   CONTACT FORM SECTION
   Two-column layout with contact info and form
   ======================================== */

/* Contact form section container - light gray background */
.contact-form-section {
  background-color: #f5f5f5;
  padding: 80px 20px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Contact form content wrapper - two column layout */
.contact-form-container {
  max-width: 1400px;
  width: 100%;
  display: flex;
  gap: 80px;
  align-items: flex-start;
}

/* Left column - contact information */
.contact-info {
  flex: 1;
  padding: 40px;
}

/* Contact info main heading */
.contact-info h2 {
  font-size: 3.5em;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 30px;
}

/* Contact info subtitle */
.contact-subtitle {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
}

/* Contact info description text */
.contact-description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 40px;
  color: #333;
}

/* Contact address, phone, and email styling */
.contact-address, 
.contact-phone, 
.contact-email {
  font-size: 1.3em;
  font-weight: bold;
  margin: 10px 0;
}

/* Right column - contact form with white background */
.contact-form {
  flex: 1;
  background: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Form row - two inputs side by side */
.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

/* Form group - label and input container */
.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Form groups within rows take equal width */
.form-row .form-group {
  flex: 1;
}

/* Form labels - bold with spacing below */
.form-group label {
  font-size: 1.1em;
  font-weight: bold;
  margin-bottom: 8px;
  color: #000;
}

/* Required field asterisk - red color */
.required {
  color: #DC143C;
}

/* Form inputs, selects, and textareas styling */
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1em;
  font-family: Arial, sans-serif;
}

/* Form input focus state - blue border */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1E3A8A;
}

/* Textarea - allow vertical resize only */
.form-group textarea {
  resize: vertical;
}

/* Form submit row - reCAPTCHA and submit button */
.form-submit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
}

/* reCAPTCHA placeholder - checkbox with label */
.recaptcha-placeholder {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* reCAPTCHA checkbox styling */
.recaptcha-placeholder input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

/* reCAPTCHA label */
.recaptcha-placeholder label {
  font-size: 1em;
  cursor: pointer;
}

/* Submit button - red background with white text */
.submit-btn {
  background-color: #DC143C;
  color: white;
  padding: 15px 60px;
  border: none;
  border-radius: 5px;
  font-size: 1.3em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* Submit button hover state - darker red */
.submit-btn:hover {
  background-color: #a00;
}

/* ========================================
   WHO IS FREEDOM ROOFING SECTION
   Company introduction section with three-column layout
   ======================================== */

/* Who we are section container - white background */
.who-we-are-section {
  background-color: #ffffff;
  padding: 100px 20px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Content wrapper for who we are section */
.who-we-are-container {
  max-width: 1200px;
  width: 100%;
  text-align: center;
}

/* Main heading for who we are section */
.who-we-are-container h2 {
  font-size: 3em;
  font-weight: 900;
  margin-bottom: 30px;
  color: #1E3A8A;
}

/* Intro paragraph below heading */
.who-intro {
  font-size: 1.2em;
  line-height: 1.8;
  margin-bottom: 60px;
  color: #333;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Three-column content layout */
.who-content {
  display: flex;
  gap: 40px;
  margin-bottom: 50px;
  text-align: left;
}

/* Individual column styling */
.who-column {
  flex: 1;
  padding: 30px;
  background: #f9f9f9;
  border-radius: 10px;
  border-left: 5px solid #DC143C;
}

/* Column heading */
.who-column h3 {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #DC143C;
}

/* Column paragraph text */
.who-column p {
  font-size: 1.1em;
  line-height: 1.6;
  color: #555;
}

/* Learn More button */
.learn-more-btn {
  display: inline-block;
  padding: 18px 60px;
  background-color: #1E3A8A;
  color: white;
  text-decoration: none;
  font-size: 1.3em;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Learn More button hover state */
.learn-more-btn:hover {
  background-color: #DC143C;
  transform: translateY(-3px);
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE STYLES
   Stack contact form columns on smaller screens
   ======================================== */

@media (max-width: 1024px) {
  /* Stack contact form columns vertically */
  .contact-form-container {
    flex-direction: column;
    gap: 40px;
  }

  /* Stack form rows vertically */
  .form-row {
    flex-direction: column;
  }

  /* Stack who we are columns vertically */
  .who-content {
    flex-direction: column;
  }
  
  /* Footer mobile styles */
  .footer-section {
    height: auto;
    min-height: 100vh;
    padding: 40px 20px;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 40px;
    padding-top: 20px;
  }
  
  .footer-map {
    width: 100%;
    height: 300px;
    margin-top: 0;
    order: -1; /* Move map to top on mobile */
  }
  
  .footer-nav-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .footer-menu h3 {
    font-size: 1.4em;
  }
  
  .footer-menu-list a {
    font-size: 1.3em;
  }
  
  .footer-nav-grid a {
    font-size: 1.2em;
  }
  
  .contact-button {
    width: 100%;
    text-align: center;
    padding: 12px 30px;
    font-size: 1.3em;
  }
}

@media (max-width: 768px) {
  /* Additional mobile adjustments */
  .footer-menu h3 {
    font-size: 1.2em;
    margin-bottom: 15px;
  }
  
  .footer-menu-list a {
    font-size: 1.1em;
  }
  
  .footer-menu-list li {
    margin-bottom: 15px;
  }
  
  .footer-nav-grid a {
    font-size: 1em;
  }
  
  .footer-map {
    height: 250px;
  }
}
