@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  --ink: #141a22;
  --steel: #1e2a3a;
  --slate: #3d4b5c;
  --muted: #5c6b7a;
  --line: #d5dde6;
  --paper: #f3f6f9;
  --white: #ffffff;
  --brand: #5c9a2e;
  --brand-deep: #457422;
  --accent: #8bc34a;
  --accent-soft: #dceec8;
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 100% -10%, rgba(30, 77, 140, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(212, 137, 11, 0.08), transparent 50%),
    linear-gradient(180deg, #e8eef4 0%, var(--paper) 28%, #eef2f6 100%);
  min-height: 100vh;
}

.font-display {
  font-family: var(--font-display);
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

.brand-mark {
  letter-spacing: 0.02em;
}

.nav-link {
  position: relative;
  color: var(--steel);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--brand);
}

.nav-link.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 2px;
  background: var(--accent);
}

.phone-number-flipper {
  display: inline-grid;
  min-width: 9rem;
  overflow: hidden;
  perspective: 800px;
  vertical-align: middle;
}

.phone-number-face {
  grid-area: 1 / 1;
  backface-visibility: hidden;
  transition: transform 0.65s ease;
  white-space: nowrap;
}

.phone-number-face--back {
  transform: rotateX(180deg);
}

.phone-number-flipper.is-flipped .phone-number-face--front {
  transform: rotateX(-180deg);
}

.phone-number-flipper.is-flipped .phone-number-face--back {
  transform: rotateX(0deg);
}

@media (prefers-reduced-motion: reduce) {
  .phone-number-face {
    transition: none;
  }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--brand);
  color: var(--white);
  font-weight: 600;
  padding: 0.8rem 1.35rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background: var(--brand-deep);
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: var(--white);
  font-weight: 600;
  padding: 0.8rem 1.35rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.hero-panel {
  position: relative;
  min-height: min(88vh, 720px);
  overflow: hidden;
  background: var(--steel);
}

.hero-panel--fullscreen {
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
}

.hero-panel--fullscreen .hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: 100%;
}

.page-home .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    backdrop-filter 0.3s ease;
}

.page-home .site-header.is-transparent {
  background: transparent;
  border-color: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.page-home .site-header.is-transparent .brand-title,
.page-home .site-header.is-transparent .nav-link {
  color: #fff;
}

.page-home .site-header.is-transparent .brand-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.page-home .site-header.is-transparent .nav-link:hover,
.page-home .site-header.is-transparent .nav-link.is-active {
  color: var(--accent);
}

.page-home .site-header.is-transparent .nav-link.is-active::after {
  background: var(--accent);
}

.page-home .site-header.is-transparent .header-phone {
  color: #fff;
}

.page-home .site-header.is-transparent .menu-toggle {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.page-home .site-header.is-transparent #mobile-panel {
  background: rgba(20, 26, 34, 0.96);
  border-color: rgba(255, 255, 255, 0.12);
}

.page-home .site-header.is-transparent #mobile-panel a,
.page-home .site-header.is-transparent #mobile-panel p {
  color: rgba(255, 255, 255, 0.9);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  background-size: cover;
  background-position: center;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(20, 26, 34, 0.88) 0%, rgba(20, 26, 34, 0.55) 48%, rgba(20, 26, 34, 0.25) 100%),
    linear-gradient(0deg, rgba(20, 26, 34, 0.55), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  line-height: 0.95;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
}

.hero-kicker {
  color: var(--accent-soft);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.category-tile {
  position: relative;
  overflow: hidden;
  background: var(--steel);
  min-height: 220px;
  transition: transform 0.35s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
}

.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transition: transform 0.5s ease, opacity 0.35s ease;
}

.category-tile:hover img {
  transform: scale(1.06);
  opacity: 0.88;
}

.category-tile .label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.1rem 1.2rem;
  background: linear-gradient(transparent, rgba(14, 20, 28, 0.92));
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.page-hero {
  position: relative;
  min-height: 280px;
  background-size: cover;
  background-position: center;
  background-color: var(--steel);
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(20, 26, 34, 0.9), rgba(20, 26, 34, 0.45));
}

.page-hero-inner {
  position: relative;
  z-index: 1;
}

.side-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid transparent;
  color: var(--slate);
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.side-nav a:hover,
.side-nav a.is-active {
  background: rgba(92, 154, 46, 0.08);
  color: var(--brand);
  border-left-color: var(--accent);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.gallery-item {
  display: block;
  overflow: hidden;
  background: #dde3ea;
  aspect-ratio: 1;
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 14, 20, 0.88);
  padding: 1.25rem;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(96vw, 1100px);
  max-height: 88vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
}

.lightbox-nav.prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-nav.next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.form-field {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.85rem 1rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(92, 154, 46, 0.18);
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: none;
}

.mobile-panel {
  display: none;
}

.mobile-panel.is-open {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .category-tile,
  .gallery-item img {
    transition: none;
  }

  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
