/* ==========================================================================
   Metal Roof Central — Site Styles
   Brand colors: black / red / silver (classic, luxury, simple)
   ========================================================================== */

:root {
  --c-black: #101010;
  --c-black-soft: #1b1b1b;
  --c-red: #a01f1f;
  --c-red-dark: #7a1717;
  --c-silver: #c7c9cc;
  --c-silver-light: #eceeef;
  --c-white: #ffffff;
  --c-text: #232323;
  --c-text-muted: #5c5f62;

  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  --max-width: 1180px;
}

* { box-sizing: border-box; }

/* Note: scroll-behavior: smooth intentionally omitted — it was found to
   silently fail to scroll at all in some embedded/automated browser
   contexts, which would break in-page navigation entirely. Instant jump
   is less flashy but guaranteed to work everywhere. */

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--c-text);
  background: var(--c-white);
  line-height: 1.6;
}

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

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--c-black);
}

h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 16px; color: var(--c-text-muted); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--c-red);
  margin-bottom: 10px;
  display: block;
}

.section {
  padding: 72px 0;
}

.section--tight { padding: 48px 0; }

.section--dark {
  background: var(--c-black);
  color: var(--c-silver-light);
}
.section--dark h2, .section--dark h3 { color: var(--c-white); }
.section--dark p { color: var(--c-silver); }

.section--silver {
  background: var(--c-silver-light);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

/* Buttons
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 14px 30px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-radius: 3px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn-primary {
  background: var(--c-red);
  color: var(--c-white);
  border-color: var(--c-red);
}
.btn-primary:hover { background: var(--c-red-dark); border-color: var(--c-red-dark); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--c-white);
  border-color: var(--c-silver);
}
.btn-outline:hover { background: var(--c-white); color: var(--c-black); }

.btn-dark {
  background: var(--c-black);
  color: var(--c-white);
  border-color: var(--c-black);
}
.btn-dark:hover { background: var(--c-black-soft); }

.cta-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* Header / Nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-black);
  border-bottom: 3px solid var(--c-red);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--c-white);
  letter-spacing: 0.01em;
}
.logo span { color: var(--c-red); }

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--c-silver-light);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--c-white);
  border-color: var(--c-red);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--c-white);
  display: block;
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--c-black);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    border-bottom: 3px solid var(--c-red);
  }
  .nav-links.open { max-height: 320px; }
  .nav-links li { border-top: 1px solid #2a2a2a; }
  .nav-links a { display: block; padding: 16px 24px; }
}

/* Hero
   ========================================================================== */
.hero {
  background: linear-gradient(135deg, var(--c-black) 0%, #241010 100%);
  color: var(--c-white);
  padding: 100px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border: 40px solid rgba(160,31,31,0.18);
  border-radius: 50%;
}
.hero-inner { max-width: 720px; position: relative; z-index: 1; }
.hero h1 { color: var(--c-white); }
.hero p.lead {
  font-size: 1.15rem;
  color: var(--c-silver-light);
  max-width: 600px;
}

.page-hero {
  background: var(--c-black);
  color: var(--c-white);
  padding: 64px 0;
  text-align: center;
}
.page-hero h1 { color: var(--c-white); }
.page-hero p { color: var(--c-silver); max-width: 600px; margin-left: auto; margin-right: auto; }

/* Cards / Grids
   ========================================================================== */
.grid {
  display: grid;
  gap: 28px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* Two-column split layouts (used for image/text or content/sidebar pairs) */
.split { display: grid; gap: 40px; align-items: start; }
.split-a { grid-template-columns: 1.1fr 0.9fr; }
.split-b { grid-template-columns: 1fr 1fr; }
.split-c { grid-template-columns: 1.4fr 1fr; }
@media (max-width: 820px) {
  .split-a, .split-b, .split-c { grid-template-columns: 1fr; }
}

.values-grid--compact { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 480px) {
  .values-grid--compact { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--c-white);
  border: 1px solid #e2e3e4;
  border-top: 3px solid var(--c-red);
  border-radius: 4px;
  padding: 30px 26px;
}
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; }

.icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--c-black);
  color: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-family: var(--font-heading);
  font-weight: 700;
}

.audience-card {
  background: var(--c-black-soft);
  border: 1px solid #2c2c2c;
  border-radius: 4px;
  padding: 34px 28px;
}
.audience-card h3 { color: var(--c-white); }
.audience-card p { color: var(--c-silver); margin-bottom: 0; }

/* Values grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  text-align: center;
}
@media (max-width: 900px) { .values-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
.value-item {
  padding: 22px 12px;
  border: 1px solid #e2e3e4;
  border-radius: 4px;
}
.value-item strong {
  display: block;
  font-family: var(--font-heading);
  color: var(--c-red);
  margin-bottom: 4px;
}

/* Gallery
   ========================================================================== */
.gallery-card {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #e2e3e4;
}
.gallery-swatch {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-white);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  text-align: center;
  padding: 16px;
}
.gallery-card .gallery-caption {
  padding: 18px 20px;
  background: var(--c-white);
}
.gallery-card .gallery-caption p { margin-bottom: 0; font-size: 0.92rem; }

.swatch-1 { background: repeating-linear-gradient(135deg, #1b1b1b, #1b1b1b 12px, #2a2a2a 12px, #2a2a2a 24px); }
.swatch-2 { background: repeating-linear-gradient(135deg, #a01f1f, #a01f1f 12px, #7a1717 12px, #7a1717 24px); }
.swatch-3 { background: repeating-linear-gradient(135deg, #7d8084, #7d8084 12px, #9a9ca0 12px, #9a9ca0 24px); }
.swatch-4 { background: repeating-linear-gradient(135deg, #101010, #101010 12px, #a01f1f 12px, #a01f1f 24px); }

.notice-banner {
  background: var(--c-silver-light);
  border: 1px dashed var(--c-silver);
  border-radius: 4px;
  padding: 22px 24px;
  text-align: center;
  margin-top: 40px;
}
.notice-banner p { margin-bottom: 0; }

/* Forms
   ========================================================================== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--c-black);
}
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid #cfd1d3;
  border-radius: 3px;
  background: var(--c-white);
  color: var(--c-text);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--c-red);
  box-shadow: 0 0 0 3px rgba(160, 31, 31, 0.15);
}
.form-field.invalid input,
.form-field.invalid select,
.form-field.invalid textarea {
  border-color: var(--c-red);
}
.form-field.invalid label { color: var(--c-red); }
.field-error {
  display: block;
  min-height: 1.1em;
  font-size: 0.8rem;
  color: var(--c-red);
}
.btn:disabled,
.btn[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}
.form-status {
  margin-top: 12px;
  font-size: 0.92rem;
  min-height: 1.2em;
}
.form-status:not(:empty) {
  padding: 12px 14px;
  border-radius: 3px;
}
.form-status.success { color: #14532d; background: #e5f3ea; border: 1px solid #bfe3cb; }
.form-status.error { color: var(--c-red); background: var(--c-silver-light); border: 1px solid #e2c4c4; }

.contact-info-card {
  background: var(--c-black);
  color: var(--c-white);
  border-radius: 4px;
  padding: 36px 30px;
}
.contact-info-card h3 { color: var(--c-white); }
.contact-info-card a { color: var(--c-silver-light); }
.contact-info-line {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: flex-start;
}
.contact-info-line .label {
  color: var(--c-red);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 2px;
}

/* FAQ accordion
   ========================================================================== */
.faq-item {
  border-bottom: 1px solid #e2e3e4;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 4px;
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--c-black);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-question .plus {
  color: var(--c-red);
  font-size: 1.3rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item.open .faq-question .plus { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer p { padding: 0 4px 22px; margin: 0; }

/* CTA band
   ========================================================================== */
.cta-band {
  background: var(--c-red);
  color: var(--c-white);
  padding: 56px 0;
  text-align: center;
}
.cta-band h2 { color: var(--c-white); margin-bottom: 8px; }
.cta-band p { color: #ffe1e1; }
.cta-band .btn-outline { border-color: var(--c-white); }
.cta-band .btn-outline:hover { background: var(--c-white); color: var(--c-red); }

/* Footer
   ========================================================================== */
.site-footer {
  background: var(--c-black);
  color: var(--c-silver);
  padding: 50px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--c-white); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--c-white); }
.footer-bottom {
  border-top: 1px solid #2a2a2a;
  padding-top: 20px;
  font-size: 0.85rem;
  color: #7c7f82;
  text-align: center;
}

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
