/* ── NailedIt Handyman — Shared Styles ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange: #e8640c;
  --orange-dark: #c4520a;
  --navy: #1a2b4a;
  --navy-light: #243859;
  --gray: #f5f5f5;
  --text: #333;
  --text-light: #666;
  --white: #fff;
  --shadow: 0 4px 20px rgba(0,0,0,0.1);
}

html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', system-ui, sans-serif; color: var(--text); line-height: 1.6; }

/* NAV */
nav {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  background: var(--navy);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 68px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.4rem; font-weight: 700; color: var(--white);
  text-decoration: none;
}
.logo span { color: var(--orange); }
.logo-icon {
  width: 36px; height: 36px; background: var(--orange);
  border-radius: 8px; display: flex; align-items: center;
  justify-content: center; font-size: 1.2rem;
}

nav ul { list-style: none; display: flex; gap: 2rem; align-items: center; }
nav a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.95rem; transition: color .2s; }
nav a:hover { color: var(--orange); }
.nav-active { color: var(--orange) !important; font-weight: 600; }
.nav-cta {
  background: var(--orange) !important; color: var(--white) !important;
  padding: 10px 22px; border-radius: 6px; font-weight: 600;
  transition: background .2s !important;
}
.nav-cta:hover { background: var(--orange-dark) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 26px; height: 2px; background: white; border-radius: 2px; }

/* PAGE HERO (inner pages) */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #2a4a7a 100%);
  padding: 130px 5% 80px; text-align: center;
}
.page-hero .badge {
  display: inline-block; background: rgba(232,100,12,0.2); color: var(--orange);
  border: 1px solid rgba(232,100,12,0.4); padding: 6px 16px; border-radius: 20px;
  font-size: 0.85rem; font-weight: 600; letter-spacing: .5px; margin-bottom: 1.2rem;
}
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem); color: white;
  font-weight: 800; line-height: 1.2; margin-bottom: 1rem;
}
.page-hero h1 em { color: var(--orange); font-style: normal; }
.page-hero p { font-size: 1.1rem; color: rgba(255,255,255,0.72); max-width: 560px; margin: 0 auto; }

/* SECTION COMMON */
section { padding: 90px 5%; }
.section-label {
  display: inline-block; color: var(--orange); font-weight: 700;
  font-size: 0.85rem; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 0.6rem;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: var(--navy);
  font-weight: 800; line-height: 1.2; margin-bottom: 1rem;
}
.section-sub { font-size: 1.05rem; color: var(--text-light); max-width: 580px; margin-bottom: 3rem; }

/* BUTTONS */
.btn-primary {
  background: var(--orange); color: white; padding: 14px 32px; border-radius: 8px;
  font-size: 1rem; font-weight: 700; text-decoration: none; display: inline-block;
  transition: background .2s, transform .15s; box-shadow: 0 4px 16px rgba(232,100,12,0.4);
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); }
.btn-secondary {
  background: transparent; color: var(--navy); padding: 13px 30px; border-radius: 8px;
  font-size: 1rem; font-weight: 600; text-decoration: none; display: inline-block;
  border: 2px solid var(--navy); transition: background .2s, color .2s;
}
.btn-secondary:hover { background: var(--navy); color: white; }

/* FORM ELEMENTS */
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--navy); margin-bottom: 0.4rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid #ddd; border-radius: 8px;
  font-size: 0.95rem; font-family: inherit; transition: border-color .2s, box-shadow .2s; outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232,100,12,0.12);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-submit {
  width: 100%; padding: 14px; background: var(--orange); color: white;
  border: none; border-radius: 8px; font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: background .2s, transform .15s; font-family: inherit;
}
.form-submit:hover { background: var(--orange-dark); transform: translateY(-1px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.success-msg {
  display: none; background: #d4edda; color: #155724;
  padding: 14px; border-radius: 8px; text-align: center; margin-top: 1rem; font-weight: 600;
}

/* FOOTER */
footer {
  background: #0f1c32; color: rgba(255,255,255,0.6);
  text-align: center; padding: 2.5rem 5%; font-size: 0.88rem;
}
footer strong { color: var(--orange); }
.footer-links { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1rem; }
.footer-links a { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 0.88rem; transition: color .2s; }
.footer-links a:hover { color: var(--orange); }

/* SCROLL TOP */
.scroll-top {
  position: fixed; bottom: 2rem; right: 2rem; width: 44px; height: 44px;
  border-radius: 50%; background: var(--orange); color: white; border: none;
  cursor: pointer; font-size: 1.1rem; box-shadow: 0 4px 16px rgba(232,100,12,0.4);
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .2s; z-index: 999;
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { transform: translateY(-3px); }

/* CTA STRIP */
.cta-strip {
  background: var(--orange); padding: 60px 5%; text-align: center;
}
.cta-strip h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: white; font-weight: 800; margin-bottom: 0.8rem; }
.cta-strip p { color: rgba(255,255,255,0.85); margin-bottom: 2rem; font-size: 1.05rem; }
.cta-strip .btn-white {
  background: white; color: var(--orange); padding: 14px 36px; border-radius: 8px;
  font-size: 1rem; font-weight: 700; text-decoration: none; display: inline-block;
  transition: transform .15s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.cta-strip .btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

/* RESPONSIVE */
@media (max-width: 640px) {
  nav ul { display: none; }
  .hamburger { display: flex; }
  nav ul.open {
    display: flex; flex-direction: column;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--navy); padding: 1.5rem 5%;
    gap: 1.2rem; box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  }
  .form-row { grid-template-columns: 1fr; }
}
