/* ================================================
   Cottrells Garden Care Sons and Daughters Ltd
   Static Site Stylesheet
   ================================================ */

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

:root {
  --green-dark: #2d5a27;
  --green-mid: #3a7d32;
  --green-light: #4a9e3f;
  --green-pale: #e8f5e3;
  --brown: #5c3d2e;
  --brown-light: #8b6914;
  --white: #ffffff;
  --off-white: #f9f9f9;
  --grey-light: #f0f0f0;
  --grey-mid: #888;
  --grey-dark: #333;
  --text: #444;
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-strong: rgba(0, 0, 0, 0.15);
  --transition: 0.3s ease;
  --max-width: 1200px;
  --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--green-mid);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--green-dark);
}

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

ul {
  list-style: none;
}

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

/* --- Header --- */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 10px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-logo img {
  height: 55px;
  width: auto;
}

.site-logo .logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.3;
}

.site-logo .logo-text span {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--grey-mid);
  letter-spacing: 0.5px;
}

/* --- Navigation --- */
.main-nav ul {
  display: flex;
  gap: 5px;
}

.main-nav a {
  display: block;
  padding: 10px 16px;
  color: var(--grey-dark);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 6px;
  transition: all var(--transition);
}

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

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

.nav-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--grey-dark);
  border-radius: 3px;
  transition: all var(--transition);
}

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

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

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

/* --- Hero Section --- */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(45, 90, 39, 0.75), rgba(58, 125, 50, 0.6));
}

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

.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.95;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.hero-small {
  min-height: 320px;
}

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

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-align: center;
}

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

.btn-primary:hover {
  background: var(--green-pale);
  color: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

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

.btn-green:hover {
  background: var(--green-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

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

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

/* --- Section Styles --- */
.section {
  padding: 70px 0;
}

.section-grey {
  background: var(--grey-light);
}

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

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2rem;
  color: var(--green-dark);
  margin-bottom: 12px;
}

.section-green .section-title h2 {
  color: var(--white);
}

.section-title p {
  font-size: 1.1rem;
  color: var(--grey-mid);
  max-width: 600px;
  margin: 0 auto;
}

.section-green .section-title p {
  color: rgba(255, 255, 255, 0.8);
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px var(--shadow);
  transition: all var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px var(--shadow-strong);
}

.service-card .card-image {
  height: 200px;
  overflow: hidden;
}

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

.service-card:hover .card-image img {
  transform: scale(1.05);
}

.service-card .card-body {
  padding: 24px;
}

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

.service-card p {
  font-size: 0.95rem;
  color: var(--grey-mid);
  margin-bottom: 16px;
}

.service-card .card-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--green-mid);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-card .card-link::after {
  content: '→';
  transition: transform var(--transition);
}

.service-card:hover .card-link::after {
  transform: translateX(4px);
}

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

.about-image img {
  border-radius: 12px;
  box-shadow: 0 8px 30px var(--shadow);
}

.about-text h2 {
  font-size: 2rem;
  color: var(--green-dark);
  margin-bottom: 16px;
}

.about-text p {
  margin-bottom: 14px;
  line-height: 1.7;
}

/* --- Service Detail Page --- */
.service-detail {
  padding: 70px 0;
}

.service-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 50px;
}

.service-intro img {
  border-radius: 12px;
  box-shadow: 0 6px 20px var(--shadow);
  width: 100%;
}

.service-intro h2 {
  font-size: 1.8rem;
  color: var(--green-dark);
  margin-bottom: 16px;
}

.service-intro p {
  line-height: 1.7;
  margin-bottom: 14px;
}

.service-list {
  list-style: none;
  padding: 0;
}

.service-list li {
  padding: 10px 0;
  padding-left: 28px;
  position: relative;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--grey-light);
}

.service-list li:last-child {
  border-bottom: none;
}

.service-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green-mid);
  font-weight: 700;
  font-size: 1.1rem;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  color: var(--white);
  text-align: center;
  padding: 60px 20px;
}

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

.cta-banner p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

.testimonial-card {
  background: var(--white);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px var(--shadow);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-size: 4rem;
  color: var(--green-pale);
  font-family: Georgia, serif;
  position: absolute;
  top: 10px;
  left: 20px;
  line-height: 1;
}

.testimonial-card p {
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 20px;
  padding-top: 30px;
  color: var(--text);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author .author-info h4 {
  font-size: 1rem;
  color: var(--green-dark);
}

.testimonial-author .author-info span {
  font-size: 0.85rem;
  color: var(--grey-mid);
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info h2 {
  font-size: 1.8rem;
  color: var(--green-dark);
  margin-bottom: 16px;
}

.contact-info p {
  line-height: 1.7;
  margin-bottom: 20px;
}

.contact-details {
  list-style: none;
}

.contact-details li {
  padding: 12px 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1rem;
}

.contact-details li .icon {
  font-size: 1.2rem;
  color: var(--green-mid);
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.contact-details li a {
  color: var(--text);
}

.contact-details li a:hover {
  color: var(--green-mid);
}

/* --- Contact Form --- */
.contact-form {
  background: var(--white);
  padding: 35px;
  border-radius: 12px;
  box-shadow: 0 4px 15px var(--shadow);
}

.contact-form h2 {
  font-size: 1.5rem;
  color: var(--green-dark);
  margin-bottom: 24px;
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--font-primary);
  transition: border-color var(--transition);
  background: var(--off-white);
}

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

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

.form-status {
  padding: 12px 16px;
  border-radius: 8px;
  margin-top: 12px;
  display: none;
  font-weight: 500;
}

.form-status.success {
  background: var(--green-pale);
  color: var(--green-dark);
  display: block;
}

.form-status.error {
  background: #fce4e4;
  color: #c0392b;
  display: block;
}

/* --- Footer --- */
.site-footer {
  background: var(--grey-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 50px 0 20px;
}

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

.footer-about h3,
.footer-links h3,
.footer-contact h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.footer-about p {
  line-height: 1.7;
  font-size: 0.95rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  transition: color var(--transition);
}

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

.footer-contact p {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.7);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .about-grid,
  .service-intro,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    box-shadow: -5px 0 20px var(--shadow);
    transition: right var(--transition);
    z-index: 999;
    padding: 80px 20px 20px;
  }

  .main-nav.open {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav a {
    padding: 14px 16px;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--grey-light);
    border-radius: 0;
  }

  .nav-close-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 998;
    display: none;
  }

  .nav-close-overlay.active {
    display: block;
  }

  .hero {
    min-height: 380px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-small {
    min-height: 250px;
  }

  .section {
    padding: 50px 0;
  }

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

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

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

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .section-title h2 {
    font-size: 1.6rem;
  }

  .site-logo .logo-text {
    font-size: 0.95rem;
  }
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
