/*Global Stylesheet*/

/* Reset */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    user-select: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    text-align: center;
}

h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
    text-align: center;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
    display: block;
}

:root {
    --accent-color: #a52b22;
    --text-color: #000;
    --bright-text-color: #fff;
    --background-color: #fff;
    --font-family: Arial, sans-serif;
  }

/* Body */

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
    font-size: 16px;
  }

/* Header */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    position: relative;
    width: 100%;
    justify-self: center;
    z-index: 3;
    border-radius: 10px;
  }

  header a{
    color: var(--text-color);
    text-decoration: none;
  }
  
  .logo {
    font-weight: bold;
    color: #a52b22;
  }
  
  .logo img{
    height: 100px;
    padding: 1rem;
  }
  
  /* Desktop nav */
  .nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 2rem;
  }
  
  .nav-menu li {
    margin-left: 1.5rem;
  }
  
  .nav-menu li a {
    text-decoration: none;
    color: #000;
    font-weight: bold;
    font-size: 1.2rem;
  }

  .contact-info-container {
    color: var(--text-color);
    font-family: var(--font-family);
    display: flex;
    flex-direction: column;
    font-size: 1.2rem;
    text-align: center;
    width: auto;
  }

  .contact-info-container div {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    width: 100%;
  }

  .contact-info-container img {
    height: 25px;
    margin: 5px 10px;
  }
  
  /* Ensure the nav-toggle container is relatively positioned and has a fixed size */
  .nav-toggle {
    display: none; /* Hidden by default on desktop */
    position: relative;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
  }
  
  /* Base styles for the nav toggle icons, stacking them in the center */
  .nav-toggle .icon {
    position: absolute;
    top: 50%;
    left: 50%;
    /* Combine centering with rotation animations */
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease, opacity 0.3s ease;
    color: var(--accent-color);
  }
  
  /* Initially show the open-icon and hide the close-icon */
  .nav-toggle .open-icon {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg);
  }
  
  .nav-toggle .close-icon {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-90deg);
  }
  
  /* When active, hide the open icon and show the close icon */
  .nav-toggle.active .open-icon {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(90deg);
  }
  
  .nav-toggle.active .close-icon {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg);
  }

  .mobile-contact-info-container {
    display: none;
  }
  
  /* Mobile styles: show nav toggle on mobile view */
  @media (max-width: 1200px) {

    header {
        width: 100%;
        border-radius: 0;
    }

    .contact-info-container {
        display: none;
    }

    .mobile-contact-info-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 10px;
        color: var(--text-color);
        border-top: 1px solid #ccc;
    }

    .mobile-contact-info-container div {
        display: flex;
        align-items: center;
        padding: 5px 10px;
        width: 50%;
    }

    .mobile-contact-info-container img {
        height: 25px;
        margin: 5px 10px;
    }

    .nav-toggle {
      display: block;
      font-size: 3rem;
      margin-right: 1rem;
    }
    
    /* (Your existing mobile nav styles remain unchanged below) */
    .nav {
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: #fff;
      overflow: hidden;
      max-height: 0;
      transition: max-height 0.3s ease-out;
      z-index: 1000;
    }
    

    .nav.open {
      max-height: 100vh; /* Adjust based on content */
      transition: max-height 0.3s ease-in;
    }
    
    .nav-menu {
      flex-direction: column;
      background: #fff;
    }
    
    .nav-menu li {
      margin: 0;
      text-align: center;

    }
    
    .nav-menu li a {
      display: block;
      padding: 1rem;
      color: #000;
      text-decoration: none;
    }
  }

  /* Default fade-in state */
.fade-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
  }
  
  /* When visible, fade in smoothly */
  .fade-section.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* If JavaScript is disabled, ensure sections are visible */
  .no-js .fade-section {
    opacity: 1;
    transform: none;
    transition: none;
  }
  
  /* Global Hero Styles */

  .hero {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column; /* Keeps header and hero content stacked */
    justify-content: space-between; /* Ensures spacing between header & content */
    align-items: center;
    text-align: center;
    padding: 4rem 2rem;
    box-sizing: border-box;
    overflow: hidden;
}

#header-container {
  width: 80%;
  max-width: 1200px; /* Ensures it doesn't get too wide */
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%); /* Centers it horizontally */
  z-index: 3;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Overlay for text readability */
    z-index: 1;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--bright-text-color);
    z-index: 2;
    padding: 2rem;
    width: 90%;
    max-width: 800px;
    height: 100vh;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  max-width: 600px;
}

.hero-content a {
  width: 180px;
  font-size: 1.2rem;
  margin-top: 25px;
}

@media screen and (max-width: 1200px) {
  .hero {
      height: auto;
      padding-bottom: 6rem; /* optional extra breathing room for button */
  }


  .hero-content {
    min-height: 100svh; /* replaces height: 100vh */
    height: auto;       /* lets content expand if needed */
    box-sizing: border-box;
}


  #header-container {
    top: 0;
    width: 100%; /* Full width on mobile */
    padding: 0 1rem; /* Optional: Adds slight padding to avoid edge touching */
}
}

/* Footer Styles */
.footer {
  background-color: var(--accent-color);
  color: var(--bright-text-color);
  padding: 2rem 1rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

/* Social Media & Contact Section */
.footer-top {
  flex: 1 1 100%;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social img {
  height: 25px;
}

.footer-contact img {
  height: 25px;
  margin: 0 10px;
}

.footer-social a {
  color: var(--bright-text-color);
  text-decoration: none;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.footer-phone-container, .footer-email-container {
  display: flex;
  margin: 10px;
}

.footer-contact p {
  margin: 0;
}

.footer-contact a {
  color: var(--bright-text-color);
  text-decoration: none;
}

/* Footer Navigation */
.footer-nav {
  flex: 1 1 100%;
  text-align: center;
  margin-bottom: 1rem;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  gap: 1.5rem;
}

.footer-nav li a {
  color: var(--bright-text-color);
  text-decoration: none;
}

/* Footer Bottom Section */
.footer-bottom {
  flex: 1 1 100%;
  text-align: center;
  font-size: 0.9rem;
}

.footer-bottom p {
  margin: 0;
}

.footer a{
  color:var(--bright-text-color);
}

@media screen and (max-width: 767px){
  .footer-social, .footer-contact {
    text-align: center;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  

  .footer-contact img {
    height: 20px;
  }
}
