/* ===========================
   R&A Landscaping - Styles
   =========================== */

:root {
  --brand-green: #3d9e22;
  --brand-green-dark: #2d7b18;
  --brand-green-deep: #1f5c10;
  --brand-pale: #f1f9ec;
  --white: #ffffff;
  --off-white: #fcfdfb;
  --gray-light: #f4f6f4;
  --gray-border: #e6ebe5;
  --gray-header: #ccd3c9;
  --text-dark: #1e2b1c;
  --shadow: 0 8px 24px rgba(15, 40, 32, 0.1);
  --radius: 10px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfa 100%);
  line-height: 1.6;
}

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

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.25s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-green), var(--brand-green-dark));
  color: var(--white);
  box-shadow: 0 6px 16px rgba(61, 158, 34, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--brand-green-dark), var(--brand-green-deep));
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--brand-green-dark);
  color: var(--brand-green-dark);
}

.btn-outline:hover {
  background: var(--brand-green-dark);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-dark {
  background: linear-gradient(135deg, var(--brand-green-dark), var(--brand-green-deep));
  color: var(--white);
}

.btn-dark:hover {
  background: linear-gradient(135deg, var(--brand-green), var(--brand-green-dark));
  transform: translateY(-2px);
}

/* ===== Top bar ===== */
.top-bar {
  background: var(--white);
  color: var(--brand-green-dark);
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid #e5f1e0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar a {
  color: var(--brand-green);
  font-weight: 600;
}

/* ===== Header / Nav ===== */
header.site-header {
  background: transparent;
  box-shadow: none;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

header.site-header.scrolled {
  background: var(--gray-header);
  box-shadow: var(--shadow);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-green-dark);
  font-size: 1.4rem;
  font-weight: 700;
}

.logo-img {
  height: 44px;
  width: auto;
  border-radius: 6px;
  flex-shrink: 0;
}

nav.main-nav ul {
  display: flex;
  gap: 28px;
  align-items: center;
}

nav.main-nav a {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.98rem;
  transition: color 0.2s ease;
}

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

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

.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--brand-green-dark);
  border-radius: 2px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  color: var(--text-dark);
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0) 22%),
    radial-gradient(circle at 88% 12%, rgba(61, 158, 34, 0.14), transparent 42%),
    radial-gradient(circle at 6% 92%, rgba(45, 123, 24, 0.12), transparent 38%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9)),
    url('images/upload-1.jpeg');
  background-size: cover;
  background-position: center;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 96%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 60px 0;
}

.hero-content .eyebrow {
  display: inline-block;
  background: var(--brand-pale);
  border: 1px solid var(--brand-green);
  color: var(--brand-green-dark);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.hero-content h1 {
  font-size: 2.9rem;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--brand-green-dark);
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #4d5f56;
}

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

/* ===== Page Hero (interior pages) ===== */
.page-hero {
  position: relative;
  color: var(--brand-green-dark);
  padding: 90px 0 70px;
  text-align: center;
  background-image:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0) 30%),
    radial-gradient(circle at 90% 15%, rgba(61, 158, 34, 0.12), transparent 40%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.75));
}

.page-hero.about-bg {
  background-image:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0) 30%),
    radial-gradient(circle at 90% 15%, rgba(61, 158, 34, 0.12), transparent 40%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.75)), url('images/upload-5.jpeg');
  background-size: cover;
  background-position: center;
}

.page-hero.services-bg {
  background-image:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0) 30%),
    radial-gradient(circle at 90% 15%, rgba(61, 158, 34, 0.12), transparent 40%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.75)), url('images/upload-3.jpeg');
  background-size: cover;
  background-position: center;
}

.page-hero.contact-bg {
  background-image:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0) 30%),
    radial-gradient(circle at 90% 15%, rgba(61, 158, 34, 0.12), transparent 40%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.75)), url('images/upload-4.jpeg');
  background-size: cover;
  background-position: center;
}

.page-hero h1 {
  font-size: 2.6rem;
  margin-bottom: 12px;
}

.page-hero p {
  color: #4d5f56;
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--brand-green);
}

/* ===== Sections ===== */
section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 50px;
}

.section-header .eyebrow {
  color: var(--brand-green);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.section-header h2 {
  font-size: 2.1rem;
  color: var(--brand-green-dark);
  margin: 10px 0 14px;
}

.section-header p {
  color: #4d5f56;
}

.alt-bg {
  background-color: var(--gray-light);
  background-image: radial-gradient(rgba(61, 158, 34, 0.09) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* ===== Home: intro ===== */
.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.intro img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.intro h2 {
  color: var(--brand-green-dark);
  font-size: 2rem;
  margin-bottom: 18px;
}

.intro p {
  margin-bottom: 16px;
  color: #3d4b44;
}

.intro-stats {
  display: flex;
  gap: 30px;
  margin-top: 26px;
}

.intro-stats div {
  text-align: center;
}

.intro-stats strong {
  display: block;
  font-size: 1.8rem;
  color: var(--brand-green-dark);
}

.intro-stats span {
  font-size: 0.85rem;
  color: #4d5f56;
}

/* ===== Cards / Services grid ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.card {
  background: linear-gradient(160deg, #ffffff, var(--gray-light));
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--brand-green);
  transition: transform 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
}

.card .icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-pale), var(--gray-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
  color: var(--brand-green-dark);
}

.card h3 {
  color: var(--brand-green-dark);
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.card p {
  color: #4d5f56;
  font-size: 0.96rem;
}

/* ===== Why us ===== */
.why-us {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.why-list li {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.why-list .bullet {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, var(--brand-green), var(--brand-green-dark));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.why-list h4 {
  color: var(--brand-green-dark);
  margin-bottom: 4px;
}

.why-list p {
  color: #4d5f56;
  font-size: 0.95rem;
}

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

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

/* ===== CTA banner ===== */
.cta-banner {
  background:
    radial-gradient(rgba(255, 255, 255, 0.14) 1.5px, transparent 1.5px),
    linear-gradient(120deg, var(--brand-green), var(--brand-green-dark));
  background-size: 24px 24px, cover;
  color: var(--white);
  text-align: center;
  padding: 60px 0;
}

.cta-banner h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 26px;
}

.cta-banner .btn-primary {
  background: var(--white);
  color: var(--brand-green-dark);
}

.cta-banner .btn-primary:hover {
  background: var(--brand-pale);
}

/* ===== Testimonials ===== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.testimonial {
  background: linear-gradient(160deg, #ffffff, var(--gray-light));
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  border: 1px solid var(--gray-border);
  overflow: hidden;
}

.testimonial::before {
  content: '\201C';
  position: absolute;
  top: -18px;
  left: 14px;
  font-size: 5.5rem;
  font-family: Georgia, serif;
  color: rgba(61, 158, 34, 0.12);
  line-height: 1;
  pointer-events: none;
}

.testimonial .stars {
  color: var(--brand-green);
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.testimonial p {
  color: #3d4b44;
  font-style: italic;
  margin-bottom: 16px;
}

.testimonial .author {
  font-weight: 700;
  color: var(--brand-green-dark);
  font-style: normal;
}

/* ===== About page ===== */
.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-story img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  text-align: center;
}

.values-grid .card {
  border-top: none;
  border-bottom: 4px solid var(--brand-green);
}

.team-photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.team-photo-strip img {
  border-radius: var(--radius);
  height: 260px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

/* ===== Services page ===== */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 70px;
}

.service-detail:last-child {
  margin-bottom: 0;
}

.service-detail.reverse .service-text {
  order: 2;
}

.service-detail.reverse .service-img {
  order: 1;
}

.service-img img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.service-text h3 {
  color: var(--brand-green-dark);
  font-size: 1.6rem;
  margin-bottom: 14px;
}

.service-text p {
  color: #4d5f56;
  margin-bottom: 16px;
}

.service-text ul {
  margin-top: 10px;
}

.service-text ul li {
  padding-left: 26px;
  position: relative;
  margin-bottom: 10px;
  color: #3d4b44;
}

.service-text ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--brand-green);
  font-weight: 700;
}

/* ===== Contact page ===== */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
}

.contact-info {
  background: linear-gradient(160deg, #ffffff, var(--gray-light));
  color: var(--text-dark);
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-border);
  box-shadow: var(--shadow);
}

.contact-info h3 {
  color: var(--brand-green-dark);
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.contact-info .info-item {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
  align-items: flex-start;
}

.contact-info .info-item .ic {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--brand-pale);
  color: var(--brand-green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-info .info-item strong {
  display: block;
  color: var(--brand-green-dark);
  margin-bottom: 3px;
}

.map-block {
  margin-top: 26px;
  height: 160px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand-green), var(--brand-green-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 600;
  text-align: center;
  padding: 20px;
}

.contact-form-wrap {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-form-wrap h3 {
  color: var(--brand-green-dark);
  margin-bottom: 6px;
  font-size: 1.4rem;
}

.contact-form-wrap > p {
  color: #4d5f56;
  margin-bottom: 24px;
}

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

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

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--brand-green-dark);
  font-size: 0.92rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--gray-light);
  transition: border 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--brand-green);
}

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

/* ===== Footer ===== */
footer.site-footer {
  background: var(--gray-light);
  color: var(--text-dark);
  padding: 60px 0 20px;
  border-top: 1px solid var(--gray-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-grid h4 {
  color: var(--brand-green-dark);
  margin-bottom: 18px;
  font-size: 1.1rem;
}

.footer-grid p,
.footer-grid li {
  color: #4d5f56;
  font-size: 0.93rem;
  margin-bottom: 10px;
}

.footer-grid a:hover {
  color: var(--brand-green);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--brand-green-dark);
  font-size: 1.3rem;
  font-weight: 700;
}

.footer-bottom {
  border-top: 1px solid #eaf3e5;
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: #6b7d6f;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .intro,
  .why-us,
  .about-story,
  .service-detail,
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .service-detail.reverse .service-text,
  .service-detail.reverse .service-img {
    order: 0;
  }

  .intro img,
  .why-us img,
  .about-story img,
  .service-img img {
    max-height: 320px;
    width: 100%;
    object-fit: cover;
  }

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

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

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

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  nav.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  nav.main-nav.open {
    max-height: 400px;
  }

  nav.main-nav ul {
    flex-direction: column;
    padding: 20px 24px;
    gap: 18px;
    align-items: flex-start;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 70px 0 50px;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-bg {
    background-image:
      radial-gradient(circle at 88% 10%, rgba(61, 158, 34, 0.14), transparent 45%),
      linear-gradient(160deg, #ffffff, var(--gray-light));
  }

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

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

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

  .top-bar .container {
    justify-content: center;
    text-align: center;
  }
}
