/* ========================================
   Quinto's Quintessential Lawn Care
   Flat / Matte Design System
   ======================================== */

:root {
  --green-900: #1a2e1a;
  --green-800: #2d4a2d;
  --green-700: #3d6b3d;
  --green-600: #4a7c4a;
  --green-500: #5a8f5a;
  --green-100: #e8f0e8;
  --green-50: #f4f8f4;

  --sand-100: #f5f1eb;
  --sand-200: #e8e0d4;
  --sand-300: #d4c9b8;

  --charcoal: #2c2c2c;
  --dark: #1a1a1a;
  --gray-700: #444;
  --gray-500: #717171;
  --gray-300: #c4c4c4;
  --gray-100: #f0f0f0;
  --white: #ffffff;

  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;

  --max-width: 1200px;
  --section-pad: 6rem 0;
  --radius: 4px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
}

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--section-pad);
}

.section__label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--green-600);
  margin-bottom: 0.75rem;
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  text-align: center;
}

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

.btn--primary:hover {
  background: var(--green-800);
  border-color: var(--green-800);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.btn--full {
  width: 100%;
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

.nav--scrolled {
  background: var(--white);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo-img {
  height: 48px;
  width: auto;
  display: block;
}

.footer__logo-img {
  height: 60px;
  width: auto;
  display: block;
  margin-bottom: 0.5rem;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition);
}

.nav--scrolled .nav__links a {
  color: var(--gray-700);
}

.nav__links a:hover {
  color: var(--white);
}

.nav--scrolled .nav__links a:hover {
  color: var(--green-700);
}

.nav__cta {
  padding: 0.5rem 1.25rem;
  background: var(--green-700);
  color: var(--white) !important;
  border-radius: var(--radius);
}

.nav__cta:hover {
  background: var(--green-800);
  color: var(--white) !important;
}

.nav__close {
  display: none;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: background var(--transition), transform var(--transition);
}

.nav--scrolled .nav__toggle span {
  background: var(--charcoal);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__slideshow {
  position: absolute;
  inset: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
  /* Placeholder color until real images are added */
  background-color: var(--green-800);
}

.hero__slide.active {
  opacity: 1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 26, 26, 0.4) 0%,
    rgba(26, 26, 26, 0.55) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 0 1.5rem;
}

.hero__tag {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1.25rem;
  opacity: 0.8;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero__tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.05em;
  opacity: 0.8;
  margin-bottom: 1rem;
}

.hero__sub {
  font-size: 1.15rem;
  font-weight: 400;
  opacity: 0.9;
  margin-bottom: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.hero__actions-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  width: 100%;
  max-width: 480px;
}

.hero__actions-row .btn {
  flex: 1;
}

.btn--outline-frosted {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn--outline-frosted:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: var(--white);
}

.hero__indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

.hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), border-color var(--transition);
}

.hero__dot.active {
  background: var(--white);
  border-color: var(--white);
}

/* ---- Trust Bar ---- */
.trust-bar {
  background: var(--green-900);
  color: var(--white);
  padding: 1.25rem 0;
}

.trust-bar__inner {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.trust-bar__item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.9;
}

/* ---- About ---- */
.about {
  background: var(--white);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about__image {
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--sand-200);
}

.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sand-200);
  color: var(--gray-500);
  font-size: 0.9rem;
}

.about__text p {
  color: var(--gray-700);
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.7;
}

.about__text p:last-child {
  margin-bottom: 0;
}

/* ---- Services ---- */
.services {
  background: var(--green-50);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  transition: border-color var(--transition);
}

.service-card:hover {
  border-color: var(--green-500);
}

.service-card__icon {
  color: var(--green-700);
  margin-bottom: 1rem;
}

.service-card h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ---- Gallery ---- */
.gallery {
  background: var(--white);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  grid-auto-flow: dense;
  gap: 0.75rem;
}

.gallery__item {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--sand-100);
  display: block;
  cursor: pointer;
}

/* Landscape photos: span 2 cols, 1 row */
.gallery__item--landscape {
  grid-column: span 2;
  grid-row: span 1;
}

/* Portrait photos: span 1 col, 2 rows */
.gallery__item--portrait {
  grid-column: span 1;
  grid-row: span 2;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery__item:hover img {
  transform: scale(1.03);
}

/* ---- Service Area ---- */
.area {
  background: var(--sand-100);
}

.area__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.area__list {
  list-style: none;
  margin-bottom: 1rem;
}

.area__list li {
  font-size: 1.05rem;
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--sand-200);
  color: var(--dark);
}

.area__note {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-top: 0.5rem;
}

.area__details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.area__detail h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-700);
  margin-bottom: 0.35rem;
}

.area__detail p {
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.5;
}

/* ---- Contact ---- */
.contact {
  background: var(--green-900);
  color: var(--white);
}

.contact .section__label {
  color: var(--green-500);
}

.contact .section__title {
  color: var(--white);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: start;
}

.contact__info p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.contact__methods {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact__method {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
  opacity: 0.9;
  transition: opacity var(--transition);
}

.contact__method:hover {
  opacity: 1;
}

/* Form */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.form__group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form__group label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
}

.form__group input,
.form__group select,
.form__group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--transition), background var(--transition);
}

.form__group input::placeholder,
.form__group textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  border-color: var(--green-500);
  background: rgba(255, 255, 255, 0.12);
}

.form__group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='rgba(255,255,255,0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form__group select option {
  background: var(--green-900);
  color: var(--white);
}

.contact__form .btn--primary {
  margin-top: 0.5rem;
  padding: 1rem;
  font-size: 1rem;
}

/* ---- Footer ---- */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 3rem 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
}


.footer__brand p {
  font-size: 0.85rem;
  line-height: 1.5;
}

.footer__copy {
  margin-top: 1rem;
  font-size: 0.8rem;
  opacity: 0.5;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__links h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.footer__links a,
.footer__links span {
  font-size: 0.85rem;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--white);
}

/* ---- Gallery Page ---- */
.gallery-hero {
  padding: 8rem 0 3rem;
  background: var(--green-900);
  color: var(--white);
}

.gallery-hero .section__label {
  color: var(--green-500);
}

.gallery-hero .section__title {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.gallery-hero__sub {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
}

.gallery-section {
  border-bottom: 1px solid var(--gray-100);
}

.gallery-section--alt {
  background: var(--green-50);
}

.gallery-section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.gallery-section__desc {
  font-size: 1rem;
  color: var(--gray-500);
  max-width: 700px;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.gallery-page__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-page__item {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sand-100);
  cursor: pointer;
}

.gallery-page__item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-page__item:hover img {
  transform: scale(1.03);
}

.gallery-page__item--featured {
  position: relative;
}

.gallery-page__caption {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--gray-700);
  background: var(--sand-100);
  line-height: 1.5;
  border-top: 2px solid var(--green-600);
}

.gallery__cta {
  text-align: center;
  margin-top: 2.5rem;
}

.gallery-cta {
  background: var(--green-900);
  color: var(--white);
  padding: 4rem 0;
}

.gallery-cta__inner {
  text-align: center;
}

.gallery-cta .section__title {
  color: var(--white);
}

.gallery-cta p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.nav__link--active {
  color: var(--green-700) !important;
}

/* ---- Lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox--open {
  opacity: 1;
  visibility: visible;
}

.lightbox__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox__caption {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;
  max-width: 700px;
  padding: 0 1rem;
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 1001;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.lightbox__close:hover {
  opacity: 1;
}

.lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--white);
  font-size: 3.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.5rem;
  opacity: 0.6;
  transition: opacity var(--transition);
  z-index: 1001;
}

.lightbox__arrow:hover {
  opacity: 1;
}

.lightbox__arrow--prev {
  left: 1rem;
}

.lightbox__arrow--next {
  right: 1rem;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about__image {
    aspect-ratio: 16/9;
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 180px;
  }

  .gallery-page__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-page__item img {
    height: 240px;
  }

  .area__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  :root {
    --section-pad: 4rem 0;
  }

  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: right var(--transition);
  }

  .nav__links.open {
    right: 0;
  }

  .nav__close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: var(--charcoal);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
  }

  .nav__links a {
    color: var(--charcoal) !important;
    font-size: 1.05rem;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__close {
    display: block;
  }

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

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }

  .gallery__item--landscape {
    grid-column: span 2;
  }

  .gallery-page__grid {
    grid-template-columns: 1fr;
  }

  .gallery-page__item img {
    height: 220px;
  }

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

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .lightbox__arrow {
    font-size: 2.5rem;
  }

  .lightbox__arrow--prev {
    left: 0.5rem;
  }

  .lightbox__arrow--next {
    right: 0.5rem;
  }

  .trust-bar__inner {
    gap: 1.25rem;
  }

  .trust-bar__item {
    font-size: 0.78rem;
    flex: 0 0 calc(50% - 1rem);
    justify-content: flex-start;
    text-align: left;
  }

  .hero__actions-row {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .hero__actions-row .btn {
    width: 100%;
    max-width: 280px;
  }
}
