
/* Import Inter font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;600;700&display=swap');

/* Midwest Deck Builders - Natural Wood Tone Styling */
:root {
  --primary-wood: #8B4513;
  --secondary-wood: #D2B48C;
  --accent-wood: #A0522D;
  --dark-wood: #654321;
  --light-wood: #F5DEB3;
  --charcoal: #2F2F2F;
  --white: #FFFFFF;
  --gray-light: #F8F8F8;
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-hover: rgba(0, 0, 0, 0.2);
}

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

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

/* Typography - All headings use Inter Medium 500 */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 500;
  line-height: 1.3;
  color: var(--charcoal);
}

/* Body text uses Inter Regular 400 for readability */
p, li, span, div, a, label, input, textarea, select, button {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
}

/* Header */
header {
  background: linear-gradient(135deg, var(--primary-wood) 0%, var(--dark-wood) 100%);
  color: var(--white);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px var(--shadow);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo img {
  height: 50px;
  width: auto;
}

.contact-info {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-weight: 600;
}

.contact-info a {
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: var(--secondary-wood);
}

/* Navigation */
nav {
  background: var(--dark-wood);
  padding: 0;
}

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
}

.nav-menu {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav-menu::-webkit-scrollbar {
  display: none;
}

.nav-menu li {
  margin: 0;
  flex-shrink: 0;
}

.nav-menu a {
  display: block;
  padding: 1rem 1rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  font-size: 0.95rem;
}

.nav-menu a:hover,
.nav-menu a.active {
  background: var(--primary-wood);
  border-bottom-color: var(--secondary-wood);
}

/* Dropdown for Services */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a {
  cursor: pointer;
}

.nav-dropdown > a::after {
  content: ' ▼';
  font-size: 0.7rem;
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.nav-dropdown.active > a::after {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--dark-wood);
  min-width: 200px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  border-radius: 0 0 8px 8px;
  display: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.nav-dropdown.active .nav-dropdown-menu {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-dropdown-menu a:hover {
  background: var(--primary-wood);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../images/completed-deck.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}

.hero-content {
  max-width: 800px;
  padding: 2rem;
  background: rgba(0,0,0,0.3);
  border-radius: 10px;
  backdrop-filter: blur(5px);
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: #FFFFFF !important;
  text-shadow: 3px 3px 6px rgba(0,0,0,1), 1px 1px 2px rgba(0,0,0,1);
  font-weight: 600 !important;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 15px 30px;
  background: var(--primary-wood);
  color: var(--white);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-wood);
  cursor: pointer;
}

.btn:hover {
  background: var(--accent-wood);
  border-color: var(--accent-wood);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

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

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

/* Main Content */
main {
  min-height: calc(100vh - 300px);
}

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

.section {
  padding: 4rem 0;
}

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

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

.section-header h2 {
  font-size: 2.5rem;
  color: var(--dark-wood);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.2rem;
  color: var(--charcoal);
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 2rem;
}

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

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

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

/* Cards */
.card {
  background: var(--white);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 5px 15px var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.1);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow-hover);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.card-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-wood);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
  filter: brightness(1.1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.card h3 {
  color: var(--dark-wood);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.card p {
  color: var(--charcoal);
  opacity: 0.9;
}

/* Image Containers */
.image-container {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: var(--gray-light);
  aspect-ratio: 16/9;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.image-container:hover img {
  transform: scale(1.05);
}

/* Gallery Grid */
/* Gallery Filter Buttons */
.gallery-filter {
  border-radius: 25px !important;
  padding: 0.75rem 1.5rem !important;
  margin: 0.25rem !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
}

.gallery-filter.active {
  background: var(--primary-wood) !important;
  border-color: var(--primary-wood) !important;
  color: var(--white) !important;
  border-radius: 25px !important;
}

.gallery-filter:hover {
  border-radius: 25px !important;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow);
  transition: all 0.3s ease;
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px var(--shadow-hover);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
  color: var(--white);
  padding: 3rem 1rem 1rem;
}

.gallery-caption h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
  color: var(--white);
}

/* Hide gallery items by default for filtering */
.gallery-item {
  display: block;
}

.gallery-item.hidden {
  display: none;
}

/* Testimonials */
.testimonial {
  background: var(--light-wood);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  position: relative;
  border-left: 5px solid var(--primary-wood);
}

.testimonial::before {
  content: '"';
  font-size: 4rem;
  color: var(--primary-wood);
  position: absolute;
  top: -10px;
  left: 20px;
  font-family: Georgia, serif;
}

.testimonial p {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--charcoal);
}

.testimonial-author {
  font-weight: 600;
  color: var(--dark-wood);
}

/* Features Lists */
.features-list {
  list-style: none;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.features-list li:last-child {
  border-bottom: none;
}

.features-list .check {
  width: 20px;
  height: 20px;
  background: var(--primary-wood);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.8rem;
}

/* Contact Form */
.contact-form {
  background: var(--gray-light);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 5px 15px var(--shadow);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--dark-wood);
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid rgba(0,0,0,0.1);
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  background: var(--white);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-wood);
  box-shadow: 0 0 5px rgba(139, 69, 19, 0.3);
}

/* FAQ */
.faq-item {
  background: var(--white);
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px var(--shadow);
  overflow: hidden;
}

.faq-question {
  background: var(--light-wood);
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--dark-wood);
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: var(--secondary-wood);
}

.faq-answer {
  padding: 1.5rem;
  background: var(--white);
  display: none;
}

.faq-answer.active {
  display: block;
}

/* Footer */
footer {
  background: var(--dark-wood);
  color: var(--white);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h3 {
  color: var(--secondary-wood);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.footer-section p,
.footer-section li {
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.footer-section ul {
  list-style: none;
}

.footer-section a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--secondary-wood);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  .contact-info {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  
  .menu-toggle {
    display: block;
    align-self: flex-end;
  }
  
  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-menu a {
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .container {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 400px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .btn {
    padding: 12px 20px;
    font-size: 1rem;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }

.highlight {
  background: linear-gradient(120deg, var(--secondary-wood) 0%, var(--secondary-wood) 100%);
  background-repeat: no-repeat;
  background-size: 100% 30%;
  background-position: 0 85%;
  padding: 2px 0;
}

/* ===== GET ESTIMATE POPUP MODAL STYLES ===== */

/* Floating Get Estimate Button */
.get-estimate-btn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 9999;
    background: linear-gradient(135deg, var(--primary-wood) 0%, var(--dark-wood) 100%);
    color: var(--white);
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(139, 69, 19, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.get-estimate-btn:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.4);
    background: linear-gradient(135deg, var(--accent-wood) 0%, var(--primary-wood) 100%);
}

.get-estimate-btn:active {
    transform: scale(0.98) translateY(0px);
}

/* Get Estimate Icon */
.get-estimate-btn::before {
    content: "📋";
    font-size: 16px;
    margin-right: 4px;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* Modal Container */
.modal-container {
    background: var(--white);
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(50px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

/* Modal Header */
.modal-header {
    background: linear-gradient(135deg, var(--primary-wood) 0%, var(--dark-wood) 100%);
    color: var(--white);
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 22px;
    margin: 0;
    color: var(--white);
}

.modal-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

/* Modal Body */
.modal-body {
    padding: 0;
    background: var(--white);
}

.modal-body iframe {
    width: 100%;
    height: 600px;
    border: none;
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .get-estimate-btn {
        bottom: 20px;
        right: 15px;
        padding: 12px 20px;
        font-size: 13px;
    }
    
    .modal-container {
        width: 95%;
        max-height: 95vh;
        margin: 10px;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-header h2 {
        font-size: 18px;
    }
    
    .modal-body iframe {
        height: 500px;
    }
}

@media (max-width: 480px) {
    .get-estimate-btn {
        padding: 10px 16px;
        font-size: 12px;
        bottom: 15px;
        right: 10px;
    }
    
    .modal-header h2 {
        font-size: 16px;
    }
    
    .modal-body iframe {
        height: 450px;
    }
}
