/*
Theme Name: Aone Buffalo Tree & Landscaping
Theme URI: https://aonetreeservicelandscapingbuffalo.com/
Author: Aone Team
Description: Custom premium WordPress theme for Aone Tree Services & Landscaping Buffalo NY.
Version: 1.0.0
Text Domain: aone-buffalo
*/

/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
  /* Colors */
  --primary-green: #093315;     /* Dark Forest Green for Top Bar & Footer */
  --accent-green: #27601e;      /* Buttons and active links */
  --bright-green: #3e8e23;      /* "TREE SERVICES" text highlight */
  --blue-grad-start: #113661;   /* Snow section start */
  --blue-grad-end: #0947a1;     /* Snow section end */
  
  --light-bg: #f8fafc;
  --white: #ffffff;
  --text-dark: #1e293b;
  --text-light: #f8fafc;
  
  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Details */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.2);
  
  /* Transitions */
  --transition: 0.2s ease-in-out;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--light-bg);
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

.container {
  max-width: 1750px;
  margin: 0 auto;
  padding: 0 40px;
}

.text-center { text-align: center; }
.mt-5 { margin-top: 3rem; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
  border: none;
}

.btn i { font-size: 1.1em; }

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

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

.btn-outline {
  background-color: #111111;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background-color: var(--white);
  color: var(--text-dark);
}

.btn-white {
  background-color: var(--white);
  color: var(--blue-grad-end);
}

.btn-white:hover {
  background-color: #f1f5f9;
}

/* ==========================================================================
   TOP BAR
   ========================================================================== */
.top-bar {
  background-color: #000000;
  color: var(--text-light);
  font-size: 0.85rem;
  padding: 8px 0;
}

.top-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar-phone {
  font-weight: 600;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
}
.top-bar-phone:hover {
  color: #facc15;
}

.top-bar-item i {
  color: var(--bright-green);
  margin-right: 5px;
}

.top-socials {
  display: flex;
  gap: 12px;
}

.top-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background-color: var(--white);
  color: var(--primary-green);
  border-radius: 50%;
  font-size: 0.75rem;
}

.top-socials a:hover {
  background-color: var(--bright-green);
  color: var(--white);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.main-header {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
}

.logo-area {
  position: relative;
  display: flex;
  align-items: center;
}

.logo-glow {
  display: none;
}

.header-logo {
  max-width: 140px;
  margin-top: 15px;
  margin-bottom: -35px; /* Creates the overhang downwards */
  position: relative;
  z-index: 10;
}

.desktop-nav ul {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-dark);
  text-transform: uppercase;
  position: relative;
  padding: 10px 0;
}

.nav-link.active, .nav-link:hover {
  color: var(--accent-green);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--accent-green);
}

.menu-item-has-children {
  position: relative;
}

.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: var(--shadow-md);
  min-width: 220px;
  flex-direction: column;
  padding: 10px 0;
  border-radius: var(--radius-sm);
}

.menu-item-has-children:hover .sub-menu {
  display: flex;
}

.sub-menu li a {
  padding: 10px 20px;
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
}

.sub-menu li a:hover {
  background-color: var(--light-bg);
  color: var(--accent-green);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 25px;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 12px;
}

.phone-icon {
  width: 36px;
  height: 36px;
  border: 2px solid var(--accent-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-green);
  font-size: 1rem;
}

.phone-text {
  display: flex;
  flex-direction: column;
}

.phone-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dark);
}

.phone-number {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-green);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.mobile-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-dark);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 700px;
  background: url('assets/hero_mixed_services.jpg') 60% center/cover no-repeat;
}

.hero-overlay-fade {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0) 100%);
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 60px;
  padding-bottom: 150px; /* extra padding to make room for absolute trust bar */
}

.hero-content {
  max-width: 800px;
}

.hero-card-wrapper {
  width: 450px;
  flex-shrink: 0;
}

.hero-badge-top {
  display: inline-block;
  background-color: var(--accent-green);
  color: var(--white);
  padding: 6px 16px;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 4.5rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-title .text-highlight {
  color: #4ade80;
}

.hero-description {
  font-size: 1.15rem;
  color: #e2e8f0;
  max-width: 600px;
  margin-bottom: 40px;
}

.btn-hero-phone {
  background-color: var(--accent-green);
  color: var(--white);
  font-size: 1.1rem;
}

.hero-ctas {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-ctas .btn {
  white-space: nowrap;
}

/* Estimate Form */
.hero-form-outer {
  background-color: #091a2b;
  border-radius: var(--radius-md);
  border: 3px solid #fff;
  position: relative;
  padding: 3px;
  box-shadow: var(--shadow-lg);
}

.form-leaf-decor {
  position: absolute;
  top: -10px;
  right: -10px;
  color: #4ade80;
  font-size: 2.2rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
  z-index: 10;
}

.card-header-dark {
  color: var(--white);
  padding: 25px 20px;
  text-align: center;
}

.card-header-dark h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.card-header-dark p {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.4;
}

.quick-contact-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.card-form {
  padding: 20px;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.card-form input, .card-form select, .card-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background-color: #f8fafc;
}

.card-form input:focus, .card-form select:focus, .card-form textarea:focus {
  outline: none;
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(39, 96, 30, 0.1);
}

.btn-submit-request {
  width: 100%;
  padding: 16px;
  font-size: 1.1rem;
  margin-top: 10px;
}

.privacy-note {
  text-align: center;
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 15px;
}

.privacy-note i {
  color: var(--text-dark);
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-section {
  padding: 80px 0;
  background-color: var(--white);
}

.section-subtitle {
  display: block;
  color: var(--accent-green);
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text-dark);
  text-transform: uppercase;
  margin-bottom: 40px;
}

.services-grid-6 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.service-card-new {
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 30px 15px;
  text-align: center;
  background-color: var(--white);
  transition: all var(--transition);
}

.service-card-new:hover {
  border-color: var(--accent-green);
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.service-icon-new {
  font-size: 2.5rem;
  color: var(--accent-green);
  margin-bottom: 15px;
}

.service-card-new h3 {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.service-card-new p {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.4;
}

/* ==========================================================================
   EQUIPMENT SECTION (SLANTED)
   ========================================================================== */
.equipment-section {
  background-color: var(--primary-green);
  color: var(--white);
  overflow: hidden;
}

.equipment-container {
  display: flex;
  align-items: stretch;
  padding: 0;
}

.equipment-content {
  flex: 0 0 35%;
  padding: 60px 40px 60px 20px;
}

.equipment-subtitle {
  color: var(--bright-green);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.equipment-content h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 30px;
  line-height: 1.2;
}

.equipment-list li {
  margin-bottom: 15px;
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.equipment-list li i {
  color: var(--bright-green);
  margin-top: 4px;
}

.equipment-images {
  flex: 1;
  display: flex;
}

.eq-image-col {
  flex: 1;
  position: relative;
  clip-path: polygon(15% 0, 100% 0, 85% 100%, 0 100%);
  margin-left: -15%;
  transition: transform var(--transition);
}

.eq-image-col:first-child {
  margin-left: -5%;
}

.eq-image-col:hover {
  transform: scale(1.05);
  z-index: 10;
}

.eq-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 400px;
}

.eq-label {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--accent-green);
  color: var(--white);
  text-align: center;
  padding: 10px 0;
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
}

/* ==========================================================================
   SNOW PLOWING SECTION
   ========================================================================== */
.snow-feature-section {
  background: linear-gradient(90deg, var(--blue-grad-start) 0%, var(--blue-grad-end) 100%);
  color: var(--white);
}

.snow-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.snow-image {
  flex: 0 0 30%;
}

.snow-image img {
  width: 100%;
  height: auto;
}

.snow-content {
  flex: 1;
  padding: 40px 0;
}

.snow-subtitle {
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
  color: #93c5fd;
}

.snow-content h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 15px;
}

.snow-list {
  flex: 1;
  padding: 40px 0;
}

.snow-list ul {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.snow-list li {
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 600;
}

.snow-list li i {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.snow-cta {
  flex: 0 0 auto;
  padding: 40px 0;
}

/* ==========================================================================
   PROJECTS & REVIEWS
   ========================================================================== */
.projects-reviews-section {
  padding: 80px 0;
  background-color: var(--white);
}

.pr-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.pr-subtitle {
  color: var(--accent-green);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.recent-projects h2, .google-reviews h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 30px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}

.projects-grid img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.review-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.google-logo {
  height: 40px;
}

.rating-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
}

.rating-stars i {
  color: #fbbc05;
  font-size: 1.2rem;
}

.rating-text {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 5px;
}

.review-card {
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 30px;
  position: relative;
}

.quote-icon {
  position: absolute;
  top: 25px;
  left: 25px;
  font-size: 2rem;
  color: rgba(39, 96, 30, 0.1);
}

.review-text {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
  text-indent: 40px;
}

.review-author {
  font-weight: 700;
  color: var(--text-dark);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--primary-green);
  color: var(--white);
  padding-top: 60px;
}

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

.footer-logo img {
  max-width: 160px;
  margin-bottom: 20px;
  border-radius: var(--radius-sm);
}

.footer-desc {
  font-size: 0.85rem;
  color: #cbd5e1;
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.1);
  color: var(--white);
}

.footer-socials a:hover {
  background-color: var(--accent-green);
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--white);
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #cbd5e1;
  font-size: 0.85rem;
}

.footer-col ul li a:hover {
  color: var(--bright-green);
}

.footer-col-areas p {
  color: #cbd5e1;
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 15px;
  color: #cbd5e1;
  font-size: 0.85rem;
}

.footer-contact-item i {
  color: var(--white);
  margin-top: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  font-size: 0.8rem;
  color: #94a3b8;
}

.bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom-links a {
  margin-left: 15px;
}

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

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE OVERRIDES)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; }
  .hero-trust-badges { justify-content: center; flex-wrap: wrap; }
  .hero-ctas { justify-content: center; }
  .hero-title { font-size: 3rem; }
  .services-grid-6 { grid-template-columns: repeat(3, 1fr); }
  .equipment-container { flex-direction: column; }
  .eq-image-col { min-height: 250px; clip-path: none; margin: 0; }
  .equipment-images { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 20px; }
  .snow-container { flex-wrap: wrap; text-align: center; }
  .pr-container { grid-template-columns: 1fr; }
  .footer-container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .top-bar { display: none; }
  .header-actions .header-phone, .header-actions .btn-header-estimate { display: none; }
  .desktop-nav { display: none; }
  .mobile-toggle { display: flex; }
  .hero-title { font-size: 2.2rem; }
  .services-grid-6 { grid-template-columns: repeat(2, 1fr); }
  .footer-container { grid-template-columns: 1fr; }
}
/* Mobile Menu & Sub Menu Fixes */
.sub-menu {
  display: none !important;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: var(--shadow-md);
  min-width: 220px;
  flex-direction: column;
  padding: 10px 0;
  border-radius: var(--radius-sm);
  z-index: 9999;
}
.menu-item-has-children:hover .sub-menu {
  display: flex !important;
}
.mobile-menu {
  display: none;
}
.mobile-menu.active {
  display: block;
}

/* ==========================================================================
   HERO TRUST BAR & MISC
   ========================================================================== */
.hero-trust-bar {
  background-color: var(--primary-green);
  padding: 15px 0;
  width: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 3;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-trust-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 15px;
}
.trust-icon {
  font-size: 2.2rem;
  color: #facc15;
}
.trust-text-stack {
  display: flex;
  flex-direction: column;
}
.trust-text-stack strong {
  color: var(--white);
  font-size: 0.9rem;
  text-transform: uppercase;
  line-height: 1.2;
}
.trust-text-stack span {
  color: #cbd5e1;
  font-size: 0.8rem;
  line-height: 1.3;
}
.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 15px;
  font-size: 0.8rem;
  color: #64748b;
}
@media (max-width: 992px) {
  .hero-trust-container {
    flex-wrap: wrap;
  }
  .trust-item {
    min-width: 250px;
    margin-bottom: 15px;
  }
}
