/* ==========================================================================
   ROLLUPDOORREPAIR.US — ELITE B2B INDUSTRIAL CSS THEME
   Niche: Commercial & Industrial Roll-Up Doors, Loading Docks & Security Grilles
   Palette: Industrial Deep Navy (#0f2b48), Safety Amber (#d97706), Slate (#0f172a)
   ========================================================================== */

:root {
  --primary: #0f2b48;
  --primary-dark: #091e33;
  --primary-light: #1e3a8a;
  --accent: #d97706;
  --accent-hover: #b45309;
  --accent-light: #fef3c7;
  --dark: #0f172a;
  --dark-surface: #1e293b;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --light-bg: #f8fafc;
  --card-bg: #ffffff;
  --border: #e2e8f0;
  --border-dark: #334155;
  --success: #059669;
  --danger: #dc2626;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --max-w: 1240px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  color: var(--text-main);
  background-color: var(--light-bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

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

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

/* TOP EMERGENCY ANNOUNCEMENT BAR */
.top-bar {
  background: var(--dark);
  color: #ffffff;
  padding: 10px 0;
  font-size: 14px;
  border-bottom: 2px solid var(--accent);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.badge-pulse {
  display: inline-block;
  background: var(--danger);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-phone-link {
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-phone-link:hover {
  color: #ffffff;
}

/* HEADER & NAVIGATION */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo .logo-icon {
  width: 42px;
  height: 42px;
  background: var(--primary);
  color: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 22px;
  border: 2px solid var(--accent);
}

.brand-text h1, .brand-text .brand-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.brand-text span {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 24px;
}

.nav-links a {
  color: var(--text-main);
  font-weight: 600;
  font-size: 15px;
}

.nav-links a:hover {
  color: var(--accent);
}

.btn-header {
  background: var(--accent);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(217, 119, 6, 0.25);
}

.btn-header:hover {
  background: var(--accent-hover);
  color: #ffffff;
}

/* HERO SECTION */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  padding: 60px 0 50px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: radial-gradient(circle at 80% 20%, rgba(217, 119, 6, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.85);
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.hero-content h1 {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.hero-content p {
  font-size: 17px;
  line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 24px;
}

.hero-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #f1f5f9;
  font-weight: 600;
}

.highlight-item svg {
  color: var(--accent);
  flex-shrink: 0;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 10px rgba(217, 119, 6, 0.35);
  transition: all 0.2s;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 14px 24px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* HERO FORM CARD */
.hero-card {
  background: #ffffff;
  color: var(--text-main);
  padding: 32px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  border-top: 5px solid var(--accent);
}

.hero-card h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
}

.hero-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.dispatch-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 43, 72, 0.1);
}

.btn-submit {
  background: var(--primary);
  color: #ffffff;
  padding: 13px;
  border: none;
  border-radius: 6px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 6px;
  transition: all 0.2s;
}

.btn-submit:hover {
  background: var(--primary-dark);
}

/* TRUST BADGES BAR */
.trust-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  border-right: 1px solid var(--border);
  padding-right: 15px;
}

.trust-item:last-child {
  border-right: none;
}

.trust-icon {
  width: 38px;
  height: 38px;
  background: var(--light-bg);
  color: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.trust-text strong {
  display: block;
  font-size: 14px;
  color: var(--primary);
  font-weight: 800;
  line-height: 1.2;
}

.trust-text span {
  font-size: 12px;
  color: var(--text-muted);
}

/* MAIN CONTENT SECTIONS */
.section {
  padding: 60px 0;
}

.section-dark {
  background: var(--dark);
  color: #ffffff;
}

.section-dark h2, .section-dark h3 {
  color: #ffffff;
}

.section-dark p {
  color: #94a3b8;
}

.section-title {
  font-size: 30px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 14px;
  line-height: 1.25;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 780px;
  margin-bottom: 35px;
}

/* B2B DOWNTIME ALERT CALLOUT */
.alert-callout {
  background: #fffbeb;
  border-left: 5px solid var(--accent);
  padding: 22px 26px;
  border-radius: 0 8px 8px 0;
  margin: 30px 0;
  box-shadow: var(--shadow-sm);
}

.alert-callout h4 {
  font-size: 18px;
  font-weight: 800;
  color: #92400e;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.alert-callout p {
  color: #78350f;
  font-size: 15px;
  line-height: 1.6;
}

/* SERVICE GRID */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin: 30px 0;
}

.service-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.service-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card-body h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
}

.service-card-body p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex-grow: 1;
}

.service-card-link {
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* COMMERCIAL PRICING TABLE */
.pricing-wrapper {
  margin: 35px 0;
  overflow-x: auto;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  text-align: left;
}

.pricing-table th {
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 18px;
}

.pricing-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}

.pricing-table tr:last-child td {
  border-bottom: none;
}

.pricing-table tr:hover {
  background: #f1f5f9;
}

.price-tag {
  font-weight: 800;
  color: var(--accent);
  font-size: 17px;
}

/* LOGISTICS ANCHORS & HARDWARE SPECS GRID */
.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 35px 0;
}

.specs-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.specs-card h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 10px;
}

.specs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.specs-list li {
  font-size: 14px;
  line-height: 1.5;
  display: flex;
  gap: 10px;
}

.specs-list li strong {
  color: var(--primary);
  min-width: 140px;
}

/* FAQ ACCORDION */
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 30px 0;
}

.faq-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}

.faq-card h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.faq-card p {
  font-size: 15px;
  color: var(--text-main);
  line-height: 1.6;
}

/* LOCATION DIRECTORY GRID */
.location-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 25px 0;
}

.location-item a {
  display: block;
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  transition: all 0.2s;
}

.location-item a:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* FOOTER */
.site-footer {
  background: var(--dark);
  color: #94a3b8;
  padding: 60px 0 30px;
  font-size: 14px;
  border-top: 4px solid var(--accent);
}

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

.footer-col h4 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #94a3b8;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 13px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: none; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .specs-grid { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .hero-content h1 { font-size: 28px; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: none; }
  .service-grid { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .top-bar-left, .top-bar-right { width: 100%; justify-content: center; }
  .nav-links { display: none; }
}
