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

:root {
  /* Brand — West Alabama Fence */
  --crimson:       #960028;
  --crimson-dark:  #720020;
  --crimson-deep:  #4a0015;
  --crimson-light: #fdf0f2;
  --crimson-50:    #fdf5f6;

  --teal:          #006489;
  --teal-dark:     #004e6c;
  --teal-light:    #e4f2f7;

  /* Neutrals */
  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white:    #ffffff;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius:    8px;
  --radius-lg: 12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gray-800);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background: var(--crimson);
  color: var(--white);
  border-color: var(--crimson);
}
.btn-primary:hover { background: var(--crimson-dark); border-color: var(--crimson-dark); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

.btn-white {
  background: var(--white);
  color: var(--crimson-dark);
  border-color: var(--white);
}
.btn-white:hover { background: var(--crimson-50); }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

.btn-lg   { padding: 16px 36px; font-size: 1.05rem; }
.btn-full { width: 100%; }
.btn-nav  {
  padding: 10px 22px;
  font-size: 0.9rem;
  background: var(--crimson);
  color: var(--white);
  border-color: var(--crimson);
}
.btn-nav:hover { background: var(--crimson-dark); }

/* === Top Bar === */
.top-bar {
  background: var(--crimson-deep);
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  padding: 8px 0;
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar-phone {
  color: var(--white);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* === Header === */
.header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow 0.3s ease;
}
.header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Logo */
.logo { display: flex; align-items: center; }
.logo-img {
  height: 56px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  padding: 8px 14px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--crimson); background: var(--crimson-50); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all 0.3s;
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* === Hero === */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--crimson-deep) 0%, var(--crimson-dark) 50%, #850022 100%);
  color: var(--white);
  padding: 100px 0 80px;
  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='%23ffffff' 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");
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.2rem;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-badges {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.badge {
  display: flex;
  flex-direction: column;
  padding: 16px 24px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
}
.badge-number {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}
.badge-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
  margin-top: 2px;
}

/* === Sections === */
.section { padding: 80px 0; }

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 12px;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: var(--gray-900);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-desc {
  color: var(--gray-500);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* === Services === */
.services { background: var(--gray-50); }

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

.service-card {
  background: var(--white);
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: box-shadow 0.3s, transform 0.2s;
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-icon {
  font-size: 1.8rem;
  color: var(--crimson);
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--gray-900);
}

.service-card p {
  font-size: 0.92rem;
  color: var(--gray-500);
  line-height: 1.6;
}

.services-also {
  text-align: center;
  margin-top: 36px;
  padding: 20px 28px;
  background: var(--crimson-light);
  border-radius: var(--radius);
  border: 1px solid #f5c6cd;
}
.services-also p { font-size: 0.92rem; color: var(--gray-600); }

/* === Why Us === */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.why-card {
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  background: var(--white);
}

.why-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--teal);
  opacity: 0.55;
  margin-bottom: 12px;
  line-height: 1;
}

.why-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--gray-900);
}

.why-card p {
  font-size: 0.92rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* === Gallery === */
.gallery { background: var(--gray-50); }

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

.gallery-item { border-radius: var(--radius-lg); overflow: hidden; }

.gallery-placeholder {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--crimson-dark), var(--crimson-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  font-weight: 500;
  transition: transform 0.3s;
}
.gallery-item:hover .gallery-placeholder { transform: scale(1.03); }

.gallery-note {
  text-align: center;
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* === About === */
.about-inner {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 48px;
  align-items: start;
}

.about-text .section-label { text-align: left; }

.about-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--gray-900);
  margin-bottom: 20px;
  line-height: 1.2;
}

.about-text p {
  color: var(--gray-600);
  margin-bottom: 16px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.about-cta { margin-top: 28px; }

.detail-card {
  padding: 24px;
  background: var(--crimson-50);
  border-radius: var(--radius);
  border: 1px solid #f5d0d6;
  margin-bottom: 16px;
}

.detail-card h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--crimson);
  margin-bottom: 8px;
}

.detail-card p {
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.5;
}

/* === CTA Banner === */
.cta-banner {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  color: var(--white);
  padding: 64px 0;
  text-align: center;
}

.cta-inner { max-width: 600px; margin: 0 auto; }

.cta-banner h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 16px;
}

.cta-banner p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  margin-bottom: 32px;
  line-height: 1.7;
}

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

/* === Contact === */
.contact { background: var(--gray-50); }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.contact-info .section-label { text-align: left; }

.contact-info h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--gray-900);
  margin-bottom: 16px;
  line-height: 1.2;
}

.contact-info > p {
  color: var(--gray-500);
  margin-bottom: 32px;
  font-size: 0.95rem;
}

.contact-methods { display: flex; flex-direction: column; gap: 20px; }

.contact-method strong {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--crimson);
  margin-bottom: 4px;
}

.contact-method a,
.contact-method span {
  font-size: 0.95rem;
  color: var(--gray-700);
}
.contact-method a:hover { color: var(--crimson); }

/* Form */
.contact-form {
  background: var(--white);
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--gray-800);
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--crimson);
  box-shadow: 0 0 0 3px rgba(150,0,40,0.08);
}

.form-group textarea { resize: vertical; }

.form-note {
  text-align: center;
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--gray-500);
}

/* === Footer === */
.footer {
  background: var(--crimson-deep);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}

.footer-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--white);
  display: block;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-links a,
.footer-contact a,
.footer-contact span {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 8px;
  transition: color 0.2s;
}
.footer-links a:hover,
.footer-contact a:hover { color: var(--white); }

.footer-bottom {
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

/* === Mobile Responsive === */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid  { grid-template-columns: repeat(2, 1fr); }
  .about-inner   { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .footer-inner  { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .top-bar-text  { display: none; }
  .top-bar-inner { justify-content: center; }

  .menu-toggle { display: flex; }

  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
  }
  .nav.open    { display: flex; }
  .nav-link    { padding: 12px 0; width: 100%; }
  .btn-nav     { margin-top: 8px; width: 100%; text-align: center; }

  .hero        { padding: 64px 0 56px; }
  .hero h1     { font-size: 2.2rem; }
  .hero-sub    { font-size: 1rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .hero-badges { gap: 16px; }
  .badge       { padding: 12px 16px; flex: 1; min-width: 90px; }
  .badge-number { font-size: 1.2rem; }

  .section     { padding: 56px 0; }
  .section-header h2 { font-size: 1.7rem; }

  .services-grid { grid-template-columns: 1fr; }
  .why-grid      { grid-template-columns: 1fr; }
  .gallery-grid  { grid-template-columns: repeat(2, 1fr); }

  .form-row    { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }

  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; }
}

@media (max-width: 480px) {
  .hero h1     { font-size: 1.8rem; }
  .hero-badges { flex-direction: column; gap: 12px; }
  .badge       { flex-direction: row; gap: 12px; align-items: center; }
  .gallery-grid { grid-template-columns: 1fr; }
}
