/* ============================================
   Hernandez Landscape - Styles
   Matches design from provided UI images
   ============================================ */

/* CSS Variables - Color palette from design */
:root {
  --lime-green: #7cb342;
  --lime-green-hover: #8bc34a;
  --dark-green: #1b5e20;
  --forest-green: #2e7d32;
  --dark-grey: #4a4a4a;
  --medium-grey: #6b6b6b;
  --light-grey: #9e9e9e;
  --white: #ffffff;
  --overlay-dark: rgba(0, 0, 0, 0.5);
}

/* Reset & Base */
html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark-grey);
}

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

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ============================================
   1. Hero / Header Section
   Blurred garden background, centered logo & nav
   ============================================ */
/* Hero: Formal garden background with dark overlay */
.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('../assets/hero-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay-dark);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 1.5rem;
}

.logo {
  margin-bottom: 1rem;
}

.logo-img {
  width: 80px;
  height: auto;
  margin: 0 auto;
}

.company-name {
  margin: 0 0 1.5rem;
  font-weight: 700;
  line-height: 1.1;
}

.hernandez {
  display: block;
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--white);
  letter-spacing: 0.02em;
}

.landscape {
  display: block;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  color: var(--lime-green);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.main-nav {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 1.5rem 2rem;
}

.nav-link {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--white);
  text-transform: uppercase;
  padding-bottom: 0.25rem;
}

.nav-link:hover,
.nav-link.active {
  border-bottom: 2px solid var(--lime-green);
}

/* ============================================
   2. Services Icon Bar - 6 icons with labels
   ============================================ */
.services-icon-bar {
  padding: 2.5rem 1.5rem 0;
  background: var(--white);
}

.services-icon-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.service-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
}

.service-icon-circle {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.service-icon-circle svg {
  width: 40px;
  height: 40px;
  color: var(--light-grey);
}

.service-icon-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--light-grey);
  text-transform: uppercase;
  text-align: center;
}

.services-icon-bar-divider {
  margin-top: 2rem;
  height: 1px;
  background: #e0e0e0;
}

/* ============================================
   3. Premium Landscaping & Service Sections
   Two-column layout, alternating icon/text
   ============================================ */
.section {
  padding: 4rem 1.5rem;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.col-text {
  order: 1;
}

.col-icon {
  order: 2;
}

/* Alternate layout for service sections */
.service-section:nth-child(odd) .two-col .col-text {
  order: 1;
}

.service-section:nth-child(odd) .two-col .col-icon {
  order: 2;
}

.service-section:nth-child(even) .two-col .col-icon {
  order: 1;
}

.service-section:nth-child(even) .two-col .col-text {
  order: 2;
}

/* Light grey divider for Lawn Care, Landscape Installations, Irrigation System */
.section-divider {
  position: relative;
}

.section-divider::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  height: 1px;
  background: #e0e0e0;
}

.section-heading {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--dark-grey);
}

.section-body {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: var(--medium-grey);
  line-height: 1.7;
}

.service-list {
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
  font-size: 1rem;
  color: var(--medium-grey);
  line-height: 1.8;
}

.service-list li {
  position: relative;
  margin-bottom: 0.25rem;
}

.service-list li::before {
  content: "– ";
  position: absolute;
  left: -1.25rem;
  color: var(--medium-grey);
}

/* Premium icon - person watering tree */
.premium-icon {
  max-width: 280px;
  margin: 0 auto;
}

.premium-logo {
  width: 100%;
  height: auto;
}

/* Service icons - large grey silhouettes */
.service-icon {
  max-width: 200px;
  margin: 0 auto;
  color: var(--light-grey);
}

.service-icon svg {
  width: 100%;
  height: auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-primary {
  background: var(--lime-green);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--lime-green-hover);
}

.btn-dark {
  background: var(--dark-grey);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--medium-grey);
}

/* ============================================
   4 & 6. Full-Width Banner Sections
   Quality Service & Stone Services
   ============================================ */
.fullwidth-banner {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
}

/* Quality Service: Replace with lawn/pathway image when available */
.quality-service {
  max-width: 1200px;
  margin: 0 auto;
  background: linear-gradient(180deg, #3d5c3d 0%, #2d4a2d 50%, #1a3d1a 100%);
  background-size: cover;
  background-position: center;
}

/* Stone Services: Outdoor living space with stone patio and water feature */
.stone-services {
  max-width: 1200px;
  margin: 0 auto;
  background-image: url('../assets/stone-services-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay-dark);
  z-index: 1;
}

.banner-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.banner-heading {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
}

.banner-body {
  margin: 0;
  font-size: 1rem;
  color: var(--white);
  line-height: 1.7;
  opacity: 0.95;
}

/* ============================================
   7. Contact Section
   ============================================ */
.contact-section {
  padding: 4rem 1.5rem;
}

.contact-info {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  color: var(--medium-grey);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.follow-us {
  margin: 1.5rem 0 0.5rem;
  font-size: 0.95rem;
  color: var(--dark-grey);
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--light-grey);
  font-size: 1rem;
  font-weight: 600;
  transition: color 0.2s;
}

.social-icon:hover {
  color: var(--dark-grey);
}

.social-icon svg {
  width: 20px;
  height: 20px;
}

.form-input {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid #e0e0e0;
  background: #f5f5f5;
  border-radius: 4px;
}

.form-input::placeholder {
  color: var(--light-grey);
}

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

.form-select {
  cursor: pointer;
  appearance: auto;
}

.contact-form .btn {
  align-self: flex-start;
}

/* ============================================
   8. Footer
   Dark forest green background
   ============================================ */
.footer {
  background: var(--dark-green);
  padding: 3rem 1.5rem 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-logo {
  width: 60px;
  height: auto;
  margin-bottom: 0.75rem;
}

.footer-company-name {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
}

.footer-contact {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: var(--white);
  opacity: 0.9;
}

.footer-heading {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}

.footer-links li {
  font-size: 0.9rem;
  color: var(--white);
  opacity: 0.9;
  padding: 0.25rem 0;
}

.footer-links a {
  color: inherit;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--lime-green);
}

/* ============================================
   Responsive - Stack columns on smaller screens
   ============================================ */
@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .col-text,
  .col-icon {
    order: unset !important;
  }

  .col-icon {
    max-width: 200px;
    margin: 0 auto;
  }

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

  .footer-logo {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 600px) {
  .main-nav {
    gap: 1rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}
