/* ============================================
   PERGOLA JACKS — Custom Stylesheet
   ============================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ---- Fonts ---- */
body { font-family: 'Jost', sans-serif; }

/* ---- Navigation ---- */
.nav-bar {
  background: linear-gradient(to bottom, rgba(26,58,42,0.92) 0%, transparent 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.nav-bar.scrolled {
  background: rgba(26,58,42,0.97);
  box-shadow: 0 2px 24px rgba(0,0,0,0.35);
}

/* ---- Hero (homepage) ---- */
.hero-home {
  min-height: 100svh;
  background:
    linear-gradient(to bottom, rgba(26,58,42,0.88) 0%, rgba(26,58,42,0.72) 55%, rgba(26,58,42,0.92) 100%),
    url('/media/hero-bg.jpg') center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding-bottom: 5rem;
}
/* Radial accent when no image loads */
.hero-home::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 25% 65%, rgba(139,94,60,0.35) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(74,103,65,0.45) 0%, transparent 50%);
  pointer-events: none;
}

/* Wood grain overlay used on several sections */
.wood-grain {
  background-image:
    repeating-linear-gradient(93deg, transparent, transparent 2px, rgba(139,94,60,0.035) 2px, rgba(139,94,60,0.035) 4px),
    repeating-linear-gradient(87deg, transparent, transparent 7px, rgba(201,168,76,0.018) 7px, rgba(201,168,76,0.018) 9px);
}

/* Page hero variants (inner pages) */
.hero-inner {
  background: linear-gradient(135deg, rgba(26,58,42,0.98) 0%, rgba(74,103,65,0.92) 100%);
  min-height: 38vh;
  display: flex;
  align-items: flex-end;
  padding-top: 6rem;
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
}
.hero-inner::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  height: 60px;
  background: inherit;
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
  pointer-events: none;
}

/* ---- Animations ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0);     }
}
.fade-up {
  opacity: 0;
  animation: fadeUp 0.85s cubic-bezier(0.22,1,0.36,1) forwards;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Gallery ---- */
.gallery-cell {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-cell:hover {
  transform: scale(1.015);
  box-shadow: 0 12px 40px rgba(26,58,42,0.22);
  z-index: 2;
}
.gallery-cell img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.gallery-cell:hover img { transform: scale(1.06); }

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
.placeholder-shimmer {
  background: linear-gradient(90deg, #e8e0d0 25%, #f2ece3 50%, #e8e0d0 75%);
  background-size: 200% auto;
  animation: shimmer 2.8s ease-in-out infinite;
}

/* ---- Service cards ---- */
.service-card {
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
  border-bottom-color: #c9a84c;
  box-shadow: 0 6px 24px rgba(26,58,42,0.1);
}

/* ---- Process steps ---- */
.process-step { position: relative; }
.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 28px; left: calc(100% + 8px);
  width: calc(100% - 16px);
  height: 1px;
  background: rgba(201,168,76,0.3);
}
@media (max-width: 768px) {
  .process-step:not(:last-child)::after { display: none; }
}

/* ---- Contact form ---- */
.form-field { position: relative; }
.form-field label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.85);
  font-weight: 500;
  margin-bottom: 8px;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  background: rgba(245,240,232,0.07);
  border: 1px solid rgba(245,240,232,0.2);
  color: #f5f0e8;
  padding: 13px 15px;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.9rem;
  outline: none;
  -webkit-appearance: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  border-radius: 0;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(245,240,232,0.3); }
.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(201,168,76,0.65);
  background: rgba(245,240,232,0.11);
}
.form-success {
  display: none;
  padding: 15px 22px;
  background: rgba(74,103,65,0.28);
  border: 1px solid rgba(74,103,65,0.55);
  color: #f5f0e8;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  margin-top: 14px;
}

/* ---- Scroll hint ---- */
@keyframes bounce {
  0%, 100% { transform: translateY(0) rotate(90deg); }
  50%       { transform: translateY(6px) rotate(90deg); }
}
.scroll-hint {
  animation: bounce 2s ease-in-out infinite;
}

/* ---- Misc ---- */
::selection { background: rgba(201,168,76,0.3); }
