/* Miller & Sons Weather Modification - corporate-2000s */

:root {
  --navy: #1b3a6b;
  --navy-dark: #122a50;
  --navy-light: #2c5aa0;
  --gold: #e8b52a;
  --gold-dark: #c4941a;
  --sky: #dce9f7;
  --page: #eef2f7;
  --panel: #ffffff;
  --border: #9db3cc;
  --text: #222833;
  --muted: #55606e;
  --red: #b32020;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Verdana, Tahoma, Geneva, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  background: var(--page) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="8" height="8"><rect width="8" height="8" fill="%23eef2f7"/><rect width="8" height="1" fill="%23e6ecf4"/></svg>');
}

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

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 14px;
}

/* Header */

.topbar {
  background: linear-gradient(#fdf6e3, #f4e3ae);
  border-bottom: 1px solid var(--gold-dark);
  font-size: 12px;
  color: #5a4a17;
}

.topbar .wrap {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 5px;
  padding-bottom: 5px;
  flex-wrap: wrap;
}

.topbar b { color: var(--red); }

header.site {
  background: linear-gradient(180deg, var(--navy-light) 0%, var(--navy) 55%, var(--navy-dark) 100%);
  color: #fff;
  border-bottom: 3px solid var(--gold);
}

header.site .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

header.site img.logo {
  width: 74px;
  height: 74px;
  border-radius: 8px;
  border: 2px solid var(--gold);
  background: #fff;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.45);
}

.masthead h1 {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.7rem;
  letter-spacing: 0.5px;
  text-shadow: 2px 2px 3px rgba(0,0,0,0.6);
}

.masthead .tagline {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--gold);
  font-style: italic;
}

/* Nav */

nav.main {
  background: linear-gradient(#4a5d78, #2e3f57);
  border-bottom: 2px solid var(--navy-dark);
}

nav.main .wrap {
  display: flex;
  flex-wrap: wrap;
  padding-left: 6px;
  padding-right: 6px;
}

nav.main a {
  display: block;
  padding: 9px 14px;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: bold;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
  border-right: 1px solid rgba(255,255,255,0.18);
  border-left: 1px solid rgba(0,0,0,0.25);
}

nav.main a:first-child { border-left: none; }

nav.main a:hover,
nav.main a.here {
  background: linear-gradient(var(--gold), var(--gold-dark));
  color: var(--navy-dark);
  text-shadow: none;
}

/* Layout blocks */

main .wrap { padding-top: 18px; padding-bottom: 30px; }

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 2px 2px 5px rgba(27,58,107,0.18);
  padding: 16px 18px;
  margin: 0 0 18px;
}

.panel h2, .panel h3 {
  margin-top: 0;
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--navy);
}

.panel h2 {
  border-bottom: 2px solid var(--gold);
  padding-bottom: 6px;
}

.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.cols3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* Hero */

.hero {
  position: relative;
  border: 2px solid var(--navy);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 3px 3px 8px rgba(0,0,0,0.3);
  margin-bottom: 18px;
  background: var(--navy);
}

.hero img {
  display: block;
  width: 100%;
  height: auto;
}

.hero .plate {
  background: linear-gradient(180deg, var(--sky), #ffffff);
  padding: 14px 18px;
  border-top: 3px solid var(--gold);
}

.hero .plate h2 {
  margin: 0 0 6px;
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--navy);
  font-size: 1.45rem;
}

.hero .plate p { margin: 0 0 10px; }

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.badge {
  background: linear-gradient(#ffffff, #dbe6f5);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: inset 0 1px 0 #fff, 1px 1px 2px rgba(0,0,0,0.15);
  font-size: 11px;
  font-weight: bold;
  color: var(--navy);
  padding: 4px 9px;
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 8px 18px;
  font-family: Verdana, sans-serif;
  font-size: 13px;
  font-weight: bold;
  color: var(--navy-dark);
  background: linear-gradient(#ffe9a8, var(--gold) 45%, var(--gold-dark));
  border: 1px solid var(--gold-dark);
  border-radius: 5px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 2px 2px 4px rgba(0,0,0,0.25);
  text-decoration: none;
  cursor: pointer;
}

.btn:hover { filter: brightness(1.06); }

.btn.blue {
  color: #fff;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.4);
  background: linear-gradient(#5a83c0, var(--navy-light) 45%, var(--navy));
  border-color: var(--navy-dark);
}

/* Service cards */

.svc {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  box-shadow: 2px 2px 5px rgba(27,58,107,0.15);
  display: flex;
  flex-direction: column;
}

.svc img { width: 100%; height: auto; display: block; cursor: zoom-in; }

.svc .body { padding: 10px 12px 14px; flex: 1; }

.svc h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--navy);
  font-family: Georgia, serif;
}

.svc p { margin: 0; font-size: 12.5px; color: var(--muted); }

/* Pricing table */

table.rates {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

table.rates th {
  background: linear-gradient(var(--navy-light), var(--navy));
  color: #fff;
  text-align: left;
  padding: 8px 10px;
  border: 1px solid var(--navy-dark);
  text-shadow: 1px 1px 1px rgba(0,0,0,0.4);
}

table.rates td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  vertical-align: top;
}

table.rates tr:nth-child(even) td { background: var(--sky); }

td.price, th.price { white-space: nowrap; text-align: right; }

/* Coupons */

.coupon {
  border: 3px dashed var(--gold-dark);
  border-radius: 6px;
  background: #fffbe8;
  padding: 12px 14px;
  text-align: center;
}

.coupon .big {
  font-family: Georgia, serif;
  font-size: 1.25rem;
  color: var(--red);
  font-weight: bold;
  margin: 0 0 4px;
}

.coupon .small { font-size: 11px; color: var(--muted); margin: 6px 0 0; }

.coupon .code {
  display: inline-block;
  margin-top: 6px;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  background: #fff;
  border: 1px solid var(--gold-dark);
  padding: 2px 8px;
}

/* Testimonials */

.quote {
  border-left: 4px solid var(--gold);
  background: var(--sky);
  border-radius: 0 6px 6px 0;
  padding: 10px 14px;
  margin: 0 0 12px;
  font-style: italic;
}

.quote .who {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-size: 12px;
  font-weight: bold;
  color: var(--navy);
}

/* Emergency strip */

.emergency {
  background: linear-gradient(#d33a3a, var(--red));
  border: 1px solid #7d1414;
  border-radius: 6px;
  color: #fff;
  text-align: center;
  padding: 12px 14px;
  margin: 0 0 18px;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

.emergency .phone {
  font-size: 1.5rem;
  font-weight: bold;
  font-family: Georgia, serif;
  text-shadow: 2px 2px 2px rgba(0,0,0,0.4);
  letter-spacing: 1px;
}

/* Gallery */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

figure.shot {
  margin: 0;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 2px 2px 5px rgba(27,58,107,0.15);
}

figure.shot img { width: 100%; height: auto; display: block; cursor: zoom-in; }

figure.shot figcaption {
  padding: 8px 12px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: var(--sky);
}

.ba-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: bold;
  padding: 1px 7px;
  border-radius: 3px;
  color: #fff;
  margin-right: 6px;
  text-transform: uppercase;
}

.ba-tag.before { background: #777; }
.ba-tag.after { background: var(--navy-light); }

/* FAQ */

.faq-item { border-bottom: 1px dotted var(--border); padding: 10px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { margin: 0 0 5px; font-size: 14px; color: var(--navy); }
.faq-item p { margin: 0; }

/* Forms */

form.quote label {
  display: block;
  font-weight: bold;
  font-size: 12px;
  color: var(--navy);
  margin: 12px 0 3px;
}

form.quote input,
form.quote select,
form.quote textarea {
  width: 100%;
  padding: 7px 8px;
  font: inherit;
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  box-shadow: inset 1px 1px 3px rgba(0,0,0,0.12);
}

.estimate-box {
  background: #fffbe8;
  border: 2px solid var(--gold-dark);
  border-radius: 6px;
  padding: 12px 16px;
  margin-top: 14px;
}

.estimate-box pre {
  font-family: 'Courier New', monospace;
  font-size: 12.5px;
  white-space: pre-wrap;
  margin: 0 0 12px;
}

.form-ok {
  background: #e7f5e4;
  border: 1px solid #78a56e;
  border-radius: 6px;
  padding: 12px 16px;
  color: #2c5a24;
  font-weight: bold;
}

/* Footer */

footer.site {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
  border-top: 3px solid var(--gold);
  color: #cdd9ea;
  font-size: 12px;
  margin-top: 10px;
}

footer.site .wrap {
  padding-top: 18px;
  padding-bottom: 22px;
}

footer.site a { color: var(--gold); }

footer.site .fine {
  margin-top: 12px;
  font-size: 10.5px;
  color: #8fa3c0;
}

/* Modal */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 18, 33, 0.86);
  z-index: 50;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.open { display: flex; }

.modal figure {
  margin: 0;
  max-width: min(920px, 96vw);
}

.modal img {
  display: block;
  max-width: 100%;
  max-height: 82vh;
  border: 3px solid #fff;
  border-radius: 4px;
  box-shadow: 0 6px 30px rgba(0,0,0,0.6);
}

.modal .modal-caption {
  color: #dbe6f5;
  font-size: 12px;
  text-align: center;
  padding-top: 8px;
}

.modal .modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* Marketing page */

.marketing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.marketing-grid figure.shot:first-child { grid-column: 1 / -1; }

/* Responsive */

img { max-width: 100%; }

@media (max-width: 760px) {
  .cols, .cols3, .gallery, .marketing-grid { grid-template-columns: 1fr; }
  .marketing-grid figure.shot:first-child { grid-column: auto; }
  header.site .wrap { gap: 12px; }
  header.site img.logo { width: 58px; height: 58px; }
  .masthead h1 { font-size: 1.25rem; }
  nav.main a { padding: 9px 10px; font-size: 11.5px; }
  .topbar .wrap { justify-content: center; text-align: center; }
}
