/* ==========================================================================
   home.css  —  styling ONLY for index.html
   Section order matches the markup:
   hero · about + stats · services · products · projects · why-us ·
   gallery · testimonials · equipment · faq/contact · blog
   ========================================================================== */

/* --- Hero — LEFT aligned, framed accent (not centred overlay) ----- */
.hero {
  position: relative;
  min-height: 84vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  padding-block: clamp(3rem, 8vw, 6rem);
}
@media (max-width: 640px) {
  .hero { min-height: 74vh; padding-block: 3rem; }
  .hero h1 { margin: .7rem 0 1rem; }
  .hero p { font-size: .95rem; margin-bottom: 1.5rem; }
  .hero__eyebrow { font-size: .62rem; letter-spacing: .12em; }
  .hero__eyebrow::before { width: 20px; }
  .hero__actions { gap: .6rem; flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; width: 100%; }
  .hero__inner { padding-left: 1rem; }
  .hero__inner > * { max-width: none; }
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 60% 55%;        /* keep the seating / garden in frame */
  z-index: -2;
  filter: saturate(1.06) contrast(1.03);
  transform: scale(1.06);
  animation: hero-drift 30s ease-in-out infinite alternate;
}

@keyframes hero-drift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to   { transform: scale(1.13) translate3d(-2%, -1.2%, 0); }
}

.hero::after {                    /* left-weighted wash: dark for the text, clear on the right */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(96deg, rgba(7,26,16,.92) 0%, rgba(7,26,16,.7) 30%, rgba(8,28,17,.28) 56%, rgba(8,28,17,.08) 100%),
    radial-gradient(135% 95% at 85% 10%, rgba(0,0,0,0) 40%, rgba(5,18,11,.42) 100%);
  z-index: -1;
}
.hero::before {                  /* bottom fade so the image melts into the page */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 40%;
  background: linear-gradient(to bottom, rgba(245,241,230,0) 0%, rgba(245,241,230,.12) 55%, var(--page) 100%);
  z-index: -1;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero__bg { animation: none; transform: scale(1.04); }
}
.hero__inner {
  position: relative;
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
  padding-left: clamp(1.2rem, 3vw, 2.4rem);
}
.hero__inner > * { max-width: 620px; }
.hero__inner::before {   /* gold accent rule beside the headline block */
  content: "";
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 3px;
  background: var(--gold);
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-size: .74rem;
  color: var(--gold-soft);
  animation: fade-in-up .7s ease both;
}
.hero__eyebrow::before {
  content: "";
  width: 30px; height: 2px;
  background: var(--gold-soft);
}
.hero h1 {
  color: #fff;
  margin: 1rem 0 1.2rem;
  animation: fade-in-up .7s .1s ease both;
}
.hero p {
  color: rgba(255,255,255,.9);
  margin: 0 0 2rem;
  animation: fade-in-up .7s .2s ease both;
}
.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fade-in-up .7s .3s ease both;
}
.hero__leaf {
  position: absolute;
  width: 72px;
  opacity: .28;
  animation: float-y 6s ease-in-out infinite;
}
.hero__leaf--l { display: none; }                       /* text lives on the left now */
.hero__leaf--r { right: 6%; top: 30%; width: 120px; animation-delay: 1.2s; }
@media (max-width: 900px) { .hero__leaf--r { display: none; } }

/* --- About ------------------------------------------------------ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about__collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 150px;
  gap: 1rem;
}
.about__collage img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); }
.about__collage img:first-child { grid-row: span 2; height: 100%; }
@media (max-width: 640px) {
  .about__collage { grid-auto-rows: 130px; gap: .7rem; }
  .about__collage img:first-child { grid-row: span 2; }
  .about__collage img:nth-child(3) { grid-column: span 2; }
}
.about__tags { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.4rem 0; }
.about__tags span {
  font-size: .82rem;
  font-weight: 500;
  color: var(--green-700);
  background: var(--green-050);
  border: 1px solid var(--green-100);
  padding: .35rem .8rem;
  border-radius: 999px;
}
.about p + p { margin-top: 1rem; }

/* Stats */
/* one bordered strip with hairline dividers — not four separate cards */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 3.5rem;
  background: #fff;
  border: 1px solid var(--gold-soft);
  border-radius: 4px;
}
.stat {
  text-align: left;
  padding: 1.6rem 1.5rem;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat__icon { display: none; }             /* drop the icon chips */
.stat__num {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--green-900);
  line-height: 1;
}
.stat__num::after { content: ""; display: block; width: 24px; height: 2px; background: var(--gold); margin: .55rem 0; }
.stat__label { font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }

/* --- Services -------------------------------------------------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.service-card {
  display: flex;
  flex-direction: column;
  position: relative;
  border-radius: 4px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold-soft);
  overflow: hidden;
  transition: border-left-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.service-card:hover { border-left-color: var(--gold); transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.service-card .card__body { flex: 1; }
.service-card .card__body h3 { margin-bottom: .5rem; }
.service-card p { font-size: .9rem; margin-bottom: 1rem; }
.service-card__add {
  align-self: flex-start;
  margin: 0 1.3rem 1.3rem;
  width: 34px; height: 34px;
  border-radius: 3px;
  background: var(--green-050);
  color: var(--green-800);
  display: grid; place-items: center;
  font-size: 0;
  transition: background .25s ease, color .25s ease;
}
.service-card__add::after { content: "\2192"; font-size: 1.05rem; }
.service-card:hover .service-card__add { background: var(--gold); color: #fff; }

/* --- Products ------------------------------------------------- */
.products__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.products .product-card { text-align: left; }
.products .product-card .card__media { display: block; }
.products .product-card .card__body { padding: 1rem 1.1rem 1.2rem; }
.products .product-card h3 { font-size: 1.02rem; margin-bottom: .8rem; transition: color .2s ease; }
.products .product-card:hover h3 { color: var(--gold); }
.products .product-card .btn { padding: .45rem 1rem; font-size: .78rem; }

/* --- Projects — asymmetric mosaic (4 tiles, alternating widths) --- */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: clamp(180px, 24vw, 260px);
  gap: 1rem;
}
.project-tile {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  grid-column: span 3;
}
.project-tile:nth-child(1),
.project-tile:nth-child(4) { grid-column: span 4; }
.project-tile:nth-child(2),
.project-tile:nth-child(3) { grid-column: span 2; }
.project-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.project-tile:hover img { transform: scale(1.06); }
.project-tile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(transparent 40%, rgba(9,34,21,.72));
  transition: background .3s ease;
}
.project-tile:hover::after { background: linear-gradient(rgba(9,34,21,.25), rgba(9,34,21,.8)); }
.project-tile__label {
  position: absolute;
  left: 1.1rem; bottom: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: #fff;
  transform: translateY(6px);
  opacity: .85;
  transition: transform .3s ease, opacity .3s ease, color .3s ease;
}
.project-tile:hover .project-tile__label { transform: none; opacity: 1; color: var(--gold-soft); }
.projects .btn { margin: 2.5rem auto 0; display: flex; width: fit-content; }

@media (max-width: 760px) {
  .projects__grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .project-tile,
  .project-tile:nth-child(1),
  .project-tile:nth-child(2),
  .project-tile:nth-child(3),
  .project-tile:nth-child(4) { grid-column: 1 / -1; }
}

/* --- Why choose us ---------------------------------------- */
.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
/* why-cards: open list rows with a top hairline + counter, no boxes */
.why__grid { counter-reset: why; }
.why-card {
  padding: 1.5rem 0 0;
  border-top: 2px solid var(--green-900);
  counter-increment: why;
  transition: border-top-color .3s ease;
}
.why-card:hover { border-top-color: var(--gold); }
.why-card__icon {
  width: 40px; height: 40px;
  color: var(--green-700);
  display: grid; place-items: center;
  margin-bottom: .8rem;
}
.why-card__icon::before {
  content: counter(why, decimal-leading-zero);
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--gold);
}
.why-card__icon svg { display: none; }
.why-card h3 { font-size: 1.12rem; margin-bottom: .4rem; }
.why-card p { font-size: .88rem; }

/* --- Gallery --------------------------------------------- */
.gallery__strip {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: .8rem;
}
.gallery__strip a {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.gallery__strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, filter .4s ease; }
.gallery__strip a:hover img { transform: scale(1.1); filter: saturate(1.2); }
.gallery .btn { margin: 2.2rem auto 0; display: flex; width: fit-content; }

/* --- Testimonials — large editorial pull-quote (no card box) --- */
.testimonials { text-align: left; }
.testi-viewport { overflow: hidden; max-width: 900px; }
.testi-track { display: flex; transition: transform .5s ease; }
.testi-slide { min-width: 100%; padding-left: 2rem; border-left: 3px solid var(--gold); }
.testi-slide img { display: none; }
.testi-slide .quote {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  line-height: 1.4;
  color: var(--green-900);
  font-style: normal;
  margin-bottom: 1.2rem;
}
.testi-slide .name {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
}
.testi-dots { display: flex; gap: .5rem; margin-top: 1.6rem; }
.testi-dots button { width: 26px; height: 2px; background: var(--line); transition: background .2s; }
.testi-dots button.active { background: var(--green-900); }

/* --- Equipment --------------------------------------- */
.equipment__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
.equip-card {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .8rem;
  background: #fff;
  transition: transform .25s ease, box-shadow .25s ease;
}
.equip-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); }
.equip-card img { aspect-ratio: 1; object-fit: cover; border-radius: 8px; margin-bottom: .5rem; }
.equip-card span { font-size: .82rem; font-weight: 500; }

/* --- FAQ + contact ---------------------------------- */
.faq__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.accordion__item { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: .8rem; background: #fff; overflow: hidden; }
.accordion__head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  font-weight: 600;
  color: var(--green-800);
  text-align: left;
}
.accordion__head .sign { flex-shrink: 0; color: var(--green-600); transition: transform .3s ease; font-size: 1.2rem; }
.accordion__item.open .accordion__head .sign { transform: rotate(45deg); }
.accordion__panel { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.accordion__panel p { padding: 0 1.2rem 1.2rem; font-size: .9rem; }

.contact-box {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
}
.contact-box .eyebrow { margin-bottom: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .82rem; font-weight: 500; margin-bottom: .35rem; }
.field input, .field textarea {
  width: 100%;
  padding: .7rem .9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: border-color .2s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green-600); }
.field textarea { min-height: 110px; resize: vertical; }
.captcha-box {
  display: flex; align-items: center; gap: .6rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .8rem;
  width: fit-content;
  font-size: .8rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

/* --- Blog ------------------------------------------- */
.blog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.blog-card .card__body { padding: 1.3rem; }
.blog-card__meta { display: flex; gap: 1rem; font-size: .78rem; color: var(--ink-soft); margin-bottom: .6rem; }
.blog-card__meta span { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--line); border-radius: 6px; padding: .15rem .5rem; }
.blog-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.blog-card p { font-size: .88rem; margin-bottom: 1rem; }
.blog .btn { margin: 2.5rem auto 0; display: flex; width: fit-content; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .services__grid,
  .why__grid,
  .blog__grid { grid-template-columns: repeat(2, 1fr); }
  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .equipment__grid { grid-template-columns: repeat(4, 1fr); }
  .gallery__strip { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }
  .faq__grid { grid-template-columns: 1fr; }
  .hero__leaf { display: none; }
}
@media (max-width: 640px) {
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 2.5rem; }
  .stat { padding: 1.1rem 1rem; border-bottom: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }
  .stat__num { font-size: 1.6rem; }
  .stat__num::after { margin: .4rem 0; }
  .stat__label { font-size: .7rem; }
}
@media (max-width: 640px) {
  /* keep two columns on phones so pages aren't endless */
  .products__grid,
  .why__grid,
  .blog__grid,
  .gallery__strip { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
  .equipment__grid { grid-template-columns: repeat(3, 1fr); gap: .7rem; }
  .form-row { grid-template-columns: 1fr; }

  /* service cards -> horizontal (image left, text right) */
  .services__grid { grid-template-columns: 1fr; gap: 1rem; }
  .service-card { flex-direction: row; align-items: stretch; }
  .service-card .card__media { width: 42%; flex-shrink: 0; aspect-ratio: auto; }
  .service-card .card__body { padding: .9rem 1rem; }
  .service-card p { display: none; }
  .service-card__add { margin: 0 1rem 1rem; }

  /* why-card + blog + product mini adjustments */
  .why-card h3, .blog-card h3, .product-card__body h3 { font-size: .98rem; }
  .blog-card__meta { font-size: .68rem; }

  /* projects mosaic -> simple stack */
  .projects__grid { grid-template-columns: 1fr; grid-auto-rows: 190px; }
  .project-tile,
  .project-tile:nth-child(1), .project-tile:nth-child(2),
  .project-tile:nth-child(3), .project-tile:nth-child(4) { grid-column: 1 / -1; }

  /* section CTA buttons full width */
  .projects .btn, .gallery .btn, .blog .btn { width: 100%; justify-content: center; }

  /* testimonials + equipment tighten */
  .testi-slide { padding-left: 1.2rem; }
  .testi-slide .quote { font-size: 1.15rem; line-height: 1.45; }
  .equip-card { padding: .55rem; }
  .equip-card span { font-size: .72rem; }
  .equip-card img { border-radius: 6px; }
}
@media (max-width: 360px) {
  .products__grid, .why__grid, .blog__grid { grid-template-columns: 1fr; }
}
