/* Layout and styles mirror the original campbellsurveying.net (Colibri WordPress theme) */
:root {
  --text: #3a616b;
  --heading: #0c1416;
  --accent: #4baef3;
  --accent-dark: #31719e;
  --band: #f5fafd;
  --white: #fff;
  --hero-img: url("images/hero.jpg");
  --overlay: rgba(12,20,22,.5);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Lato, sans-serif; font-size: 16px; color: var(--text); background: var(--white); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1232px; margin: 0 auto; }

/* Header */
header { position: sticky; top: 0; z-index: 10; background: var(--white); }
.nav { max-width: 1232px; margin: 0 auto; padding: 18px 16px; display: flex; align-items: center; justify-content: space-between; position: relative; }
.logo { font-size: 24px; font-weight: 700; color: var(--heading); }
.menu { display: flex; list-style: none; }
.menu li { margin: 0 20px; padding: 10px 0; }
.menu li:last-child { margin-right: 0; }
.menu a { font-size: 13px; font-weight: 700; line-height: 1.5; text-transform: uppercase; color: var(--heading); transition: color .2s; padding-bottom: 4px; }
.menu a:hover, .menu a.active { color: var(--accent); }
.menu a.active { border-bottom: 2px solid var(--accent); }
.burger { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--heading); }

/* Home hero */
.hero {
  padding: 232px 20px; text-align: center; color: var(--white);
  background: linear-gradient(var(--overlay), var(--overlay)), var(--hero-img) 49.5625% 71.5% / cover no-repeat fixed, rgb(53,59,62);
}
.hero h1 { font-size: 70px; font-weight: 400; line-height: 1.26; margin-bottom: 16px; }
.hero p { font-size: 20px; font-weight: 400; letter-spacing: 1px; margin-bottom: 16px; }

/* Inner page title banner */
.page-hero {
  padding: 80px 20px; text-align: center; color: var(--white);
  background: linear-gradient(var(--overlay), var(--overlay)), var(--hero-img) 50% 35% / cover no-repeat, rgb(53,59,62);
}
.page-hero h1 { font-size: 54px; font-weight: 400; line-height: 1.26; }

/* Buttons */
.btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 15px 30px; font: 600 14px/1 "Open Sans", sans-serif; letter-spacing: 1px;
  text-transform: uppercase; color: var(--white); border: 2px solid var(--white); background: transparent; transition: .2s; cursor: pointer;
}
.btn:hover { background: rgba(255,255,255,.2); }
.btn.primary { background: var(--accent); border-color: var(--accent); }
.btn.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

/* Page sections */
.section { padding: 120px 20px; }
.section.plain { padding-top: 90px; padding-bottom: 90px; }
.section.tint { background: var(--band); }
.section p, .section ul { font-size: 18px; line-height: 1.6; margin-bottom: 16px; }
.section ul { padding-left: 40px; list-style: disc; }
.center { text-align: center; }
.narrow { max-width: 580px; }

/* Home */
.intro h3 { font-size: 36px; font-weight: 300; line-height: 1.25; color: var(--heading); }
.home-contact h6 { font-size: 16px; font-weight: 700; line-height: 1.6; text-transform: uppercase; color: var(--text); }
.home-contact a:hover { color: var(--accent); }

/* Why A Survey? */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.why-grid img { width: 100%; height: auto; display: block; }
.why-text { text-align: center; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
#contact-form { padding: 0 62px; }
label { display: block; text-align: left; line-height: 2em; font-size: 12px; font-weight: 700; color: #777771; }
label .req { color: #e04562; }
input, textarea {
  font: inherit; font-size: 16px; padding: 9px 14px; margin: 4px 0 16px; width: 100%;
  background: var(--white); border: 1px solid rgba(3,169,244,.2); border-radius: 8px;
}
textarea { min-height: 140px; resize: vertical; margin-bottom: 4px; }
.count { text-align: right; font-size: 12px; color: #777771; margin-bottom: 16px; }
.send { background: var(--accent); color: var(--white); border: 0; border-radius: 3px; padding: 10px 60px; font: inherit; font-size: 16px; font-weight: 400; cursor: pointer; transition: .2s; }
.send:hover { background: var(--accent-dark); }
.send[disabled] { opacity: .6; cursor: wait; }
.contact-side { text-align: center; }
.contact-side a:hover { color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.status { font-weight: 600; min-height: 1.2em; margin-top: 12px; }
.status.ok { color: #1b7a3d; }
.status.err { color: #b42318; }

/* Footer */
footer { text-align: center; padding: 60px 20px 30px; }

/* Tablet */
@media (max-width: 1023px) {
  .section { padding: 80px 20px; }
  .hero { padding: 120px 20px; background-attachment: scroll; }
  .hero h1 { font-size: 52px; }
}

/* Phone */
@media (max-width: 820px) {
  .nav { padding: 16px; }
  .burger { display: block; }
  .menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); flex-direction: column; box-shadow: 0 6px 10px rgba(0,0,0,.08); }
  .menu.open { display: flex; }
  .menu li { margin: 0; padding: 0; }
  .menu a { display: block; padding: 14px 20px; border-top: 1px solid #eef2f4; }
  .menu a.active { border-bottom: 0; }
  .section { padding: 30px 16px; }
  .hero h1 { font-size: 48px; }
  .page-hero h1 { font-size: 40px; }
  .intro h3 { font-size: 32px; }
  .why-grid, .contact-grid { grid-template-columns: 1fr; }
  #contact-form { padding: 0; }
}
