/* ============================================================
       CSS CUSTOM PROPERTIES
    ============================================================ */
:root {
  --black: #0a0a0a;
  --deep: #111010;
  --iron: #1c1a19;
  --iron-mid: #2b2826;
  --iron-light: #3d3a37;
  --ash: #6b6560;
  --smoke: #9e9890;
  --parchment: #e8e0d0;
  --cream: #f5f0e8;
  --gold: #c9a84c;
  --gold-light: #e8c96a;
  --gold-dim: #8a6e2e;
  --rust: #8b3a1a;
  --white: #faf8f4;

  --font-display: "Gelasio", serif;
  --font-body: "Gelasio", serif;
  --font-ui: "Raleway", sans-serif;

  --ease-silk: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-snap: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
       RESET & BASE
    ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--black);
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.75;
  overflow-x: hidden;
  cursor: default;
}

::selection {
  background: var(--gold);
  color: var(--black);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ============================================================
       SCROLLBAR
    ============================================================ */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--black);
}
::-webkit-scrollbar-thumb {
  background: var(--gold-dim);
  border-radius: 3px;
}

/* ============================================================
       CUSTOM CURSOR
    ============================================================ */
.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition:
    transform 0.1s var(--ease-snap),
    opacity 0.3s;
  mix-blend-mode: difference;
}
.cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition:
    transform 0.18s var(--ease-silk),
    width 0.3s,
    height 0.3s,
    opacity 0.3s;
  opacity: 0.6;
}
.cursor-ring.expand {
  width: 60px;
  height: 60px;
  opacity: 0.3;
}

/* ============================================================
       NOISE OVERLAY
    ============================================================ */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 1000;
}

/* ============================================================
       TYPOGRAPHY UTILS
    ============================================================ */
.display-title {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.1;
}

.section-label {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.gold-line {
  display: block;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 1.5rem 0;
}

/* ============================================================
       REVEAL ANIMATIONS
    ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.9s var(--ease-silk),
    transform 0.9s var(--ease-silk);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition:
    opacity 0.9s var(--ease-silk),
    transform 0.9s var(--ease-silk);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition:
    opacity 0.9s var(--ease-silk),
    transform 0.9s var(--ease-silk);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

[data-delay="1"] {
  transition-delay: 0.1s;
}
[data-delay="2"] {
  transition-delay: 0.2s;
}
[data-delay="3"] {
  transition-delay: 0.3s;
}
[data-delay="4"] {
  transition-delay: 0.4s;
}
[data-delay="5"] {
  transition-delay: 0.5s;
}
[data-delay="6"] {
  transition-delay: 0.6s;
}

/* ============================================================
       NAV
    ============================================================ */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding: 1.5rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition:
    background 0.5s var(--ease-snap),
    padding 0.4s;
}
#nav.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  padding: 1rem 4rem;
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  color: var(--gold-light);
  text-transform: uppercase;
}
.nav-logo span {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  color: var(--smoke);
  font-weight: 300;
  margin-top: 0.1rem;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--smoke);
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.35s var(--ease-silk);
}
.nav-links a:hover {
  color: var(--gold-light);
}
.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--gold);
  padding: 0.65rem 1.6rem;
  transition:
    background 0.3s,
    color 0.3s,
    transform 0.2s;
}
.nav-cta:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 1.5px;
  background: var(--gold);
  transition:
    transform 0.3s,
    opacity 0.3s;
}
.hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.97);
  z-index: 490;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.1em;
  color: var(--parchment);
  transition: color 0.3s;
}
.mobile-menu a:hover {
  color: var(--gold);
}

/* ============================================================
       HERO
    ============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 60% at 60% 40%,
      rgba(139, 58, 26, 0.12) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 50% 50% at 20% 80%,
      rgba(201, 168, 76, 0.06) 0%,
      transparent 50%
    ),
    linear-gradient(160deg, #0a0a0a 0%, #141210 50%, #0f0d0c 100%);
}

/* SVG iron pattern overlay */
.hero-pattern {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 55%;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23c9a84c' stroke-width='0.5'%3E%3Ccircle cx='40' cy='40' r='20'/%3E%3Ccircle cx='40' cy='40' r='38'/%3E%3Cline x1='40' y1='2' x2='40' y2='78'/%3E%3Cline x1='2' y1='40' x2='78' y2='40'/%3E%3Cline x1='14' y1='14' x2='66' y2='66'/%3E%3Cline x1='66' y1='14' x2='14' y2='66'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
  pointer-events: none;
}

/* Animated vertical lines */
.hero-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-lines::before,
.hero-lines::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(201, 168, 76, 0.3),
    transparent
  );
  animation: lineSlide 4s var(--ease-silk) infinite;
}
.hero-lines::before {
  left: 25%;
  animation-delay: 0s;
}
.hero-lines::after {
  left: 75%;
  animation-delay: 2s;
}

@keyframes lineSlide {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
  51% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 0 4rem;
  max-width: 750px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeSlideUp 1s var(--ease-silk) 0.3s forwards;
}
.hero-eyebrow::before {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cream);
  line-height: 0.95;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeSlideUp 1.1s var(--ease-silk) 0.5s forwards;
}
.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--gold-light);
  display: block;
}

.hero-sub {
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--smoke);
  max-width: 480px;
  margin-bottom: 3rem;
  line-height: 1.8;
  opacity: 0;
  animation: fadeSlideUp 1s var(--ease-silk) 0.7s forwards;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  opacity: 0;
  animation: fadeSlideUp 1s var(--ease-silk) 0.9s forwards;
}

.btn-primary {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--black);
  padding: 1rem 2.4rem;
  font-weight: 500;
  transition:
    background 0.3s,
    transform 0.2s,
    box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold-light);
  transform: translateX(-101%);
  transition: transform 0.35s var(--ease-silk);
}
.btn-primary:hover::before {
  transform: translateX(0);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.25);
}
.btn-primary span {
  position: relative;
  z-index: 1;
}

.btn-ghost {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--parchment);
  border-bottom: 1px solid rgba(232, 201, 106, 0.4);
  padding-bottom: 2px;
  transition:
    color 0.3s,
    border-color 0.3s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-ghost:hover {
  color: var(--gold-light);
  border-color: var(--gold);
}
.btn-ghost .arrow {
  display: inline-block;
  transition: transform 0.3s;
}
.btn-ghost:hover .arrow {
  transform: translateX(5px);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeIn 1s 1.5s forwards;
}
.scroll-indicator span {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ash);
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, var(--gold-dim), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,
  100% {
    transform: scaleY(1);
    opacity: 0.6;
  }
  50% {
    transform: scaleY(0.5);
    opacity: 1;
  }
}

/* ── Hero composition ──────────────────────────────────── */
.hero-icons-grid {
  position: absolute;
  right: 2%;
  top: 50%;
  transform: translateY(-50%);
  width: 520px;
  height: 640px;
  opacity: 0;
  animation: floatIn 1.4s var(--ease-silk) 0.8s forwards;
}

/* Photo placeholder cards — primary */
.hero-photo {
  position: absolute;
  border: 1px solid rgba(201, 168, 76, 0.25);
  background: var(--iron);
}
.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(201, 168, 76, 0.04) 0%,
    transparent 60%
  );
  z-index: 1;
}
/* thin gold inner border */
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(201, 168, 76, 0.12);
  z-index: 2;
  pointer-events: none;
}
.hero-photo svg {
  width: 100%;
  height: 100%;
  display: block;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}
.hero-photo-label {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 0.5rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-dim);
  z-index: 3;
}

/* photo sizes & positions — more spread, bigger */
.hero-photo.p1 {
  width: 300px;
  height: 200px;
  top: 50px;
  left: -180px;
  animation: float 6.2s ease-in-out 0s infinite;
  z-index: 60;
}
.hero-photo.p2 {
  width: 250px;
  height: 350px;
  top: 0px;
  left: 180px;
  animation: float 7s ease-in-out 1.1s infinite;
  z-index: 40;
}
.hero-photo.p3 {
  width: 250px;
  height: 350px;
  top: 300px;
  left: -100px;
  animation: float 6.6s ease-in-out 0.5s infinite;
  z-index: 30;
}
.hero-photo.p4 {
  width: 300px;
  height: 200px;
  top: 400px;
  left: 200px;
  animation: float 7.4s ease-in-out 1.6s infinite;
  z-index: 20;
}

.hero-photo.p5 {
  width: 230px;
  height: 230px;
  top: 200px;
  left: 50px;
  animation: float 7.4s ease-in-out 1.6s infinite;
  z-index: 50;
}

/* Icon badge — secondary, overlaps photos */
.hero-icon-badge {
  position: absolute;
  background: var(--black);
  border: 1px solid rgba(201, 168, 76, 0.3);
  padding: 8px;
  z-index: 50;
  right: -20px;
  bottom: -20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}
.hero-icon-badge svg {
  display: block;
  width: 68px;
  height: 68px;
}

/* badge positions — at seams between photos */
.hero-icon-badge.b1 {
  animation: float 6.8s ease-in-out 0.3s infinite;
}
.hero-icon-badge.b2 {
  animation: float 7.2s ease-in-out 1.4s infinite;
}
.hero-icon-badge.b3 {
  animation: float 6.4s ease-in-out 0.9s infinite;
}
.hero-icon-badge.b4 {
  animation: float 7.6s ease-in-out 0s infinite;
}

.hero-icon-label {
  display: block;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 0.45rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dim);
  opacity: 0.8;
  white-space: nowrap;
  margin-top: 4px;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(-50%) translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ============================================================
       SECTION SHARED
    ============================================================ */
section {
  position: relative;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4rem;
}

/* Decorative separator */
.ornament-divider {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0 auto 5rem;
  max-width: 400px;
}
.ornament-divider::before,
.ornament-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim));
}
.ornament-divider::after {
  background: linear-gradient(90deg, var(--gold-dim), transparent);
}
.ornament-divider svg {
  color: var(--gold);
  flex-shrink: 0;
}

/* ============================================================
       ABOUT SECTION
    ============================================================ */
#about {
  padding: 4rem 0;
  background: linear-gradient(180deg, var(--black) 0%, var(--deep) 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-image-frame {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--iron);
  overflow: hidden;
}
.about-image-frame::before {
  content: "";
  position: absolute;
  inset: 1px;
  border: 1px solid rgba(201, 168, 76, 0.2);
  z-index: 2;
}
.about-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%) contrast(1.05);
  transition:
    filter 0.5s,
    transform 0.8s var(--ease-silk);
}
.about-image-frame:hover img {
  filter: grayscale(0%) contrast(1.05);
  transform: scale(1.03);
}
.about-accent-box {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--gold);
  padding: 1.8rem 2rem;
  color: var(--black);
  z-index: 3;
}
.about-accent-box .num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}
.about-accent-box .label {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-top: 0.3rem;
  font-weight: 500;
}
.about-corner-decor {
  position: absolute;
  top: -1.5rem;
  left: -1.5rem;
  width: 80px;
  height: 80px;
  border-top: 1px solid var(--gold-dim);
  border-left: 1px solid var(--gold-dim);
}

.about-text h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--cream);
  margin-bottom: 1.5rem;
}
.about-text p {
  color: var(--smoke);
  font-size: 1.15rem;
  line-height: 1.9;
  margin-bottom: 1.5rem;
}
.about-text p strong {
  color: var(--parchment);
  font-weight: 400;
}

.values-list {
  list-style: none;
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.values-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--parchment);
}
.values-list li::before {
  content: "";
  display: block;
  width: 18px;
  height: 1px;
  background: var(--gold);
  margin-top: 0.55em;
  flex-shrink: 0;
}

/* ============================================================
       FENCE TYPES
    ============================================================ */
#fences {
  padding: 4rem 0;
  background: var(--deep);
}

.fences-header {
  text-align: center;
  margin-bottom: 5rem;
}
.fences-header h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--cream);
  margin: 1rem 0;
}
.fences-header p {
  color: var(--smoke);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.fences-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.fence-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3/4;
  background: var(--iron);
}

.fence-card-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.7s var(--ease-silk);
}
.fence-card:hover .fence-card-bg {
  transform: scale(1.06);
}

/* SVG placeholder patterns for fence types */
.fence-card-bg.classic {
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 22px,
      rgba(201, 168, 76, 0.25) 22px,
      rgba(201, 168, 76, 0.25) 24px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 40px,
      rgba(201, 168, 76, 0.1) 40px,
      rgba(201, 168, 76, 0.1) 42px
    ),
    linear-gradient(160deg, #1a1612 0%, #2b2319 100%);
}
.fence-card-bg.ornate {
  background:
    radial-gradient(
      ellipse 30% 50% at 50% 50%,
      rgba(201, 168, 76, 0.12) 0%,
      transparent 70%
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 30px,
      rgba(201, 168, 76, 0.15) 30px,
      rgba(201, 168, 76, 0.15) 32px
    ),
    linear-gradient(160deg, #15100e 0%, #261d13 100%);
}
.fence-card-bg.industrial {
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 14px,
      rgba(180, 180, 180, 0.08) 14px,
      rgba(180, 180, 180, 0.08) 16px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 14px,
      rgba(180, 180, 180, 0.06) 14px,
      rgba(180, 180, 180, 0.06) 16px
    ),
    linear-gradient(160deg, #111111 0%, #1e1e1e 100%);
}
.fence-card-bg.garden {
  background:
    radial-gradient(
      ellipse 60% 40% at 50% 30%,
      rgba(60, 100, 40, 0.15) 0%,
      transparent 60%
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 18px,
      rgba(201, 168, 76, 0.12) 18px,
      rgba(201, 168, 76, 0.12) 19px
    ),
    linear-gradient(160deg, #0e1308 0%, #1a2010 100%);
}
.fence-card-bg.gate {
  background:
    radial-gradient(
      ellipse 80% 80% at 50% 50%,
      rgba(139, 58, 26, 0.1) 0%,
      transparent 60%
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 26px,
      rgba(201, 168, 76, 0.2) 26px,
      rgba(201, 168, 76, 0.2) 28px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 60px,
      rgba(201, 168, 76, 0.08) 60px,
      rgba(201, 168, 76, 0.08) 61px
    ),
    linear-gradient(160deg, #120e08 0%, #1e1610 100%);
}
.fence-card-bg.railing {
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 10px,
      rgba(201, 168, 76, 0.1) 10px,
      rgba(201, 168, 76, 0.1) 11px
    ),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 20px,
      rgba(201, 168, 76, 0.05) 20px,
      rgba(201, 168, 76, 0.05) 21px
    ),
    linear-gradient(160deg, #0f0e10 0%, #1c1820 100%);
}

/* SVG ornament layered on each card */
.fence-card-ornament {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.18;
  transition: opacity 0.5s;
}
.fence-card:hover .fence-card-ornament {
  opacity: 0.28;
}

.fence-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.2) 50%,
    transparent 100%
  );
  transition: background 0.5s;
}
.fence-card:hover .fence-card-overlay {
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.4) 60%,
    rgba(0, 0, 0, 0.1) 100%
  );
}

.fence-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.8rem;
  transform: translateY(0);
  transition: transform 0.5s var(--ease-silk);
}

.fence-card-number {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--gold-dim);
  margin-bottom: 0.5rem;
}

.fence-card-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 0.8rem;
}

.fence-card-desc {
  font-size: 0.95rem;
  color: var(--ash);
  line-height: 1.6;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.4s 0.1s,
    transform 0.4s 0.1s;
  margin-bottom: 1rem;
}
.fence-card:hover .fence-card-desc {
  opacity: 1;
  transform: translateY(0);
}

.fence-card-btn {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.4s 0.2s,
    transform 0.4s 0.2s;
}
.fence-card:hover .fence-card-btn {
  opacity: 1;
  transform: translateY(0);
}
.fence-card-btn .line {
  display: inline-block;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.35s var(--ease-silk);
}
.fence-card:hover .fence-card-btn .line {
  width: 24px;
}

/* ============================================================
       GALLERY MODAL
    ============================================================ */
#gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 800;
  display: none;
  align-items: center;
  justify-content: center;
}
#gallery-modal.active {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
}

.modal-box {
  position: relative;
  z-index: 1;
  width: 90vw;
  max-width: 1000px;
  max-height: 90vh;
  background: var(--iron);
  border: 1px solid rgba(201, 168, 76, 0.2);
  display: flex;
  flex-direction: column;
  animation: modalIn 0.5s var(--ease-silk);
}
@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}
.modal-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
}
.modal-close {
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid rgba(201, 168, 76, 0.3);
  color: var(--gold);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.3s,
    border-color 0.3s;
}
.modal-close:hover {
  background: rgba(201, 168, 76, 0.15);
  border-color: var(--gold);
}

.modal-gallery {
  /* Remove display: grid */
  column-count: 3; /* Number of columns */
  column-gap: 10px;
  padding: 10px;
  overflow-y: auto;
  display: block; /* Ensure it's block for columns to work */
}

.modal-gallery-item {
  display: inline-block; /* Required for column flow */
  width: 100%;

  position: relative;
  cursor: pointer;
  /* Remove aspect-ratio: 1 if you want different heights! */
}

.modal-gallery-item img {
  width: 100%;

  height: auto; /* Let the image dictate the height */
  display: block;
  transition:
    transform 0.5s var(--ease-silk),
    filter 0.4s;
  filter: grayscale(30%);
}
.modal-gallery-item:hover img {
  transform: scale(1.02);
  filter: grayscale(0%);
}

@media (max-width: 768px) {
  .modal-gallery {
    column-count: 2;
  }
}

@media (max-width: 480px) {
  .modal-gallery {
    column-count: 1;
  }
}

/* Placeholder gallery images using CSS art */
.gallery-placeholder {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.modal-footer {
  padding: 1rem 2rem;
  border-top: 1px solid rgba(201, 168, 76, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-footer p {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--ash);
}

/* ============================================================
       PROCESS SECTION
    ============================================================ */
#process {
  padding: 4rem 0;
  background: linear-gradient(180deg, var(--deep) 0%, var(--black) 100%);
}

.process-header {
  text-align: center;
  margin-bottom: 6rem;
}
.process-header h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--cream);
  margin: 1rem 0 1.5rem;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.process-steps::before {
  content: "";
  position: absolute;
  top: 2.5rem;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--gold-dim) 20%,
    var(--gold-dim) 80%,
    transparent
  );
}

.process-step {
  text-align: center;
  padding: 0 1.5rem;
  position: relative;
}

.step-num {
  width: 5rem;
  height: 5rem;
  border: 1px solid var(--gold-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  background: var(--deep);
  position: relative;
  z-index: 1;
  transition:
    border-color 0.3s,
    background 0.3s;
}
.process-step:hover .step-num {
  border-color: var(--gold);
  background: var(--iron);
}
.step-num span {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--gold);
}

.step-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--parchment);
  margin-bottom: 0.8rem;
}
.step-desc {
  font-size: 0.95rem;
  color: var(--ash);
  line-height: 1.7;
}

/* ============================================================
       TESTIMONIAL
    ============================================================ */
#testimonial {
  padding: 7rem 0;
  background: var(--iron);
  text-align: center;
  position: relative;
  overflow: hidden;
}
#testimonial::before {
  content: "\201C";
  position: absolute;
  top: -2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 20rem;
  color: rgba(201, 168, 76, 0.04);
  line-height: 1;
  pointer-events: none;
}

.testimonial-quote {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: var(--cream);
  max-width: 700px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.testimonial-author {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}
.testimonial-stars {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 0.2rem;
  margin-bottom: 2.5rem;
}

/* ============================================================
       CONTACT
    ============================================================ */
#contact {
  padding: 4rem 0;
  background: var(--black);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--cream);
  margin-bottom: 1.5rem;
}
.contact-info p {
  color: var(--smoke);
  line-height: 1.85;
  margin-bottom: 3rem;
}

.contact-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-detail-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}
.detail-icon {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(201, 168, 76, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
  font-size: 0.9rem;
}
.detail-label {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0.2rem;
}
.detail-value {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--parchment);
}

.map-embed {
  margin-top: 3rem;
  height: 200px;
  background: var(--iron-mid);
  border: 1px solid rgba(201, 168, 76, 0.12);
  position: relative;
  overflow: hidden;
}
.map-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(1) contrast(1.1) invert(0.85) hue-rotate(180deg);
  opacity: 0.65;
}
.map-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(201, 168, 76, 0.2);
}

/* Contact Form */
.contact-form {
  background: var(--iron);
  padding: 3rem;
  border: 1px solid rgba(201, 168, 76, 0.1);
  position: relative;
}
.contact-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.form-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
}

.form-group label {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ash);
}

.form-control {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7rem 0;
  outline: none;
  transition: border-color 0.3s;
  width: 100%;
}
.form-control::placeholder {
  color: var(--iron-light);
}
.form-control:focus {
  border-color: var(--gold);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.form-select {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7rem 0;
  outline: none;
  cursor: pointer;
  width: 100%;
  transition: border-color 0.3s;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c9a84c' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
}
.form-select:focus {
  border-color: var(--gold);
}
.form-select option {
  background: var(--iron);
}

.form-submit {
  width: 100%;
  padding: 1.1rem;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.3s,
    color 0.3s,
    transform 0.2s;
  position: relative;
  overflow: hidden;
  margin-top: 0.5rem;
}
.form-submit::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateX(-101%);
  transition: transform 0.4s var(--ease-silk);
}
.form-submit:hover::before {
  transform: translateX(0);
}
.form-submit:hover {
  color: var(--black);
  transform: translateY(-1px);
}
.form-submit span {
  position: relative;
  z-index: 1;
}

/* Form success message */
.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
}
.form-success.show {
  display: block;
}
.form-success-icon {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 1rem;
}
.form-success h3 {
  font-family: var(--font-display);
  color: var(--cream);
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  letter-spacing: 0.1em;
}
.form-success p {
  color: var(--smoke);
  font-size: 1rem;
}

/* ============================================================
       FOOTER
    ============================================================ */
footer {
  background: var(--deep);
  border-top: 1px solid rgba(201, 168, 76, 0.1);
  padding: 4rem 4rem 2.5rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(201, 168, 76, 0.08);
  margin-bottom: 2.5rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.2em;
  color: var(--gold-light);
  text-transform: uppercase;
}
.footer-logo small {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  color: var(--ash);
  font-weight: 300;
  margin-top: 0.2rem;
}

.footer-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.footer-links a {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ash);
  transition: color 0.3s;
}
.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-copy {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--iron-light);
}
.footer-tagline {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--iron-light);
}

/* ============================================================
       BACK TO TOP
    ============================================================ */
#back-top {
  position: fixed;
  bottom: 2.5rem;
  right: 2.5rem;
  width: 48px;
  height: 48px;
  background: var(--iron);
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.3s,
    transform 0.3s,
    background 0.3s;
  z-index: 400;
}
#back-top.show {
  opacity: 1;
  transform: translateY(0);
}
#back-top:hover {
  background: rgba(201, 168, 76, 0.1);
}

/* ============================================================
       LOADING SCREEN
    ============================================================ */
#loader {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2rem;
  transition:
    opacity 0.6s var(--ease-silk),
    visibility 0.6s;
}
#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
  animation: fadeIn 0.6s 0.2s forwards;
}
.loader-bar {
  width: 200px;
  height: 1px;
  background: var(--iron-mid);
  position: relative;
  overflow: hidden;
}
.loader-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gold);
  animation: loaderFill 1.6s var(--ease-silk) 0.1s forwards;
}
@keyframes loaderFill {
  from {
    left: -100%;
  }
  to {
    left: 0%;
  }
}

/* ============================================================
       RESPONSIVE
    ============================================================ */
@media (max-width: 1024px) {
  #nav {
    padding: 1.5rem 2rem;
  }
  #nav.scrolled {
    padding: 1rem 2rem;
  }
  .nav-links,
  .nav-cta {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .hero-content {
    padding: 0 2rem;
  }
  .section-inner {
    padding: 0 2rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-visual {
    max-width: 500px;
    margin: 0 auto;
  }
  .fences-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
  .process-steps::before {
    display: none;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-icons-grid {
    display: none;
  }
  footer {
    padding: 3rem 2rem 2rem;
  }
  .footer-top {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .fences-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .modal-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }
  .process-steps {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}
