/* =============================================
   ROOFPROOF LLC — SHARED DESIGN SYSTEM
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;600;700;800;900&display=swap');

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  background: #080f09;
  color: #e8eaf0;
  overflow-x: hidden;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---- TOKENS ---- */
:root {
  --orange:        #1c7a2a;
  --orange-light:  #28a038;
  --orange-dark:   #145a1e;
  --orange-glow:   rgba(28,122,42,0.2);

  --navy:          #080f09;
  --navy-mid:      #0c1610;
  --navy-light:    #101e13;
  --navy-card:     #142018;

  --slate:         #1a2e1d;
  --slate-light:   #264d2b;

  --text-primary:  #f1f5f9;
  --text-secondary:#94a3b8;
  --text-muted:    #64748b;

  --white:         #ffffff;
  --green:         #4ade80;
  --amber:         #6ee77a;

  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     22px;
  --radius-xl:     32px;

  --shadow-glow:   0 0 40px rgba(28,122,42,0.14);
  --shadow-card:   0 8px 40px rgba(0,0,0,0.4);
  --shadow-orange: 0 8px 28px rgba(28,122,42,0.42);

  --transition:    0.3s ease;
  --transition-slow: 0.6s cubic-bezier(0.16,1,0.3,1);
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 3px; }

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 76px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem;
  transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(9,12,20,0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: rgba(249,115,22,0.12);
  box-shadow: 0 4px 40px rgba(0,0,0,0.5);
}

/* Logo */
.nav-logo { display: flex; align-items: center; gap: 0.65rem; }
.nav-logo-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem;
  box-shadow: var(--shadow-orange);
  flex-shrink: 0;
}
.nav-logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem; font-weight: 800;
  color: var(--white); letter-spacing: -0.4px;
}
.nav-logo-text em { color: var(--orange); font-style: normal; }

/* Desktop links */
.nav-links {
  display: flex; align-items: center; gap: 0.25rem;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem; font-weight: 500;
  padding: 0.5rem 0.85rem; border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  position: relative;
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.04); }
.nav-links a.active { color: var(--orange); }
.nav-links a.active::after {
  content: '';
  position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 2px;
  background: var(--orange); border-radius: 2px;
}

/* CTA area */
.nav-cta { display: flex; align-items: center; gap: 1rem; }
.nav-phone {
  color: var(--text-secondary);
  font-size: 0.875rem; font-weight: 500;
  display: flex; align-items: center; gap: 0.35rem;
  transition: color var(--transition);
}
.nav-phone:hover { color: var(--orange); }
.nav-phone svg { width: 14px; height: 14px; }

.btn-nav {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: var(--white); padding: 0.55rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem; font-weight: 600;
  box-shadow: var(--shadow-orange);
  transition: transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn-nav:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(249,115,22,0.5); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 4px; background: none; border: none;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed; top: 76px; left: 0; right: 0;
  background: rgba(9,12,20,0.97);
  backdrop-filter: blur(24px);
  padding: 1.5rem 2rem 2rem;
  border-bottom: 1px solid rgba(249,115,22,0.12);
  z-index: 999;
  transform: translateY(-8px);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}
.mobile-menu.open {
  display: block;
  animation: slideDown 0.25s ease forwards;
}
@keyframes slideDown { from { opacity:0; transform:translateY(-10px); } to { opacity:1; transform:translateY(0); } }
.mobile-menu ul { display: flex; flex-direction: column; gap: 0.25rem; margin-bottom: 1.5rem; }
.mobile-menu ul a {
  display: block; padding: 0.75rem 0.5rem;
  color: var(--text-primary); font-size: 1rem; font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: color var(--transition);
}
.mobile-menu ul a:hover { color: var(--orange); }
.mobile-menu ul a.active { color: var(--orange); }
.mobile-call-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: white; padding: 0.9rem;
  border-radius: var(--radius-md);
  font-weight: 700; font-size: 1rem;
  box-shadow: var(--shadow-orange);
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: var(--navy-mid);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 5rem 2.5rem 2rem;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.footer-brand-desc {
  font-size: 0.875rem; color: var(--text-muted);
  line-height: 1.75; margin-top: 1rem; max-width: 270px;
}
.footer-phone {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--orange); font-weight: 600; font-size: 0.95rem;
  margin-top: 1.25rem;
  transition: color var(--transition);
}
.footer-phone:hover { color: var(--orange-light); }
.footer-col h5 {
  font-size: 0.78rem; font-weight: 700; color: var(--white);
  text-transform: uppercase; letter-spacing: 1.2px;
  margin-bottom: 1.25rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul li a {
  color: var(--text-muted); font-size: 0.875rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--orange-light); }
.footer-col address {
  font-style: normal; font-size: 0.875rem;
  color: var(--text-muted); line-height: 1.8;
}
.footer-col address a { color: var(--orange); transition: color var(--transition); }
.footer-col address a:hover { color: var(--orange-light); }

.footer-bottom {
  max-width: 1200px; margin: 2rem auto 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.75rem;
}
.footer-bottom p { color: var(--text-muted); font-size: 0.8rem; }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a {
  color: var(--text-muted); font-size: 0.8rem;
  transition: color var(--transition);
}
.footer-bottom-links a:hover { color: var(--orange); }

/* =============================================
   BUTTONS
   ============================================= */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: var(--white); padding: 0.9rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 700; font-size: 1rem;
  box-shadow: var(--shadow-orange);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(249,115,22,0.55); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--white); padding: 0.9rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600; font-size: 1rem;
  backdrop-filter: blur(8px);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  cursor: pointer;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1.5px solid var(--orange);
  color: var(--orange); padding: 0.85rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600; font-size: 1rem;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  cursor: pointer;
}
.btn-outline:hover {
  background: var(--orange); color: white;
  transform: translateY(-2px);
}

/* =============================================
   SECTION UTILITIES
   ============================================= */
.section { padding: 6.5rem 2.5rem; }
.section-sm { padding: 4rem 2.5rem; }
.container { max-width: 1200px; margin: 0 auto; }
.container-sm { max-width: 860px; margin: 0 auto; }

.section-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; font-weight: 700;
  color: var(--orange); text-transform: uppercase; letter-spacing: 1.8px;
  margin-bottom: 0.85rem;
}
.section-tag::before {
  content: '';
  width: 22px; height: 2px;
  background: var(--orange); border-radius: 2px;
}
.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 800; color: var(--white);
  line-height: 1.15; letter-spacing: -0.5px;
  margin-bottom: 1rem;
}
.section-desc {
  font-size: 1.05rem; color: var(--text-secondary);
  line-height: 1.78; max-width: 580px;
}
.text-center { text-align: center; }
.text-center .section-desc { margin: 0 auto; }
.text-center .section-tag { justify-content: center; }
.text-center .section-tag::before { display: none; }
.text-center .section-tag::after {
  content: '';
  width: 22px; height: 2px;
  background: var(--orange); border-radius: 2px;
}

/* =============================================
   CARDS
   ============================================= */
.card {
  background: var(--navy-card);
  border: 1px solid rgba(255,255,255,0.055);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  border-color: rgba(249,115,22,0.2);
  transform: translateY(-5px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.glass-card {
  background: rgba(20,28,46,0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
}

/* =============================================
   BADGE
   ============================================= */
.badge {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: rgba(249,115,22,0.1);
  border: 1px solid rgba(249,115,22,0.28);
  color: var(--orange-light);
  padding: 0.38rem 1rem; border-radius: 50px;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.5px; text-transform: uppercase;
  margin-bottom: 1.5rem;
}

/* =============================================
   FLOATING CALL BUTTON
   ============================================= */
.float-call {
  position: fixed; bottom: 1.75rem; right: 1.75rem; z-index: 900;
  display: flex; align-items: center; gap: 0.5rem;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: white; padding: 0.9rem 1.4rem;
  border-radius: 50px; font-weight: 700; font-size: 0.9rem;
  box-shadow: 0 8px 30px rgba(249,115,22,0.5);
  animation: pulseRing 2.5s ease infinite;
  transition: transform var(--transition), box-shadow var(--transition);
}
.float-call:hover { transform: scale(1.05); box-shadow: 0 12px 40px rgba(28,122,42,0.65); }
@keyframes pulseRing {
  0%   { box-shadow: 0 8px 30px rgba(28,122,42,0.55), 0 0 0 0 rgba(28,122,42,0.38); }
  70%  { box-shadow: 0 8px 30px rgba(28,122,42,0.55), 0 0 0 14px rgba(28,122,42,0); }
  100% { box-shadow: 0 8px 30px rgba(28,122,42,0.55), 0 0 0 0 rgba(28,122,42,0); }
}

/* =============================================
   PAGE HERO BANNER (inner pages)
   ============================================= */
.page-hero {
  position: relative;
  padding: 10rem 2.5rem 5rem;
  overflow: hidden;
  background: var(--navy-mid);
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(0.22) saturate(0.8);
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(9,12,20,0.92) 0%, rgba(9,12,20,0.55) 100%);
}
.page-hero-glow-l {
  position: absolute; left: -200px; top: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(249,115,22,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-glow-r {
  position: absolute; right: -200px; bottom: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(249,115,22,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-content {
  position: relative; max-width: 1200px; margin: 0 auto;
}
.page-hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  font-weight: 900; color: var(--white);
  line-height: 1.08; letter-spacing: -1.5px;
  margin-bottom: 1.25rem;
}
.page-hero h1 .hl {
  background: linear-gradient(135deg, var(--orange), var(--amber));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-hero p {
  font-size: 1.1rem; color: var(--text-secondary);
  max-width: 540px; line-height: 1.75;
}
.breadcrumb {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.82rem; color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--text-muted); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb span { color: var(--text-muted); }
.breadcrumb .current { color: var(--orange); }

/* =============================================
   STATS ROW
   ============================================= */
.stats-row {
  display: flex; gap: 2.5rem; flex-wrap: wrap;
  margin-top: 3.5rem;
}
.stat-item {}
.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2.4rem; font-weight: 900;
  color: var(--orange); line-height: 1;
}
.stat-label {
  font-size: 0.8rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.6px;
  margin-top: 0.3rem;
}

/* =============================================
   DIVIDER
   ============================================= */
.divider {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--orange), transparent);
  border-radius: 2px; margin: 1.5rem 0;
}
.divider.centered { margin: 1.5rem auto; }

/* =============================================
   REVEAL ANIMATIONS
   ============================================= */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0; transform: translateX(-28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0; transform: translateX(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* =============================================
   CTA BAND
   ============================================= */
.cta-band {
  background: linear-gradient(135deg, var(--navy-card) 0%, rgba(249,115,22,0.06) 100%);
  border: 1px solid rgba(249,115,22,0.18);
  border-radius: var(--radius-xl);
  padding: 4rem 3rem;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(249,115,22,0.08), transparent 70%);
  pointer-events: none;
}
.cta-band h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800; color: var(--white);
  margin-bottom: 1rem; position: relative;
}
.cta-band p {
  color: var(--text-secondary); font-size: 1.05rem;
  max-width: 500px; margin: 0 auto 2rem; position: relative;
}
.cta-actions {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  position: relative;
}

/* =============================================
   ICON BOX
   ============================================= */
.icon-box {
  width: 58px; height: 58px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; flex-shrink: 0;
}
.icon-box.orange { background: rgba(249,115,22,0.12); }
.icon-box.purple { background: rgba(139,92,246,0.12); }
.icon-box.green  { background: rgba(34,197,94,0.12); }
.icon-box.blue   { background: rgba(59,130,246,0.12); }
.icon-box.amber  { background: rgba(251,191,36,0.12); }

/* =============================================
   STARS
   ============================================= */
.stars { display: flex; gap: 0.15rem; }
.stars span { color: var(--amber); font-size: 0.9rem; }

/* =============================================
   FORM ELEMENTS
   ============================================= */
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-label {
  font-size: 0.875rem; font-weight: 600;
  color: var(--text-primary); letter-spacing: 0.2px;
}
.form-input, .form-select, .form-textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  color: var(--text-primary); font-family: inherit; font-size: 0.95rem;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  width: 100%;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: rgba(249,115,22,0.04);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.12);
}
.form-select { appearance: none; cursor: pointer; }
.form-textarea { resize: vertical; min-height: 130px; }

/* =============================================
   RESPONSIVE — SHARED
   ============================================= */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .navbar { padding: 0 1.5rem; }
  .nav-links, .nav-phone, .btn-nav { display: none; }
  .hamburger { display: flex; }
  .section { padding: 5rem 1.5rem; }
  .section-sm { padding: 3rem 1.5rem; }
  .page-hero { padding: 8rem 1.5rem 4rem; }
  .stats-row { gap: 1.75rem; }
  footer { padding: 4rem 1.5rem 2rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom-links { justify-content: center; }
  .cta-band { padding: 3rem 1.5rem; }
}
@media (max-width: 480px) {
  .section { padding: 4rem 1.25rem; }
  .btn-primary, .btn-secondary, .btn-outline { padding: 0.85rem 1.5rem; font-size: 0.95rem; }
  .float-call .float-text { display: none; }
  .float-call { border-radius: 50%; width: 56px; height: 56px; padding: 0; justify-content: center; }
}
