/* ==========================================================================
   Bronx Yonkers Roofing — Custom Styles
   Supplements Tailwind CSS (loaded via CDN). Brand colors / interactive UI.
   ========================================================================== */

:root {
  --charcoal: #2C2C2C;
  --accent: #E8640C;
  --accent-dark: #c9540a;
  --navy: #1B2B4B;
  --light: #F8F9FA;
  --text: #2C3E50;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Inter', sans-serif; font-weight: 700; line-height: 1.2; }

a { text-decoration: none; }

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

/* Account for sticky mobile call bar so content is never hidden behind it */
@media (max-width: 767px) {
  body { padding-bottom: 64px; }
}

/* Honor reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* --------------------------------------------------------------------------
   Hero / section backgrounds
   -------------------------------------------------------------------------- */
.hero-gradient {
  background: linear-gradient(135deg, var(--navy) 0%, var(--charcoal) 100%);
}

.section-dark {
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--navy) 100%);
}

/* Subtle texture overlay for hero */
.hero-pattern {
  background-image:
    linear-gradient(135deg, rgba(27,43,75,0.96) 0%, rgba(44,44,44,0.96) 100%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 22px);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.75rem;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 0.5rem;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
  text-align: center;
}
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(232,100,12,0.35); }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline:hover { background: #fff; color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--charcoal); transform: translateY(-2px); }

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; }

/* Desktop dropdown menus */
.nav-item { position: relative; }
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
  padding: 0.5rem 0;
  border-top: 3px solid var(--accent);
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown { display: block; }
.nav-dropdown.nav-dropdown-wide { min-width: 460px; column-count: 2; }
.nav-dropdown a {
  display: block;
  padding: 0.55rem 1.25rem;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  break-inside: avoid;
}
.nav-dropdown a:hover { background: var(--light); color: var(--accent); }

/* Mobile navigation */
.mobile-menu { display: none; }
.mobile-menu.open { display: block; }
.mobile-submenu { display: none; }
.mobile-submenu.open { display: block; }
.mobile-toggle svg { transition: transform 0.2s ease; }
.mobile-toggle.open svg { transform: rotate(180deg); }

/* --------------------------------------------------------------------------
   Sticky mobile call bar
   -------------------------------------------------------------------------- */
.sticky-call-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  background: var(--accent);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.25);
}
.sticky-call-bar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 56px;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
}
.sticky-call-bar a.bar-secondary { background: var(--navy); flex: 0 0 38%; }
@media (min-width: 768px) { .sticky-call-bar { display: none; } }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
  background: #fff;
  border-radius: 0.75rem;
  border: 1px solid #e8eaed;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,0.12); }

.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  background: rgba(232,100,12,0.12);
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   FAQ accordion (native <details>)
   -------------------------------------------------------------------------- */
.faq-item {
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.25rem;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item summary:hover { background: var(--light); }
.faq-answer { padding: 0 1.25rem 1.25rem; color: var(--text); }

/* --------------------------------------------------------------------------
   Misc helpers
   -------------------------------------------------------------------------- */
.breadcrumb a { color: var(--accent); }
.breadcrumb a:hover { text-decoration: underline; }

.prose-content p { margin-bottom: 1rem; line-height: 1.7; }
.prose-content h2 { margin-top: 2.5rem; margin-bottom: 1rem; color: var(--navy); }
.prose-content h3 { margin-top: 1.75rem; margin-bottom: 0.75rem; color: var(--charcoal); }
.prose-content ul { margin: 1rem 0; padding-left: 1.25rem; list-style: disc; }
.prose-content ul li { margin-bottom: 0.5rem; line-height: 1.6; }
.prose-content a { color: var(--accent); font-weight: 600; }
.prose-content a:hover { text-decoration: underline; }

.link-list a { color: inherit; font-weight: 500; }
.link-list a:hover { color: var(--accent); }

.skip-link {
  position: absolute;
  left: -999px;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: #fff;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}
