/* ===== IRONCLAD CONROE FENCE COMPANY — Global Stylesheet ===== */
/* Brand: Charcoal/Steel Gray + Black + Safety Orange accent */

:root {
  --black: #1A1A1A;
  --charcoal: #2D2D2D;
  --steel: #4A4A4A;
  --gray: #6B6B6B;
  --light-gray: #E0E0E0;
  --off-white: #F5F5F5;
  --white: #FFFFFF;
  --accent: #E8650A;
  --accent-hover: #CF5A09;
  --accent-light: rgba(232,101,10,0.1);
  --shadow: rgba(0,0,0,0.12);
  --font-heading: 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-hover); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  color: var(--black);
}
h1 { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: .5em; }
h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); margin-bottom: .5em; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); margin-bottom: .4em; }

/* ===== LAYOUT ===== */
.container { width: 90%; max-width: var(--max-width); margin: 0 auto; }
.section { padding: 60px 0; }
.section--gray { background: var(--off-white); }
.section--dark { background: var(--charcoal); color: var(--white); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark a { color: var(--accent); }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--black);
  height: var(--header-height);
  box-shadow: 0 2px 8px var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .03em;
  line-height: 1.2;
  white-space: nowrap;
}
.logo span { color: var(--accent); }

/* Desktop nav */
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  color: var(--light-gray);
  font-size: .88rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); background: rgba(255,255,255,.08); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-toggle { display: flex; align-items: center; gap: 4px; }
.dropdown-toggle::after {
  content: '';
  border: 4px solid transparent;
  border-top-color: currentColor;
  margin-top: 2px;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--charcoal);
  border-radius: 8px;
  padding: 8px 0;
  min-width: 240px;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 8px 16px;
  font-size: .85rem;
  border-radius: 0;
}
.dropdown-menu a:hover { background: rgba(255,255,255,.06); }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  font-size: .85rem;
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  transition: background .2s;
  white-space: nowrap;
}
.header-cta:hover { background: var(--accent-hover); color: var(--white); }

/* Mobile hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  padding: 8px;
}

/* ===== MOBILE NAV ===== */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--black);
  z-index: 999;
  overflow-y: auto;
  padding: 20px;
}
.mobile-nav.active { display: block; }
.mobile-nav a {
  display: block;
  color: var(--light-gray);
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.mobile-nav a:hover { color: var(--white); }
.mobile-nav .mobile-subnav a { padding-left: 20px; font-size: .92rem; font-weight: 400; }

/* Mobile bottom bar */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  background: var(--black);
  padding: 10px 16px;
  gap: 10px;
  box-shadow: 0 -2px 8px var(--shadow);
}
.mobile-bottom-bar a {
  flex: 1;
  text-align: center;
  font-weight: 700;
  font-size: .9rem;
  padding: 12px;
  border-radius: 8px;
  color: var(--white);
}
.mobile-bottom-bar .btn-call { background: var(--accent); }
.mobile-bottom-bar .btn-quote { background: var(--steel); }

/* ===== HERO ===== */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--black) 0%, var(--charcoal) 100%);
  color: var(--white);
  padding: 80px 0 90px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect fill="none" stroke="rgba(255,255,255,0.03)" stroke-width=".5" x="0" y="0" width="25" height="100"/><rect fill="none" stroke="rgba(255,255,255,0.03)" stroke-width=".5" x="25" y="0" width="25" height="100"/><rect fill="none" stroke="rgba(255,255,255,0.03)" stroke-width=".5" x="50" y="0" width="25" height="100"/><rect fill="none" stroke="rgba(255,255,255,0.03)" stroke-width=".5" x="75" y="0" width="25" height="100"/></svg>');
  background-size: 200px;
  pointer-events: none;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); max-width: 700px; }
.hero p { font-size: 1.15rem; max-width: 600px; margin-bottom: 2rem; opacity: .9; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: all .2s;
  text-align: center;
}
.btn-primary { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--black); }
.btn-dark { background: var(--charcoal); color: var(--white); border-color: var(--charcoal); }
.btn-dark:hover { background: var(--black); border-color: var(--black); color: var(--white); }

/* ===== CARDS ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: 12px;
  padding: 32px 24px;
  box-shadow: 0 2px 12px var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px var(--shadow); }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--gray); font-size: .95rem; }
.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 1.5rem;
  border-radius: 12px;
  margin-bottom: 16px;
  font-weight: 800;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  font-weight: 700;
  font-size: .9rem;
  color: var(--accent);
}
.card-link::after { content: ' \2192'; }

/* ===== IMAGE PLACEHOLDER ===== */
.img-placeholder {
  background: var(--light-gray);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: .85rem;
  text-align: center;
  padding: 20px;
  min-height: 200px;
  border: 2px dashed #ccc;
}
.img-placeholder--hero { min-height: 300px; }

/* ===== FAQ ACCORDION ===== */
.faq-item {
  border-bottom: 1px solid var(--light-gray);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--black);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  line-height: 1.4;
}
.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform .2s;
}
.faq-item.active .faq-question::after { content: '\2212'; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq-answer-inner { padding: 0 0 20px; color: var(--gray); line-height: 1.8; }

/* ===== GALLERY GRID ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.gallery-item { border-radius: 8px; overflow: hidden; }
.gallery-item .img-placeholder { min-height: 240px; border-radius: 0; }
.gallery-caption {
  background: var(--off-white);
  padding: 12px 16px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--steel);
}

/* ===== FORM ===== */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: 6px;
  color: var(--charcoal);
}
.form-group .required { color: var(--accent); }
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--light-gray);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--charcoal);
  background: var(--white);
  transition: border-color .2s;
}
.form-control:focus { border-color: var(--accent); outline: none; }
.form-control.error { border-color: #dc3545; }
.error-msg { color: #dc3545; font-size: .82rem; margin-top: 4px; display: none; }
.form-control.error + .error-msg { display: block; }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { appearance: auto; }

.form-success, .form-error {
  padding: 16px 20px;
  border-radius: 8px;
  font-weight: 600;
  display: none;
}
.form-success { background: #d4edda; color: #155724; }
.form-error { background: #f8d7da; color: #842029; }

/* ===== REVIEWS ===== */
.review-placeholder {
  text-align: center;
  padding: 40px 20px;
  background: var(--off-white);
  border-radius: 12px;
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
  padding: 16px 0;
  font-size: .85rem;
  color: var(--gray);
}
.breadcrumbs a { color: var(--accent); }
.breadcrumbs span { margin: 0 8px; }

/* ===== SERVICE PAGE LAYOUT ===== */
.service-content { max-width: 800px; }
.service-content p { margin-bottom: 1.2em; }
.service-content ul { margin: 1em 0; padding-left: 0; }
.service-content li {
  position: relative;
  padding-left: 24px;
  margin-bottom: .6em;
  color: var(--steel);
}
.service-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}
.service-sidebar {
  background: var(--off-white);
  border-radius: 12px;
  padding: 28px;
}
.service-sidebar h3 { font-size: 1.1rem; margin-bottom: 16px; }
.service-sidebar ul { margin-bottom: 20px; }
.service-sidebar li { margin-bottom: 8px; }
.service-sidebar a { font-weight: 600; font-size: .92rem; }
.two-col { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }

/* ===== BLOG ===== */
.blog-card { border-radius: 12px; overflow: hidden; background: var(--white); box-shadow: 0 2px 12px var(--shadow); }
.blog-card-body { padding: 24px; }
.blog-card-body h3 { font-size: 1.15rem; }
.blog-meta { font-size: .82rem; color: var(--gray); margin-bottom: .5rem; }
.blog-content { max-width: 760px; margin: 0 auto; }
.blog-content h2 { margin-top: 2em; }
.blog-content p { margin-bottom: 1.2em; }
.blog-content ul, .blog-content ol { margin: 1em 0; padding-left: 24px; }
.blog-content li { margin-bottom: .5em; color: var(--steel); position: relative; padding-left: 20px; }
.blog-content li::before { content: ''; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: var(--white);
  text-align: center;
  padding: 60px 20px;
  border-radius: 0;
}
.cta-banner h2 { color: var(--white); margin-bottom: .5em; }
.cta-banner p { max-width: 600px; margin: 0 auto 1.5em; opacity: .95; }
.cta-banner .btn-outline { border-color: var(--white); color: var(--white); }
.cta-banner .btn-outline:hover { background: var(--white); color: var(--accent); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--black);
  color: var(--light-gray);
  padding: 60px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  color: var(--white);
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.footer-col a { color: var(--light-gray); font-size: .9rem; display: block; margin-bottom: 8px; }
.footer-col a:hover { color: var(--white); }
.footer-col p { font-size: .9rem; line-height: 1.6; }
.footer-nap { font-style: normal; font-size: .9rem; line-height: 1.8; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  text-align: center;
  font-size: .82rem;
  color: var(--gray);
}
.footer-bottom a { color: var(--light-gray); }

/* ===== 404 ===== */
.page-404 { text-align: center; padding: 100px 20px; }
.page-404 h1 { font-size: clamp(4rem, 10vw, 8rem); color: var(--accent); margin-bottom: 0; }
.page-404 p { font-size: 1.15rem; margin-bottom: 2rem; }

/* ===== MAP ===== */
.map-embed { border-radius: 12px; overflow: hidden; margin-top: 24px; }
.map-embed iframe { width: 100%; height: 350px; border: 0; }

/* ===== WHY CHOOSE US ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.why-item { text-align: center; padding: 24px 16px; }
.why-icon {
  width: 64px;
  height: 64px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 auto 16px;
}
.why-item h3 { font-size: 1.05rem; margin-bottom: .3em; }
.why-item p { font-size: .9rem; color: var(--gray); }

/* ===== AREA SERVED TAGS ===== */
.area-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.area-tag {
  background: var(--accent-light);
  color: var(--accent);
  padding: 8px 16px;
  border-radius: 100px;
  font-weight: 600;
  font-size: .88rem;
}

/* ===== INTERNAL LINKS SECTION ===== */
.related-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.related-links a {
  background: var(--off-white);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--charcoal);
  transition: background .2s;
}
.related-links a:hover { background: var(--accent-light); color: var(--accent); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .header-cta-wrap { display: none; }
  .hamburger { display: block; }
  .mobile-bottom-bar { display: flex; }
  body { padding-bottom: 68px; }
  .hero { padding: 50px 0 60px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 40px 0; }
  .card-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}
@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; }
}

/* ===== SKIP LINK ===== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--accent);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 0 0 8px 8px;
  font-weight: 700;
  z-index: 10000;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ===== PRINT ===== */
@media print {
  .site-header, .mobile-bottom-bar, .cta-banner, .site-footer { display: none; }
  body { font-size: 12pt; color: #000; }
}
