﻿/* ==========================================================================
   GREENWOOD CLEANING SERVICES LLC - MASTER STYLESHEET
   Columbia & Howard County, MD
   ========================================================================== */

/* --- VARIABLES GLOBALES --- */
:root {
  --primary-green: #28a745;
  --dark-green: #1e7e34;
  --accent-orange: #F57F17;
  --dark-text: #333333;
  --light-bg: #f8f9fa;
  --white: #ffffff;
  --shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

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

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--dark-text);
  line-height: 1.6;
  background-color: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark-text);
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s ease;
}

ul {
  list-style: none;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

/* --- ENVOLTORIO FIJO (HEADER) --- */
.fixed-header-wrapper {
  position: sticky;
  top: 0;
  z-index: 1001;
  width: 100%;
}

/* --- BARRA SUPERIOR (TOP BAR) --- */
.top-bar {
  background-color: var(--dark-green);
  color: var(--white);
  padding: 8px 0;
  font-size: 0.9rem;
}

.top-bar-content {
  display: flex;
  justify-content: flex-end;
  gap: 25px;
}

.topbar-link {
  color: var(--white) !important;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-link i {
  color: #FFD54F;
}

.topbar-link:hover {
  color: #FFD54F !important;
}

/* --- NAVEGACION --- */
header {
  background-color: var(--white);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  min-height: 90px;
}

.logo-img {
  max-height: 85px;
  width: auto;
  transition: transform 0.3s;
}

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

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  font-weight: 700;
  font-size: 0.95rem;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-green);
}

/* BOTON NARANJA DE COTIZACION */
.btn-cta {
  background-color: var(--accent-orange);
  color: var(--white) !important;
  padding: 10px 25px;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  box-shadow: 0 4px 10px rgba(245, 127, 23, 0.3);
  display: inline-block;
}

.btn-cta:hover {
  background-color: #E65100;
  transform: translateY(-2px);
}

/* --- HERO SECTION --- */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), url('kitchen-bg.png') no-repeat center center / cover;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 60px 20px;
}

.hero-text h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 20px;
  color: var(--white);
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.8);
}

.hero-brand {
  color: var(--white) !important;
  font-weight: 800;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.9);
}

.hero-text p {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  margin-bottom: 35px;
  max-width: 700px;
  margin-inline: auto;
  font-weight: 600;
  color: #f3f4f6;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8);
}

/* BOTON HERO VERDE */
.btn-hero {
  background: var(--primary-green);
  color: var(--white) !important;
  padding: 18px 45px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  text-transform: uppercase;
  display: inline-block;
}

.btn-hero:hover {
  background: var(--dark-green);
  transform: translateY(-3px);
}

/* --- SECCIONES GENERALES --- */
section {
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}

.bg-light {
  background-color: var(--light-bg);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}

.section-header h2 {
  font-size: 2.6rem;
  color: var(--dark-text);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary-green);
  margin: 15px auto 0;
  border-radius: 2px;
}

.section-header p {
  font-size: 1.1rem;
  color: #666;
  max-width: 650px;
  margin: 0 auto;
}

.brand-highlight {
  color: var(--primary-green);
  font-weight: 800;
}

/* --- TARJETAS (GRIDS) --- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 35px;
  position: relative;
  z-index: 2;
}

.card {
  background: var(--white);
  padding: 45px 30px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: 0.3s ease;
  border-bottom: 4px solid transparent;
  text-align: center;
}

.card:hover {
  transform: translateY(-8px);
  border-bottom: 4px solid var(--primary-green);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.icon-box {
  font-size: 2.8rem;
  color: var(--primary-green);
  margin-bottom: 20px;
}

.card h3 {
  margin-bottom: 15px;
  font-size: 1.35rem;
}

.card p {
  color: #666;
  margin-bottom: 20px;
  font-size: 0.98rem;
}

.link-more {
  color: var(--primary-green);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.link-more:hover {
  text-decoration: underline;
}

/* --- LISTA DE AREAS --- */
.areas-section {
  background-color: #e8f5e9;
  padding: 70px 0;
}

.area-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 30px;
  text-align: left;
  margin-top: 40px;
}

.area-column h3 {
  color: var(--primary-green);
  font-size: 1.15rem;
  margin-bottom: 15px;
  border-bottom: 2px solid #FFD54F;
  padding-bottom: 8px;
  display: inline-block;
}

.area-list li {
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: #555;
  display: flex;
  align-items: center;
}

.area-list li::before {
  content: '\f3c5';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  color: var(--primary-green);
  margin-right: 8px;
  font-size: 0.8rem;
}

/* --- FOOTER --- */
footer {
  background-color: #ffffff;
  color: #333333;
  padding: 80px 0 40px;
  border-top: 5px solid var(--primary-green);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 50px;
  margin-bottom: 40px;
}

.footer-logo {
  max-height: 70px;
  width: auto;
  margin-bottom: 20px;
}

footer h4 {
  color: var(--dark-green);
  margin-bottom: 20px;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 800;
}

footer ul li {
  margin-bottom: 12px;
}

footer a {
  color: #555555;
  font-weight: 600;
  transition: 0.2s;
}

footer a:hover {
  color: var(--primary-green);
}

footer i {
  color: var(--primary-green);
  margin-right: 10px;
  font-size: 1rem;
}

.copyright {
  text-align: center;
  border-top: 1px solid #eeeeee;
  padding-top: 30px;
  font-size: 0.9rem;
  color: #888888;
}

/* --- REGLAS RESPONSIVAS PARA MOVILES --- */
@media (max-width: 768px) {
  .top-bar {
    padding: 6px 0;
    font-size: 0.82rem;
  }

  .top-bar-content {
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
  }

  .navbar {
    flex-direction: column;
    padding: 12px 0;
    min-height: auto;
  }

  .logo-img {
    max-height: 60px;
    margin-bottom: 12px;
  }

  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
  }

  .nav-link {
    font-size: 0.85rem;
  }

  .btn-cta {
    margin-top: 5px;
    padding: 8px 20px;
    font-size: 0.8rem;
  }

  .hero {
    min-height: 70vh;
    padding: 40px 16px;
  }

  .btn-hero {
    width: 100%;
    padding: 14px 20px;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .area-grid-container {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  footer ul li {
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

/* ===================================================
   SLIM STICKY HEADER (Optimizado para Conversion)
   =================================================== */
.fixed-header-wrapper {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  background-color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.3s ease;
}

/* 1. Barra verde superior delgada */
.top-bar {
  padding: 4px 0 !important;
  font-size: 0.8rem !important;
}

/* 2. Barra de navegacion compacta */
.navbar {
  min-height: 58px !important;
  padding: 4px 0 !important;
}

/* 3. Logo reducido para no robar pantalla */
.logo-img {
  max-height: 46px !important;
}

/* 4. Enlaces y boton proporcionales */
.nav-link {
  font-size: 0.85rem !important;
}

.btn-cta {
  padding: 8px 18px !important;
  font-size: 0.8rem !important;
}

/* 5. Proteccion para que ninguna seccion quede tapada */
section {
  scroll-margin-top: 80px;
}

/* ==========================================================================
   SLIM STICKY HEADER & SCROLL CLEARANCE
   ========================================================================== */
.fixed-header-wrapper {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  background-color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.3s ease;
}

/* 1. Slim Top Contact Bar */
.top-bar {
  padding: 4px 0 !important;
  font-size: 0.8rem !important;
}

/* 2. Compact Navbar Container */
.navbar {
  min-height: 56px !important;
  padding: 4px 0 !important;
}

/* 3. Proportional Logo Height */
.logo-img {
  max-height: 44px !important;
}

/* 4. Streamlined Nav Links and CTA */
.nav-link {
  font-size: 0.85rem !important;
}

.btn-cta {
  padding: 8px 18px !important;
  font-size: 0.8rem !important;
}

/* 5. Scroll Clearance Margin for Anchored Sections */
section {
  scroll-margin-top: 80px;
}

/* ==========================================================================
   NAVIGATION PLACEMENT & PADDING FIX
   ========================================================================== */
.fixed-header-wrapper {
  position: relative !important;
  top: auto !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06) !important;
}

/* Ensure adequate padding for all sections */
section {
  padding: 70px 0 !important;
}

.section-header {
  margin-bottom: 50px !important;
}

/* Service Areas Card Layout */
.area-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
  margin-top: 35px;
}

.area-column {
  background: #ffffff;
  padding: 28px 22px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2f0e6;
}

.area-column h3 {
  font-size: 1.15rem;
  margin-bottom: 15px;
  border-bottom: 2px solid #28a745;
  padding-bottom: 8px;
  display: block;
}

/* ==========================================================================
   SERVICE AREAS CARDS ENHANCEMENT
   ========================================================================== */
.area-grid-container {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
  gap: 25px !important;
  margin-top: 35px !important;
}

.area-column {
  background: #ffffff !important;
  padding: 28px 22px !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
  border: 1px solid #e2f0e6 !important;
}

.area-column h3 {
  font-size: 1.15rem !important;
  margin-bottom: 15px !important;
  border-bottom: 2px solid #28a745 !important;
  padding-bottom: 8px !important;
  display: block !important;
}

/* ==========================================================================
   RESTORE ORIGINAL SERVICE AREAS LAYOUT (NO CARDS)
   ========================================================================== */
.areas-section {
  background-color: #e8f5e9 !important;
  padding: 60px 0 !important;
}

.area-grid-container {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
  gap: 30px !important;
  text-align: left !important;
  margin-top: 40px !important;
}

.area-column {
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
}

.area-column h3 {
  color: var(--primary-green) !important;
  font-size: 1.2rem !important;
  margin-bottom: 15px !important;
  border-bottom: 2px solid #FFD54F !important;
  padding-bottom: 10px !important;
  display: inline-block !important;
}

.area-list li {
  margin-bottom: 8px !important;
  font-size: 0.95rem !important;
  color: #555555 !important;
  display: flex !important;
  align-items: center !important;
}

/* ==========================================================================
   SERVICE AREAS TOP ACCENT BORDER
   ========================================================================== */
.areas-section {
  border-top: 5px solid var(--primary-green) !important;
}

/* ==========================================================================
   REVIEWS & HERO TRUST BADGES
   ========================================================================== */
.hero-subtext {
  font-size: 0.88rem !important;
  color: #e2e8f0 !important;
  margin-top: 14px !important;
  margin-bottom: 0 !important;
  font-weight: 500 !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9) !important;
}

.hero-subtext i {
  color: #22c55e;
  margin-right: 3px;
}

.reviews-section {
  padding: 80px 0;
}

.review-card {
  text-align: left !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stars {
  color: #f59e0b;
  margin-bottom: 14px;
  font-size: 1rem;
}

.review-text {
  font-style: italic;
  color: #4b5563 !important;
  font-size: 0.95rem !important;
  line-height: 1.6;
  margin-bottom: 18px !important;
}

.reviewer-name {
  font-weight: 700;
  color: var(--primary-green);
  font-size: 0.9rem;
}

/* Floating Click-to-Call Button for Mobile Devices */
.mobile-call-float {
  display: none;
}

@media (max-width: 768px) {
  .mobile-call-float {
    display: flex;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-green);
    color: #ffffff;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    z-index: 9999;
    text-decoration: none;
  }
}

/* ==========================================================================
   SERVICES PAGE STYLING & DETAIL GRIDS
   ========================================================================== */
.service-detail {
  display: flex;
  align-items: center;
  margin-bottom: 80px;
  gap: 50px;
}

.service-detail:nth-child(even) {
  flex-direction: row-reverse;
}

.service-text {
  flex: 1;
}

.service-text h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--dark-text);
}

.service-text p {
  margin-bottom: 14px;
  line-height: 1.65;
}

.service-image {
  flex: 1;
  height: 380px;
  background-color: #f0f0f0;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid #e5e7eb;
}

.service-list {
  margin-top: 20px;
  list-style: none;
}

.service-list li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  font-weight: 600;
  color: #4b5563;
  font-size: 0.96rem;
}

.service-list i {
  color: var(--primary-green);
  margin-right: 12px;
  font-size: 1.15rem;
}

.service-divider {
  border: 0;
  border-top: 1px solid #e5e7eb;
  margin: 60px 0;
}

@media (max-width: 768px) {
  .service-detail,
  .service-detail:nth-child(even) {
    flex-direction: column !important;
    gap: 30px;
    margin-bottom: 50px;
  }

  .service-image {
    width: 100%;
    height: 260px;
  }

  .service-text h2 {
    font-size: 1.6rem;
  }
}

/* ==========================================================================
   SERVICES DETAIL & CALL-TO-ACTION BUTTONS (LOCAL FIX)
   ========================================================================== */
.service-detail {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 50px !important;
  margin-bottom: 70px !important;
}

/* Zigzag inversion for alternating service rows */
.service-detail.reverse-layout {
  flex-direction: row-reverse !important;
}

.service-text {
  flex: 1 !important;
}

.service-title-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 15px !important;
  margin-bottom: 18px !important;
}

.service-title-wrap i {
  color: var(--primary-green) !important;
  font-size: 2.2rem !important;
}

.service-title-wrap h2 {
  font-size: 2rem !important;
  margin: 0 !important;
  color: var(--dark-text) !important;
}

/* Primary Green Pill Buttons for Services */
.btn-service-cta {
  display: inline-block !important;
  background-color: var(--primary-green) !important;
  color: #ffffff !important;
  padding: 12px 28px !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3) !important;
  transition: all 0.3s ease !important;
  margin-top: 15px !important;
}

.btn-service-cta:hover {
  background-color: var(--dark-green) !important;
  transform: translateY(-2px) !important;
}

@media (max-width: 850px) {
  .service-detail,
  .service-detail.reverse-layout {
    flex-direction: column !important;
    gap: 30px !important;
  }
}

/* ==========================================================================
   ABOUT PAGE SPACING & FOOTER SEPARATION
   ========================================================================== */
.values-section {
  padding: 70px 0 90px 0 !important;
  margin-bottom: 0 !important;
}

.values-grid {
  margin-bottom: 40px !important;
}

footer {
  border-top: 5px solid var(--primary-green) !important;
  margin-top: 0 !important;
  padding-top: 50px !important;
}

/* ==========================================================================
   CONTACT PAGE & ESTIMATE FORM STYLES
   ========================================================================== */
.contact-section {
  padding: 80px 0 100px 0 !important;
}

.contact-container {
  display: grid !important;
  grid-template-columns: 1fr 1.25fr !important;
  gap: 50px !important;
  background: #ffffff !important;
  padding: 50px !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
  border: 1px solid #e2f0e6 !important;
}

.contact-info-col h2,
.contact-form-col h2 {
  font-size: 1.85rem !important;
  color: var(--dark-text) !important;
  margin-bottom: 15px !important;
}

.contact-info-card {
  margin-top: 30px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 22px !important;
}

.contact-method {
  display: flex !important;
  align-items: flex-start !important;
  gap: 15px !important;
}

.contact-method-icon {
  width: 44px !important;
  height: 44px !important;
  background-color: #e8f5e9 !important;
  color: var(--primary-green) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.1rem !important;
  flex-shrink: 0 !important;
}

.contact-method-text h4 {
  margin: 0 0 4px 0 !important;
  font-size: 1.05rem !important;
  color: var(--dark-text) !important;
}

.contact-method-text p,
.contact-method-text a {
  margin: 0 !important;
  font-size: 0.95rem !important;
  color: #4b5563 !important;
  text-decoration: none !important;
}

.contact-method-text a:hover {
  color: var(--primary-green) !important;
  text-decoration: underline !important;
}

.contact-badges {
  margin-top: 35px !important;
  padding: 20px !important;
  background-color: #f8fafc !important;
  border-radius: 10px !important;
  border-left: 4px solid var(--primary-green) !important;
}

.contact-badges ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

.contact-badges li {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: #374151 !important;
}

.contact-badges li i {
  color: var(--primary-green) !important;
}

.form-group {
  margin-bottom: 20px !important;
}

.form-group label {
  display: block !important;
  margin-bottom: 8px !important;
  font-weight: 700 !important;
  font-size: 0.92rem !important;
  color: #374151 !important;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100% !important;
  padding: 14px 16px !important;
  border: 1.5px solid #d1d5db !important;
  border-radius: 8px !important;
  background: #f9fafb !important;
  font-family: inherit !important;
  font-size: 0.95rem !important;
  color: #1f2937 !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none !important;
  border-color: var(--primary-green) !important;
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.15) !important;
  background: #ffffff !important;
}

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

@media (max-width: 900px) {
  .contact-container {
    grid-template-columns: 1fr !important;
    padding: 30px 22px !important;
    gap: 40px !important;
  }
}
