/* Shine Landscaping Inc. — Oshawa, ON
   Design direction: land-survey / grading precision.
   Contour lines and elevation marks stand in for the thing this
   company actually sells — a property built and graded correctly
   underneath, not just mowed on top. */

:root {
  /* anchors — kept at original values, referenced as hardcoded
     hex/rgba inline in several pages (eyebrow color, ghost-button border) */
  --ink: #12241c;
  --sun: #e0a458;

  /* redesigned palette */
  --pine: #1e3a2a;      /* deep survey-map green, dark bands */
  --pine-2: #16291d;    /* darker still, for depth/gradients */
  --moss: #547a52;      /* mid green, links & eyebrows */
  --lichen: #b7c79c;    /* pale sage, accents on dark */
  --clay: #b5602f;      /* clay/brick — construction material accent */
  --birch: #efe6d2;     /* warm stone/birch band background */
  --paper: #f8f3e6;     /* warm cream page background */
  --line: #d8cbac;      /* hairline / contour rule color on light */

  --display: "Fraunces", Georgia, serif;
  --body: "Outfit", -apple-system, BlinkMacSystemFont, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 5rem);
  --shell: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: var(--display);
  font-style: italic;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--moss);
  margin: 0 0 1.1rem;
  position: relative;
  padding-left: 1.6rem;
}
.eyebrow::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 1.1rem; height: 1px;
  background: currentColor;
}
.band-dark .eyebrow { color: var(--lichen); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem var(--gutter);
  background: transparent;
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
}
.nav.stuck {
  background: rgba(248, 243, 230, .95);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding-block: .7rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--paper);
  transition: color .35s ease;
}
.nav.stuck .brand, .nav.solid .brand { color: var(--ink); }
.brand svg { width: 30px; height: 30px; flex: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .03em;
  color: rgba(248, 243, 230, .88);
  padding-block: .3rem;
  border-bottom: 1px solid transparent;
  transition: color .3s ease, border-color .3s ease;
}
.nav.stuck .nav-links a, .nav.solid .nav-links a { color: var(--ink); }
.nav-links a:hover, .nav-links a[aria-current="page"] { border-bottom-color: var(--clay); }

.nav-cta {
  padding: .6rem 1.15rem !important;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--clay); border-color: var(--clay); color: #fff !important; }

.burger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: .4rem;
}
.burger span {
  display: block;
  width: 24px; height: 2px;
  margin: 5px 0;
  background: var(--paper);
  transition: background .3s ease, transform .3s ease, opacity .3s ease;
}
.nav.stuck .burger span, .nav.solid .burger span { background: var(--ink); }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Contour-line signature (used as texture + dividers) ---------- */
.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 90px;
  z-index: 2;
  pointer-events: none;
  opacity: .55;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 90'%3E%3Cpath d='M0 70 C 100 40, 200 90, 300 55 S 500 20, 600 50' fill='none' stroke='%23e0a458' stroke-width='1'/%3E%3Cpath d='M0 50 C 100 20, 200 70, 300 35 S 500 0, 600 30' fill='none' stroke='%23f8f3e6' stroke-opacity='0.5' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 600px 90px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 8rem var(--gutter) 5rem;
  color: var(--paper);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18,36,28,.6) 0%, rgba(18,36,28,.28) 40%, rgba(15,26,20,.92) 100%);
}
.hero-bg {
  position: absolute;
  inset: -8% 0 0;
  height: 116%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: var(--shell); margin: 0 auto; }
.hero h1 { max-width: 15ch; }
.hero p.lede {
  max-width: 44ch;
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
  color: rgba(248, 243, 230, .84);
  margin: 1.4rem 0 2.2rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2.4rem;
  margin-top: 3.4rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(248, 243, 230, .22);
}
.hero-meta div span {
  display: block;
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(248, 243, 230, .58);
  margin-bottom: .35rem;
}
.hero-meta div strong { font-family: var(--display); font-size: 1.15rem; font-weight: 600; }

/* page hero (inner pages) */
.page-hero {
  position: relative;
  min-height: 62svh;
  display: flex;
  align-items: flex-end;
  padding: 9rem var(--gutter) 3.8rem;
  color: var(--paper);
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,36,28,.68), rgba(15,26,20,.86));
}
.page-hero .hero-bg { inset: -6% 0 0; height: 112%; }
.page-hero .hero-inner p { max-width: 52ch; color: rgba(248,243,230,.82); margin: 1.1rem 0 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .95rem 1.9rem;
  border-radius: 2px;
  border: 1px solid transparent;
  font-family: var(--body);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { background: var(--clay); color: #fff; }
.btn-ghost { border-color: rgba(248,243,230,.45); color: var(--paper); }
.btn-ghost:hover { background: rgba(248,243,230,.12); }
.btn-pine { background: var(--pine); color: var(--paper); }
.btn-pine:hover { background: var(--moss); }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }

/* ---------- Sections ---------- */
section { position: relative; }
.band { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.band-dark {
  background: linear-gradient(160deg, var(--pine) 0%, var(--pine-2) 100%);
  color: var(--birch);
}
.band-dark .eyebrow { color: var(--lichen); }
.band-birch { background: var(--birch); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.split p { color: color-mix(in srgb, currentColor 78%, transparent); }

.frame { position: relative; border-radius: 2px; overflow: hidden; }
.frame::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(248,243,230,.14);
  pointer-events: none;
}
.frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.frame:hover img { transform: scale(1.05); }

/* ---------- Season strip (signature) ---------- */
.seasons { background: var(--pine-2); color: var(--birch); padding: clamp(4rem,8vw,7rem) 0; position: relative; }
.season-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(248,243,230,.14);
  border-block: 1px solid rgba(248,243,230,.14);
}
.season {
  position: relative;
  background: var(--pine-2);
  padding: 2.6rem 1.6rem 2.2rem;
  overflow: hidden;
  transition: background .5s ease;
}
.season::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 0;
  background: var(--accent, var(--moss));
  transition: height .6s cubic-bezier(.2,.8,.2,1);
}
.season:hover { background: #1c3527; }
.season:hover::before { height: 3px; }
.season .mark {
  font-family: var(--display);
  font-style: italic;
  font-size: .85rem;
  letter-spacing: .02em;
  color: var(--accent, var(--moss));
  display: block;
  margin-bottom: 1rem;
}
.season h3 { margin-bottom: .7rem; }
.season p { font-size: .93rem; color: rgba(248,243,230,.66); margin: 0; }

/* ---------- Service cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.6rem; }

.card {
  position: relative;
  display: block;
  text-decoration: none;
  color: var(--paper);
  border-radius: 2px;
  overflow: hidden;
  min-height: 400px;
  background: var(--pine);
}
.card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.92);
  transition: transform 1s cubic-bezier(.2,.8,.2,1), filter .6s ease;
}
.card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,36,28,.1) 28%, rgba(15,26,20,.94) 100%);
}
.card:hover img { transform: scale(1.07); filter: saturate(1.05); }
.card-body { position: absolute; inset: auto 0 0 0; padding: 1.9rem 1.7rem; z-index: 2; }
.card-body p { font-size: .92rem; color: rgba(248,243,230,.78); margin: .5rem 0 0; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s ease, opacity .4s ease, margin .5s ease; }
.card:hover .card-body p { max-height: 100px; opacity: 1; }
.card-body .arrow { display: inline-block; margin-top: 1rem; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sun); }

/* ---------- Detail lists ---------- */
.checks { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: .9rem; }
.checks li { display: flex; gap: .85rem; align-items: flex-start; font-size: .97rem; }
.checks li::before {
  content: "";
  flex: none;
  width: 14px; height: 14px;
  margin-top: .28rem;
  border: 1.5px solid var(--clay);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--clay) 0 2px, transparent 2.5px);
}

.spec {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.5rem 2.5rem;
  padding: 2rem 0;
  border-top: 1px dashed var(--line);
}
.band-dark .spec { border-top: 1px dashed rgba(248,243,230,.22); }
.spec h3 { font-size: 1.3rem; }
.spec p { margin: 0; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 2rem; }
.stat strong { display: block; font-family: var(--display); font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; color: var(--sun); }
.stat span { display: block; margin-top: .7rem; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; opacity: .75; }

/* ---------- Quote ---------- */
.quote { max-width: 760px; margin: 0 auto; text-align: center; }
.quote blockquote {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.5rem, 3.2vw, 2.35rem);
  line-height: 1.32;
  margin: 0 0 1.8rem;
  letter-spacing: -0.01em;
}
.stars { color: var(--sun); letter-spacing: .3em; font-size: 1rem; }
.quote cite { display: block; margin-top: 1rem; font-style: normal; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; opacity: .65; }

/* ---------- Gallery ---------- */
.mosaic { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; }
.mosaic figure { margin: 0; overflow: hidden; border-radius: 2px; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.2,.8,.2,1); }
.mosaic figure:hover img { transform: scale(1.06); }
.m-wide { grid-column: span 8; aspect-ratio: 16/9; }
.m-tall { grid-column: span 4; aspect-ratio: 3/4; }
.m-half { grid-column: span 6; aspect-ratio: 4/3; }
.m-third { grid-column: span 4; aspect-ratio: 1; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); }
.field { display: grid; gap: .5rem; margin-bottom: 1.2rem; }
.field label { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; opacity: .75; }
.field input, .field select, .field textarea {
  font-family: var(--body);
  font-size: 1rem;
  padding: .85rem 1rem;
  border: 1px solid rgba(248,243,230,.28);
  background: rgba(248,243,230,.06);
  color: inherit;
  border-radius: 2px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--sun); outline-offset: 1px; }
.field select option { color: var(--ink); }
.field textarea { min-height: 130px; resize: vertical; }

.info-row { display: flex; gap: 1rem; padding: 1.35rem 0; border-bottom: 1px dashed rgba(248,243,230,.2); }
.info-row .k { flex: none; width: 100px; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; opacity: .6; padding-top: .25rem; }
.info-row .v { font-size: 1.02rem; }
.info-row a { text-decoration: none; border-bottom: 1px solid var(--sun); }

/* ---------- Footer ---------- */
footer { background: var(--pine-2); color: rgba(248,243,230,.62); padding: 4.5rem 0 2rem; font-size: .9rem; position: relative; }
footer::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 60px; top: -60px;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 60'%3E%3Cpath d='M0 45 C 100 25, 200 55, 300 35 S 500 15, 600 30' fill='none' stroke='%23b5602f' stroke-width='1' stroke-opacity='0.5'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 600px 60px;
  pointer-events: none;
}
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; }
footer h4 { font-family: var(--display); font-style: italic; font-size: .9rem; font-weight: 600; color: var(--birch); margin: 0 0 1.1rem; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
footer a { text-decoration: none; transition: color .25s ease; }
footer a:hover { color: var(--sun); }
.foot-bottom {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  margin-top: 3.5rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(248,243,230,.14);
  font-size: .8rem;
}

/* ---------- Animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }

.scroll-hint {
  position: absolute;
  right: var(--gutter);
  bottom: 4rem;
  z-index: 3;
  writing-mode: vertical-rl;
  font-size: .68rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(248,243,230,.6);
}
.scroll-hint::after {
  content: "";
  display: block;
  width: 1px; height: 54px;
  margin: .8rem auto 0;
  background: linear-gradient(rgba(248,243,230,.7), transparent);
  animation: drop 2.2s infinite;
}
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split, .contact-grid { grid-template-columns: 1fr; }
  .season-track { grid-template-columns: repeat(2, 1fr); }
  .spec { grid-template-columns: 1fr; gap: .6rem; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .m-wide, .m-tall, .m-half, .m-third { grid-column: span 12; aspect-ratio: 16/10; }

  .burger { display: block; }
  .nav-links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(80vw, 320px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.6rem;
    padding: 2rem 2.2rem;
    background: var(--pine);
    transform: translateX(100%);
    transition: transform .45s cubic-bezier(.2,.8,.2,1);
  }
  .nav-links.open { transform: none; }
  .nav-links a, .nav.stuck .nav-links a, .nav.solid .nav-links a { color: var(--birch); font-size: 1.15rem; }
}

@media (max-width: 560px) {
  .season-track { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-meta { gap: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
