/* ========================================
   Whitewater Landscaping - Styles
   ======================================== */

/* CSS Custom Properties */
:root {
  --green-900: #1a3a2a;
  --green-800: #234d38;
  --green-700: #2d6347;
  --green-600: #357a56;
  --green-500: #3d9165;
  --green-400: #52b07e;
  --green-300: #7cc9a0;
  --green-200: #b5e0c9;
  --green-100: #e0f2ea;
  --green-50: #f0f9f4;

  --neutral-900: #1a1a1a;
  --neutral-800: #2d2d2d;
  --neutral-700: #404040;
  --neutral-600: #595959;
  --neutral-500: #737373;
  --neutral-400: #a3a3a3;
  --neutral-300: #d4d4d4;
  --neutral-200: #e5e5e5;
  --neutral-100: #f5f5f5;
  --neutral-50: #fafafa;

  --white: #ffffff;
  --accent: #d4a84b;
  --accent-hover: #c09530;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --header-height: 76px;
}

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

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

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--neutral-800);
  background: var(--white);
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

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

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

/* Section */
.section {
  padding: 96px 0;
}

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

.section--dark {
  background: var(--green-900);
}

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section__tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--green-600);
  margin-bottom: 12px;
}

.section__tag--light {
  color: var(--green-300);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--neutral-900);
  line-height: 1.2;
  margin-bottom: 16px;
}

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

.section__desc {
  font-size: 1.1rem;
  color: var(--neutral-500);
  line-height: 1.7;
}

.section__desc--light {
  color: var(--green-200);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

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

.btn--primary:hover {
  background: var(--green-700);
  border-color: var(--green-700);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

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

.btn--lg {
  padding: 16px 40px;
  font-size: 1.05rem;
}

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

/* ========================================
   Header
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: transparent;
  transition: all 0.3s ease;
}

.header--scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.header--scrolled .header__link {
  color: var(--neutral-700);
}

.header--scrolled .header__link:hover {
  color: var(--green-600);
}


.header--scrolled .header__phone {
  color: var(--green-700);
  border-color: var(--green-200);
}

.header--scrolled .header__menu span {
  background: var(--neutral-800);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1001;
}

.header__logo-img {
  height: 52px;
  width: auto;
  transition: all 0.3s ease;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.3));
}

.header--scrolled .header__logo-img {
  filter: none;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__link {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  transition: color 0.25s ease;
  position: relative;
}

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

.header__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green-400);
  transition: width 0.25s ease;
}

.header__link:hover::after {
  width: 100%;
}

.header__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--white);
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-md);
  transition: all 0.25s ease;
}

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

.header__menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.header__menu span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.header__menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.header__menu.active span:nth-child(2) {
  opacity: 0;
}

.header__menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   Hero
   ======================================== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: var(--green-900);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,58,42,0.75) 0%, rgba(45,99,71,0.55) 50%, rgba(26,58,42,0.8) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 120px 0 80px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 560px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ========================================
   Service Cards
   ======================================== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all 0.3s ease;
}

.service-card:hover {
  border-color: var(--green-200);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--green-100);
  border-radius: var(--radius-md);
  color: var(--green-600);
  margin-bottom: 20px;
}

.service-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--neutral-900);
  margin-bottom: 10px;
}

.service-card__desc {
  font-size: 0.95rem;
  color: var(--neutral-500);
  line-height: 1.6;
}

/* ========================================
   About
   ======================================== */
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about__img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.about__content .section__tag {
  text-align: left;
}

.about__content .section__title {
  text-align: left;
}

.about__content p {
  color: var(--neutral-600);
  margin-bottom: 16px;
  line-height: 1.7;
}

.about__stats {
  display: flex;
  gap: 40px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--neutral-200);
}

.about__stat {
  display: flex;
  flex-direction: column;
}

.about__stat-number {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--green-700);
}

.about__stat-label {
  font-size: 0.85rem;
  color: var(--neutral-500);
  font-weight: 500;
}

/* ========================================
   Gallery
   ======================================== */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery__item {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--green-100);
}

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

.gallery__item img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

/* ========================================
   Testimonials
   ======================================== */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--neutral-200);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.testimonial-card__stars {
  display: flex;
  gap: 2px;
  color: var(--accent);
  margin-bottom: 16px;
}

.testimonial-card__text {
  font-size: 1rem;
  color: var(--neutral-700);
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic;
}

.testimonial-card__author {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--neutral-500);
}

/* ========================================
   Contact
   ======================================== */
.contact__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 8px;
}

.contact__info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  color: var(--neutral-600);
}

.contact__info-item svg {
  flex-shrink: 0;
  color: var(--green-600);
  margin-top: 2px;
}

.contact__info-item strong {
  display: block;
  color: var(--neutral-900);
  margin-bottom: 2px;
}

.contact__info-item a {
  color: var(--green-600);
  font-weight: 500;
}

.contact__info-item a:hover {
  color: var(--green-700);
  text-decoration: underline;
}

/* ========================================
   Forms
   ======================================== */
.form {
  max-width: 720px;
  margin: 0 auto;
}

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

.form__group {
  margin-bottom: 16px;
}

.form__label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--neutral-700);
  margin-bottom: 6px;
}

.form--dark .form__label {
  color: var(--green-200);
}

.form__input {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--neutral-800);
  background: var(--white);
  border: 1.5px solid var(--neutral-300);
  border-radius: var(--radius-sm);
  transition: all 0.25s ease;
  outline: none;
}

.form__input:focus {
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(61, 145, 101, 0.12);
}

.form__input::placeholder {
  color: var(--neutral-400);
}

.form--dark .form__input {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  color: var(--white);
}

.form--dark .form__input:focus {
  border-color: var(--green-400);
  box-shadow: 0 0 0 3px rgba(82, 176, 126, 0.2);
}

.form--dark .form__input::placeholder {
  color: rgba(255,255,255,0.4);
}

.form__select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

.form--dark .form__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

.form--dark .form__select option {
  background: var(--green-900);
  color: var(--white);
}

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

.form__status {
  text-align: center;
  margin-top: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  min-height: 24px;
}

.form__status--success {
  color: var(--green-500);
}

.form__status--error {
  color: #dc3545;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--neutral-900);
  color: var(--neutral-400);
  padding-top: 64px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer__logo-img {
  height: 64px;
  width: auto;
  margin-bottom: 12px;
}

.footer__tagline {
  font-size: 0.9rem;
  margin-top: 8px;
  line-height: 1.6;
}

.footer__links h4 {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer__links a {
  display: block;
  font-size: 0.9rem;
  color: var(--neutral-400);
  padding: 4px 0;
  transition: color 0.25s ease;
}

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

.footer__bottom {
  border-top: 1px solid var(--neutral-800);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
}

/* ========================================
   Scroll Reveal Animations
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.service-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.service-card.reveal:nth-child(3) { transition-delay: 0.2s; }
.service-card.reveal:nth-child(4) { transition-delay: 0.15s; }
.service-card.reveal:nth-child(5) { transition-delay: 0.25s; }
.service-card.reveal:nth-child(6) { transition-delay: 0.3s; }

.testimonial-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.testimonial-card.reveal:nth-child(3) { transition-delay: 0.2s; }

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .testimonials__grid .testimonial-card:last-child {
    grid-column: span 2;
    max-width: 50%;
    margin: 0 auto;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }

  .header__nav {
    position: fixed;
    inset: 0;
    background: var(--green-900);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .header__nav.active {
    opacity: 1;
    visibility: visible;
  }

  .header__nav .header__link {
    font-size: 1.5rem;
    color: var(--white);
  }

  .header__phone {
    display: none;
  }

  .header__menu {
    display: flex;
  }

  .hero__content {
    padding: 100px 0 60px;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    text-align: center;
  }

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

  .about__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__stats {
    gap: 24px;
  }

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

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

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

  .testimonials__grid .testimonial-card:last-child {
    grid-column: auto;
    max-width: 100%;
  }

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

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

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero__title {
    font-size: 2.25rem;
  }

  .about__stats {
    flex-direction: column;
    gap: 16px;
  }

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

  .gallery__item--wide {
    grid-column: auto;
  }
}
