/* ============================================================
   Patriot Metals — working redesign prototype
   Brand: navy + steel + a restrained patriotic red accent
   ============================================================ */

:root {
  --navy:        #16243d;
  --navy-deep:   #0f1a2e;
  --red:         #b32430;
  --red-dark:    #8e1c26;
  --steel:       #5b6b7d;
  --steel-light: #e7ecf1;
  --paper:       #f7f9fb;
  --ink:         #1c2531;
  --muted:       #5a6675;
  --line:        #d9e0e8;
  --white:       #ffffff;
  --radius:      10px;
  --shadow:      0 6px 24px rgba(16, 26, 46, 0.10);
  --shadow-lg:   0 14px 40px rgba(16, 26, 46, 0.16);
  --maxw:        1160px;
  --font:        "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 .5em; color: var(--navy); font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1rem; }
a  { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 76px 0; }
.section.alt { background: var(--paper); }
.center { text-align: center; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: .6rem;
}
.eyebrow::before { content: "★ "; }

/* ---------- Patriotic flag stripe accent ---------- */
.flag-stripe { height: 5px; width: 100%; background:
  linear-gradient(90deg,
    var(--navy) 0 33.3%,
    #fff 33.3% 66.6%,
    var(--red) 66.6% 100%); }
.flag-stripe.thin { height: 3px; }

/* Star divider for section headings */
.stars { color: var(--red); letter-spacing: .3em; font-size: .9rem; margin-bottom: .4rem; }
.stars::before { content: "★ ★ ★"; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 720px; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--navy-deep);
  color: #c9d4e2;
  font-size: .9rem;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #fff; font-weight: 600; }
.topbar .tb-right { display: flex; gap: 22px; align-items: center; }
.topbar .tb-phone { font-size: 1rem; }

/* ---------- Header / nav ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; max-width: var(--maxw); margin: 0 auto; }
.nav .brand { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--navy); font-size: 1.15rem; }
.nav .brand img { height: 46px; width: auto; }
.nav ul { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; align-items: center; }
.nav ul a { color: var(--ink); font-weight: 600; }
.nav ul a:hover { color: var(--red); text-decoration: none; }
.nav .nav-cta { margin-left: 8px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background: linear-gradient(rgba(15,26,46,.72), rgba(15,26,46,.78)),
              url("https://www.patriotmetalsmi.com/wp-content/uploads/2024/11/metal-roofing-tampa-main-banner-min.jpg") center/cover no-repeat;
}
.hero .wrap { padding-top: 110px; padding-bottom: 110px; max-width: 880px; }
.hero h1 { color: #fff; }
.hero p { font-size: 1.25rem; color: #e4eaf2; max-width: 640px; }
.hero .hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero .trust-row { margin-top: 34px; display: flex; gap: 28px; flex-wrap: wrap; color: #cdd8e6; font-weight: 600; font-size: .95rem; }
.hero .trust-row span::before { content: "★ "; color: var(--red); }

/* ---------- Product grid ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .14s ease, box-shadow .14s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .card-img { aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.card .card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin-bottom: .35rem; }
.card p { color: var(--muted); font-size: .98rem; flex: 1; }
.card .card-link { font-weight: 700; margin-top: 10px; }

/* ---------- Feature / value props ---------- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.value { text-align: center; padding: 10px; }
.value .icon { font-size: 2rem; margin-bottom: 8px; }
.value h3 { font-size: 1.05rem; }
.value p { color: var(--muted); font-size: .94rem; margin: 0; }

/* ---------- Product detail rows ---------- */
.prow { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; margin-bottom: 56px; }
.prow:last-child { margin-bottom: 0; }
.prow.flip .ptext { order: 2; }
.prow img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.prow .spec { list-style: none; padding: 0; margin: 16px 0 0; }
.prow .spec li { padding: 7px 0 7px 28px; position: relative; border-bottom: 1px dashed var(--line); }
.prow .spec li::before { content: "✓"; color: var(--red); font-weight: 800; position: absolute; left: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cdd8e6; font-size: 1.15rem; max-width: 600px; margin: 0 auto 26px; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-grid figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery-grid img { aspect-ratio: 4/3; object-fit: cover; width: 100%; transition: transform .3s ease; }
.gallery-grid figure:hover img { transform: scale(1.05); }
.gallery-grid figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(15,26,46,.85));
  color: #fff; padding: 22px 14px 12px; font-size: .9rem; font-weight: 600;
}

/* ---------- Contact / form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff;
}
.contact-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-card p { margin: 0 0 14px; }
.contact-card strong { color: var(--navy); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: #aebbcc; padding: 54px 0 26px; }
.footer a { color: #dce4ee; }
.footer .fgrid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; margin-bottom: 30px; }
.footer h4 { color: #fff; font-size: 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 8px; }
.footer .copyright { border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; font-size: .85rem; color: #8a99ad; }

/* ---------- Page banner (interior pages) ---------- */
.page-banner { background: var(--navy); color: #fff; padding: 56px 0; }
.page-banner h1 { color: #fff; margin: 0; }
.page-banner p { color: #cdd8e6; margin: 8px 0 0; }
.crumbs { font-size: .85rem; color: #9fb0c4; margin-bottom: 10px; }
.crumbs a { color: #cdd8e6; }

/* ---------- Notes banner (prototype only) ---------- */
.proto-note {
  background: #fff8e1; border-bottom: 1px solid #f0e2a8; color: #6b5800;
  font-size: .85rem; text-align: center; padding: 7px 16px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .values { grid-template-columns: repeat(2, 1fr); }
  .prow, .contact-grid, .footer .fgrid { grid-template-columns: 1fr; gap: 24px; }
  .prow.flip .ptext { order: 0; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .nav ul { display: none; }   /* simplified mobile nav for prototype */
  .topbar .tb-right .tb-hours { display: none; }
}
@media (max-width: 560px) {
  .grid-3, .values, .gallery-grid { grid-template-columns: 1fr; }
  .hero .wrap { padding-top: 70px; padding-bottom: 70px; }
}
