/* ==========================================================================
   Little Village Creative Co. · Stylesheet
   Romantic, garden-inspired, design-forward.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&family=Pinyon+Script&display=swap');

/* ---------- Tokens ---------- */
:root {
  /* Palette pulled from the logo */
  --sage:        #B8C4A9;
  --sage-soft:   #D8DECB;
  --sage-mist:   #ECEEE2;
  --forest:      #4A634E;
  --forest-deep: #2D4530;
  --cream:       #FFFFFF;
  --cream-warm:  #FFFFFF;
  --paper:       #FFFFFF;
  --ink:         #2A2723;
  --ink-soft:    #5C5851;
  --rule:        #C9CDB6;

  /* Type */
  --serif:  'EB Garamond', Garamond, serif;
  --script: 'Pinyon Script', 'Snell Roundhand', cursive;
  --sans:   'EB Garamond', Garamond, serif;

  /* Layout */
  --container: 1240px;
  --content:   1080px;
  --gutter:    clamp(20px, 5vw, 56px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

header, main, footer { position: relative; z-index: 2; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--forest-deep);
  letter-spacing: 0.005em;
  margin: 0 0 .5em;
}
h1 {
  font-size: clamp(2.6rem, 6.5vw, 5.4rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.01em;
}
h2 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 400;
  line-height: 1.1;
}
h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 500;
  line-height: 1.2;
}
p { margin: 0 0 1.1em; color: var(--ink); }
em, .italic { font-style: italic; }
.script {
  font-family: var(--script);
  font-weight: 400;
  color: var(--forest);
  font-size: 1.6em;
  line-height: 1;
}
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--forest-deep);
  display: inline-block;
  margin-bottom: 1.25rem;
}
.lead {
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 400;
  font-style: normal;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.content {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: clamp(72px, 11vw, 140px) 0; }
.section--tight { padding: clamp(48px, 7vw, 88px) 0; }
.section--sage { background: var(--sage-mist); }
.section--cream { background: var(--cream); }
.section--forest {
  background: var(--forest-deep);
  color: var(--cream);
}
.section--forest h1, .section--forest h2, .section--forest h3 { color: var(--cream-warm); }
.section--forest p { color: rgba(255, 255, 255,0.95); }
.section--forest .eyebrow { color: var(--sage); }
.section--forest .lead { color: rgba(255, 255, 255,0.95); }
.section--forest .script { color: var(--cream-warm); }
.section--forest .ornament { color: var(--sage); }
.section--forest .ornament .line { background: rgba(216, 222, 203, 0.4); }

/* ---------- Header ---------- */
.site-header {
  padding: 28px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky; top: 0;
  background: var(--paper);
  z-index: 50;
}
.brand {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.brand img {
  height: 46px;
  width: auto;
  max-width: none;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}
.brand-name {
  font-family: var(--script);
  font-style: normal;
  font-weight: 400;
  font-size: 1.85rem;
  color: var(--forest-deep);
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}
.brand-name small {
  display: block;
  font-style: normal;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--forest-deep);
  margin-top: 4px;
}
.nav {
  display: flex;
  gap: clamp(18px, 2.6vw, 38px);
  align-items: center;
}
.nav a {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
  transition: color .25s;
}
.nav a:hover { color: var(--forest); }
.nav a.active::after {
  content: ''; position: absolute; left: 50%; bottom: 0;
  width: 16px; height: 1px; background: var(--forest);
  transform: translateX(-50%);
}
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100vh - 102px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  /* Asymmetric padding compensates for the secondary image overhanging the
     bottom-right corner — keeps the visible photo area centered vertically. */
  padding: 50px 0 100px;
  background: var(--paper);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.hero-eyebrow-row {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 1.5rem;
}
.hero-eyebrow-row .rule { width: 56px; height: 1px; background: var(--forest); opacity: .5; }
.hero h1 .swash { font-family: var(--script); font-style: normal; color: var(--forest); font-size: 1.05em; line-height: .8; }
.hero-cta {
  display: flex; gap: 28px; align-items: center; margin-top: 2.2rem; flex-wrap: wrap;
}
.hero-illo {
  position: relative;
  aspect-ratio: 3000 / 4171; /* matches the source image so nothing is cropped */
}
.hero-illo > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  box-shadow: 0 28px 60px -28px rgba(45, 69, 48, 0.28);
}
.hero-illo .secondary {
  position: absolute;
  bottom: -8%;
  right: -10%;
  width: 56%;
  height: auto;
  z-index: 3;
  box-shadow: 0 28px 56px -20px rgba(45, 69, 48, 0.45);
}
@media (max-width: 720px) {
  .hero-illo .secondary {
    width: 50%;
    right: -5%;
    bottom: -6%;
  }
}

/* ---------- Buttons / Links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--forest-deep);
  padding: 16px 28px;
  border: 1px solid var(--forest-deep);
  background: transparent;
  transition: all .3s ease;
}
.btn:hover { background: var(--forest-deep); color: var(--cream); }
.btn--filled { background: var(--forest-deep); color: var(--cream); }
.btn--filled:hover { background: var(--forest); }
.btn--light { border-color: var(--cream); color: var(--cream); }
.btn--light:hover { background: var(--cream); color: var(--forest-deep); }
.link-arrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--forest-deep);
  display: inline-flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--forest);
  padding-bottom: 4px;
  transition: gap .3s;
}
.link-arrow:hover { gap: 16px; }

/* ---------- Ornament ---------- */
.ornament {
  display: flex; align-items: center; justify-content: center;
  gap: 18px; color: var(--forest); margin: 0 auto 2rem;
}
.ornament .line { width: 60px; height: 1px; background: var(--rule); }
.ornament svg { width: 28px; height: 28px; }

/* ---------- Featured services (cards) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 44px);
  margin-top: 3rem;
}
.card {
  background: transparent;
  padding: clamp(20px, 2vw, 28px) 0;
  position: relative;
  transition: transform .4s ease;
}
.card:hover { transform: translateY(-4px); }
.card .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--forest);
  letter-spacing: 0.1em;
  margin-bottom: 1.2rem;
  display: block;
}
.card svg.botanical { width: 64px; height: 64px; color: var(--forest); margin-bottom: 1.25rem; }
.card h3 { color: var(--forest-deep); margin-bottom: .6rem; }
.card p { color: var(--ink); font-size: 1rem; line-height: 1.65; margin-bottom: 1.5rem; }
.card .link-arrow { color: var(--forest-deep); font-size: 12px; }

/* ---------- Portfolio ---------- */
.portfolio-glimpse {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.4vw, 32px);
  margin-top: 3rem;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(20px, 2.4vw, 32px);
  margin-top: 3rem;
}
.portfolio-grid .tile { grid-column: span 2; }

.tile {
  position: relative;
  overflow: hidden;
  display: block;
  transition: transform .5s ease;
  aspect-ratio: 4/5;
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s ease;
}
.tile:hover img { transform: scale(1.03); }

/* Subtle vertical rhythm on the homepage triptych only; portfolio gallery stays flat */
.portfolio-glimpse .tile:nth-child(2) { transform: translateY(clamp(8px, 1.4vw, 24px)); }

/* If the last row has just 1 tile, center it (cols 3–4 of 6) */
.portfolio-grid .tile:last-child:nth-child(3n+1) { grid-column: 3 / span 2; }

/* If the last row has 2 tiles, center the pair (cols 2–3 and 4–5 of 6) */
.portfolio-grid .tile:nth-last-child(2):nth-child(3n+1) { grid-column: 2 / span 2; }

/* ---------- Welcome / split row ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.split--reverse { grid-template-columns: 1.1fr 1fr; }
.split-img {
  aspect-ratio: 4/5;
  position: relative;
  overflow: hidden;
}
.split-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.split .signature {
  font-family: var(--script);
  font-size: 2.4rem;
  color: var(--forest);
  margin-top: 1rem;
  display: block;
  line-height: 1;
}

/* ---------- Services list ---------- */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 96px);
  padding: clamp(48px, 6vw, 96px) 0;
  border-bottom: 1px solid var(--rule);
}
.service-block:last-child { border-bottom: 0; }
.service-block .meta .eyebrow { color: var(--forest-deep); }
.service-block .meta p { color: var(--ink); }
.service-block .meta h2 { color: var(--forest-deep); }
.service-block .investment {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin-top: 1.5rem;
}
.service-block .investment strong {
  display: block;
  font-style: normal;
  font-weight: 500;
  color: var(--forest-deep);
  font-size: 1.6rem;
  margin-top: .25rem;
}
.service-block ul.included {
  list-style: none; padding: 0; margin: 1.5rem 0 0;
  columns: 2; column-gap: 32px;
}
.service-block ul.included li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 0.6rem;
  font-size: 1rem;
  color: var(--ink);
  break-inside: avoid;
}
.service-block ul.included li::before {
  content: '';
  position: absolute; left: 0; top: 0.65em;
  width: 10px; height: 1px;
  background: var(--forest);
}

/* ---------- Form ---------- */
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
  margin-top: 2.5rem;
}
.form .full { grid-column: 1 / -1; }
.field {
  display: flex; flex-direction: column;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 6px;
  position: relative;
}
.field label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  font-family: var(--serif);
  font-size: 1.1rem;
  background: transparent;
  border: 0;
  padding: 10px 0;
  color: var(--ink);
  outline: none;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(92, 88, 81, .68); font-style: italic; }
.field:focus-within { border-bottom-color: var(--forest); }
.field textarea { min-height: 130px; }
.field .hint {
  font-family: var(--serif);
  font-style: normal;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink-soft);
  letter-spacing: 0;
  text-transform: none;
  margin: 0 0 8px;
}

/* Questionnaire checkbox group */
.form-group { grid-column: 1 / -1; }
.form-group > .group-label {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 6px;
}
.form-group > .hint {
  display: block;
  font-family: var(--serif);
  font-style: normal;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 28px;
}
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink);
  cursor: pointer;
}
.checkbox-item input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--forest);
  flex-shrink: 0;
  cursor: pointer;
}
@media (max-width: 540px) {
  .checkbox-grid { grid-template-columns: 1fr; }
}

/* Form success / error */
.form-success {
  text-align: center;
  padding: clamp(40px, 6vw, 72px) 0;
  max-width: 50ch;
  margin: 2.5rem auto 0;
}
.form-success h3 {
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--forest-deep);
  margin: 0.5rem 0 1rem;
}
.form-success p { color: var(--ink); }
.form-success .script {
  margin-top: 1.5rem;
  font-size: 1.8rem;
  color: var(--forest);
}
.form-error {
  margin-top: 1.5rem;
  padding: 14px 18px;
  background: rgba(180, 90, 80, 0.08);
  color: #6b2f2a;
  font-style: italic;
  font-size: 0.95rem;
  border-left: 2px solid #b45a50;
}
.form-error a { color: inherit; text-decoration: underline; }

/* ---------- FAQ ---------- */
.faq { margin-top: 2rem; }
.faq-item { border-bottom: 1px solid var(--rule); padding: 22px 0; }
.faq-item summary {
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--forest-deep);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.4rem; color: var(--forest-deep); transition: transform .3s; font-style: italic; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--ink); padding-top: .8rem; margin-bottom: 0; }

/* ---------- CTA banner ---------- */
.cta-banner {
  text-align: center;
  padding: clamp(72px, 10vw, 130px) var(--gutter);
}
.cta-banner h2 {
  font-style: italic;
  font-weight: 300;
  max-width: 18ch;
  margin: 0 auto 1.5rem;
}
.cta-banner .lead { max-width: 50ch; margin: 0 auto 2.5rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--forest-deep);
  color: var(--cream);
  padding: 80px var(--gutter) 32px;
}
.site-footer .container { max-width: var(--container); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
}
.site-footer h4 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1.2rem;
}
.site-footer a:not(.brand) { color: var(--cream); display: block; padding: 4px 0; opacity: .92; transition: opacity .25s; }
.site-footer a:not(.brand):hover { opacity: 1; }
.site-footer .brand { color: var(--cream); }
.site-footer p { color: rgba(255, 255, 255,0.92); }
.site-footer .brand-name { color: var(--cream); }
.site-footer .brand-name small { color: var(--sage); }
.site-footer .brand img { filter: brightness(0) invert(1); opacity: 0.92; }
.footer-bottom {
  margin-top: 64px; padding-top: 24px;
  border-top: 1px solid rgba(216, 222, 203, 0.3);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: .85;
}
.footer-tagline {
  font-family: var(--script);
  font-size: 2rem;
  color: var(--sage);
  text-transform: none;
  letter-spacing: 0;
  line-height: 1;
}

/* ---------- Page header ---------- */
.page-header {
  text-align: center;
  padding: clamp(80px, 10vw, 130px) var(--gutter) clamp(40px, 5vw, 70px);
  position: relative;
}
.page-header h1 { margin-bottom: 1rem; }
.page-header .lead { max-width: 50ch; margin: 0 auto; }
.page-header .ornament { margin-top: 2rem; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.divider {
  border: 0;
  height: 1px;
  background: var(--rule);
  max-width: 80px;
  margin: 2rem auto;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .split, .split--reverse, .service-block { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .form { grid-template-columns: 1fr; }
  .service-block ul.included { columns: 1; }
  .hero { padding: 56px 0; }
  .section { padding: clamp(56px, 9vw, 120px) 0; }
}
@media (max-width: 720px) {
  .portfolio-glimpse,
  .portfolio-grid { grid-template-columns: 1fr; gap: 20px; }
  .portfolio-grid .tile,
  .portfolio-grid .tile:last-child:nth-child(3n+1),
  .portfolio-grid .tile:nth-last-child(2):nth-child(3n+1) { grid-column: 1 / -1; }
  .portfolio-glimpse .tile:nth-child(2) { transform: none; }
  .nav { display: none; gap: 18px; }
  .nav.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper);
    padding: 24px var(--gutter);
    align-items: flex-start;
  }
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 4px;
    width: 28px; height: 22px; justify-content: center;
  }
  .nav-toggle span { width: 100%; height: 1px; background: var(--ink); }
  .brand-name { font-size: 1.4rem; }
  .brand-name small { font-size: 9px; letter-spacing: 0.22em; }
  body { font-size: 17px; }
  .hero { min-height: auto; padding: 40px 0 64px; }
  .hero-illo .secondary { width: 50%; right: 0; bottom: -4%; }
  /* Mobile: keep the whitespace above the eyebrow equal to the whitespace
     between the ornament and the first image below (~32px each), and pull
     the whole block in tight. The .portfolio-grid normally adds 3rem of
     top margin and the .ornament adds 2rem of bottom margin — drop both
     on mobile so the section padding alone defines the gap. */
  .page-header { padding: 32px var(--gutter) 16px; }
  .page-header .ornament { margin-bottom: 0; }
  .section--tight { padding: 16px 0 56px; }
  .section--tight .portfolio-grid { margin-top: 0; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-cta { gap: 18px; }
  .btn { padding: 14px 22px; }
  .form { gap: 20px; }
}
