/* =============================================
   HALDEN LANDSCAPING — Main Stylesheet
   ============================================= */

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

:root {
  --green-dark:   #1b4332;
  --green-mid:    #2d6a4f;
  --green-light:  #52b788;
  --green-pale:   #d8f3dc;
  --accent:       #f9c74f;
  --text-dark:    #1a1a2e;
  --text-mid:     #4a4a6a;
  --text-light:   #8888aa;
  --white:        #ffffff;
  --off-white:    #f8faf7;
  --shadow-sm:    0 2px 8px rgba(0,0,0,.07);
  --shadow-md:    0 8px 28px rgba(0,0,0,.11);
  --shadow-lg:    0 20px 60px rgba(0,0,0,.14);
  --radius:       14px;
  --radius-sm:    8px;
  --transition:   .3s ease;
  --font-head:    'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

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

img { display: block; max-width: 100%; object-fit: cover; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  width: min(1160px, 92%);
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--green-light);
  color: var(--white);
  border-color: var(--green-light);
}
.btn-primary:hover {
  background: var(--green-mid);
  border-color: var(--green-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(82,183,136,.35);
}

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

.btn-full { width: 100%; justify-content: center; }

/* ---------- Section Shared ---------- */
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header.light h2,
.section-header.light .section-sub { color: var(--white); }

.section-eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: .6rem;
}
.section-header.light .section-eyebrow { color: var(--accent); }

h2 {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: .9rem;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 560px;
  margin-inline: auto;
}

/* =============================================
   NAVBAR
   ============================================= */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.1rem 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

#navbar.scrolled {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  padding: .7rem 0;
}

.nav-inner {
  width: min(1160px, 92%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  transition: color var(--transition);
}
#navbar.scrolled .logo { color: var(--green-dark); }

.logo-icon {
  width: 38px; height: 38px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: .9rem;
  flex-shrink: 0;
}

.logo-text em { font-style: normal; color: var(--green-light); }

/* Nav links */
nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav ul li a {
  font-size: .9rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 2px;
}
#navbar.scrolled nav ul li a { color: var(--text-mid); }

nav ul li a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--green-light);
  transition: width var(--transition);
}
nav ul li a:not(.nav-cta):hover::after { width: 100%; }
nav ul li a:not(.nav-cta):hover { color: var(--white); }
#navbar.scrolled nav ul li a:not(.nav-cta):hover { color: var(--green-dark); }

.nav-cta {
  background: var(--green-light);
  color: var(--white) !important;
  padding: .55rem 1.4rem;
  border-radius: 50px;
  font-size: .85rem;
}
.nav-cta:hover { background: var(--green-mid) !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
#navbar.scrolled .hamburger span { background: var(--green-dark); }

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

/* =============================================
   HERO
   ============================================= */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(160deg, rgba(27,67,50,.82) 0%, rgba(45,106,79,.7) 60%, rgba(27,67,50,.55) 100%),
    url('https://sspark.genspark.ai/cfimages?u1=fjMvvDdQTnKtcNvX7s%2B3xtLKmK4dKX5F4PBiYHC3SZPZ4YKSqudtQJMLJFZS5VE7RUNc5MqVqEq4%2FXWCx084jP%2FEIExRh5fY9moaH1QURRFiDjVCBrMOlow%2Fb03%2FvvchirReKD1FXVTWt7zfxA%3D%3D&u2=pzoQwNbkHJZa1zjv&width=2560') center/cover no-repeat;
  color: var(--white);
  padding-top: 90px;
}

.hero-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 60%, rgba(82,183,136,.12) 0%, transparent 65%);
  pointer-events: none;
}

.hero-content {
  width: min(1160px, 92%);
  margin-inline: auto;
  padding: 5rem 0 3rem;
}

.hero-eyebrow {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.hero-content h1 {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  line-height: 1.1;
  margin-bottom: 1.4rem;
  color: var(--white);
  max-width: 700px;
}

.hero-accent {
  color: var(--green-light);
  position: relative;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.82);
  max-width: 520px;
  margin-bottom: 2.2rem;
  line-height: 1.75;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero Stats Bar */
.hero-stats {
  width: min(1160px, 92%);
  margin-inline: auto;
  margin-top: auto;
  padding: 1.8rem 2.5rem;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius) var(--radius) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.stat-label {
  font-size: .8rem;
  color: rgba(255,255,255,.7);
  margin-top: .25rem;
  letter-spacing: .03em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.25);
}

/* =============================================
   SERVICES
   ============================================= */
#services {
  padding: 6rem 0;
  background: var(--off-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.8rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.2rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-light), var(--green-mid));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
}

.service-card h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  margin-bottom: .65rem;
  color: var(--text-dark);
}

.service-card p {
  font-size: .93rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.service-link {
  font-size: .88rem;
  font-weight: 600;
  color: var(--green-mid);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: gap var(--transition), color var(--transition);
}
.service-link:hover { gap: .7rem; color: var(--green-dark); }

/* =============================================
   ABOUT
   ============================================= */
#about {
  padding: 6rem 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-img-main {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
}

.about-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.about-img-main:hover img { transform: scale(1.04); }

.about-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--green-dark);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-md);
}

.about-badge i { font-size: 2rem; color: var(--accent); }

.about-badge strong {
  display: block;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .75;
}

.about-badge span {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
}

.about-content p {
  color: var(--text-mid);
  margin-bottom: 1rem;
  font-size: .98rem;
  line-height: 1.75;
}

.about-checklist {
  margin: 1.6rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.about-checklist li {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .95rem;
  color: var(--text-mid);
}

.about-checklist li i {
  color: var(--green-light);
  font-size: 1rem;
  flex-shrink: 0;
}

/* =============================================
   PORTFOLIO
   ============================================= */
#portfolio {
  padding: 6rem 0;
  background: var(--off-white);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1.2rem;
}

.portfolio-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0;
  cursor: pointer;
}

.portfolio-item.large {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  transition: transform .5s ease;
}

.portfolio-item.large img { min-height: 460px; }

.portfolio-item:hover img { transform: scale(1.06); }

.portfolio-item figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(27,67,50,.92), transparent);
  color: var(--white);
  padding: 1.5rem 1.2rem .9rem;
  transform: translateY(30%);
  transition: transform var(--transition);
}

.portfolio-item:hover figcaption { transform: translateY(0); }

.portfolio-item figcaption h4 {
  font-family: var(--font-head);
  font-size: 1rem;
  margin-bottom: .2rem;
}

.portfolio-item figcaption p {
  font-size: .8rem;
  opacity: .8;
}

/* =============================================
   PORTFOLIO COMING SOON
   ============================================= */
.portfolio-coming-soon {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 2px dashed #c8dfc8;
}

.coming-soon-icon {
  width: 80px; height: 80px;
  background: var(--green-pale);
  color: var(--green-mid);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1.4rem;
}

.portfolio-coming-soon h3 {
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--text-dark);
  margin-bottom: .75rem;
}

.portfolio-coming-soon p {
  color: var(--text-mid);
  font-size: 1rem;
  max-width: 420px;
  margin-inline: auto;
  line-height: 1.75;
}

.portfolio-coming-soon p a {
  color: var(--green-mid);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.portfolio-coming-soon p a:hover { color: var(--green-dark); }

/* =============================================
   PROMISE CARDS (Why Choose Us)
   ============================================= */
.promise-card {
  text-align: center;
}

.promise-icon {
  width: 64px; height: 64px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: var(--accent);
  margin: 0 auto 1.2rem;
}

.promise-card h4 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: .6rem;
}

.promise-card p {
  font-size: .95rem;
  color: rgba(255,255,255,.75);
  line-height: 1.75;
}

/* Hero stat icons */
.stat-num i {
  font-size: 1.6rem;
  color: var(--green-light);
}

/* =============================================
   TESTIMONIALS
   ============================================= */
#testimonials {
  padding: 6rem 0;
  background: var(--green-dark);
}

#testimonials h2 { color: var(--white); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.8rem;
}

.testimonial-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 2rem;
  transition: background var(--transition), transform var(--transition);
}

.testimonial-card:hover {
  background: rgba(255,255,255,.12);
  transform: translateY(-4px);
}

.stars {
  color: var(--accent);
  font-size: .9rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 3px;
}

.testimonial-card > p {
  font-size: .97rem;
  color: rgba(255,255,255,.85);
  line-height: 1.75;
  margin-bottom: 1.4rem;
  font-style: italic;
}

.testimonial-card footer {
  display: flex;
  align-items: center;
  gap: .9rem;
}

.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.testimonial-card footer strong {
  display: block;
  color: var(--white);
  font-size: .95rem;
}
.testimonial-card footer span {
  font-size: .8rem;
  color: rgba(255,255,255,.55);
}

/* =============================================
   CONTACT / QUOTE FORM
   ============================================= */
#contact {
  padding: 6rem 0;
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}

.contact-info h2 { margin-bottom: 1rem; }

.contact-info > p {
  color: var(--text-mid);
  margin-bottom: 2rem;
  font-size: .97rem;
  line-height: 1.75;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  margin-bottom: 2rem;
}

.contact-details li {
  display: flex;
  align-items: center;
  gap: .9rem;
  font-size: .95rem;
  color: var(--text-mid);
}

.contact-details li i {
  width: 36px; height: 36px;
  background: var(--green-pale);
  color: var(--green-mid);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  flex-shrink: 0;
}

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

.social-links {
  display: flex;
  gap: .8rem;
}

.social-links a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--green-pale);
  color: var(--green-mid);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.social-links a:hover {
  background: var(--green-light);
  color: var(--white);
  transform: translateY(-3px);
}

/* Form */
.contact-form {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: 1.2rem;
}
.form-group.full { grid-column: 1/-1; }

.form-group label {
  font-size: .83rem;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: .02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: .75rem 1rem;
  border: 1.5px solid #dde3da;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .93rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green-light);
  box-shadow: 0 0 0 3px rgba(82,183,136,.15);
}

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

.form-success {
  margin-top: 1rem;
  color: var(--green-mid);
  font-weight: 600;
  font-size: .93rem;
  display: none;
  align-items: center;
  gap: .5rem;
}

.form-success:not([hidden]) {
  display: flex;
}

/* =============================================
   FOOTER
   ============================================= */
#footer {
  background: var(--text-dark);
  color: rgba(255,255,255,.7);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 3rem;
  padding: 4rem 0 3rem;
}

.footer-brand .logo-icon { background: var(--green-light); }
.footer-brand .logo-text { color: var(--white); }

.footer-brand p {
  margin-top: 1rem;
  font-size: .88rem;
  line-height: 1.7;
  max-width: 240px;
}

.footer-nav h4,
.footer-services h4,
.footer-contact h4 {
  color: var(--white);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 1.2rem;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.footer-nav ul li a {
  font-size: .9rem;
  transition: color var(--transition);
}
.footer-nav ul li a:hover { color: var(--green-light); }

.footer-services ul {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  font-size: .9rem;
}

.footer-contact p {
  font-size: .9rem;
  margin-bottom: .6rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.footer-contact i { color: var(--green-light); width: 14px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 1.4rem 0;
  text-align: center;
  font-size: .83rem;
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .about-grid { gap: 3rem; }
  .contact-grid { gap: 3rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 860px) {
  nav ul { display: none; }

  .hamburger { display: flex; }

  nav ul.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--green-dark);
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 999;
  }

  nav ul.mobile-open li a {
    font-size: 1.4rem;
    color: var(--white) !important;
  }

  .nav-cta { padding: .65rem 1.8rem !important; font-size: 1rem !important; }

  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }

  .about-image-wrap { max-width: 500px; margin-inline: auto; }

  .about-badge { right: 0; }

  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
  }
  .portfolio-item.large {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.2rem;
    border-radius: 0;
  }
  .stat-divider { width: 60px; height: 1px; }
}

@media (max-width: 600px) {
  .hero-content h1 { font-size: 2.3rem; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; justify-content: center; }

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

  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-item.large { grid-column: auto; grid-row: auto; }

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

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

  .contact-form { padding: 1.5rem; }
}
