/* ==========================================================================
   Prime Horizon Landscaping — main stylesheet
   One stylesheet shared by every page.

   Contents
     1. Design tokens (colors, fonts, spacing)
     2. Base / reset
     3. Layout helpers
     4. Buttons
     5. Header & navigation (incl. mobile menu)
     6. Page banner (inner pages)
     7. Home: hero
     8. Home: service cards
     9. Home: why choose us
    10. Home: testimonials
    11. About page
    12. Services page
    13. Portfolio page
    14. Footer
   ========================================================================== */


/* 1. Design tokens ------------------------------------------------------- */
:root {
  --green:        #1b581c;   /* primary brand green (header, footer, cards) */
  --green-light:  #6a961f;   /* accent bars / dividers */
  --yellow:       #fbc81f;   /* buttons, highlights */
  --gray-light:   #ececec;   /* testimonial cards */
  --gray-line:    #d9d9d9;
  --text:         #232323;
  --text-muted:   #636363;
  --white:        #ffffff;
  --black:        #000000;

  --font-heading: "Jost", Arial, sans-serif;
  --font-body:    "Poppins", Arial, sans-serif;

  --max-width:    1170px;
  --gutter:       20px;
  --header-height: 90px;
}


/* 2. Base / reset -------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

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

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-family: var(--font-heading);
  line-height: 1.25;
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
}


/* 3. Layout helpers ------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: 60px 0;
}

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

.section-title h2 {
  font-size: clamp(32px, 5vw, 50px);
  color: var(--green);
  margin-bottom: 0.2em;
}

.section-title p {
  font-size: 18px;
  margin: 0;
}

.divider {
  width: 80px;
  height: 0;
  border: 0;
  border-top: 5px solid var(--green-light);
  margin: 0 0 20px;
}

.center {
  text-align: center;
}


/* 4. Buttons ------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 15px 50px;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  text-decoration: none;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn-yellow {
  background: var(--yellow);
  color: var(--black);
}

.btn-yellow:hover,
.btn-yellow:focus-visible {
  background: var(--white);
  border-color: var(--yellow);
}

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

.btn-green:hover,
.btn-green:focus-visible {
  background: var(--white);
  color: var(--green);
  border-color: var(--green);
}

.btn-small {
  padding: 10px 28px;
  font-size: 16px;
}


/* 5. Header & navigation ------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--green);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-height);
  padding-top: 5px;
  padding-bottom: 5px;
}

.logo img {
  width: 220px;
}

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

.nav-links {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 3px solid transparent;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  color: var(--yellow);
  border-bottom-color: var(--yellow);
}

/* Hamburger button — hidden on desktop */
.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 12px;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 3px;
  margin: 5px 0;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* Animate the three bars into an "X" when the menu is open */
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 900px) {
  .logo img {
    width: 170px;
  }

  .nav-toggle {
    display: block;
  }

  /* Menu drops down below the header; hidden until .is-open is added by js/main.js */
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px var(--gutter) 25px;
    background: var(--green);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
  }

  .main-nav.is-open {
    display: flex;
  }

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

  .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .nav-links a[aria-current="page"] {
    border-bottom-color: rgba(255, 255, 255, 0.15);
  }

  .header-phone {
    margin-top: 20px;
    text-align: center;
  }
}


/* 6. Page banner (inner pages) ------------------------------------------- */
.page-banner {
  position: relative;
  padding: 70px 0;
  background-color: var(--black);
  background-size: cover;
  background-position: center;
  text-align: center;
  color: var(--white);
}

/* Dark overlay so the white title is always readable */
.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.page-banner h1 {
  position: relative;
  margin: 0;
  font-size: clamp(36px, 6vw, 60px);
}

.page-banner p {
  position: relative;
  max-width: 800px;
  margin: 15px auto 0;
  font-size: 18px;
}

.banner-about     { background-image: url("../images/banners/banner-about.webp"); }
.banner-portfolio { background-image: url("../images/banners/banner-portfolio.webp"); }
.banner-services  { background-image: url("../images/banners/banner-services.webp"); }


/* 7. Home: hero ---------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0;
  background: var(--black);
  color: var(--white);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.hero-content {
  position: relative;
}

.hero h1 {
  font-size: clamp(32px, 6vw, 65px);
  line-height: 1.3;
  margin-bottom: 20px;
}

.hero p {
  font-size: clamp(18px, 2.5vw, 24px);
  margin-bottom: 30px;
}


/* 8. Home: service cards ------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--green);
  color: var(--white);
}

.service-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.service-card-body {
  padding: 30px 35px 40px;
}

.service-card h3 {
  font-family: var(--font-body);
  font-size: 25px;
}

.service-card p {
  margin: 0;
}

.more-services {
  margin-top: 40px;
  text-align: center;
}

@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }
}


/* 9. Home: why choose us ------------------------------------------------- */
.why-choose {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.why-choose-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.why-choose-text {
  padding: 100px 80px;
  background: var(--green);
  color: var(--white);
}

.why-choose-text .eyebrow {
  margin-bottom: 10px;
  font-size: 18px;
  font-style: italic;
}

.why-choose-text h2 {
  font-size: clamp(30px, 4vw, 45px);
}

.why-choose-text h2 span {
  color: var(--yellow);
}

.checklist {
  margin: 25px 0 35px;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 600;
}

.checklist li::before {
  content: "\2714"; /* check mark */
  position: absolute;
  left: 0;
  color: var(--yellow);
}

@media (max-width: 900px) {
  .why-choose {
    grid-template-columns: 1fr;
  }

  .why-choose-image img {
    max-height: 350px;
  }

  .why-choose-text {
    padding: 50px var(--gutter);
  }
}


/* 10. Home: testimonials ------------------------------------------------- */
.testimonials {
  background: var(--yellow);
}

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

.testimonial {
  padding: 30px 30px 40px;
  background: var(--gray-light);
  border: 5px solid var(--green);
  box-shadow: 0 0 10px #707070;
}

.testimonial h3 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 22px;
}

.testimonial .location {
  margin: 0;
  color: var(--text-muted);
}

.testimonial .stars {
  margin: 5px 0 15px;
  font-size: 22px;
  color: var(--yellow);
  letter-spacing: 2px;
  -webkit-text-stroke: 1px #b8900f;
}

.testimonial blockquote {
  margin: 0;
  font-style: italic;
}

.testimonials .cta {
  margin-top: 40px;
  text-align: center;
}


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

.about-text h2 {
  font-size: clamp(28px, 4vw, 40px);
  color: var(--green);
}

.about-text h2 span {
  display: block;
  color: var(--text);
}

.about-photos {
  display: grid;
  gap: 20px;
}

.about-photos img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}


/* 12. Services page ------------------------------------------------------ */
.service-group-title {
  margin: 20px 0 30px;
  font-size: clamp(28px, 4vw, 40px);
  color: var(--green);
  text-align: center;
}

.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  padding: 30px 0;
}

/* Alternate image left / right on desktop */
.service-row:nth-of-type(even) .service-row-image {
  order: 2;
}

.service-row-image img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 6px;
}

.service-row h3 {
  font-size: clamp(24px, 3vw, 32px);
  color: var(--green);
}

@media (max-width: 900px) {
  .service-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* On mobile the image always comes first */
  .service-row:nth-of-type(even) .service-row-image {
    order: 0;
  }
}


/* 13. Portfolio page ----------------------------------------------------- */
.notice {
  max-width: 700px;
  margin: 0 auto 40px;
  text-align: center;
}

.notice h2 {
  font-size: clamp(28px, 4vw, 40px);
  color: var(--green);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
}

@media (max-width: 900px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* 14. Footer ------------------------------------------------------------- */
.site-footer {
  padding: 50px 0 15px;
  background: var(--green);
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 40px;
}

.footer-brand img {
  width: 230px;
  margin-bottom: 15px;
}

.site-footer h2 {
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-size: 18px;
}

.site-footer .divider {
  width: 60px;
  border-top-width: 3px;
  border-top-color: var(--yellow);
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.site-footer a {
  color: var(--white);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--yellow);
}

.site-footer address {
  font-style: normal;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 14px;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
