:root {
  --bg: #f5f0e7;
  --bg-soft: #fbf8f3;
  --card: rgba(255, 255, 255, 0.75);
  --text: #3a3027;
  --muted: #7a6b5b;
  --line: rgba(102, 77, 51, 0.12);
  --accent: #a67c52;
  --accent-soft: #efe3d2;
  --shadow: 0 22px 50px rgba(97, 74, 49, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f9f5ef 0%, #f3ede3 100%);
  background-size: 140% 140%;
  animation: backgroundBreathe 20s ease-in-out infinite;
  overflow-x: hidden;
  position: relative;
}
body::selection { background: rgba(166, 124, 82, 0.18); }
body::before,
body::after {
  content: '';
  position: fixed;
  inset: auto;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(26px);
  opacity: 0.38;
  z-index: -1;
}
body::before {
  width: 18rem;
  height: 18rem;
  top: 6rem;
  left: -5rem;
  background: rgba(166, 124, 82, 0.16);
  animation: ambientFloat 16s ease-in-out infinite;
}
body::after {
  width: 22rem;
  height: 22rem;
  right: -8rem;
  top: 24rem;
  background: rgba(239, 227, 210, 0.95);
  animation: ambientFloat 18s ease-in-out infinite reverse;
}
a { color: inherit; text-decoration: none; }
.container { width: min(1160px, calc(100% - 2rem)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  background: rgba(251, 248, 243, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  animation: slideDownSoft 0.8s ease;
  transition: background 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.site-header.scrolled {
  background: rgba(251, 248, 243, 0.96);
  border-color: rgba(102, 77, 51, 0.16);
  box-shadow: 0 16px 40px rgba(97, 74, 49, 0.08);
}
.nav {
  min-height: 76px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.brand { font-weight: 800; letter-spacing: 0.02em; }
nav { display: flex; gap: 1.15rem; color: var(--muted); }
nav a {
  position: relative;
  transition: color 0.22s ease;
}
nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.28rem;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s ease;
}
nav a:hover {
  color: var(--text);
}
nav a.is-active {
  color: var(--text);
}
nav a:hover::after {
  transform: scaleX(1);
}
nav a.is-active::after {
  transform: scaleX(1);
}
.hero,
.featured,
.services,
.contact { padding: 5rem 0; }
.hero {
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  width: 34rem;
  height: 34rem;
  top: -10rem;
  right: -12rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 227, 210, 0.85), rgba(239, 227, 210, 0));
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 2rem;
  align-items: center;
}
.hero-grid > div:first-child > * {
  opacity: 0;
  transform: translateY(18px);
  animation: introRise 0.8s ease forwards;
}
.hero-grid > div:first-child > *:nth-child(1) { animation-delay: 0.08s; }
.hero-grid > div:first-child > *:nth-child(2) { animation-delay: 0.18s; }
.hero-grid > div:first-child > *:nth-child(3) { animation-delay: 0.28s; }
.hero-grid > div:first-child > *:nth-child(4) { animation-delay: 0.38s; }
.eyebrow {
  display: inline-flex;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(166, 124, 82, 0.08);
}
h1, h2, h3 { margin: 0; }
h1 {
  margin-top: 1rem;
  font-size: clamp(2.8rem, 5vw, 4.7rem);
  line-height: 0.98;
}
p { color: var(--muted); line-height: 1.75; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}
.btn {
  min-height: 50px;
  padding: 0.9rem 1.3rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  position: relative;
  overflow: hidden;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--text); color: #fff; }
.btn-secondary { background: #fff; border: 1px solid var(--line); }
.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.32), transparent);
  transform: skewX(-18deg);
  transition: left 0.5s ease;
}
.btn:hover::after {
  left: 140%;
}
.hero-card,
.feature-card,
.service-card,
.contact-card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.hero-card,
.feature-card,
.service-card,
.contact-card {
  transition: transform 0.26s ease, box-shadow 0.26s ease;
  position: relative;
  overflow: hidden;
}
.hero-card:hover,
.feature-card:hover,
.service-card:hover,
.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(97, 74, 49, 0.14);
}
.hero-card,
.contact-card { padding: 1.3rem; }
.hero-card {
  animation: introFloat 1.1s ease 0.22s both;
}
.hero-card::before,
.gallery-showcase::before {
  content: '';
  position: absolute;
  inset: -30%;
  background: linear-gradient(120deg, transparent 42%, rgba(255,255,255,0.24) 50%, transparent 58%);
  transform: translateX(-120%) rotate(8deg);
  animation: softShimmer 7.5s ease-in-out infinite;
  pointer-events: none;
}
.hero-board-image,
.gallery-thumb {
  display: block;
  width: 100%;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 18px 45px rgba(97, 74, 49, 0.12);
  transform-origin: center;
}
.hero-board-image {
  min-height: 360px;
  animation: boardFloat 7s ease-in-out infinite;
}
.section-heading { max-width: 700px; margin-bottom: 1.8rem; }
.section-heading h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 0.75rem 0; }
.section-heading.narrow { max-width: 620px; }
.featured-grid,
.service-grid {
  display: grid;
  gap: 1.3rem;
}
.featured-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-card,
.service-card { padding: 1.2rem; }
.feature-card:nth-child(1),
.service-card:nth-child(1) { transition-delay: 0.02s; }
.feature-card:nth-child(2),
.service-card:nth-child(2) { transition-delay: 0.08s; }
.feature-card:nth-child(3),
.service-card:nth-child(3) { transition-delay: 0.14s; }
.feature-card::before,
.service-card::before {
  content: '';
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 0.95rem;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(166, 124, 82, 0.95), rgba(166, 124, 82, 0));
  opacity: 0.35;
  transform: scaleX(0.34);
  transform-origin: left;
  transition: transform 0.28s ease, opacity 0.28s ease;
}
.feature-card:hover::before,
.service-card:hover::before {
  opacity: 1;
  transform: scaleX(1);
}
.icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.4rem;
  margin-bottom: 1rem;
  transition: transform 0.24s ease, background 0.24s ease;
}
.feature-card:hover .icon,
.service-card:hover .icon {
  transform: scale(1.08) rotate(-4deg);
  background: rgba(166, 124, 82, 0.2);
}
.feature-card h3,
.service-card h3 { font-size: 1.4rem; margin-bottom: 0.65rem; }
.gallery-showcase {
  margin: 0 0 1.4rem;
  padding: 1rem;
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  overflow: hidden;
  animation: cardBreath 8s ease-in-out infinite;
}
.gallery-intro {
  margin-bottom: 1rem;
}
.gallery-intro h3 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}
.gallery-intro p {
  margin: 0;
}
.split-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.gallery-item {
  position: relative;
  display: block;
  aspect-ratio: 423 / 281;
  border-radius: 22px;
  overflow: hidden;
  min-height: 0;
  box-shadow: 0 18px 40px rgba(97, 74, 49, 0.12);
  transform: translateZ(0);
  background: #f4eee6;
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 10, 6, 0.02), rgba(15, 10, 6, 0.3));
  transition: opacity 0.26s ease;
}
.gallery-item:hover::after {
  opacity: 0.52;
}
.gallery-thumb {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.35s ease;
  image-rendering: auto;
}
.gallery-item:hover .gallery-thumb {
  transform: scale(1.03);
}
.gallery-item.reveal-up,
.gallery-item.reveal-up .gallery-thumb,
.gallery-showcase.reveal-up {
  filter: none;
}
.gallery-item.reveal-up {
  transform: translateY(22px) scale(0.992);
}
.gallery-item.reveal-up.is-visible {
  transform: translateY(0) scale(1);
}
.gallery-caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.95rem;
  z-index: 1;
  color: #fff;
  display: grid;
  gap: 0.2rem;
}
.gallery-caption strong,
.gallery-caption small {
  display: block;
}
.gallery-caption small {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.9);
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
}
.lightbox[hidden] {
  display: none;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 15, 11, 0.72);
  backdrop-filter: blur(8px);
}
.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 920px);
  max-height: 88vh;
  padding: 1rem;
  background: rgba(255,255,255,0.92);
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.24);
}
.lightbox-image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 22px;
  background: #f6f1ea;
  margin: 0 auto;
  image-rendering: auto;
}
.lightbox-copy {
  padding: 0.9rem 0.2rem 0.15rem;
}
.lightbox-copy h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}
.lightbox-copy p {
  margin: 0;
}
.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 2;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  color: var(--text);
  font-size: 1.7rem;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}
.service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.contact-card {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1.5rem;
  align-items: start;
}
.contact-card h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 0.75rem 0; }
.contact-copy p { margin-bottom: 1rem; }
.contact-form {
  display: grid;
  gap: 1rem;
  animation: introFloat 1s ease 0.35s both;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.contact-form label {
  display: grid;
  gap: 0.45rem;
}
.contact-form label:focus-within span {
  color: var(--accent);
  transform: translateX(2px);
}
.contact-form span {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  transition: color 0.22s ease, transform 0.22s ease;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.95rem 1rem;
  font: inherit;
  color: var(--text);
  background: rgba(255,255,255,0.82);
  outline: none;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}
.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(166, 124, 82, 0.45);
  box-shadow: 0 0 0 4px rgba(166, 124, 82, 0.12);
  transform: translateY(-1px);
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.form-actions .btn {
  border: 0;
  cursor: pointer;
}
.form-actions .btn-primary {
  animation: buttonPulse 4.4s ease-in-out infinite;
}
.form-note {
  margin: 0;
  font-size: 0.95rem;
}
.reveal-up {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  filter: blur(4px);
  transition: opacity 0.7s ease, transform 0.7s ease, filter 0.7s ease;
}
.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.site-footer { padding: 1.25rem 0 2rem; }
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
.footer-copy {
  padding-top: 0.35rem;
}
.footer-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

@keyframes ambientFloat {
  0%,
  100% { transform: translateY(0) translateX(0) scale(1); }
  50% { transform: translateY(-18px) translateX(12px) scale(1.06); }
}

@keyframes backgroundBreathe {
  0%,
  100% { background-position: 50% 0%; }
  50% { background-position: 50% 100%; }
}

@keyframes slideDownSoft {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes introRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes introFloat {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes boardFloat {
  0%,
  100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.01); }
}

@keyframes softShimmer {
  0%,
  100% { transform: translateX(-130%) rotate(8deg); }
  50% { transform: translateX(130%) rotate(8deg); }
}

@keyframes cardBreath {
  0%,
  100% { box-shadow: 0 22px 50px rgba(97, 74, 49, 0.1); }
  50% { box-shadow: 0 28px 68px rgba(97, 74, 49, 0.16); }
}

@keyframes buttonPulse {
  0%,
  100% { box-shadow: 0 10px 24px rgba(58, 48, 39, 0.16); }
  50% { box-shadow: 0 16px 34px rgba(58, 48, 39, 0.28); }
}

@media (max-width: 960px) {
  .hero-grid,
  .featured-grid,
  .service-grid,
  .contact-card,
  .form-grid,
  .split-gallery { grid-template-columns: 1fr; }
  .hero,
  .featured,
  .services,
  .contact { padding: 4.25rem 0; }
}

@media (max-width: 640px) {
  nav,
  .hero-actions,
  .footer-row { flex-direction: column; align-items: flex-start; }
  .container { width: min(100% - 1.2rem, 1160px); }
  h1 { font-size: 2.8rem; }
  .btn { width: 100%; }
  .feature-card,
  .service-card,
  .contact-card,
  .hero-card,
  .gallery-showcase,
  .lightbox-dialog { border-radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal-up {
    opacity: 1;
    transform: none;
    filter: none;
  }
  body {
    background-size: auto;
  }
}
