/* style.css - Exclusive Fence Company INC - Updated with new colors and animations */
:root {
  --primary: #6c8c9a;
  --primary-light: #a0c0ce;
  --primary-dark: #4a6a7a;
  --secondary: #c9a87c;
  --bg-body: #0a0d12;
  --bg-surface: #111820;
  --bg-card: #1a2630;
  --glass-bg: rgba(17, 24, 32, 0.75);
  --glass-border: rgba(108, 140, 154, 0.15);
  --text-light: #eef2f6;
  --text-muted: #a0b8c8;
  --shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.8);
  --radius: 24px;
  --transition: 0.4s cubic-bezier(.34, 1.56, .64, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg-body);
  color: var(--text-light);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--primary);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
  position: relative;
}

/* ===== NAVIGATION ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 14px 0;
  background: rgba(10, 13, 18, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  z-index: 999;
  transition: all 0.4s ease;
}

nav.scrolled {
  background: rgba(10, 13, 18, 0.95);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.7);
  border-bottom-color: rgba(108, 140, 154, 0.2);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
  background: linear-gradient(135deg, #fff 40%, var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo span {
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: #cfd9e6;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-light);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--primary-light);
}

.nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff !important;
  padding: 10px 28px;
  border-radius: 60px;
  font-weight: 700;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(108, 140, 154, 0.3);
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 30px rgba(108, 140, 154, 0.4);
  color: #fff !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  width: 28px;
  height: 2.5px;
  background: #eef2f6;
  border-radius: 4px;
  transition: 0.3s;
}

/* ===== HERO ===== */
.hero {
  padding-top: 140px;
  padding-bottom: 60px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: radial-gradient(ellipse at 30% 40%, #1a2a30 0%, #0a0d12 75%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236c8c9a' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(108, 140, 154, 0.15) 0%, transparent 70%);
  top: -150px;
  right: -100px;
  pointer-events: none;
  z-index: 0;
  animation: pulseGlow 6s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.2); opacity: 1; }
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  background: rgba(108, 140, 154, 0.15);
  border: 1px solid rgba(108, 140, 154, 0.3);
  padding: 8px 22px;
  border-radius: 60px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--primary-light);
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
  animation: fadeInUp 0.8s ease;
}

.hero h1 {
  font-size: clamp(2.4rem, 6.5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.5px;
  max-width: 880px;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero h1 span {
  color: var(--primary-light);
}

.hero p {
  font-size: 1.15rem;
  color: #bcc7d6;
  max-width: 640px;
  margin: 20px 0 32px;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 700;
  padding: 16px 40px;
  border-radius: 60px;
  border: none;
  font-size: 1rem;
  transition: all 0.3s;
  box-shadow: 0 8px 30px rgba(108, 140, 154, 0.25);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  opacity: 0;
  transition: opacity 0.4s;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 45px rgba(108, 140, 154, 0.35);
  color: #fff;
}

.btn-primary span {
  position: relative;
  z-index: 1;
}

.btn-secondary {
  background: transparent;
  border: 1.5px solid rgba(108, 140, 154, 0.4);
  color: #eef2f6;
  padding: 16px 36px;
  border-radius: 60px;
  font-weight: 600;
  transition: all 0.3s;
  backdrop-filter: blur(4px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-secondary:hover {
  border-color: var(--primary-light);
  background: rgba(108, 140, 154, 0.1);
  color: #fff;
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 48px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.stat-item h3 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #fff, var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item p {
  color: #9aabbd;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ===== SECTION TITLES ===== */
.section-title {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff, var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-sub {
  color: #9aabbd;
  max-width: 600px;
  font-size: 1.1rem;
}

/* ===== SERVICES GRID ===== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: all 0.4s cubic-bezier(.34, 1.56, .64, 1);
  box-shadow: var(--shadow);
  transform: translateY(0) rotate(0deg);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(108, 140, 154, 0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.6s;
}

.glass-card:hover::before {
  opacity: 1;
}

.glass-card:hover {
  transform: translateY(-14px) scale(1.02) rotate(0.5deg);
  border-color: rgba(108, 140, 154, 0.3);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.9), 0 0 40px rgba(108, 140, 154, 0.05);
}

.glass-card .icon {
  font-size: 2.8rem;
  margin-bottom: 16px;
  color: var(--primary-light);
  display: block;
  transition: transform 0.4s;
}

.glass-card:hover .icon {
  transform: scale(1.2) rotate(-5deg);
}

.glass-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  font-weight: 700;
  color: #fff;
}

.glass-card p {
  color: #bcc7d6;
  font-size: 0.95rem;
}

.card-cta {
  margin-top: 20px;
  display: inline-block;
  font-weight: 600;
  color: var(--primary-light);
  transition: all 0.3s;
  border-bottom: 2px solid transparent;
  position: relative;
}

.card-cta::after {
  content: '→';
  margin-left: 6px;
  transition: transform 0.3s;
  display: inline-block;
}

.card-cta:hover::after {
  transform: translateX(6px);
}

.card-cta:hover {
  color: var(--secondary);
  border-bottom-color: var(--primary-light);
}

/* ===== ARTICLE ===== */
.article-section {
  background: #0f131a;
  border-top: 1px solid rgba(108, 140, 154, 0.06);
  border-bottom: 1px solid rgba(108, 140, 154, 0.06);
}

.article-content {
  max-width: 820px;
  margin: 0 auto;
}

.article-content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin: 48px 0 16px;
  color: #fff;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #fff, var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.article-content h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 32px 0 12px;
  color: #eef2f6;
}

.article-content p {
  margin-bottom: 20px;
  color: #d0d9e3;
  font-size: 1.05rem;
}

.article-content ul,
.article-content ol {
  margin: 20px 0 20px 24px;
  color: #d0d9e3;
}

.article-content li {
  margin-bottom: 8px;
}

.article-content .tip-box {
  background: rgba(108, 140, 154, 0.08);
  border-left: 4px solid var(--primary-light);
  padding: 24px 28px;
  border-radius: 12px;
  margin: 32px 0;
  color: #d0d9e3;
  transition: all 0.3s;
}

.article-content .tip-box:hover {
  background: rgba(108, 140, 154, 0.12);
  transform: translateX(4px);
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  overflow: hidden;
}

.article-content th,
.article-content td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.article-content th {
  background: rgba(108, 140, 154, 0.15);
  color: var(--primary-light);
  font-weight: 600;
}

.article-content tr:hover {
  background: rgba(108, 140, 154, 0.03);
}

/* ===== FAQ ===== */
.faq-item {
  background: var(--bg-card);
  border-radius: 16px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  overflow: hidden;
  transition: all 0.3s;
}

.faq-item:hover {
  border-color: rgba(108, 140, 154, 0.15);
}

.faq-question {
  padding: 20px 24px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: 0.3s;
  color: #eef2f6;
  user-select: none;
}

.faq-question:hover {
  background: rgba(108, 140, 154, 0.05);
}

.faq-question span {
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--primary-light);
  transition: transform 0.3s;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.4s ease;
  padding: 0 24px;
  color: #bcc7d6;
}

.faq-answer.open {
  max-height: 400px;
  padding: 0 24px 24px;
}

/* ===== TESTIMONIALS ===== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.testimonial-card {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.4s cubic-bezier(.34, 1.56, .64, 1);
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  right: 20px;
  font-size: 6rem;
  color: rgba(108, 140, 154, 0.05);
  font-family: Georgia, serif;
}

.testimonial-card:hover {
  border-color: rgba(108, 140, 154, 0.2);
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.6);
}

.testimonial-card .stars {
  color: var(--secondary);
  margin-bottom: 12px;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-top: 40px;
}

.contact-info p {
  margin: 10px 0;
  color: #bcc7d6;
}

.contact-info strong {
  color: #eef2f6;
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s;
  font-family: var(--font);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  background: rgba(108, 140, 154, 0.05);
  box-shadow: 0 0 0 4px rgba(108, 140, 154, 0.08);
  transform: translateY(-1px);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* ===== FOOTER ===== */
footer {
  background: #080b10;
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand p {
  color: #9aabbd;
  margin-top: 12px;
  font-size: 0.95rem;
}

.footer-links h4 {
  margin-bottom: 16px;
  color: #fff;
  font-weight: 600;
}

.footer-links a {
  display: block;
  color: #9aabbd;
  margin-bottom: 10px;
  transition: all 0.3s;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--primary-light);
  transform: translateX(4px);
}

/* ===== REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.34, 1.56, .64, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatShape {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); }
  50% { transform: translate(20px, -30px) rotate(90deg) scale(1.05); }
  100% { transform: translate(-10px, -20px) rotate(180deg) scale(0.95); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

/* ===== FLOATING SHAPES ===== */
.floating-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #9aabbd;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  z-index: 2;
  opacity: 0.6;
  animation: bounceDown 2s infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .hero-stats {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(10, 13, 18, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 40px 24px;
    gap: 24px;
    transform: translateY(-120%);
    transition: 0.4s cubic-bezier(.4, 0, .2, 1);
    border-bottom: 1px solid rgba(108, 140, 154, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .hamburger {
    display: flex;
  }

  .nav-cta {
    width: 100%;
    text-align: center;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .scroll-indicator {
    display: none;
  }
}

@media (max-width: 480px) {
  section {
    padding: 60px 0;
  }

  .hero {
    padding-top: 120px;
    min-height: auto;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .hero-stats {
    gap: 20px;
  }

  .stat-item h3 {
    font-size: 1.6rem;
  }

  .btn-primary,
  .btn-secondary {
    padding: 14px 28px;
    font-size: 0.95rem;
    width: 100%;
    justify-content: center;
  }

  .hero-actions {
    flex-direction: column;
  }

  .glass-card {
    padding: 24px 18px;
  }

  .article-content h2 {
    font-size: 1.6rem;
  }

  .article-content p {
    font-size: 0.98rem;
  }
}