/* Bismarck Fence Pros — site styles */

:root {
  --dark: #24211e;
  --dark-2: #2f2a25;
  --cream: #f5f0e8;
  --cream-2: #ece4d6;
  --accent: #b04d29;
  --accent-light: #e08a63;
  --text-dark: #24211e;
  --text-muted: #5a534b;
  --white: #ffffff;
  --border: #ddd3c4;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Oswald', 'Arial Narrow', sans-serif;
  text-transform: uppercase;
  color: var(--dark);
  line-height: 1.2;
  margin: 0 0 16px;
}

h1 { font-size: 2.7rem; letter-spacing: 0.2px; }
h2 { font-size: 2.05rem; letter-spacing: 0.3px; }
h3 { font-size: 1.3rem; letter-spacing: 0.2px; }

.hero h1 { text-shadow: 0 2px 18px rgba(0,0,0,0.35); }

p { margin: 0 0 16px; }
p.lead, .prose p { line-height: 1.7; }

a { color: var(--accent); }

p a:not(.btn):not(.card-link) {
  text-decoration: underline;
}

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

picture { display: contents; }

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

/* Header */
header.site-header {
  background: linear-gradient(180deg, #29261f, var(--dark));
  border-bottom: 3px solid var(--accent);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
}

.brand .diamond {
  width: 14px;
  height: 14px;
  background: var(--accent);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.brand-text {
  line-height: 1.1;
}

.brand-text .brand-name {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  color: var(--white);
  text-transform: uppercase;
}

.brand-text .brand-sub {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  color: var(--accent-light);
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
}

.header-phone svg { fill: var(--accent); width: 18px; height: 18px; }

/* Main nav — a single dropdown menu off the header, not a horizontal link list */
nav.main-nav {
  display: none;
  position: absolute;
  top: 100%;
  right: 24px;
  min-width: 260px;
  max-width: calc(100vw - 48px);
  background: linear-gradient(180deg, #332e26, var(--dark-2));
  flex-direction: column;
  gap: 2px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  border-top: 3px solid var(--accent);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  z-index: 60;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}

nav.main-nav.open { display: flex; }

nav.main-nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

nav.main-nav > a,
nav.main-nav > .has-dropdown > a {
  display: block;
  padding: 11px 14px;
  border-radius: 6px;
}

nav.main-nav > a:hover,
nav.main-nav > .has-dropdown > a:hover {
  background: rgba(255,255,255,0.06);
  color: var(--accent-light);
}

.has-dropdown { position: relative; }

.dropdown {
  display: block;
  position: static;
  background: none;
  border: none;
  box-shadow: none;
  min-width: 0;
  padding: 2px 0 6px 16px;
  margin: 0;
  list-style: none;
}

.dropdown li a {
  display: block;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.87rem;
  color: #cfc8bb;
  white-space: nowrap;
}

.dropdown li a:hover {
  background: rgba(255,255,255,0.06);
  color: var(--accent-light);
}

.nav-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 6px;
  padding: 9px 14px;
  color: var(--white);
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.nav-toggle:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.25); }

.nav-toggle .bars { font-size: 1.1rem; line-height: 1; }

@media (max-width: 480px) {
  .header-phone span.phone-text { display: none; }
  .nav-toggle span.menu-text { display: none; }
  nav.main-nav { right: 16px; left: 16px; min-width: 0; }
}

/* Hero */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 900px 500px at 15% 0%, rgba(224,138,99,0.10), transparent 60%),
    linear-gradient(rgba(24, 22, 19, 0.72), rgba(24, 22, 19, 0.86)), var(--hero-img, none);
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 90px 0 46px;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='22' viewBox='0 0 40 22'%3E%3Cpath d='M0 22 L0 9 L10 0 L20 9 L20 22 Z M20 22 L20 9 L30 0 L40 9 L40 22 Z' fill='%23181512'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 40px 22px;
  opacity: 0.85;
  pointer-events: none;
}

.hero > .container { position: relative; z-index: 1; }

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(224,138,99,0.12);
  border: 1px solid rgba(224,138,99,0.5);
  color: var(--accent-light);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero .eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--accent-light);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.icon-badge {
  width: 54px;
  height: 54px;
  border-radius: 13px;
  background: linear-gradient(155deg, rgba(176,77,41,0.16), rgba(176,77,41,0.06));
  border: 1px solid rgba(176,77,41,0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 3px 8px rgba(176,77,41,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.card:hover .icon-badge,
.location-card:hover .icon-badge { transform: scale(1.06) rotate(-2deg); }

.icon-badge svg {
  width: 26px;
  height: 26px;
  stroke: var(--accent);
  fill: none;
  filter: drop-shadow(0 1px 1px rgba(176,77,41,0.15));
}

.icon-badge.on-dark {
  background: linear-gradient(155deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 4px 12px rgba(0,0,0,0.25);
}

.icon-badge.on-dark svg { stroke: var(--accent-light); filter: none; }

.icon-badge.sm { width: 42px; height: 42px; border-radius: 11px; margin-bottom: 12px; }
.icon-badge.sm svg { width: 20px; height: 20px; }

.hero h1 { color: var(--white); max-width: 820px; }

.hero h1 .accent { color: var(--accent-light); }

.hero p.lead {
  max-width: 640px;
  font-size: 1.1rem;
  color: #e9e2d6;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 28px 0 36px;
}

.btn {
  display: inline-block;
  padding: 15px 28px;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn { transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease; }
.btn:active { transform: translateY(0) !important; }

.btn-primary {
  background: linear-gradient(155deg, #c25a30, var(--accent) 65%);
  color: var(--white);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 6px 16px rgba(176,77,41,0.35), 0 2px 4px rgba(176,77,41,0.25);
}
.btn-primary:hover {
  background: linear-gradient(155deg, #cd6336, #9c4523 65%);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 10px 22px rgba(176,77,41,0.42), 0 3px 6px rgba(176,77,41,0.3);
}
.btn-primary:active { box-shadow: inset 0 2px 4px rgba(0,0,0,0.25); }

.btn-outline {
  background: rgba(255,255,255,0.04);
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
  backdrop-filter: blur(2px);
}
.btn-outline:hover { background: rgba(255,255,255,0.14); border-color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,0.2); }

.btn-outline-dark {
  background: rgba(176,77,41,0.04);
  color: var(--accent);
  border-color: rgba(176,77,41,0.5);
}
.btn-outline-dark:hover {
  background: rgba(176,77,41,0.1);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(176,77,41,0.15);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  padding: 22px 0 0;
  margin-top: 4px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.85rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #e9e2d6;
}

.trust-row span { display: flex; align-items: center; gap: 9px; }
.trust-row .dot {
  color: var(--accent-light);
  font-size: 0.7rem;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(224,138,99,0.14);
  border: 1px solid rgba(224,138,99,0.3);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* Sections */
section { padding: 76px 0; }

section.alt {
  background: linear-gradient(180deg, var(--cream-2), #f1e9db);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

.eyebrow-inline {
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.eyebrow-inline .diamond {
  width: 8px; height: 8px; background: var(--accent); transform: rotate(45deg); display:inline-block;
  box-shadow: 0 0 0 3px rgba(176,77,41,0.12);
}

.section-head { max-width: 700px; margin-bottom: 44px; }
.section-head p { color: var(--text-muted); font-size: 1.02rem; }

/* Cards */
.grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(3, 1fr);
}

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

.card {
  background: linear-gradient(180deg, #ffffff, #fdfbf8);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 2px 6px rgba(36,33,30,0.05), 0 8px 20px rgba(36,33,30,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 32px rgba(36,33,30,0.16), 0 4px 10px rgba(36,33,30,0.08);
  border-color: rgba(176,77,41,0.35);
}

.card:hover::before { transform: scaleX(1); }

.card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }

.card-body { padding: 26px; flex: 1; display: flex; flex-direction: column; }

.card-body h3 { font-size: 1.15rem; margin-bottom: 10px; }

.card-body p { font-size: 0.93rem; line-height: 1.6; color: var(--text-muted); flex: 1; margin-bottom: 18px; }

.card-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.15s ease;
}
.card-link:hover { gap: 8px; }

.post-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.8rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.post-meta span:not(.sep) { white-space: nowrap; }
.hero .post-meta { color: #cfc8bb; }
.post-meta .sep { opacity: 0.5; }
.card-body .post-meta { margin-bottom: 10px; }

.location-card {
  padding: 24px;
  background: linear-gradient(180deg, #ffffff, #fdfbf8);
  border: 1px solid var(--border);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(36,33,30,0.05), 0 8px 20px rgba(36,33,30,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.location-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-light));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.25s ease;
}
.location-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 32px rgba(36,33,30,0.16), 0 4px 10px rgba(36,33,30,0.08);
  border-color: rgba(176,77,41,0.35);
}
.location-card:hover::before { transform: scaleY(1); }
.location-card .pop { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.4px; font-weight: 600; }

/* CTA band */
.cta-band {
  background:
    radial-gradient(ellipse 700px 400px at 85% 100%, rgba(224,138,99,0.10), transparent 60%),
    radial-gradient(ellipse 600px 350px at 10% 0%, rgba(224,138,99,0.06), transparent 60%),
    linear-gradient(180deg, var(--dark-2), var(--dark));
  color: var(--white);
  text-align: center;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: #e9e2d6; max-width: 600px; margin: 0 auto 26px; font-size: 1.05rem; }
.cta-band .btn-row { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* Inline mid-content CTA */
.inline-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: linear-gradient(155deg, rgba(176,77,41,0.07), rgba(176,77,41,0.02));
  border: 1px solid rgba(176,77,41,0.22);
  border-radius: 12px;
  padding: 28px 30px;
  margin: 40px 0;
  box-shadow: 0 4px 14px rgba(176,77,41,0.06);
}
.inline-cta h4 {
  margin: 0 0 4px;
  font-size: 1.15rem;
  color: var(--dark);
}
.inline-cta p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}
.inline-cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
@media (max-width: 560px) {
  .inline-cta { padding: 24px; }
  .inline-cta-actions { width: 100%; }
  .inline-cta-actions .btn { flex: 1 1 auto; text-align: center; }
}

/* Content / prose sections */
.prose h2 { margin-top: 8px; }
.prose h3 { margin-top: 28px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
}
.check-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: -1px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(176,77,41,0.12);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Footer */
footer.site-footer {
  background:
    radial-gradient(ellipse 800px 300px at 50% 0%, rgba(224,138,99,0.06), transparent 60%),
    var(--dark);
  color: #cfc8bb;
  padding: 52px 0 24px;
  font-size: 0.9rem;
  border-top: 3px solid var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

.footer-grid h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: #cfc8bb; text-decoration: none; }
.footer-grid a:hover { color: var(--accent-light); }

.footer-brand p { color: #a89f8f; font-size: 0.88rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: #a89f8f;
}

.footer-bottom a { color: #a89f8f; }

/* Contact form */
.contact-form {
  background: linear-gradient(180deg, #ffffff, #fdfbf8);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 34px;
  max-width: 560px;
  box-shadow: 0 4px 10px rgba(36,33,30,0.05), 0 16px 32px rgba(36,33,30,0.07);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(176,77,41,0.12);
}

.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--dark);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-bottom: 18px;
  font-family: inherit;
  font-size: 0.95rem;
}

.contact-form button { width: 100%; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; }
}

.breadcrumb {
  font-size: 0.82rem;
  color: #cfc8bb;
  padding: 14px 0;
}
.breadcrumb a { color: #cfc8bb; text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-light); }
.breadcrumb.on-cream { color: var(--text-muted); }
.breadcrumb.on-cream a { color: var(--text-muted); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: white;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 10px; top: 10px; }
