/* ============================================================
   BROWARD COUNTY METALWORK — styles.css
   Modern, Ultra-Premium Dark/Light Hybrid Aesthetic
   Color Palette: Charcoal Black, Deep Steel, High-Contrast Teal/Cyan
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-primary: #0A0C10;
  --bg-secondary: #12151C;
  --bg-card: #1B1F2A;
  --text-primary: #F5F7FA;
  --text-secondary: #A0AABF;
  --accent: #00F2FE;
  --accent-glow: rgba(0, 242, 254, 0.15);
  --accent-dark: #00B8D4;
  --border-color: rgba(255, 255, 255, 0.08);
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Utilities */
h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.text-accent {
  color: var(--accent);
  background: linear-gradient(90deg, #00F2FE, #4FACFE);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 4px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: inline-block;
}

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-weight: 800;
}

.section-desc {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 48px;
}

/* ── NAVBAR ── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 32px;
  height: 90px;
  background: rgba(255, 255, 255, 0.85); /* Light glassmorphism */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
}

#navbar.scrolled {
  height: 70px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.nav-inner {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 54px;
  width: auto;
  transition: var(--transition-smooth);
}

#navbar.scrolled .logo img {
  height: 44px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: #1E293B; /* Slate dark text */
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: var(--transition-smooth);
  position: relative;
  padding: 6px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-dark);
  transition: var(--transition-smooth);
}

.nav-links a:hover {
  color: var(--accent-dark);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  background: linear-gradient(135deg, #00F2FE 0%, #4FACFE 100%);
  color: #0A0C10 !important;
  font-weight: 700 !important;
  padding: 10px 20px;
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.2);
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.4);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #1E293B;
  font-size: 28px;
  cursor: pointer;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #00F2FE 0%, #4FACFE 100%);
  color: #0A0C10;
  padding: 16px 36px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 242, 254, 0.4);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #1E293B; /* Slate Dark link for light hero */
  padding: 16px 36px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid rgba(15, 23, 42, 0.15); /* Darker border */
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-outline:hover {
  border-color: var(--accent-dark);
  color: var(--accent-dark);
  background: rgba(0, 184, 212, 0.05);
  transform: translateY(-2px);
}

/* ── HERO (LIGHT THEME) ── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 100px;
  background: radial-gradient(circle at center, #FFFFFF 0%, #F8FAFC 100%);
}

/* Fences, Pergolas, Louvers, Gates Collage Background */
.hero-collage {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  z-index: 1;
  opacity: 0.16; /* Soft opacity on light background */
  pointer-events: none;
}

.collage-item {
  background-size: cover;
  background-position: center;
  filter: brightness(0.9) contrast(1.05) saturate(95%);
  animation: slowZoom 24s ease-in-out infinite alternate;
}

.collage-item:nth-child(2) { animation-delay: 3s; }
.collage-item:nth-child(3) { animation-delay: 6s; }
.collage-item:nth-child(4) { animation-delay: 9s; }

@keyframes slowZoom {
  0% { transform: scale(1.02) translate(0, 0); }
  100% { transform: scale(1.08) translate(-1%, -1%); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5) 0%, #FFFFFF 98%),
              linear-gradient(to right, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
  z-index: 2;
}

/* Floating Particles Canvas */
#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 4;
  text-align: center;
  max-width: 900px;
  padding: 0 24px;
}

/* Large Center Logo Wrapper (Clear background - no white card) */
.hero-logo-wrapper {
  position: relative;
  margin: 0 auto 36px;
  max-width: 580px;
  width: 100%;
  animation: zoomInReveal 1.3s cubic-bezier(0.16, 1, 0.3, 1) both,
             hoverFloat 5s ease-in-out infinite 1.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-wrapper img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.06));
  transition: transform 0.5s var(--transition-smooth);
}

.hero-logo-wrapper:hover img {
  transform: scale(1.03);
}

@keyframes zoomInReveal {
  0% {
    opacity: 0;
    transform: scale(0.85) translateY(40px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 184, 212, 0.06);
  border: 1px solid rgba(0, 184, 212, 0.2);
  padding: 8px 16px;
  border-radius: 30px;
  margin-bottom: 20px;
  color: var(--accent-dark);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-badge::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: var(--accent-dark);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-dark);
}

.hero-main-title {
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.08;
  font-weight: 900;
  color: #0F172A; /* Slate Dark */
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero-subtitle {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 800;
  color: var(--accent-dark); /* Accent color */
  text-transform: uppercase;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.hero-services-list {
  font-family: var(--font-display);
  font-size: clamp(12px, 1.8vw, 15px);
  font-weight: 700;
  color: #475569; /* Cool slate gray */
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 40px;
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── PROMOTIONAL HIGHLIGHT (PERGOLAS) ── */
#highlight-pergolas {
  padding: 120px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.highlight-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.highlight-img-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-color);
  aspect-ratio: 4/3;
}

.highlight-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.highlight-img-wrapper:hover img {
  transform: scale(1.05);
}

.highlight-benefits {
  list-style: none;
  margin-top: 24px;
}

.highlight-benefits li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 16px;
  font-size: 15px;
  color: var(--text-secondary);
}

.highlight-benefits li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
}

/* ── PRODUCTS GRID ── */
#products {
  padding: 120px 0;
  position: relative;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 242, 254, 0.3);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.product-img {
  width: 100%;
  height: 240px;
  background-size: cover;
  background-position: center;
  transition: var(--transition-smooth);
}

.product-card:hover .product-img {
  filter: brightness(1.1);
}

.product-body {
  padding: 32px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-body h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.product-body p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.product-cta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  transition: var(--transition-smooth);
}

.product-cta:hover {
  gap: 12px;
}

/* ── ABOUT / VALUE ── */
#about {
  padding: 120px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

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

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.stat-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 32px;
  border-radius: 8px;
  text-align: center;
  transition: var(--transition-smooth);
}

.stat-card:hover {
  border-color: var(--accent);
}

.stat-number {
  font-size: 48px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
  font-family: var(--font-display);
}

.stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-secondary);
  font-weight: 700;
}

/* ── CONTACT FORM ── */
#contact {
  padding: 120px 0;
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-methods {
  margin-top: 40px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 32px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: rgba(0, 242, 254, 0.05);
  border: 1px solid rgba(0, 242, 254, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 20px;
}

.contact-details h4 {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.contact-details p {
  color: var(--text-secondary);
  font-size: 14px;
}

.contact-form-wrapper {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 48px;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 14px 18px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 14px;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.1);
}

textarea.form-control {
  resize: none;
  height: 120px;
}

/* ── FOOTER ── */
footer {
  background: #060709;
  padding: 80px 0 40px;
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 60px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 20px;
  max-width: 320px;
}

.footer-links h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  color: #566173;
  font-size: 13px;
}

/* ── ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 992px) {
  .highlight-grid, .about-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  #navbar {
    height: 70px;
    padding: 0 20px;
  }
  .logo img {
    height: 48px;
  }
  #navbar.scrolled .logo img {
    height: 38px;
  }
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    flex-direction: column;
    padding: 40px 0;
    gap: 24px;
    border-top: 1px solid var(--border-color);
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    z-index: 999;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-toggle {
    display: block;
  }
  .hero-logo-card {
    padding: 30px 40px;
  }
  .hero-logo-card img {
    max-height: 130px;
  }
  .hero-content h1 {
    font-size: 38px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ── PERGOLA GALLERY ── */
.gallery-container {
  margin-top: 64px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  aspect-ratio: 4/3;
  cursor: pointer;
  background: var(--bg-card);
  transition: var(--transition-smooth);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.gallery-item::after {
  content: '🔍 View Project';
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 16, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0;
  transition: var(--transition-smooth);
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Video Showcase Card */
.video-showcase-card {
  grid-column: span 2;
  aspect-ratio: 16/10;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

@media (max-width: 992px) {
  .video-showcase-card {
    grid-column: span 1;
    aspect-ratio: 4/3;
  }
}

.video-showcase-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay-play {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(10, 12, 16, 0.7);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border-color);
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 16, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-content {
  max-width: 90%;
  max-height: 82vh;
  border-radius: 12px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.7);
  border: 1px solid var(--border-color);
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-color);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.lightbox-close:hover {
  background: var(--accent);
  color: #0A0C10;
  border-color: var(--accent);
}

/* Mobile Sticky Bottom Bar */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #FFFFFF;
  border-top: 1px solid var(--border-color);
  z-index: 1001;
  grid-template-columns: 1fr 1fr;
  box-shadow: 0 -4px 15px rgba(0,0,0,0.06);
}
.sticky-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition-smooth);
}
.sticky-call {
  background: #F8FAFC;
  color: #0F172A;
  border-right: 1px solid var(--border-color);
}
.sticky-estimate {
  background: var(--accent-dark);
  color: #FFFFFF;
}
@media (max-width: 768px) {
  .mobile-sticky-bar {
    display: grid;
  }
  body {
    padding-bottom: 60px; /* Offset for mobile bar */
  }
}


