/* ==========================================================================
   Gubb Pump and Well Services
   Everything visual is controlled from the :root block below.
   Change a colour or a font there and it updates across the whole site.
   ========================================================================== */

:root {
  /* Brand colours */
  --deep:      #0b3d5c;   /* headings, footer, dark bands */
  --deep-soft: #14567d;
  --water:     #1b87c9;   /* primary blue, buttons and links */
  --water-lt:  #e8f4fb;   /* pale blue panel background */
  --accent:    #f5a623;   /* emergency / call-to-action orange */
  --ink:       #1d2b33;   /* body text */
  --muted:     #5b6f7c;   /* secondary text */
  --line:      #dbe5ea;   /* borders */
  --bg:        #ffffff;
  --bg-alt:    #f6f9fb;

  /* Type */
  --font: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Bitter", Georgia, "Times New Roman", serif;

  /* Layout */
  --wrap: 1140px;
  --radius: 10px;
  --shadow: 0 2px 6px rgba(11, 61, 92, .07), 0 12px 28px rgba(11, 61, 92, .06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--deep); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; }
a  { color: var(--water); }

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.section { padding: 76px 0; }
.section--alt { background: var(--bg-alt); }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.center .lead { margin-left: auto; margin-right: auto; }

.eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .78rem;
  font-weight: 700; color: var(--water); margin: 0 0 .6em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: var(--radius);
  font-weight: 700; text-decoration: none; border: 2px solid transparent;
  cursor: pointer; font-size: 1rem; font-family: var(--font);
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--water); color: #fff; }
.btn--primary:hover { background: var(--deep-soft); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.65); }
.btn--ghost:hover { background: rgba(255,255,255,.14); }
.btn--call { background: var(--accent); color: #23180a; }
.btn--call:hover { background: #ffb63f; }
.btn--wide { width: 100%; }

/* ---------- Top bar and header ---------- */
.topbar {
  background: var(--deep); color: #cfe3ef; font-size: .88rem;
}
.topbar .wrap { display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.96); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 14px; padding-bottom: 14px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  background: var(--water); display: grid; place-items: center;
}
.brand__mark svg { width: 22px; height: 22px; fill: #fff; }
.brand__name { font-family: var(--font-head); font-weight: 700; color: var(--deep); line-height: 1.1; font-size: 1.05rem; }
.brand__sub { display: block; font-family: var(--font); font-size: .74rem; font-weight: 600; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .97rem; }
.nav a:hover { color: var(--water); }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--deep); margin: 5px 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff;
  background: linear-gradient(150deg, var(--deep) 0%, var(--deep-soft) 55%, var(--water) 100%);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 420px at 78% 18%, rgba(255,255,255,.16), transparent 60%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-top: 78px; padding-bottom: 78px; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero p { color: #d8ecf8; font-size: 1.15rem; max-width: 46ch; }
.hero .eyebrow { color: #8fd0f5; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero__img img {
  border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.28);
  /* Native size is 454x303, so cap it rather than upscale into blur. */
  max-width: 480px; width: 100%; margin-left: auto;
}

.hero__points { list-style: none; padding: 0; margin: 30px 0 0; display: flex; gap: 26px; flex-wrap: wrap; font-size: .95rem; color: #cfe7f5; }
.hero__points li { display: flex; align-items: center; gap: 8px; }
.hero__points svg { width: 17px; height: 17px; fill: #7fd1a2; flex: none; }

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

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 6px 14px rgba(11,61,92,.1), 0 20px 40px rgba(11,61,92,.1); }
.card__icon {
  width: 50px; height: 50px; border-radius: 12px; background: var(--water-lt);
  display: grid; place-items: center; margin-bottom: 16px;
}
.card__icon svg { width: 26px; height: 26px; fill: var(--water); }
.card ul { list-style: none; padding: 0; margin: 16px 0 0; font-size: .95rem; }
.card li { display: flex; gap: 9px; align-items: flex-start; padding: 5px 0; color: var(--muted); }
.card li svg { width: 15px; height: 15px; fill: var(--water); flex: none; margin-top: 5px; }

.card--emergency { border-color: var(--accent); background: #fffaf1; }
.card--emergency .card__icon { background: #fdeccc; }
.card--emergency .card__icon svg { fill: #c07d09; }

/* ---------- Why us ---------- */
.value { text-align: center; padding: 8px; }
.value__icon { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; background: var(--water-lt); display: grid; place-items: center; }
.value__icon svg { width: 27px; height: 27px; fill: var(--water); }
.value h3 { font-size: 1.08rem; }
.value p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.about img { border-radius: 14px; box-shadow: var(--shadow); }
.stats { display: flex; gap: 34px; flex-wrap: wrap; margin-top: 26px; }
.stat__n { font-family: var(--font-head); font-size: 2rem; color: var(--water); font-weight: 700; line-height: 1; }
.stat__l { font-size: .88rem; color: var(--muted); }

/* ---------- Emergency band ---------- */
.band {
  background: var(--deep); color: #fff; text-align: center; padding: 54px 0;
}
.band h2 { color: #fff; }
.band p { color: #cfe3ef; max-width: 620px; margin-left: auto; margin-right: auto; }
.band__phone {
  display: inline-block; font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: #fff; text-decoration: none; font-weight: 700; margin-top: 8px;
}
.band__phone:hover { color: var(--accent); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }

.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--deep); }
.field .req { color: #c0392b; }
input, select, textarea {
  width: 100%; padding: 11px 13px; font: inherit; font-size: .97rem;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--water); outline-offset: 1px; border-color: var(--water); }
textarea { min-height: 120px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.formnote { font-size: .85rem; color: var(--muted); margin-top: 12px; }
.formmsg { margin-top: 14px; padding: 12px 14px; border-radius: 8px; font-size: .93rem; display: none; }
.formmsg.ok   { display: block; background: #e7f7ee; border: 1px solid #a8dcc0; color: #1c6b42; }
.formmsg.bad  { display: block; background: #fdecea; border: 1px solid #f2b8b2; color: #a32b1e; }

/* ---------- Contact details ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 15px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list svg { width: 21px; height: 21px; fill: var(--water); flex: none; margin-top: 3px; }
.contact-list strong { display: block; color: var(--deep); font-size: .95rem; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: #b8d3e3; padding: 54px 0 26px; font-size: .94rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: .8em; }
.site-footer a { color: #b8d3e3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 3px 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 34px; padding-top: 18px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .87rem; color: #8fb3c8; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 56px; }
  .hero__img { order: -1; }
  .hero__img img { margin: 0 auto; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .about, .form-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 22px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 11px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; text-align: center; }
  .nav-toggle { display: block; }
  .site-header .wrap { position: relative; }
  .grid--3, .grid--4, .grid--2, .row2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 54px 0; }
  .topbar .wrap { justify-content: center; text-align: center; }
}

/* Turnstile widget spacing */
.cf-turnstile { margin: 6px 0 16px; }
