/* Premium Design System for Tree R Us */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Poppins:wght@600;700&family=DM+Sans:wght@500&display=swap');

:root {
  /* Primary Colors - Forest Green depth */
  --primary-green: #0D6E4A;
  --primary-green-light: #1A8E5C;
  --primary-green-dark: #0A4A33;
  --primary-green-lighter: #2BA373;
  
  /* Secondary Colors */
  --accent-teal: #00B4A6;
  --accent-teal-dark: #00957F;
  --accent-lime: #A3D977;
  --accent-warm: #FF8C42;
  
  /* Neutrals */
  --dark-navy: #0F1C2E;
  --dark-bg: #1a2332;
  --light-cream: #F8F9FA;
  --off-white: #FAFBFC;
  --white: #FFFFFF;
  
  /* Text */
  --text-dark: #1F2937;
  --text-muted: #6B7280;
  --text-light: #F5F5F5;
  
  /* Status */
  --border-light: #E5E7EB;
  --border-dark: #374151;
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #0D6E4A 0%, #1A8E5C 100%);
  --gradient-overlay: linear-gradient(135deg, rgba(13, 110, 74, 0.85) 0%, rgba(26, 142, 92, 0.85) 100%);
  --gradient-dark: linear-gradient(135deg, #0F1C2E 0%, #1a2332 100%);

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.15);
  --shadow-card: 0 10px 30px -5px rgba(13, 110, 74, 0.15);
  --shadow-card-hover: 0 20px 40px -10px rgba(13, 110, 74, 0.25);

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark-navy);
}

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

ul {
  list-style: none;
}

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

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Sections */
section {
  padding: 60px 0;
}

@media (min-width: 1025px) {
  section {
    padding: 100px 0;
  }
}

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

.section-header h2 {
  font-size: 32px;
  margin-bottom: 16px;
}

@media (min-width: 1025px) {
  .section-header h2 {
    font-size: 44px;
  }
}

.section-header p {
  color: var(--text-muted);
  font-size: 18px;
}

/* Header & Navbar */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  height: 80px;
  display: flex;
  align-items: center;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

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

.logo img {
  height: 50px;
}

.logo span {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-green);
  display: block;
}

@media (min-width: 768px) {
  .logo span { font-size: 24px; }
}

.nav-menu {
  display: none;
}

@media (min-width: 992px) {
  .nav-menu {
    display: flex;
    gap: 32px;
  }
  .nav-menu li a {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-dark);
  }
  .nav-menu li a:hover {
    color: var(--primary-green);
  }
}

.header-btns {
  display: flex;
  align-items: center;
  gap: 16px;
}

.call-btn {
  display: inline-flex;
  transition: var(--transition);
}

.call-btn svg {
  margin-right: 8px;
}

@media (max-width: 991px) {
  .call-btn {
    width: 40px;
    height: 40px;
    padding: 0 !important;
    justify-content: center;
    align-items: center;
    border-radius: 50% !important;
  }
  .call-btn svg {
    margin-right: 0;
  }
  .call-btn-text {
    display: none;
  }
}

.desktop-only {
  display: none;
}

@media (min-width: 992px) {
  .desktop-only {
    display: inline-flex;
  }
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
}

@media (min-width: 992px) {
  .hamburger { display: none; }
}

.hamburger span {
  display: block;
  width: 30px;
  height: 3px;
  background: var(--primary-green);
  border-radius: 3px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Mobile Overlay */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--gradient-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transform: translateX(100%);
  transition: var(--transition-slow);
}

.mobile-nav.active {
  transform: translateX(0);
}

.mobile-nav ul {
  text-align: center;
}

.mobile-nav li {
  margin: 20px 0;
}

.mobile-nav a {
  font-size: 24px; /* Reduced from 32px */
  font-family: 'Poppins', sans-serif;
  color: var(--white);
}

.mobile-nav-close {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 40px;
  color: var(--white);
  cursor: pointer;
  line-height: 1;
}

.mobile-only-btn {
  margin-top: 20px;
}

.mobile-only-btn .btn {
  width: auto;
  padding: 12px 24px;
  font-size: 15px;
}

@media (min-width: 992px) {
  .mobile-only-btn {
    display: none;
  }
}

/* Hide header when mobile nav active */
body.nav-active header {
  opacity: 0;
  pointer-events: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: 0 10px 20px rgba(13, 110, 74, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(13, 110, 74, 0.3);
}

.btn-secondary {
  background: var(--accent-teal);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--accent-teal-dark);
  transform: translateY(-2px);
}

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

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

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

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

/* Hero Section */
.hero {
  position: relative;
  min-height: 700px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(15, 28, 46, 0.8) 0%, rgba(13, 110, 74, 0.8) 100%), url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  align-items: center;
}

@media (min-width: 1025px) {
  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero h1 {
  font-size: 40px;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.1;
}

@media (min-width: 1025px) {
  .hero h1 {
    font-size: 64px;
  }
}

@media (max-width: 767px) {
  .hero h1 {
    font-size: 32px;
  }
}

.hero-subtitle {
  font-size: 18px;
  margin-bottom: 32px;
  opacity: 0.9;
  max-width: 600px;
}

.hero-features {
  margin-bottom: 40px;
}

.hero-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-weight: 500;
}

.hero-features .icon {
  width: 24px;
  height: 24px;
  background: var(--accent-lime);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-green-dark);
  font-weight: bold;
  font-size: 14px;
}

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

/* Hero Form */
.hero-form-card {
  background: var(--white);
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow-2xl);
  color: var(--text-dark);
}

.hero-form-card h3 {
  margin-bottom: 24px;
  text-align: center;
  color: var(--primary-green);
}

/* Trust Section */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (min-width: 1025px) {
  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-card {
  background: var(--white);
  padding: 32px;
  border-radius: 16px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.trust-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.stat-number {
  font-size: 40px;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 8px;
}

.stat-label {
  font-weight: 600;
  margin-bottom: 4px;
}

.stat-description {
  font-size: 13px;
  color: var(--text-muted);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.feature-card {
  background: var(--off-white);
  padding: 40px;
  border-radius: 20px;
  transition: var(--transition);
  border: 1px solid rgba(13, 110, 74, 0.15);
}

.feature-card:hover {
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--white);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 24px;
  color: var(--primary-green);
  box-shadow: var(--shadow-sm);
}

.feature-card h3 {
  margin-bottom: 16px;
}

.feature-list {
  margin-top: 20px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.feature-list li::before {
  content: '→';
  color: var(--primary-green);
}

/* Service Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
}

.service-card {
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-card-hover);
}

.service-img-wrap {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.service-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.service-card:hover .service-img-wrap img {
  transform: scale(1.1);
}

.service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 110, 74, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover .service-overlay {
  opacity: 1;
}

.service-content {
  padding: 32px;
}

.service-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent-lime);
  color: var(--primary-green-dark);
  font-size: 12px;
  font-weight: 600;
  border-radius: 50px;
  margin-bottom: 12px;
}

/* Process Timeline */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  position: relative;
}

.process-step {
  text-align: center;
  position: relative;
  padding: 30px;
  border: 1px solid rgba(13, 110, 74, 0.15);
  border-radius: 20px;
  background: var(--white);
  transition: var(--transition);
}

.process-step:hover {
  border-color: var(--primary-green-light);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.step-num {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  margin: 0 auto 24px;
  position: relative;
  z-index: 2;
}

.process-step h3 {
  margin-bottom: 12px;
}

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

.testimonial-card {
  background: var(--white);
  padding: 40px;
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  border-left: 6px solid var(--accent-lime);
}

.stars {
  color: var(--accent-warm);
  margin-bottom: 16px;
  font-size: 18px;
}

.review-text {
  font-style: italic;
  font-size: 16px;
  margin-bottom: 24px;
}

.reviewer {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
}

/* CTA Section */
.cta-banner {
  background: var(--gradient-overlay), url('../images/cta-bg.jpg');
  background-size: cover;
  background-position: center;
  padding: 80px 0;
  border-radius: 30px;
  text-align: center;
  color: var(--white);
}

.cta-banner h2 {
  color: var(--white);
  font-size: 40px;
  margin-bottom: 24px;
}

/* FAQ */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
}

.faq-question {
  width: 100%;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 600;
  text-align: left;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
}

.faq-answer.active {
  max-height: 200px;
  padding-bottom: 24px;
}

/* Footer */
footer {
  background: var(--dark-navy);
  color: var(--text-light);
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 50px;
  margin-bottom: 50px;
}

.footer-logo {
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links h4 {
  color: var(--white);
  margin-bottom: 24px;
}

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

.footer-links a:hover {
  color: var(--accent-lime);
  padding-left: 8px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  opacity: 0.6;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 14px;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 4px rgba(13, 110, 74, 0.1);
}

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Page Hero Extensions */
.page-hero {
  min-height: 400px;
  background-attachment: scroll; /* Better performance on subpages */
  padding: 80px 0;
}

/* Contact Page Enhancements */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: start;
}

@media (min-width: 1025px) {
  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.contact-details-card {
  background: var(--white);
  padding: 40px;
  border-radius: 30px;
  box-shadow: var(--shadow-card);
  margin-bottom: 40px;
}

.contact-method {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.method-icon {
  width: 50px;
  height: 50px;
  background: var(--off-white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--primary-green);
  flex-shrink: 0;
}

.method-text .label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.method-text .value {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark-navy);
}

.method-text .note {
  font-size: 13px;
  color: var(--error);
  font-weight: 600;
  margin-top: 4px;
}

.map-wrapper {
  overflow: hidden;
  border-radius: 30px;
}

/* About Page Refinements */
@media (max-width: 768px) {
  .owner-info {
    grid-template-columns: 1fr !important;
    text-align: center;
    padding: 30px !important;
  }
  .owner-avatar {
    margin: 0 auto;
  }
}

.advantage-grid .feature-card {
  border: 1px solid var(--border-light);
  background: var(--white);
}

.advantage-grid .feature-card:hover {
  border-color: var(--primary-green-light);
  transform: translateY(-8px);
}

/* Gallery Refinements */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px; /* Reduced gap for "picture" look */
}

.gallery-item {
  border-radius: 0 !important;
  box-shadow: none !important;
}

.gallery-item .service-img-wrap {
  height: 350px;
  border-radius: 0 !important;
}

.gallery-item .service-img-wrap img {
  border-radius: 0 !important;
}

.gallery-item .service-content {
  display: none !important; /* Remove details below picture */
}

/* Lightbox Premium */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 28, 46, 0.98);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.lightbox.active {
  display: flex;
}
