/* Fence Estimator Widget Styles */
.fence-estimator {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  max-width: 900px;
  margin: 0 auto;
  padding: 24px;
  background: #0f0f0f;
  border-radius: 16px;
  color: #e4e4e4;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.fence-estimator h2 {
  margin: 0 0 4px 0;
  font-size: 22px;
  font-weight: 600;
  color: #fff;
}

.fence-estimator .subtitle {
  color: #888;
  font-size: 13px;
  margin-bottom: 20px;
}

.fence-estimator .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.fence-estimator .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fence-estimator .field label {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #aaa;
}

.fence-estimator .field input,
.fence-estimator .field select {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #333;
  background: #1a1a1a;
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

.fence-estimator .field input:focus,
.fence-estimator .field select:focus {
  border-color: #4a9eff;
}

.fence-estimator .btn-primary {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: #4a9eff;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 20px;
}

.fence-estimator .btn-primary:hover {
  background: #3a8eef;
}

.fence-estimator .results {
  display: none;
}

.fence-estimator .results.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

.fence-estimator .summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.fence-estimator .card {
  background: #1a1a1a;
  padding: 16px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid #222;
}

.fence-estimator .card .value {
  font-size: 24px;
  font-weight: 700;
  color: #4a9eff;
}

.fence-estimator .card .label {
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.fence-estimator .breakdown {
  background: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #222;
}

.fence-estimator .breakdown-header {
  display: flex;
  justify-content: space-between;
  padding: 14px 16px;
  background: #161616;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
}

.fence-estimator .breakdown-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  border-top: 1px solid #222;
  font-size: 14px;
}

.fence-estimator .breakdown-row:hover {
  background: #1e1e1e;
}

.fence-estimator .breakdown-row .item-name {
  color: #ccc;
}

.fence-estimator .breakdown-row .item-qty {
  color: #666;
  font-size: 12px;
}

.fence-estimator .breakdown-row .item-cost {
  color: #fff;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.fence-estimator .breakdown-total {
  display: flex;
  justify-content: space-between;
  padding: 16px;
  background: #161616;
  border-top: 2px solid #333;
  font-size: 16px;
  font-weight: 700;
}

.fence-estimator .breakdown-total .total-label {
  color: #fff;
}

.fence-estimator .breakdown-total .total-value {
  color: #4a9eff;
  font-variant-numeric: tabular-nums;
}

.fence-estimator .disclaimer {
  margin-top: 16px;
  padding: 12px 16px;
  background: #1a1200;
  border: 1px solid #332200;
  border-radius: 10px;
  font-size: 12px;
  color: #aa8844;
  line-height: 1.5;
}

.fence-estimator .live-prices {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: #0a1a0a;
  border: 1px solid #1a331a;
  border-radius: 10px;
  font-size: 12px;
  color: #66aa66;
}

.fence-estimator .live-prices .dot {
  width: 8px;
  height: 8px;
  background: #44aa44;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
/* ========================================
   FenceVB Landing Page Styles
   ======================================== */

/* CSS Variables */
:root {
  --bg-primary: #050505;
  --bg-secondary: #0a0a0a;
  --bg-card: #0f0f0f;
  --bg-elevated: #141414;
  --text-primary: #f0f0f0;
  --text-secondary: #a0a0a0;
  --text-muted: #666;
  --accent: #38bdf8;
  --accent-light: #7dd3fc;
  --accent-dark: #0ea5e9;
  --success: #4ade80;
  --border: #1a1a1a;
  --border-light: #222;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
  --max-width: 1200px;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Utilities */
.text-accent { color: var(--accent-light); }

/* ========================================
   NAVIGATION
   ======================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(5,5,5,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 20px;
  font-weight: 500;
}
.nav-logo strong { color: var(--accent-light); font-weight: 700; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-cta {
  background: var(--accent);
  color: #000 !important;
  padding: 8px 20px;
  border-radius: 100px;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--accent-light); }

/* Mobile nav toggle */
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: 0.3s;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: rgba(5,5,5,0.98);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }
  .nav-open .nav-links { display: flex; }
  .nav-mobile-toggle { display: flex; }
  .nav-cta { display: inline-block; text-align: center; }
}

/* ========================================
   HERO
   ======================================== */
.hero {
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-pattern {
  position: absolute;
  inset: -50%;
  background:
    radial-gradient(ellipse 80% 50% at 50% 50%, rgba(56,189,248,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 70% 30%, rgba(125,211,252,0.05) 0%, transparent 50%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(56,189,248,0.1);
  border: 1px solid rgba(56,189,248,0.2);
  color: var(--accent-light);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}
.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 32px;
  max-width: 520px;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-primary {
  background: var(--accent);
  color: #000;
}
.btn-primary:hover { background: var(--accent-light); transform: translateY(-1px); }
.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}
.btn-secondary:hover { background: var(--bg-card); border-color: var(--text-muted); }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }
.btn-success { background: var(--success) !important; color: #000 !important; }

/* Hero trust row */
.hero-trust {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

/* Hero visual — fence graphic */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 360px;
}
.fence-preview {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 0;
  padding-bottom: 20px;
}
.fence-post {
  width: 14px;
  height: 180px;
  background: linear-gradient(180deg, #3a3a3a 0%, #2a2a2a 100%);
  border-radius: 2px;
  position: relative;
}
.fence-post::before {
  content: '';
  position: absolute;
  top: -8px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 10px solid #3a3a3a;
}
.fence-pickets {
  display: flex;
  gap: 2px;
  padding: 0 3px;
  align-items: flex-end;
}
.picket {
  width: 14px;
  height: 140px;
  background: linear-gradient(180deg, #5a4a3a 0%, #4a3a2a 100%);
  border-radius: 2px 2px 0 0;
  position: relative;
}
.picket::before {
  content: '';
  position: absolute;
  top: -8px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 9px solid #5a4a3a;
}
.ground-line {
  position: absolute;
  bottom: 0;
  left: -20px; right: -20px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #2a5a3a, transparent);
  border-radius: 2px;
}
.price-bubble {
  position: absolute;
  top: 20px;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.price-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.price-value {
  font-size: 36px;
  font-weight: 700;
  color: var(--accent-light);
  line-height: 1;
  margin: 4px 0;
}
.price-value span {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 500;
}
.price-note {
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-visual { display: none; }
  .hero { padding: 120px 0 60px; }
}

/* ========================================
   TRUST BAR
   ======================================== */
.trust-bar {
  padding: 60px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.trust-card {
  padding: 24px;
  text-align: center;
}
.trust-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  background: rgba(56,189,248,0.08);
  border: 1px solid rgba(56,189,248,0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.trust-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text-primary);
}
.trust-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .trust-grid { grid-template-columns: 1fr; }
}

/* ========================================
   SECTIONS COMMON
   ======================================== */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  background: rgba(56,189,248,0.08);
  border: 1px solid rgba(56,189,248,0.15);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.section-header h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.section-header p {
  font-size: 17px;
  color: var(--text-secondary);
  margin: 0;
}

/* ========================================
   ESTIMATOR SECTION
   ======================================== */
.estimator-section {
  padding: 80px 0;
}

/* ========================================
   HOW IT WORKS
   ======================================== */
.process-section {
  padding: 80px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.process-step {
  position: relative;
  text-align: center;
}
.step-number {
  font-size: 48px;
  font-weight: 700;
  color: rgba(56,189,248,0.12);
  line-height: 1;
  margin-bottom: 12px;
}
.step-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
}
.step-content p {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .process-grid { grid-template-columns: 1fr; }
}

/* ========================================
   FAQ
   ======================================== */
.faq-section {
  padding: 80px 0;
}
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-primary);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 20px;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  content: '−';
}
.faq-answer {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}
.faq-answer p { margin: 0; }
.faq-answer p + p { margin-top: 12px; }

/* ========================================
   CONTACT / LEAD FORM
   ======================================== */
.contact-section {
  padding: 80px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-info h2 { margin: 0 0 16px; }
.contact-info > p {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0 0 32px;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 15px;
}
.contact-row svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* Form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56,189,248,0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-disclaimer {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin: 12px 0 0;
}
.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(0,0,0,0.2);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  padding: 60px 0 24px;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 12px;
}
.footer-logo strong { color: var(--accent-light); }
.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 300px;
}
.footer-links h4 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin: 0 0 16px;
}
.footer-links a,
.footer-links span {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent-light); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}
.footer-legal { font-weight: 500; }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
