/* ==========================================================================
   R&R Painting and Drywall Repairs - Global Master Stylesheet (styles.css)
   ========================================================================== */

:root {
  --primary: #F48C42;
  --primary-dark: #D67228;
  --dark: #121212;
  --dark-surface: #1E1E1E;
  --dark-card: #252525;
  --canvas-slate: #F4F5F7;
  --canvas-alt: #EBECEF;
  --light: #F8F9FA;
  --gray: #6B7280;
  --gray-light: #E5E7EB;
  --white: #FFFFFF;
  --border: #E5E7EB;
  --border-dark: #2F2F2F;
  --border-slate: #E2E4E8;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; }
html { scroll-behavior: smooth; }
body { background-color: var(--white); color: var(--dark); line-height: 1.6; }
.container { max-width: 1200px; margin: auto; }
section { padding: 75px 20px; }

/* Sticky Master Navigation Header */
header { background: var(--dark); position: sticky; top: 0; z-index: 1000; border-bottom: 2px solid var(--border-dark); }
.nav-container { max-width: 1200px; margin: auto; display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); font-weight: 700; font-size: 1.15rem; }
.brand img { height: 42px; width: 42px; border-radius: 4px; object-fit: contain; }

.nav-menu { display: flex; list-style: none; gap: 20px; align-items: center; margin: 0; padding: 0; }
.nav-menu a { color: var(--white); text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.nav-menu a:hover { color: var(--primary); }

.btn-call { background: var(--primary); color: var(--dark); padding: 8px 16px; border-radius: 4px; font-weight: 700; text-decoration: none; transition: background 0.2s; }
.btn-call:hover { background: var(--primary-dark); color: var(--white); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-toggle { display: flex; align-items: center; gap: 4px; }
.dropdown-toggle .arrow { font-size: 0.75rem; transition: transform 0.2s ease; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--dark-surface);
  border: 1px solid var(--border-dark);
  border-radius: 0 0 6px 6px;
  list-style: none;
  padding: 8px 0;
  margin: 0;
  min-width: 290px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  z-index: 1010;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown:hover .dropdown-toggle .arrow { transform: rotate(180deg); }
.dropdown-menu a {
  display: block;
  padding: 10px 18px;
  font-size: 0.88rem;
  color: #D1D5DB;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.dropdown-menu a:hover { background: rgba(244, 140, 66, 0.12); color: var(--primary); }

/* Mobile Navigation Drawer */
.mobile-menu-toggle {
  display: none;
  background: var(--dark-surface);
  color: var(--primary);
  border: 1px solid var(--border-dark);
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  align-items: center;
  gap: 6px;
}
.mobile-menu-toggle .menu-icon { font-size: 1.1rem; line-height: 1; }
.mobile-menu-drawer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #181818;
  border-bottom: 2px solid var(--border-dark);
  padding: 16px 20px 22px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  z-index: 1000;
  max-height: 80vh;
  overflow-y: auto;
}
.mobile-main-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
  border-bottom: 1px solid #333;
  padding-bottom: 14px;
}
.mobile-main-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px;
  background: #242424;
  border-radius: 4px;
  text-align: center;
}
.mobile-services-heading {
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  text-align: center;
}
.tray-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tray-grid a {
  background: #202020;
  color: #E5E7EB;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 8px;
  border-radius: 4px;
  text-align: center;
  border-left: 3px solid var(--primary);
  display: block;
}
.tray-grid a:active, .mobile-main-links a:active { background: var(--primary); color: var(--dark); }

/* Breadcrumb Bar */
.breadcrumb-nav { background: #EBECEF; padding: 12px 20px; font-size: 0.86rem; border-bottom: 1px solid var(--border-slate); }
.breadcrumb-container { max-width: 1200px; margin: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.breadcrumb-container a { color: #4B5563; text-decoration: none; transition: color 0.2s; font-weight: 500; }
.breadcrumb-container a:hover { color: var(--primary-dark); }
.breadcrumb-container span.sep { color: #8F9BA8; }
.breadcrumb-container span.active { color: var(--dark); font-weight: 700; }

/* Subpage Hero Styles */
.hero-wrap, .project-hero-wrap { max-width: 1000px; margin: auto; text-align: center; }
.hero-meta-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  background: rgba(244, 140, 66, 0.1);
  border: 1px solid rgba(244, 140, 66, 0.35);
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 14px;
}
.hero-spec-strip { display: flex; justify-content: center; gap: 24px; font-size: 0.88rem; color: #9CA3AF; flex-wrap: wrap; }
.hero-spec-strip span strong { color: var(--white); }

/* Filmstrip Progression Gallery */
.filmstrip-section { padding: 60px 20px; background: var(--canvas-alt); border-bottom: 1px solid var(--border-slate); }
.filmstrip-container { max-width: 1200px; margin: auto; }
.filmstrip-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; flex-wrap: wrap; gap: 15px; }
.filmstrip-header h2 { font-size: 1.8rem; text-transform: uppercase; color: var(--dark); }
.filmstrip-header p { color: #4B5563; font-size: 0.95rem; margin-top: 4px; }
.filmstrip-controls { display: flex; gap: 10px; }
.btn-filmstrip {
  background: var(--dark-surface);
  border: 1px solid var(--border-dark);
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn-filmstrip:hover { background: var(--primary); color: var(--dark); border-color: var(--primary); }
.filmstrip-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 12px;
  scrollbar-width: none;
}
.filmstrip-track::-webkit-scrollbar { display: none; }
.filmstrip-card {
  flex: 0 0 calc((100% - 36px) / 3);
  scroll-snap-align: start;
  background: var(--dark-surface);
  border: 1px solid var(--border-dark);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.filmstrip-card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25); }
.filmstrip-card img { width: 100%; height: 220px; object-fit: cover; display: block; }
.filmstrip-card-body { padding: 16px 18px 18px; flex-grow: 1; color: #E5E7EB; }
.filmstrip-tag { font-size: 0.72rem; font-weight: 800; color: var(--primary); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.filmstrip-card-body h3 { font-size: 1.02rem; color: var(--white); line-height: 1.35; margin-bottom: 6px; }
.filmstrip-card-body p { font-size: 0.86rem; color: #9CA3AF; line-height: 1.45; margin: 0; }

/* Open Editorial Story Blocks */
.editorial-section { padding: 70px 20px 40px; max-width: 1200px; margin: auto; }
.editorial-story { display: flex; align-items: center; gap: 50px; margin-bottom: 75px; }
.editorial-story.reverse { flex-direction: row-reverse; }
.story-image-wrap { flex: 1; border-radius: 8px; overflow: hidden; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); border: 1px solid var(--border-slate); }
.story-image-wrap img { width: 100%; height: 380px; object-fit: cover; display: block; }
.story-content { flex: 1.1; }
.story-tag { font-size: 0.78rem; font-weight: 800; color: var(--primary-dark); text-transform: uppercase; letter-spacing: 1.2px; display: block; margin-bottom: 8px; }
.story-content h2 { font-size: 1.85rem; color: var(--dark); line-height: 1.25; margin-bottom: 16px; letter-spacing: -0.3px; }
.story-content p { font-size: 1rem; color: #374151; line-height: 1.65; margin-bottom: 18px; }
.story-list { list-style: none; padding: 0; margin: 0; }
.story-list li { font-size: 0.96rem; color: #4B5563; padding: 8px 0; border-bottom: 1px solid var(--border-slate); display: flex; align-items: baseline; gap: 10px; line-height: 1.5; }
.story-list li:last-child { border-bottom: none; }
.story-list li::before { content: "▪"; color: var(--primary); font-size: 1.1rem; }
.story-list li strong { color: var(--dark); font-weight: 700; }

/* 3-Column Scope & Specs Grids */
.scope-overview-section, .specs-overview-section { background: var(--canvas-alt); border-top: 1px solid var(--border-slate); border-bottom: 1px solid var(--border-slate); padding: 65px 20px; }
.scope-container, .specs-container { max-width: 1200px; margin: auto; }
.scope-header, .specs-header { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.scope-header h2, .specs-header h2 { font-size: 1.85rem; text-transform: uppercase; color: var(--dark); margin-bottom: 8px; }
.scope-header p, .specs-header p { color: #4B5563; font-size: 0.98rem; }
.scope-columns, .specs-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 35px; }
.scope-col h3, .specs-col h3 { font-size: 1.2rem; color: var(--dark); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--primary); }
.scope-col ul, .specs-col ul { list-style: none; padding: 0; margin: 0; }
.scope-col ul li, .specs-col ul li { font-size: 0.94rem; color: #4B5563; padding: 8px 0; border-bottom: 1px solid rgba(0, 0, 0, 0.06); line-height: 1.45; }
.scope-col ul li strong, .specs-col ul li strong { color: var(--dark); display: block; margin-bottom: 2px; }

/* Open Divider Accordion FAQ */
.faq-editorial-section { padding: 70px 20px 50px; max-width: 860px; margin: auto; }
.faq-editorial-header { text-align: center; margin-bottom: 35px; }
.faq-editorial-header h2 { font-size: 1.8rem; text-transform: uppercase; color: var(--dark); margin-bottom: 6px; }
.faq-editorial-header p { color: #6B7280; font-size: 0.96rem; }
.faq-item-clean { border-bottom: 1px solid var(--border-slate); }
.faq-item-clean:first-of-type { border-top: 1px solid var(--border-slate); }
.faq-question-clean { padding: 20px 6px; font-weight: 700; color: var(--dark); cursor: pointer; display: flex; justify-content: space-between; align-items: center; user-select: none; font-size: 1.05rem; transition: color 0.2s; }
.faq-question-clean:hover { color: var(--primary-dark); }
.faq-question-clean::after { content: "+"; font-size: 1.4rem; color: var(--primary); font-weight: 700; margin-left: 15px; }
.faq-item-clean[open] .faq-question-clean::after { content: "−"; }
.faq-answer-clean { padding: 0 6px 22px; color: #4B5563; font-size: 0.96rem; line-height: 1.65; }

/* Cross-Link Mini-Grid */
.crosslink-section { border-top: 1px solid var(--border-slate); padding: 50px 20px 30px; max-width: 1200px; margin: auto; }
.crosslink-section h3 { font-size: 1.25rem; text-transform: uppercase; color: var(--dark); margin-bottom: 18px; }
.crosslink-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 35px; }
.crosslink-card {
  background: #FFFFFF;
  border: 1px solid var(--border-slate);
  border-radius: 6px;
  padding: 18px 18px;
  text-decoration: none;
  color: var(--dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.crosslink-card:hover { transform: translateY(-3px); border-color: var(--primary); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1); }
.crosslink-card strong { display: block; font-size: 1rem; margin-bottom: 5px; color: var(--dark); font-weight: 700; }
.crosslink-card span { font-size: 0.88rem; color: #4B5563; line-height: 1.45; display: block; }

/* Mobile Sticky Bottom Call/Text Bar */
.mobile-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--dark); padding: 10px 15px; border-top: 2px solid var(--border-dark); z-index: 1001; }
.mobile-bar-inner, .mobile-bar-buttons { display: flex; gap: 10px; max-width: 600px; margin: auto; }
.mobile-btn, .mobile-bar-buttons a { flex: 1; text-align: center; padding: 12px; border-radius: 4px; text-decoration: none; font-weight: 700; font-size: 0.95rem; }
.mobile-call, .btn-mobile-call { background: var(--primary); color: var(--dark); }
.mobile-text, .btn-mobile-text { background: var(--dark-surface); color: var(--white); border: 1px solid #444; }

/* Master Footer */
footer { background: var(--dark); color: #9CA3AF; padding: 45px 20px; font-size: 0.9rem; text-align: center; border-top: 1px solid #222; }
.footer-hours-box { max-width: 650px; margin: 0 auto 18px; line-height: 1.5; }
.footer-hours-text { color: #D1D5DB; margin-bottom: 6px; }
.footer-hours-text strong { color: var(--white); }
.footer-emergency-note { color: #9CA3AF; font-size: 0.85rem; }
.footer-phone-link { color: var(--primary); text-decoration: none; font-weight: 700; }
.footer-phone-link:hover { text-decoration: underline; }
.footer-copyright { margin-bottom: 4px; }
.footer-service-cities { font-size: 0.82rem; color: #6B7280; }

/* Standard Responsive Breakpoints */
@media (max-width: 900px) {
  .editorial-story, .editorial-story.reverse { flex-direction: column; gap: 25px; }
  .story-image-wrap { width: 100%; }
  .story-image-wrap img { height: 260px; }
  .scope-columns, .specs-columns { grid-template-columns: 1fr; gap: 25px; }
}
@media (max-width: 768px) {
  .nav-menu { display: none; }
  .mobile-menu-toggle { display: inline-flex; }
  .filmstrip-card { flex: 0 0 calc(100% - 20px); }
  .mobile-bar { display: block; }
  body { padding-bottom: 60px; }
}