/* =========================================================================
   Louisville Area Roofing by Gutter Junkies
   Mobile first, responsive stylesheet
   ========================================================================= */

:root {
  --navy: #0f2942;
  --navy-deep: #0a1d30;
  --navy-soft: #1c3a58;
  --accent: #d97706;      /* warm amber, roofing tone */
  --accent-dark: #b45f04;
  --ink: #1f2933;
  --muted: #5b6875;
  --line: #e2e6ea;
  --bg: #ffffff;
  --bg-alt: #f4f6f8;
  --white: #ffffff;
  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(15, 41, 66, 0.12);
  --shadow-md: 0 12px 30px rgba(15, 41, 66, 0.14);
  --wrap: 1140px;
  --font-head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}

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

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

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.1;
  color: var(--navy);
  margin: 0 0 0.5em;
  letter-spacing: 0.3px;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

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

.sr-only,
.skip-link {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 10px; left: 10px;
  width: auto; height: auto;
  clip: auto;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  z-index: 2000;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 0.5rem;
}

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff; }

.btn-block { display: block; width: 100%; }

/* -------------------------------------------------------------------------
   Header
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(4px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
}

.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { display: block; width: auto; height: 46px; }
.brand-fallback { flex-direction: column; line-height: 1.05; }
.brand-fallback strong {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.brand-fallback em {
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.header-phone {
  display: none;
  text-align: right;
  text-decoration: none;
  line-height: 1.1;
}
.header-phone-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
}
.header-phone-number {
  display: block;
  font-family: var(--font-head);
  font-size: 1.35rem;
  color: var(--navy);
}

/* Nav */
.site-nav { display: flex; align-items: center; }

.nav-toggle {
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  position: relative;
  cursor: pointer;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 11px;
  width: 20px; height: 2px;
  background: var(--navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  display: none;
  flex-direction: column;
}
.nav-list.open { display: flex; }

.nav-list li { border-top: 1px solid var(--line); }
.nav-list a {
  display: block;
  padding: 14px 20px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
}
.nav-list a:hover { background: var(--bg-alt); }
.nav-cta { color: var(--accent-dark) !important; }

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  background: var(--navy-deep);
}
.hero-media {
  position: absolute;
  inset: 0;
  /* IMAGE PLACEHOLDER: swap this gradient for url('../img/hero.jpg') center/cover */
  background-image: url('../img/hero.jpg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
.hero-content {
  position: relative;
  padding: 72px 20px 64px;
  max-width: 780px;
}
.hero-content h1 { color: #fff; }
.hero .eyebrow { color: #f2b56b; }
.hero-sub {
  font-size: 1.15rem;
  color: #dbe4ec;
  margin-bottom: 1.75rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 2rem;
}
.hero-actions .btn-outline { color: #fff; border-color: #fff; }
.hero-actions .btn-outline:hover { background: #fff; color: var(--navy); }

.hero-badges {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.hero-badges li {
  position: relative;
  padding-left: 22px;
  font-size: 0.92rem;
  color: #e6edf3;
}
.hero-badges li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
}

/* -------------------------------------------------------------------------
   Trust bar
   ------------------------------------------------------------------------- */
.trust-bar {
  background: var(--navy-soft);
  color: #fff;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 28px 20px;
  text-align: center;
}
.trust-num {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  color: #f2b56b;
}
.trust-text { font-size: 0.9rem; color: #d5dee6; }

/* -------------------------------------------------------------------------
   Sections
   ------------------------------------------------------------------------- */
.section { padding: 60px 0; }
.section-alt { background: var(--bg-alt); }
.section-lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 65ch;
  margin-bottom: 2rem;
}
.section-cta { margin-top: 2rem; }

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.card-icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  margin-bottom: 14px;
}
.card h3 { margin-bottom: 0.4rem; }
.card p { margin: 0; color: var(--muted); }

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  counter-reset: step;
}
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 22px 70px;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.step-num {
  position: absolute;
  left: 18px; top: 20px;
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.2rem;
}
.step h3 { margin-bottom: 0.3rem; }
.step p { margin: 0; color: var(--muted); }

/* Split */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
.check-list {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
}
.check-list li {
  position: relative;
  padding: 8px 0 8px 30px;
  border-bottom: 1px solid var(--line);
}
.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0; top: 8px;
  color: #fff;
  background: var(--accent);
  width: 20px; height: 20px;
  border-radius: 50%;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.media-frame {
  border-radius: var(--radius);
  min-height: 320px;
  /* IMAGE PLACEHOLDER: swap for url('../img/crew.jpg') center/cover */
  background:url('../img/crew.jpg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border: 1px solid var(--line);
}

/* Service area */
.area-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 1.5rem;
}
.area-columns ul { margin: 0; padding-left: 18px; color: var(--muted); }
.area-columns li { margin-bottom: 6px; }
.area-note { color: var(--muted); }

/* Reviews */
.review-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.review {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.review p { font-style: italic; color: var(--ink); }
.review cite {
  font-style: normal;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.9rem;
}

/* -------------------------------------------------------------------------
   Contact
   ------------------------------------------------------------------------- */
.section-contact {
  background: var(--navy);
  color: #fff;
}
.section-contact h2 { color: #fff; }
.section-contact .eyebrow { color: #f2b56b; }
.section-contact a { color: #f2b56b; }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.contact-copy p { color: #d5dee6; }

.contact-facts {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}
.contact-facts li {
  display: flex;
  flex-direction: column;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.contact-facts strong {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #9fb4c6;
}

.contact-form {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-md);
  color: var(--ink);
}
.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.95rem;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.form-row textarea { resize: vertical; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 16px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
  display: none;
}
.form-status.is-error {
  display: block;
  background: #fdecea;
  color: #8a1c12;
  border: 1px solid #f4c7c1;
}
.form-status.is-success {
  display: block;
  background: #e7f6ec;
  color: #1a6b3a;
  border: 1px solid #b7e2c5;
}
.form-status.is-pending {
  display: block;
  background: var(--bg-alt);
  color: var(--muted);
  border: 1px solid var(--line);
}

.form-fineprint {
  margin: 14px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

button[disabled] { opacity: 0.6; cursor: progress; }

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-deep);
  color: #c6d2dd;
  padding: 48px 0 24px;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.site-footer h3 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.footer-brand {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}
.footer-tagline {
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #f2b56b;
  margin: 0 0 0.75rem;
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 6px; }
.footer-links a, .site-footer a { color: #c6d2dd; text-decoration: none; }
.footer-links a:hover, .site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.82rem;
  color: #92a4b3;
}
.footer-bottom p { margin: 0.2rem 0; }

/* -------------------------------------------------------------------------
   Scroll to top
   ------------------------------------------------------------------------- */
.scroll-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  z-index: 900;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.scroll-top.show {
  opacity: 1;
  transform: translateY(0);
}
.scroll-top:hover { background: var(--accent-dark); }

/* -------------------------------------------------------------------------
   Responsive: tablet and up
   ------------------------------------------------------------------------- */
@media (min-width: 720px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .area-columns { grid-template-columns: 1fr 1fr; }
  .review-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-content { padding: 100px 20px 90px; }
}

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .header-phone { display: block; }
  .site-nav { position: static; }
  .nav-list {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    box-shadow: none;
    border: none;
    background: transparent;
  }
  .nav-list li { border: none; }
  .nav-list a { padding: 10px 12px; border-radius: 8px; font-size: 0.95rem; }
  .nav-cta {
    background: var(--accent);
    color: #fff !important;
  }
  .nav-cta:hover { background: var(--accent-dark) !important; }

  .split { grid-template-columns: 1.1fr 0.9fr; }
  .contact-inner { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 84px 0; }
}

@media (min-width: 1100px) {
  .card-grid { grid-template-columns: repeat(4, 1fr); }
}

/* -------------------------------------------------------------------------
   Motion preference
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
