/* =============================================================
   GNR Advertise Site – styles.css
   One stylesheet for every page. Sections:
     1. Settings (colors, fonts)      7. Advertising option cards
     2. Base / reset                  8. Tiles, network & guide cards
     3. Layout helpers                9. Tables (traffic)
     4. Header & navigation          10. Forms
     5. Hero & page headers          11. Footer
     6. Stats bar & cards            12. Tablet & phone layouts
   To change a color or font site-wide, edit section 1 only.
   ============================================================= */


/* ---------- 1. SETTINGS ---------- */
:root {
  --red: #c20d16;          /* nav highlight, borders */
  --red-bright: #f12832;   /* hero accent text */
  --red-price: #b90812;    /* prices, links */
  --blue: #123d83;         /* Buyers Guide accent */
  --black: #080808;        /* header */
  --dark: #171717;         /* stats bar, page headers */
  --text: #202124;
  --bg: #f4f4f4;
  --border: #ddd;
  --font-body: 'Barlow', Arial, Helvetica, sans-serif;
  --font-head: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --radius: 12px;
  --shadow: 0 4px 12px #0002;
}


/* ---------- 2. BASE ---------- */
* { box-sizing: border-box; }

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

h1, h2, h3 { font-family: var(--font-head); letter-spacing: .3px; line-height: 1.15; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
main { min-height: 55vh; }

/* Hidden visually, still read by search engines and screen readers */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}


/* ---------- 3. LAYOUT HELPERS ---------- */
.wrap { max-width: 1280px; margin: auto; padding: 0 24px; }
.section { padding-block: 36px; }

.heading {
  text-align: center;
  font-size: clamp(27px, 4vw, 40px);
  margin: 0 0 10px;
}
.sub { text-align: center; margin: 0 0 25px; }

.prose { max-width: 860px; margin: 0 auto; }
.prose p { margin: 0 0 16px; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

.btn {
  display: inline-block;
  padding: 13px 23px;
  border: 1px solid #ed3940;
  border-radius: 7px;
  background: linear-gradient(#e5232c, #a90008);
  color: #fff;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: bold;
  letter-spacing: .5px;
  text-decoration: none;
  cursor: pointer;
}


/* ---------- 4. HEADER & NAVIGATION ---------- */
.site-header { background: var(--black); color: #fff; }

.mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 5px;
}
.logo { display: block; width: 330px; max-width: 65vw; border-radius: 6px; }   /* white logo box with soft corners */

.tagline {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  text-align: center;
}
.tagline img { width: 80px; height: 80px; filter: drop-shadow(0 2px 6px #000a); }
.tag-text { display: flex; flex-direction: column; align-items: center; }
.tag-top {
  padding-bottom: 6px;
  font-family: var(--font-head);
  font-size: clamp(13px, 1.25vw, 16px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #cfcfcf;
  border-bottom: 2px solid;                                   /* red-to-blue line */
  border-image: linear-gradient(90deg, #e5232c, #ffffff 50%, #1e6fd9) 1;
}
.tag-bottom {
  padding-top: 4px;
  font-family: var(--font-head);
  font-size: clamp(20px, 2.3vw, 30px);
  font-weight: 700;
  letter-spacing: .5px;
  color: #fff;
}
.tag-fire { color: #f12832; }
.tag-ems { color: #4d8dff; }

.menu { display: none; }   /* phone menu button, shown in section 12 */

.site-nav { background: #202020; border-block: 1px solid #444; }
.site-nav .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.site-nav a {
  padding: 15px 13px;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .6px;
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a[aria-current] { background: var(--red); }
.site-nav .navcta { margin-left: auto; font-size: 18px; letter-spacing: .5px; }


/* ---------- 5. HERO (home) & PAGE HEADERS (other pages) ---------- */
.hero {
  position: relative;
  color: #fff;
  background: #101010 url('assets/fire-engine.jpg') right center / auto 100% no-repeat;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #080808 0%, #080808e8 24%, #08080865 45%, transparent 70%);
}
.hero .wrap { position: relative; min-height: 360px; padding-block: 30px; }
.hero h1 {
  max-width: 650px;
  margin: 0 0 20px;
  font-size: clamp(38px, 5.4vw, 70px);
  font-style: italic;
  line-height: .99;
  letter-spacing: -.5px;
}
.hero p { max-width: 500px; margin: 12px 0; font-size: 22px; }
.red { color: var(--red-bright); }

.pagehead {
  padding: 40px 0;
  background: var(--dark);
  color: #fff;
  border-bottom: 5px solid var(--red);
}
.pagehead h1 { margin: 0; font-size: clamp(32px, 5vw, 52px); }


/* ---------- 6. STATS BAR & CARDS ---------- */
.stats { background: var(--dark); color: #fff; }
.stats .wrap { display: grid; grid-template-columns: repeat(5, 1fr); padding-block: 12px; }
.stat { padding: 8px; text-align: center; border-right: 1px solid #d52229; }
.stat:last-child { border: 0; }
.stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(20px, 2.5vw, 30px);
  line-height: 1.2;
  letter-spacing: .3px;
}
.stat span.label {
  font-family: var(--font-head);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .8px;
}
.stat-icon { font-size: 25px; }

.card {
  padding: 25px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 8px; font-size: 26px; }

.price { font-family: var(--font-head); font-size: 36px; font-weight: 900; color: var(--red-price); }
.price small { font-size: 16px; color: #333; }

.checks { padding-left: 0; list-style: none; }
.checks li { position: relative; padding: 4px 0 4px 26px; }   /* wrapped lines line up under the text */
.checks li::before { content: '✓'; position: absolute; left: 0; color: #bc1019; font-weight: bold; }


/* ---------- 7. ADVERTISING OPTION CARDS (photo strips) ---------- */
.options .heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-style: italic;
}
.options .heading::before,
.options .heading::after { content: ''; flex: 1; max-width: 240px; height: 2px; background: #ed1822; }

.options .card { position: relative; overflow: hidden; min-height: 260px; }
.options .banner-card { padding-left: 175px; }
.options .guide-card { padding-right: 165px; }

/* Fixed-width photo strip so the photo never covers the text */
.options .banner-card::before,
.options .guide-card::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 150px;
  background-repeat: no-repeat;
  background-size: cover;
}
.options .banner-card::before {
  left: 0;
  background-image: url('assets/banner-art.png');
  background-position: left center;
  -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent);
          mask-image: linear-gradient(90deg, #000 80%, transparent);
}
.options .guide-card::after {
  right: 0;
  background-image: url('assets/guide-art.png');
  background-position: right center;
  -webkit-mask-image: linear-gradient(270deg, #000 80%, transparent);
          mask-image: linear-gradient(270deg, #000 80%, transparent);
}
.guide-card h3,
.guide-card .checks li::before { color: var(--blue); }


/* ---------- 8. TILES, NETWORK & GUIDE CARDS ---------- */
.tiles { background: #242424; color: #fff; }
.tiles .grid { grid-template-columns: repeat(3, 1fr); }
.tiles .card { background: linear-gradient(#fff, #e8e8e8); color: var(--text); }
.tiles a, .network a, .text-link { color: var(--red-price); font-weight: bold; }

.network { grid-template-columns: repeat(3, 1fr); }
.network .card h3 { font-size: 22px; }
.network .card p { margin: 0 0 10px; }

/* Site screenshots on the Network page */
.thumb { display: block; margin-bottom: 14px; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; }
.thumb img { display: block; width: 100%; height: auto; transition: transform .3s; }
.thumb:hover img { transform: scale(1.04); }


/* Buyer's Guide example screenshot */
.example-shot { max-width: 900px; margin: 0 auto; }
.example-shot img { display: block; width: 100%; height: auto; border: 1px solid #333333; border-radius: 8px; box-shadow: var(--shadow); }
.example-shot figcaption { margin-top: 10px; text-align: center; font-size: 14px; color: #555; }

/* Coverage map (Network page) */
.map-card { max-width: 1000px; margin: 0 auto; padding: 20px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.usmap { display: block; width: 100%; height: auto; }
.usmap .base path { fill: #e3e6ea; stroke: #fff; stroke-width: 1.2; }
.usmap .covered path { stroke: #fff; stroke-width: 1.2; transition: filter .2s, opacity .2s; }
.usmap .covered a:hover path,
.usmap .covered a:focus path { filter: brightness(1.15) drop-shadow(0 0 4px #0006); }
.usmap .labels text { font: 700 13px var(--font-head); fill: #fff; text-anchor: middle; pointer-events: none; paint-order: stroke; stroke: #0004; stroke-width: 2px; }
.usmap .labels line { stroke: #666; stroke-width: 1; }
.usmap .labels line + text { fill: #333; stroke: none; text-anchor: start; }
.usmap .markers circle { fill: #fff; stroke: #080808; stroke-width: 3; }
.usmap .markers text { font: 700 13px var(--font-head); fill: #080808; paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.usmap .markers a:hover circle { fill: #FFCC00; }
.map-key { margin: 10px 0 0; text-align: center; font-size: 15px; color: #444; }
.key-dot { display: inline-block; width: 12px; height: 12px; margin-right: 4px; vertical-align: -1px; border: 3px solid #080808; border-radius: 50%; background: #fff; }

/* Compact Buyer's Guide block (Network page) */
.guide-mini { display: flex; align-items: center; gap: 22px; max-width: 760px; margin: 0 auto; }
.guide-mini .thumb { flex: 0 0 200px; margin: 0; }
.guide-mini h3 { font-size: 22px; }
.guide-mini p { margin: 0 0 8px; }
@media (max-width: 560px) {
  .guide-mini { flex-direction: column; align-items: stretch; }
  .guide-mini .thumb { flex-basis: auto; max-width: 240px; }
  .map-card { padding: 10px; }
}

/* FAQ (Advertise page) – click a question to open it */
.faq { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); background: #fff; }
.faq-item summary {
  position: relative; padding: 16px 44px 16px 18px; cursor: pointer; list-style: none;
  font-family: var(--font-head); font-size: 20px; font-weight: 700; letter-spacing: .3px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 26px; color: var(--red);
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-item summary:hover { color: var(--red-price); }
.faq-item p { margin: 0; padding: 0 18px 18px; }
.faq-more { margin-top: 20px; text-align: center; }

/* ---------- 9. TABLES (Traffic page) ---------- */
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { padding: 14px; text-align: left; border-bottom: 1px solid var(--border); }
th { background: #222; color: #fff; font-family: var(--font-head); letter-spacing: .3px; }

.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

.sitetable { font-size: 16px; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.sitetable td, .sitetable th { padding: 11px 14px; }
.sitetable th[scope=row] { background: none; color: var(--text); font-family: var(--font-body); font-weight: 600; }
.sitetable tbody tr:nth-child(even) { background: #f7f7f7; }
.sitetable tbody tr:hover { background: #fdeeee; }
.sitetable td:nth-child(3) { width: 320px; }
.sitetable tfoot th, .sitetable tfoot td,
.sitetable tfoot th[scope=row] { background: var(--dark); color: #fff; font-weight: 700; font-size: 17px; border: 0; }

/* Page-view bar chart inside the table */
.bar { display: flex; align-items: center; gap: 12px; }
.bar .num { min-width: 72px; }
.track { flex: 1; display: block; height: 12px; background: #eee; border-radius: 6px; overflow: hidden; }
.track i { display: block; height: 100%; min-width: 4px; background: linear-gradient(90deg, #e5232c, #a90008); border-radius: 6px; }


/* Banner sizes table + to-scale preview (Advertise page) */
.specs th[scope=row] { background: none; color: var(--text); font-family: var(--font-body); font-weight: 600; }
.specs td:nth-child(2) { white-space: nowrap; }
.specs-note { margin: 14px 0 22px; }
.ad-preview { display: flex; flex-direction: column; align-items: center; gap: 16px; margin: 0 0 26px; }
.ad-box {
  display: flex; align-items: center; justify-content: center;
  max-width: 100%; border: 1px solid #333333;   /* same 1px #333333 border banners must have */
  background: repeating-linear-gradient(45deg, #fff, #fff 10px, #fbeaea 10px, #fbeaea 20px);
  color: var(--red-price); font-family: var(--font-head); font-weight: 700; font-size: 18px; text-align: center;
}
.ad-large { width: 100%; aspect-ratio: 970 / 130; }                 /* full column width */
.ad-standard { width: 48.25%; aspect-ratio: 468 / 60; font-size: clamp(11px, 1.6vw, 16px); }  /* 468 / 970 = 48.25% keeps it to scale */

/* ---------- 10. FORMS ---------- */
label { display: block; margin: 12px 0; }
input, textarea, button { font: inherit; }
input, textarea { width: 100%; padding: 12px; border: 1px solid #aaa; border-radius: 5px; }
.notice { font-size: 14px; color: #555; }
.notice-ok, .notice-error { padding: 12px 14px; border-radius: 6px; font-size: 16px; font-weight: 600; }
.notice-ok { background: #e7f6ea; color: #1d6b2f; }
.notice-error { background: #fdeeee; color: #a90008; }


/* ---------- 11. FOOTER ---------- */
.site-footer { padding: 28px 0; background: #090909; color: #ddd; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 40px; }
.site-footer p { margin: 4px 0; }
.site-footer .footer-name { color: #66CCFF; }   /* footer business name color */
.site-footer nav a { display: inline-block; margin: 0 14px 6px 0; }
.site-footer nav a:hover,
.site-footer nav a:focus { color: #FFCC00; }   /* footer menu mouseover color */
.site-footer .copy { flex-basis: 100%; font-size: 14px; color: #D4F905; }   /* copyright line color */


/* ---------- 12. TABLET & PHONE LAYOUTS ---------- */

/* Small laptops / tablets landscape */
@media (max-width: 1000px) {
  .options .banner-card, .options .guide-card { padding: 22px; }
  .options .banner-card::before, .options .guide-card::after { display: none; }
}

/* Tablets: phone menu takes over */
@media (max-width: 850px) {
  .tagline { display: none; }
  .logo { width: 280px; }
  .menu {
    display: block;
    padding: 10px 15px;
    background: none;
    border: 1px solid #777;
    border-radius: 5px;
    color: #fff;
    font-size: 20px;
  }
  .site-nav .wrap { display: none; flex-direction: column; align-items: stretch; padding: 8px 20px; }
  .site-nav.open .wrap { display: flex; }
  .site-nav .navcta { margin: 0; }
  .stats .wrap { grid-template-columns: repeat(3, 1fr); }
  .stat { border: 0; }
  .hero { background-size: cover; }
  .hero::before { background: linear-gradient(90deg, #080808ed, #08080865); }
  .network { grid-template-columns: repeat(2, 1fr); }
}

/* Traffic table on small screens: hide extra columns and bars */
@media (max-width: 700px) {
  .sitetable { font-size: 14px; }
  .sitetable td, .sitetable th { padding: 9px 8px; }
  .sitetable th[scope=row] { font-size: 13.5px; }
  .sitetable .opt, .track { display: none; }
  .sitetable td:nth-child(3) { width: auto; }
  .bar { justify-content: flex-end; }
  .bar .num { min-width: 0; }
}

/* Phones */
@media (max-width: 560px) {
  .wrap { padding-inline: 16px; }
  .logo { width: 235px; }
  .grid, .tiles .grid, .network { grid-template-columns: 1fr; }
  .hero .wrap { min-height: 330px; padding-block: 38px; }
  .hero p { font-size: 18px; }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat:last-child { grid-column: 1 / -1; }
  .card { padding: 20px; }
  .section { padding-block: 25px; }
  .options .heading { gap: 8px; }
}
