/* Fence/Deck Template — style.css */
/* Palette: warm cream base, natural wood accent, deep forest green — outdoor lifestyle craft */

:root {
  --color-bg: #faf8f5;
  --color-surface: #ffffff;
  --color-green: #1a3d2b;
  --color-green-mid: #234d37;
  --color-wood: #8b6914;
  --color-wood-light: #a07c28;
  --color-text: #1c1c1e;
  --color-text-muted: #6b7280;
  --color-border: #e6e2da;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 2px 10px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-sans); background: var(--color-bg); color: var(--color-text); line-height: 1.6; }
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background .2s, transform .15s, box-shadow .2s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--color-green); color: #fff; }
.btn-primary:hover { background: var(--color-green-mid); box-shadow: 0 4px 16px rgba(26,61,43,.3); }
.btn-large { padding: 15px 32px; font-size: 1rem; }
.btn-submit { width: 100%; justify-content: center; margin-top: 8px; }

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-green);
}
.hero-image-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-image {
  width: 100%;
  height: 100%;
  background: var(--color-green) url('assets/hero-deck.jpg') center/cover no-repeat;
  transform-origin: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,61,43,.82) 0%, rgba(26,61,43,.45) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 60px 32px;
  opacity: 0;
  transform: translateY(18px);
}
.hero-content.animated {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .42s ease, transform .42s ease;
}
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .75rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 10px;
}
.hero-h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.08;
  margin-bottom: 14px;
}
.hero-tagline {
  font-size: clamp(.95rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.82);
  margin-bottom: 30px;
}
.hero-ctas { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-badge {
  display: inline-block;
  background: var(--color-wood);
  color: #fff;
  font-weight: 700;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 7px 14px;
  border-radius: 4px;
}

/* ─── TRUST BAR ─── */
.trust-bar { background: var(--color-surface); border-bottom: 1px solid var(--color-border); padding: 20px 0; }
.trust-items {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px 44px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: .88rem;
  color: var(--color-green);
  opacity: 0;
  transform: translateY(6px);
}
.trust-item.animated { opacity: 1; transform: translateY(0); transition: opacity .3s, transform .3s; }
.trust-icon { width: 20px; height: 20px; color: var(--color-wood); flex-shrink: 0; }

/* ─── SECTIONS ─── */
section { padding: 72px 0; }
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--color-green);
  margin-bottom: 10px;
  text-align: center;
}
.section-sub { text-align: center; color: var(--color-text-muted); margin-bottom: 48px; font-size: 1rem; }

/* ─── SERVICES ─── */
.services { background: var(--color-bg); }
.services-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.service-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 18px;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  font-weight: 600;
  font-size: .93rem;
  opacity: 0;
  transform: translateY(8px);
  transition: box-shadow .2s, border-color .2s;
}
.service-card.animated { opacity: 1; transform: translateY(0); }
.service-card:hover { box-shadow: var(--shadow); border-color: var(--color-wood); }
.service-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-wood);
  flex-shrink: 0;
}

/* ─── GALLERY ─── */
.gallery { background: var(--color-green); padding: 80px 0; }
.gallery .section-title { color: #fff; }
.gallery .section-sub { color: rgba(255,255,255,.7); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
}
.gallery-item.animated { opacity: 1; transform: translateY(0); transition: opacity .4s, transform .4s; }
.gallery-photo {
  width: 100%;
  aspect-ratio: 4/3;
  background: rgba(255,255,255,.05) center/cover no-repeat;
  transition: transform .4s ease;
}
.gallery-item:hover .gallery-photo { transform: scale(1.04); }
.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
  color: #fff;
  font-weight: 600;
  font-size: .85rem;
  padding: 24px 14px 12px;
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,61,43,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transition: opacity .2s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ─── LIGHTBOX ─── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}
.lightbox-image {
  max-width: 90vw;
  max-height: 75vh;
  width: 800px;
  aspect-ratio: 4/3;
  background: center/contain no-repeat;
  border-radius: var(--radius);
}
.lightbox-caption { color: rgba(255,255,255,.8); font-size: .9rem; font-weight: 600; }

/* ─── ABOUT ─── */
.about { background: var(--color-surface); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-image {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--color-green) url('assets/about-crew.jpg') center/cover no-repeat;
  border-radius: var(--radius-lg);
}
.about-eyebrow {
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .75rem;
  color: var(--color-wood);
  font-weight: 700;
  margin-bottom: 10px;
}
.about-text h2 {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 700;
  color: var(--color-green);
  margin-bottom: 16px;
  line-height: 1.22;
}
.about-text p { color: var(--color-text-muted); margin-bottom: 14px; line-height: 1.75; }
.about-text .btn { margin-top: 10px; }

/* ─── CALLOUT ─── */
.callout-banner { background: var(--color-wood); padding: 40px 0; }
.callout-text { text-align: center; color: rgba(255,255,255,.88); font-size: clamp(1rem, 2vw, 1.18rem); line-height: 1.65; max-width: 820px; margin: 0 auto; }
.callout-text strong { color: #fff; }

/* ─── TESTIMONIALS ─── */
.testimonials { background: var(--color-bg); }
.testimonial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.testimonial-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 30px;
  border-bottom: 4px solid var(--color-green);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateX(-14px);
}
.testimonial-card:nth-child(2) { transform: translateX(14px); }
.testimonial-card.animated { opacity: 1; transform: translateX(0); transition: opacity .4s, transform .4s; }
.stars { color: var(--color-wood); font-size: 1.15rem; margin-bottom: 12px; }
.testimonial-card blockquote { font-size: 1rem; color: var(--color-text); line-height: 1.65; font-style: italic; margin-bottom: 12px; }
.testimonial-card cite { font-size: .83rem; color: var(--color-text-muted); font-style: normal; font-weight: 600; }

/* ─── CONTACT FORM ─── */
.contact { background: var(--color-surface); }
.quote-form { max-width: 660px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-weight: 600; font-size: .88rem; color: var(--color-text); }
.form-group input,
.form-group textarea {
  padding: 12px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: inherit;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color .2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--color-green); }
.form-group input.error,
.form-group textarea.error { border-color: #dc2626; }
.form-success {
  display: none;
  margin-top: 12px;
  padding: 14px 18px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: var(--radius);
  color: #166534;
  font-weight: 600;
  font-size: .92rem;
}
.form-success.visible { display: block; }

/* ─── SERVICE AREA ─── */
.service-area { background: var(--color-bg); text-align: center; }
.service-area-text { font-size: 1.08rem; color: var(--color-text-muted); margin-bottom: 6px; }

/* ─── FOOTER ─── */
.footer { background: var(--color-green); color: rgba(255,255,255,.75); padding: 48px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand strong { display: block; font-size: 1.1rem; color: #fff; margin-bottom: 6px; }
.footer-brand p { font-size: .88rem; }
.footer-contact p { margin-bottom: 8px; font-size: .88rem; }
.footer-contact a { color: rgba(255,255,255,.75); text-decoration: none; }
.footer-contact a:hover { color: #fff; }
.footer-bottom { padding: 18px 24px; text-align: center; font-size: .78rem; color: rgba(255,255,255,.3); }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-image { display: none; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
  .hero { min-height: 80vh; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
}
