/* ==========================================================================
   Portland Oregon Roof Cleaning — JNR Industries
   Mobile-first stylesheet
   ========================================================================== */

:root {
  --color-navy: #16324f;
  --color-navy-dark: #0c2033;
  --color-sky: #4c8fbf;
  --color-sky-light: #eaf3f9;
  --color-amber: #dd8a2e;
  --color-amber-dark: #b96f1e;
  --color-bg: #faf9f6;
  --color-surface: #ffffff;
  --color-text: #1d2a33;
  --color-text-muted: #52626c;
  --color-border: #e3e0d8;
  --radius-md: 10px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 3px rgba(15, 33, 51, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 33, 51, 0.12);
  --font-heading: "Sora", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
  --container-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-navy);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-navy-dark);
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

ul { margin: 0 0 1em; padding-left: 1.25em; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-navy);
  color: #fff;
  padding: 0.75em 1.25em;
  z-index: 1000;
  border-radius: 0 0 var(--radius-md) 0;
}

.skip-link:focus {
  left: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--color-amber);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.5em;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--color-amber);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-amber-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  border-color: #ffffff;
  color: #ffffff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

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

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

.btn-block {
  width: 100%;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-navy-dark);
  text-decoration: none;
  line-height: 1.15;
}

.logo span {
  color: var(--color-sky);
}

.logo small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.5em 0.9em;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-navy-dark);
  cursor: pointer;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav {
  position: relative;
}

#primary-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  min-width: 220px;
  overflow: hidden;
}

#primary-menu.is-open {
  display: flex;
}

#primary-menu li a {
  display: block;
  padding: 0.85em 1.1em;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  border-bottom: 1px solid var(--color-border);
}

#primary-menu li:last-child a {
  border-bottom: none;
}

#primary-menu li a:hover,
#primary-menu li a[aria-current="page"] {
  background: var(--color-sky-light);
  color: var(--color-navy-dark);
}

.header-cta {
  display: none;
  align-items: center;
  gap: 1rem;
}

.phone-link {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-navy-dark);
  text-decoration: none;
  white-space: nowrap;
}

.phone-link:hover {
  color: var(--color-amber-dark);
}

@media (min-width: 860px) {
  .nav-toggle { display: none; }

  .site-nav ul {
    display: flex;
    gap: 1.75rem;
  }

  #primary-menu {
    display: flex !important;
    position: static;
    flex-direction: row;
    border: none;
    box-shadow: none;
    min-width: 0;
    background: transparent;
  }

  #primary-menu li a {
    padding: 0.4em 0;
    border-bottom: 2px solid transparent;
  }

  #primary-menu li a:hover,
  #primary-menu li a[aria-current="page"] {
    background: transparent;
    border-bottom-color: var(--color-amber);
  }

  .header-cta {
    display: flex;
  }
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(160deg, var(--color-navy-dark), var(--color-navy) 60%, var(--color-sky) 140%);
  color: #fff;
  padding: 3rem 0 3.5rem;
}

.hero-inner {
  display: grid;
  gap: 2.25rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-amber);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.4em 0.9em;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero h1 {
  color: #fff;
}

.hero p.lede {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
}

.hero-trust li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.hero-trust {
  padding-left: 0;
}

/* Before / after image pair */

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  background: rgba(0, 0, 0, 0.15);
  padding: 0.6rem;
  border-radius: var(--radius-lg);
}

.compare figure {
  margin: 0;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.compare img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.compare figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(12, 32, 51, 0.78);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.5em 0.4em;
}

/* ---------- Sections ---------- */

.section {
  padding: 3.25rem 0;
}

.section-tight {
  padding: 2.25rem 0;
}

.section-alt {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section-navy {
  background: var(--color-navy-dark);
  color: #fff;
}

.section-navy h2,
.section-navy h3 {
  color: #fff;
}

.section-header {
  max-width: 62ch;
  margin: 0 0 2rem;
}

.section-header p {
  color: var(--color-text-muted);
}

.eyebrow {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-sky);
  margin-bottom: 0.5em;
}

/* Card grids */

.grid {
  display: grid;
  gap: 1.5rem;
}

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

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

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
}

.card h3 {
  margin-bottom: 0.5em;
}

.card p:last-child {
  margin-bottom: 0;
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--color-sky-light);
  color: var(--color-navy);
  margin-bottom: 0.9rem;
  font-size: 1.3rem;
}

/* Media + text split */

.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  .split.reverse .split-media {
    order: 2;
  }
}

.split-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Photo strip */

.photo-strip {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

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

.photo-strip figure {
  margin: 0;
}

.photo-strip img {
  border-radius: var(--radius-md);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
}

.photo-strip figcaption {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.4em;
  text-align: center;
}

/* List with check icons */

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7em;
}

.check-list li::before {
  content: "\2713";
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
  background: var(--color-sky-light);
  color: var(--color-navy);
  font-weight: 700;
  font-size: 0.8rem;
}

/* Service area chips */

.chip-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip-list li {
  background: var(--color-sky-light);
  color: var(--color-navy-dark);
  border-radius: 999px;
  padding: 0.5em 1em;
  font-weight: 600;
  font-size: 0.9rem;
}

/* CTA banner */

.cta-banner {
  background: linear-gradient(120deg, var(--color-navy-dark), var(--color-navy));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
}

.cta-banner h2 { color: #fff; }

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 55ch;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .hero-actions {
  justify-content: center;
}

/* ---------- FAQ ---------- */

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.25rem 1.25rem;
  margin-bottom: 0.9rem;
}

.faq-item summary {
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 1rem 1.75rem 1rem 0;
  position: relative;
  list-style: none;
  color: var(--color-navy-dark);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0.1rem;
  top: 0.9rem;
  font-size: 1.3rem;
  color: var(--color-amber);
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item p {
  color: var(--color-text-muted);
  padding-bottom: 1rem;
  margin: 0;
}

/* ---------- Forms ---------- */

.form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 600px) {
  .form-row-2 { grid-template-columns: 1fr 1fr; }
  .form-row-3 { grid-template-columns: 1fr 1fr 1fr; }
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4em;
  color: var(--color-navy-dark);
}

.field {
  margin-bottom: 0;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 0.75em 0.9em;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: #fff;
}

textarea {
  resize: vertical;
  min-height: 110px;
}

.field-required::after {
  content: " *";
  color: var(--color-amber-dark);
}

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

.form-note {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-top: 0.75rem;
}

.form-feedback {
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.form-feedback.success {
  background: #e9f5ec;
  color: #205433;
  border: 1px solid #bfe2c9;
}

.form-feedback.error {
  background: #fbeceb;
  color: #7a2a24;
  border: 1px solid #f0c6c2;
}

[hidden] {
  display: none !important;
}

/* ---------- Info blocks ---------- */

.info-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 760px) {
  .info-grid { grid-template-columns: repeat(3, 1fr); }
}

.info-block h3 {
  color: var(--color-navy-dark);
}

.info-block .icon-badge {
  background: rgba(221, 138, 46, 0.14);
  color: var(--color-amber-dark);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-navy-dark);
  color: rgba(255, 255, 255, 0.82);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

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

.footer-brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.5em;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.9em;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
  font-size: 0.92rem;
}

/* Footer links: no underline by default, underline only on hover/focus */
.footer-list a,
.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.footer-list a:hover,
.footer-list a:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
  color: #fff;
}

.footer-list--plain li {
  color: rgba(255, 255, 255, 0.72);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Page hero (interior pages) ---------- */

.page-hero {
  background: linear-gradient(150deg, var(--color-navy-dark), var(--color-navy));
  color: #fff;
  padding: 2.75rem 0;
}

.page-hero h1 {
  color: #fff;
  margin-bottom: 0.4em;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 60ch;
  margin: 0;
}

.breadcrumb {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.9em;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
}

/* Steps list */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 1.25rem;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--color-amber);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps h3 {
  margin-bottom: 0.25em;
}

.steps p {
  margin-bottom: 0;
  color: var(--color-text-muted);
}

/* --- layout fixes 2026-07-24 --- */
.info-grid .card{display:grid;grid-template-columns:auto 1fr;column-gap:1rem;align-items:start;text-align:left}
.info-grid .card .icon-badge{grid-row:1 / span 2;margin-bottom:0;align-self:start}
.info-grid .card h3{grid-column:2;margin:0 0 .25rem}
.info-grid .card > p,.info-grid .card > .chip-list{grid-column:2;margin:0}
@media (min-width:860px){
  .site-nav{flex-shrink:0}
  #primary-menu{gap:2.25rem;flex-wrap:nowrap}
  #primary-menu li a{white-space:nowrap}
}
