/* =============================================
   McMullen Landscape Construction & Maintenance
   Main Stylesheet
   ============================================= */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;600;700&family=Mulish:wght@400;600;700;800&family=Poppins:wght@400;500;600&display=swap');

/* --- CSS Variables / Color Palette --- */
:root {
  --green-dark:   #305630;
  --green-light:  #94cc43;
  --orange:       #f7941e;
  --tan:          rgba(220, 211, 194, 0.5);
  --tan-solid:    #dcd3c2;
  --white:        #ffffff;
  --text-dark:    #323232;
  --text-mid:     #555555;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Mulish', sans-serif;
  font-size: 16px;
  color: var(--text-dark);
  line-height: 1.7;
  background: #fff;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--orange); }

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

ul, ol { padding-left: 1.5em; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Rubik', sans-serif;
  line-height: 1.25;
}

h1 { font-size: 2.2rem; font-weight: 700; }
h2 { font-size: 1.8rem; font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 700; }
h4 { font-family: 'Mulish', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--green-dark); }

p { margin-bottom: 1em; }

/* --- Utility --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-tan { background: var(--tan); }
.section-white { background: #fff; }

/* =============================================
   HEADER / NAVIGATION
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  padding: 0 30px;
  height: 90px;
}

.header-logo {
  flex-shrink: 0;
  margin-right: auto;
}

.header-logo img {
  height: 75px;
  width: auto;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

nav.main-nav a,
nav.main-nav .nav-dropdown > a {
  display: block;
  padding: 12px 18px;
  font-family: 'Rubik', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-dark);
  text-transform: uppercase;
  transition: color 0.2s;
}

nav.main-nav a:hover,
nav.main-nav a.active { color: var(--green-dark); }

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

.nav-dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 240px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  z-index: 100;
  border-top: 3px solid var(--green-dark);
}

.nav-dropdown .dropdown-menu a {
  padding: 10px 20px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.8rem;
}

.nav-dropdown:hover .dropdown-menu { display: block; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--green-dark);
  border-radius: 2px;
  transition: 0.3s;
}

/* =============================================
   HERO SECTIONS
   ============================================= */

/* Full-page hero (home) */
.hero-full {
  width: 100%;
  height: 450px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Service page hero banner (450px) */
.hero-banner {
  width: 100%;
  height: 450px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Hero with overlay text */
.hero-overlay {
  position: relative;
  height: 450px;
  background-size: cover;
  background-position: bottom center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(50,50,50,0.35) 0%, rgba(50,50,50,0.35) 100%);
}

.hero-overlay .hero-content { position: relative; z-index: 1; padding: 20px; }

.hero-overlay h1 {
  font-size: 3.5rem;
  font-weight: 700;
  text-shadow: 0 2px 6px rgba(0,0,0,0.3);
  margin-bottom: 10px;
}

.hero-overlay .hero-sub {
  font-family: 'Rubik', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
}

/* =============================================
   SERVICES SECTION (Home page)
   ============================================= */
.services-section {
  background: var(--tan);
  padding: 50px 20px 30px;
  box-shadow: 0 10px 105px 0 rgba(0,0,0,0.12);
}

.services-section h2 {
  text-align: center;
  color: var(--green-dark);
  letter-spacing: 1px;
  font-size: 2rem;
  margin-bottom: 8px;
}

.services-divider {
  width: 50%;
  height: 3px;
  margin: 0 auto 40px;
  background: radial-gradient(ellipse at center, var(--green-dark) 0%, transparent 100%);
  opacity: 0.4;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px 40px;
  max-width: 80%;
  margin: 0 auto;
  padding-bottom: 30px;
}

.service-card {
  display: flex;
  flex-direction: column;
}

.service-card-top {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 10px;
}

.service-card-top img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex-shrink: 0;
}

.service-card-top h3 {
  font-family: 'Rubik', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.4;
  margin-top: 5px;
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.learn-more {
  font-family: 'Rubik', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  transition: color 0.2s;
}

.learn-more::after { content: '→'; font-size: 1rem; }
.learn-more:hover { color: var(--green-dark); }

/* =============================================
   PHOTO MOSAIC (Home page)
   ============================================= */
.photo-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-rows: auto;
  gap: 6px;
  padding: 6px;
  background: #fff;
}

.photo-mosaic .mosaic-large {
  grid-column: span 2;
  grid-row: span 2;
}

.photo-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.photo-mosaic a { overflow: hidden; display: block; height: 100%; }
.photo-mosaic a:hover img { transform: scale(1.04); }

/* =============================================
   SERVICE PAGE LAYOUT
   ============================================= */

/* Service intro (icon + title + checklist) */
.service-intro {
  background: #fff;
  padding: 50px 0;
}

.service-intro-inner {
  display: flex;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  gap: 30px;
}

.service-intro-icon {
  flex: 0 0 180px;
  text-align: right;
}

.service-intro-icon img {
  width: 50%;
  margin-left: auto;
}

.service-intro-content { flex: 1; }

.service-intro-content h1 {
  color: var(--green-dark);
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.service-intro-content h3 {
  font-family: 'Mulish', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--green-dark);
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Mulish', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: color 0.2s;
}

.checklist-item img { width: 28px; height: 28px; object-fit: contain; transition: opacity 0.2s; }
.checklist-item:hover { color: var(--orange); }

/* Service detail sections */
.service-detail {
  background: var(--tan);
  padding: 25px 0;
}

.service-detail.first { padding-top: 75px; }
.service-detail.last  { padding-bottom: 75px; }

.service-detail-row {
  display: flex;
  background: #fff;
  max-width: 100%;
  align-items: center;
}

.service-detail-row .col {
  flex: 1;
  padding: 30px;
}

.service-detail-row img { width: 100%; object-fit: cover; }

.service-detail-row h1 {
  font-family: 'Rubik', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--green-light);
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.service-detail-row h4 {
  color: var(--green-dark);
  font-size: 1rem;
  margin-bottom: 8px;
  margin-top: 16px;
}

.service-detail-row h4:first-child { margin-top: 0; }

.service-detail-row p { font-size: 0.95rem; line-height: 1.8; margin-bottom: 0.5em; }

.service-detail-row ul,
.service-detail-row ol {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-dark);
}

/* =============================================
   CTA BANNER (bottom of service pages)
   ============================================= */
.cta-banner {
  background: var(--green-dark);
  padding: 20px 30px;
}

.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.cta-banner h2 {
  color: #fff;
  font-size: 1.55rem;
  font-weight: 700;
}

.cta-banner .cta-phone {
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  font-family: 'Rubik', sans-serif;
  white-space: nowrap;
}

/* =============================================
   ABOUT / CONTACT PAGE
   ============================================= */
.content-section {
  background: var(--tan);
  padding: 60px 20px;
  box-shadow: 0 10px 105px 0 rgba(0,0,0,0.12);
}

.two-col {
  display: flex;
  gap: 40px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.two-col .col { flex: 1; }
.two-col img { border-radius: 4px; }

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: 30px;
}

.contact-card {
  text-align: center;
  padding: 20px 30px 40px;
  background: transparent;
}

.contact-card .icon {
  font-size: 2rem;
  color: var(--orange);
  margin-bottom: 10px;
}

.contact-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.contact-card p, .contact-card a {
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* =============================================
   CONTACT FORM
   ============================================= */
.contact-form-section {
  background: var(--tan);
  padding: 20px 20px 40px;
}

.contact-form-wrap {
  max-width: 900px;
  margin: 0 auto;
}

.contact-form-wrap h2 {
  color: var(--green-dark);
  margin-bottom: 20px;
}

.form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.form-row input, .form-row textarea, .form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d0c8bb;
  background: #fff;
  font-family: 'Mulish', sans-serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.2s;
}

.form-row input:focus, .form-group input:focus,
.form-group textarea:focus { border-color: var(--green-dark); }

textarea { resize: vertical; min-height: 120px; }

.form-checkboxes { margin-bottom: 15px; }

.form-checkboxes label {
  font-family: 'Mulish', sans-serif;
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-bottom: 8px;
  display: block;
  font-weight: 600;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
  cursor: pointer;
}

.btn-submit {
  background: var(--green-dark);
  color: #fff;
  border: none;
  padding: 14px 40px;
  font-family: 'Rubik', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 10px;
}

.btn-submit:hover { background: var(--green-light); }

/* =============================================
   FOOTER WITH CONTACT FORM
   ============================================= */
.site-footer {
  background: var(--green-light);
  padding: 60px 30px 0;
}

.footer-inner {
  display: flex;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: flex-start;
}

.footer-brand { flex: 0 0 320px; text-align: center; }

.footer-brand img { width: 200px; margin: 0 auto 20px; }

.footer-brand h2 {
  font-family: 'Rubik', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.2;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.95rem;
  color: var(--green-dark);
  font-weight: 600;
}

.footer-divider {
  width: 1px;
  background: rgba(48,86,48,0.25);
  align-self: stretch;
}

.footer-form { flex: 1; padding-bottom: 30px; }

.footer-form h3 {
  font-family: 'Rubik', sans-serif;
  color: var(--green-dark);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.footer-form p { color: var(--green-dark); font-size: 0.95rem; margin-bottom: 18px; }

.footer-form .form-row input {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(48,86,48,0.3);
  padding: 10px 14px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-form .form-row input::placeholder { color: #888; font-size: 0.82rem; }

.footer-form textarea {
  width: 100%;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(48,86,48,0.3);
  padding: 12px 14px;
  font-size: 0.85rem;
  font-family: 'Mulish', sans-serif;
  min-height: 90px;
  resize: vertical;
  margin-bottom: 15px;
}

.footer-form .checkbox-group label { font-weight: 400; color: var(--green-dark); }

.footer-form .btn-submit {
  background: var(--green-dark);
  padding: 12px 36px;
  font-size: 0.85rem;
  letter-spacing: 2px;
  float: right;
}

.footer-form .btn-submit:hover { background: var(--text-dark); }

.footer-bottom {
  text-align: center;
  padding: 16px 20px;
  font-size: 0.82rem;
  color: var(--green-dark);
  border-top: 1px solid rgba(48,86,48,0.15);
  margin-top: 20px;
}

/* =============================================
   PROJECTS PAGE
   ============================================= */
.projects-section {
  background: var(--tan);
  padding: 50px 20px;
}

.gallery-section {
  background: #fff;
  margin-bottom: 40px;
  padding: 0 0 25px 0;
}

.gallery-section:last-child { margin-bottom: 0; }

.gallery-title {
  padding: 25px 25px 0;
  margin-bottom: 0;
  font-size: 1.5rem;
  color: var(--text-dark);
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 10px 25px 0;
}

.photo-gallery a {
  display: block;
  overflow: hidden;
  cursor: pointer;
}

.photo-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border: 3px solid #fff;
  transition: transform 0.3s ease, opacity 0.2s;
}

.photo-gallery a:hover img { transform: scale(1.05); opacity: 0.9; }

/* Lightbox */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-overlay.active { display: flex; }

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
}

/* =============================================
   HARDSCAPE ACCORDION
   ============================================= */
.accordion { border: none; }

.accordion-item { border-bottom: 2px solid #e8e2d9; }

.accordion-toggle {
  width: 100%;
  background: #fff;
  border: none;
  text-align: left;
  padding: 14px 16px;
  font-family: 'Rubik', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--green-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.accordion-toggle:hover { background: #f8f5f0; }

.accordion-toggle .arrow {
  color: #ffb400;
  font-size: 1rem;
  transition: transform 0.3s;
}

.accordion-toggle.open .arrow { transform: rotate(180deg); }

.accordion-body {
  display: none;
  padding: 16px;
  background: #fff;
  font-size: 0.9rem;
  line-height: 1.8;
}

.accordion-body.show { display: block; }

.accordion-body img.accordion-img {
  float: left;
  width: 128px;
  height: 128px;
  margin-right: 14px;
  margin-bottom: 8px;
  object-fit: cover;
}

/* =============================================
   SLIDER (Projects page preview)
   ============================================= */
.slider-wrap {
  position: relative;
  overflow: hidden;
  height: 375px;
}

.slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s ease;
}

.slide {
  display: block;
  flex: 0 0 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-decoration: none;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.7);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--green-dark);
  z-index: 5;
}

.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.filter-btn {
  display: inline-block;
  background: #fff;
  border: 2px solid var(--green-dark);
  color: var(--green-dark);
  padding: 8px 20px;
  font-family: 'Rubik', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  line-height: 1.4;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--green-dark);
  color: #fff;
  border-color: var(--green-dark);
}

/* =============================================
   ABOUT PAGE
   ============================================= */
.about-text p { font-size: 1rem; line-height: 1.85; }

/* =============================================
   APPLICATION PAGE
   ============================================= */
.application-form {
  max-width: 750px;
  margin: 0 auto;
}

.form-group { margin-bottom: 15px; }
.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); max-width: 95%; }
  .footer-inner { flex-direction: column; gap: 30px; }
  .footer-brand { flex: 0 0 auto; }
  .footer-divider { display: none; }
  .cta-banner-inner { flex-direction: column; text-align: center; gap: 12px; }
  .two-col { flex-direction: column; }
  .contact-info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  nav.main-nav { display: none; flex-direction: column; position: absolute; top: 90px; left: 0; right: 0; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.1); padding: 10px 0; }
  nav.main-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-dropdown .dropdown-menu { position: static; box-shadow: none; border-top: none; border-left: 3px solid var(--green-dark); }
  .services-grid { grid-template-columns: 1fr; max-width: 100%; }
  .hero-overlay h1 { font-size: 2.4rem; }
  .service-intro-inner { flex-direction: column; padding: 20px; }
  .service-intro-icon { text-align: center; flex: 0 0 auto; }
  .service-intro-icon img { margin: 0 auto; }
  .service-detail-row { flex-direction: column; }
  .checklist { grid-template-columns: 1fr; }
  .photo-gallery { grid-template-columns: repeat(2, 1fr); }
  .photo-mosaic { grid-template-columns: 1fr 1fr; }
  .photo-mosaic .mosaic-large { grid-column: span 2; }
  .slider-wrap { height: 250px; }
}

@media (max-width: 480px) {
  .hero-overlay h1 { font-size: 1.9rem; }
  .photo-gallery { grid-template-columns: 1fr 1fr; }
  .form-row { flex-direction: column; }
}
