/* =========================================================
   Cedar & Stone Landscape — portfolio sample
   ========================================================= */

:root {
  --bg:        #f5f1e8;
  --bg-alt:    #ece6d6;
  --surface:   #ffffff;
  --ink:       #1c2419;
  --ink-2:     #3a4632;
  --muted:     #6e7560;
  --line:      #d8d2c2;
  --line-2:    #c8c1ac;
  --green:     #3e5a3a;
  --green-2:   #2c4329;
  --moss:      #5b7449;
  --sage:      #dfe7c8;
  --warm:      #b8633a;
  --cream:     #efe7d3;
  --serif:     "Fraunces", Georgia, serif;
  --sans:      "Inter", system-ui, -apple-system, sans-serif;
  --radius:    10px;
  --radius-lg: 22px;
  --shadow:    0 1px 2px rgba(28, 36, 25, .04), 0 14px 30px -10px rgba(28, 36, 25, .12);
  --ease:      cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 184px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--green); }

button { font: inherit; cursor: pointer; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 6px;
}
.skip:focus { left: 16px; top: 60px; z-index: 1001; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.012em;
  line-height: 1.18;
  margin: 0;
}
h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; }
h4 { font-family: var(--sans); font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-2); margin: 0 0 14px; }

em { color: var(--moss); font-style: italic; font-family: var(--serif); }

p { margin: 0 0 16px; color: var(--ink-2); }

.eyebrow {
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--moss);
  font-weight: 600;
  margin: 0 0 14px;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn-primary {
  background: var(--green);
  color: #fafaf2;
}
.btn-primary:hover {
  background: var(--green-2);
  transform: translateY(-1px);
  color: #fff;
}
.btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-block { width: 100%; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 44px; /* sits under TSD sample banner */
  z-index: 60;
  background: rgba(245, 241, 232, .85);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(245, 241, 232, .95);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -.005em;
}
.brand-mark { display: inline-flex; }
.brand:hover { color: var(--green); }

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav a {
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink-2);
}
.nav a:hover { color: var(--ink); }
.nav a.nav-cta {
  background: var(--green);
  color: #fafaf2;
  padding: 9px 18px;
  border-radius: 999px;
}
.nav a.nav-cta:hover { background: var(--green-2); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 36px;
  height: 36px;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--ink);
  border-radius: 2px;
}

.mobile-nav {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 12px 28px 20px;
}
.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.mobile-nav a {
  display: block;
  padding: 10px 4px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}

/* =========================================================
   Hero
   ========================================================= */
.hero { padding: 64px 0 96px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 64px;
}
.hero h1 { margin-bottom: 22px; }
.hero h1 em { display: inline; }
.lede {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--ink-2);
  margin-bottom: 30px;
  max-width: 520px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.hero-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  color: var(--muted);
  font-size: .9rem;
}
.hero-meta li {
  position: relative;
  padding-left: 18px;
}
.hero-meta li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--moss);
}

.hero-art {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-art svg { width: 100%; height: auto; display: block; }

/* =========================================================
   Sections
   ========================================================= */
section { padding: 96px 0; }

.section-head {
  max-width: 700px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head h2 { margin-bottom: 14px; }
.section-sub {
  color: var(--muted);
  font-size: 1.04rem;
  margin: 0;
}

/* Services */
.services { background: var(--bg-alt); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.service-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.service-ico {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--green);
  color: var(--sage);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.service-card p { margin: 0; font-size: .95rem; color: var(--ink-2); }

/* Process */
.process-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.process-list li {
  position: relative;
  padding: 28px 22px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.process-num {
  display: inline-block;
  font-family: var(--serif);
  color: var(--moss);
  font-size: .9rem;
  letter-spacing: .12em;
  margin-bottom: 10px;
}
.process-list h3 { font-size: 1.08rem; margin-bottom: 6px; }
.process-list p { margin: 0; font-size: .92rem; }

/* Work / gallery */
.work { background: var(--bg-alt); }
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.work-tile {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--green);
  color: #f4eed8;
  box-shadow: var(--shadow);
  cursor: default;
  transition: transform .3s var(--ease);
}
.work-tile:hover { transform: translateY(-3px); }
.work-tile figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px 22px 20px;
  background: linear-gradient(to top, rgba(28, 36, 25, .82), rgba(28, 36, 25, 0));
}
.work-tile-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: #fbf7e9;
  margin: 0 0 4px;
}
.work-tile-sub {
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #e6dec4;
  margin: 0 0 6px;
}
.work-tile-brief {
  font-size: .9rem;
  color: #f3edd8;
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .35s var(--ease), opacity .25s var(--ease);
}
.work-tile:hover .work-tile-brief,
.work-tile:focus-within .work-tile-brief {
  max-height: 140px;
  opacity: 1;
}
.work-tile--a { background: linear-gradient(135deg, #4a6a3e, #2c4329); }
.work-tile--b { background: linear-gradient(135deg, #5b7449, #3e5a3a); }
.work-tile--c { background: linear-gradient(135deg, #7a6e4d, #4c4232); }
.work-tile--d { background: linear-gradient(135deg, #82a062, #5b7449); }
.work-tile--e { background: linear-gradient(135deg, #c08754, #8e5a32); }
.work-tile--f { background: linear-gradient(135deg, #6a8060, #3e5a3a); }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 56px;
  align-items: start;
}
.stats {
  display: grid;
  gap: 22px;
  padding: 28px;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.stat-num {
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--green);
  margin: 0;
  line-height: 1;
}
.stat-label {
  font-size: .92rem;
  color: var(--muted);
  margin: 6px 0 0;
}

/* Testimonials */
.testimonials { background: var(--bg-alt); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.testimonials blockquote {
  margin: 0;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.testimonials .stars {
  font-size: .9rem;
  color: var(--warm);
  letter-spacing: 2px;
  margin: 0 0 10px;
}
.testimonials blockquote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.04rem;
  color: var(--ink);
  margin: 0 0 12px;
}
.testimonials cite {
  font-style: normal;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: start;
}
.contact-info { padding-top: 12px; }
.contact-list {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 12px;
  font-size: .96rem;
}
.contact-list strong {
  display: inline-block;
  width: 110px;
  color: var(--ink-2);
  font-weight: 600;
}
.contact-list a { color: var(--green); }
.contact-list a:hover { color: var(--green-2); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: grid;
  gap: 16px;
}
.contact-form .row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-form label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: .04em;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--ink);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}
.form-foot {
  margin: 6px 0 0;
  font-size: .8rem;
  color: var(--muted);
  text-align: center;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--ink);
  color: #cbc8b5;
  padding: 72px 0 0;
}
.site-footer h4 { color: #f7f4e8; }
.site-footer a { color: #d4d0bd; }
.site-footer a:hover { color: #ffffff; }
.brand-footer { color: #f7f4e8; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: .92rem;
}
.footer-grid p { color: #cbc8b5; max-width: 320px; margin: 14px 0 0; }
.footer-bottom {
  margin-top: 64px;
  padding: 22px 0;
  border-top: 1px solid #2a3327;
  font-size: .85rem;
}
.footer-bottom p { margin: 0; color: #8d8a78; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { max-width: 520px; margin: 0 auto; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .process-list { grid-template-columns: 1fr 1fr; }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  section { padding: 72px 0; }
  .hero { padding: 36px 0 64px; }
  .services-grid { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav ul { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* =========================================================
   Reveal on scroll
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger across grid children when the parent grid intersects */
.services-grid .reveal:nth-child(2) { transition-delay: .08s; }
.services-grid .reveal:nth-child(3) { transition-delay: .16s; }
.services-grid .reveal:nth-child(4) { transition-delay: .24s; }

.process-list .reveal:nth-child(2) { transition-delay: .08s; }
.process-list .reveal:nth-child(3) { transition-delay: .16s; }
.process-list .reveal:nth-child(4) { transition-delay: .24s; }

.work-grid .reveal:nth-child(2) { transition-delay: .06s; }
.work-grid .reveal:nth-child(3) { transition-delay: .12s; }
.work-grid .reveal:nth-child(4) { transition-delay: .18s; }
.work-grid .reveal:nth-child(5) { transition-delay: .24s; }
.work-grid .reveal:nth-child(6) { transition-delay: .30s; }

.testimonials-grid .reveal:nth-child(2) { transition-delay: .10s; }
.testimonials-grid .reveal:nth-child(3) { transition-delay: .20s; }

/* =========================================================
   Hero illustration: builds itself when it enters the viewport
   ========================================================= */
.hero-art svg .art-sun,
.hero-art svg .art-hill-back,
.hero-art svg .art-hill-front,
.hero-art svg .art-tree,
.hero-art svg .art-stone {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes art-sun-rise {
  0%   { opacity: 0; transform: translateY(-40px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes art-hill-rise {
  0%   { opacity: 0; transform: translateY(28px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes art-tree-pop {
  0%   { opacity: 0; transform: scale(.6); }
  60%  { opacity: 1; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes art-stone-in {
  0%   { opacity: 0; transform: scale(.6); }
  100% { opacity: 1; transform: scale(1); }
}

.hero-art.is-visible svg .art-sun        { animation: art-sun-rise   .55s var(--ease) .08s both; }
.hero-art.is-visible svg .art-hill-back  { animation: art-hill-rise  .5s var(--ease) .32s both; }
.hero-art.is-visible svg .art-hill-front { animation: art-hill-rise  .5s var(--ease) .48s both; }
.hero-art.is-visible svg .art-tree--left  { animation: art-tree-pop  .4s var(--ease) .68s both; transform-origin: 70px 274px; }
.hero-art.is-visible svg .art-tree--right { animation: art-tree-pop  .4s var(--ease) .78s both; transform-origin: 316px 282px; }
.hero-art.is-visible svg .art-stone--1   { animation: art-stone-in   .25s var(--ease) .92s both; transform-origin: 200px 320px; }
.hero-art.is-visible svg .art-stone--2   { animation: art-stone-in   .25s var(--ease) 1.02s both; transform-origin: 160px 338px; }
.hero-art.is-visible svg .art-stone--3   { animation: art-stone-in   .25s var(--ease) 1.12s both; transform-origin: 240px 338px; }

/* Hero text fade-up runs on load, no IO dependency */
.hero-text { animation: hero-text-in .8s var(--ease) .1s both; }
@keyframes hero-text-in {
  0%   { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .work-tile, .service-card { transition: none; }
  .work-tile-brief { transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-art svg [class^="art-"] { opacity: 1; transform: none; animation: none; }
  .hero-text { animation: none; }
}
