/* ============================================================
   factoryroofpanels.com — Shared Stylesheet
   Light industrial theme: warm off-white base, steel accents
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800&family=Lato:wght@300;400;700&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --bg-page:        #f2efe9;
  --bg-white:       #ffffff;
  --bg-panel:       #eae6de;
  --bg-dark:        #1c2b39;
  --bg-mid:         #2e4257;

  --accent:         #045c60;
  --accent-hover:   #045c60;
  --accent-light:   #fdf0e8;

  --steel:          #4a7fa5;
  --steel-light:    #d6e8f4;

  --text-primary:   #1a1a1a;
  --text-body:      #3d3d3d;
  --text-muted:     #6b6b6b;
  --text-light:     #ffffff;

  --border:         #d4cec4;
  --border-strong:  #b0a898;

  --radius-sm:      4px;
  --radius-md:      8px;
  --radius-lg:      14px;

  --shadow-sm:  0 2px 8px rgba(0,0,0,.07);
  --shadow-md:  0 6px 24px rgba(0,0,0,.10);
  --shadow-lg:  0 12px 48px rgba(0,0,0,.14);

  --max-w:      1200px;
  --section-py: 80px;

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Lato', sans-serif;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--bg-page);
}

img { display: block; max-width: 100%; }

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-hover); }

ul { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: .02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ---------- Layout Utilities ---------- */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: var(--section-py); }
.section--alt { background: var(--bg-panel); }
.section--dark { background: var(--bg-dark); color: var(--text-light); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }

.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid #f4c4a4;
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 16px;
}

.section-header { margin-bottom: 48px; }
.section-header p { font-size: 1.05rem; color: var(--text-muted); max-width: 640px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(224,92,26,.35);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--accent);
}
.btn-white:hover {
  background: var(--accent-light);
  color: var(--accent-hover);
}

/* ---------- Divider ---------- */
.divider {
  width: 56px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin-block: 16px;
}

/* ---------- Cards ---------- */
.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s, transform .25s;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* ---------- Grid helpers ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ---------- Placeholder images ---------- */
.img-placeholder {
  background: linear-gradient(135deg, #cfc9be 0%, #e2ddd5 60%, #bfbab1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-family: var(--font-display);
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}
.img-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 12px,
    rgba(255,255,255,.18) 12px,
    rgba(255,255,255,.18) 14px
  );
}

/* ---------- Badge / tag ---------- */
.tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 2px;
  background: var(--steel-light);
  color: var(--steel);
}

/* ---------- Checklist / dash list ---------- */
.dash-list li {
  display: flex;
  gap: 10px;
  padding-block: 6px;
  border-bottom: 1px solid var(--border);
  font-size: .97rem;
}
.dash-list li:last-child { border-bottom: none; }
.dash-list li::before {
  content: '—';
  color: var(--accent);
  flex-shrink: 0;
  font-weight: 700;
}

/* ---------- Step list ---------- */
.step-list { counter-reset: step; }
.step-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-block: 12px;
  border-bottom: 1px solid var(--border);
  counter-increment: step;
}
.step-list li:last-child { border-bottom: none; }
.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
}

/* ---------- CTA strip ---------- */
.cta-strip {
  background: linear-gradient(120deg, var(--bg-dark) 0%, var(--bg-mid) 100%);
  color: #fff;
  padding-block: 64px;
  text-align: center;
}
.cta-strip h2 { color: #fff; margin-bottom: 12px; }
.cta-strip p { color: #b8c8d8; max-width: 560px; margin-inline: auto; margin-bottom: 28px; }

/* ---------- Form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }

label {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-primary);
}
label .req { color: var(--accent); }

input[type="text"],
input[type="email"],
input[type="number"],
input[type="tel"],
select,
textarea {
  padding: 11px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: var(--font-body);
  font-size: .97rem;
  color: var(--text-primary);
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(224,92,26,.12);
}
textarea { resize: vertical; min-height: 100px; }

/* ---------- FAQ accordion ---------- */
.faq-item {
  /* border: 1px solid var(--border);
  border-radius: var(--radius-sm); */
  margin-bottom: 10px;
  /* background: #fff; */
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  border:none;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  user-select: none;
  transition: color .2s;
}
.faq-question:hover { color: var(--accent); }
.faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  color: var(--accent);
  transition: transform .25s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.faq-answer-inner {
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: .97rem;
  line-height: 1.7;
}

/* ---------- HEADER ---------- */
.site-header {
  background: #fff;
  border-bottom: 3px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-mark {
  width: 42px;
  height: 42px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-mark svg { width: 24px; height: 24px; fill: #fff; }
.logo-text { font-family: var(--font-display); }
.logo-text .top { font-size: 1.2rem; font-weight: 800; color: var(--bg-dark); line-height: 1; letter-spacing: .03em; }
.logo-text .sub { font-size: .7rem; font-weight: 400; color: var(--text-muted); letter-spacing: .1em; text-transform: uppercase; }

.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-decoration: none;
  transition: color .2s;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.header-cta { flex-shrink: 0; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all .25s;
  border-radius: 2px;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--bg-dark);
  color: #b8c8d8;
  padding-block: 56px 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 28px;
}
.footer-brand .logo-text .top { color: #fff; }
.footer-brand p { font-size: .9rem; margin-top: 12px; line-height: 1.7; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a {
  font-size: .9rem;
  color: #8faec8;
  text-decoration: none;
  transition: color .2s;
}
.footer-col ul a:hover { color: var(--accent); }
.footer-contact-item {
  display: flex;
  gap: 8px;
  font-size: .9rem;
  margin-bottom: 8px;
}
.footer-contact-item svg { width: 16px; height: 16px; fill: var(--accent); flex-shrink: 0; margin-top: 3px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .82rem;
  color: #6a8099;
}
.footer-bottom a { color: #6a8099; }
.footer-bottom a:hover { color: var(--accent); }
.cert-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.cert-badge {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 3px;
  padding: 4px 10px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8faec8;
}

/* ---------- Inner Page Hero ---------- */
.page-hero {
  background: linear-gradient(160deg, #f0ebe1 0%, #e6e0d5 100%);
  border-bottom: 1px solid var(--border);
  padding-block: 56px 60px;
  position: relative;
  overflow: hidden;
}
/* .page-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 40%;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 20px,
    rgba(224,92,26,.04) 20px,
    rgba(224,92,26,.04) 22px
  );
  pointer-events: none;
} */
/* .page-hero-content { max-width: 720px; position: relative; } */
.page-hero-content h1 { margin-block: 12px 0; }
.page-hero-sub {
  margin-top: 16px;
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --section-py: 52px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }

  .site-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 12px 24px 20px;
    box-shadow: var(--shadow-md);
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    padding-block: 10px;
    width: 100%;
    border-bottom: 1px solid var(--border);
  }
  .site-nav a:last-child { border-bottom: none; }
  .header-cta { display: none; }
  .hamburger { display: flex; }
  .header-inner { position: relative; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}