/* ==========================================================================
   Walters Well Drilling, LLC - shared stylesheet
   Static clone of a Wix source site. Tokens + shared header/nav/footer +
   shared motion live here (owned by the orchestrator). Page-scoped rules are
   appended below under banners whose text is: page: <slug>
   ========================================================================== */

:root {
  /* palette (extracted from screenshots) */
  --blue:        #0f5190;   /* primary brand blue: headings, buttons, footer */
  --blue-dark:   #0a3c6e;   /* deeper blue for gradients / hovers */
  --blue-deep:   #0c4680;   /* footer / why-choose band base */
  --blue-bright: #1668b0;   /* number chips, accents */
  --navy-band:   #26333f;   /* dark hero band on services / contact */
  --ink:         #2b2f33;   /* body text near-black */
  --ink-soft:    #4b5560;   /* secondary text */
  --muted:       #6a747f;   /* meta text */
  --line:        #e2e7ec;   /* hairline borders */
  --panel:       #f4f6f8;   /* light section background */
  --card:        #ffffff;
  --field:       #e9edf1;   /* form input fill */
  --white:       #ffffff;

  /* type */
  --head: 'Oswald', 'Arial Narrow', sans-serif;
  --body: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;

  /* rhythm */
  --maxw: 1200px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(15, 40, 70, 0.12);
  --shadow-sm: 0 4px 14px rgba(15, 40, 70, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--head);
  font-weight: 700;
  line-height: 1.12;
  color: var(--blue);
  margin: 0 0 .5em;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--blue); color: #fff; padding: 10px 16px; z-index: 200;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---- buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--head);
  font-weight: 600;
  letter-spacing: .04em;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--blue);
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-outline { background: transparent; color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border-color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--blue); }

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; min-height: 84px; max-width: 1320px;
}
.brand { display: flex; align-items: center; }
.brand img { height: 70px; width: auto; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  font-size: 26px; color: var(--blue); line-height: 1;
}
.main-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 34px;
}
.main-nav a {
  font-family: var(--head);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 15px;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.main-nav a:hover { color: var(--blue); text-decoration: none; }
.main-nav a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); }
.header-cta {
  font-family: var(--head); font-weight: 600; letter-spacing: .06em;
  font-size: 15px; color: var(--blue);
  border: 1px solid var(--blue); border-radius: 22px;
  padding: 9px 20px; white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}
.header-cta:hover { background: var(--blue); color: #fff; text-decoration: none; }

/* ==========================================================================
   PAGE HERO BAND (services / contact / blog)
   ========================================================================== */
.page-hero {
  position: relative;
  min-height: 320px;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy-band);
  overflow: hidden;
}
.page-hero .hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .55;
}
.page-hero h1 {
  position: relative; z-index: 2;
  color: #fff; text-transform: uppercase; letter-spacing: .05em;
  font-size: clamp(30px, 5vw, 52px); text-align: center; margin: 0;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--blue-deep);
  color: #dbe6f2;
  padding: 60px 0 26px;
}
.site-footer .wrap {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
  max-width: 1240px;
}
.footer-logo { background: #fff; border-radius: 10px; padding: 12px; display: inline-block; margin-bottom: 18px; }
.footer-logo img { height: 96px; width: auto; }
.site-footer p { color: #cdd; }
.site-footer .about-blurb { color: #c3d2e2; font-size: 15px; max-width: 340px; }
.site-footer h4 {
  color: #fff; font-family: var(--head); font-weight: 700;
  text-transform: none; font-size: 24px; letter-spacing: .01em; margin-bottom: 22px;
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 16px; }
.footer-links a {
  color: #eaf1f8; font-family: var(--head); font-weight: 500;
  letter-spacing: .05em; text-transform: uppercase; font-size: 15px;
}
.footer-links a:hover { color: #fff; }
.footer-contact { display: flex; flex-direction: column; gap: 18px; }
.footer-contact .fc-row { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact .fc-ic {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%;
  background: rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px;
}
.footer-contact strong { color: #fff; display: block; font-weight: 700; }
.footer-contact a { color: #eaf1f8; }
.footer-bottom {
  text-align: center; color: #a9bed4; font-size: 14px;
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12);
}

/* ==========================================================================
   SHARED SECTION HELPERS
   ========================================================================== */
.section { padding: 76px 0; }
.section-light { background: var(--panel); }
.eyebrow {
  font-family: var(--head); font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--blue-bright); font-size: 15px; margin: 0 0 6px;
}
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-head p { color: var(--ink-soft); max-width: 760px; margin: 0 auto; }

/* ==========================================================================
   FORMS (wired to Apex relay)
   ========================================================================== */
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.lead-form .field { display: flex; flex-direction: column; }
.lead-form .field.full { grid-column: 1 / -1; }
.lead-form label { font-size: 14px; color: var(--ink-soft); margin-bottom: 6px; }
.lead-form label .req { color: #c0392b; }
.lead-form input, .lead-form textarea {
  font-family: var(--body); font-size: 16px; color: var(--ink);
  background: var(--field); border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: 13px 14px; width: 100%;
  transition: border-color .18s ease, background .18s ease;
}
.lead-form input:focus, .lead-form textarea:focus {
  outline: none; border-color: var(--blue); background: #fff;
}
.lead-form textarea { min-height: 130px; resize: vertical; }
.lead-form .hp { position: absolute; left: -9999px; top: -9999px; overflow: hidden; width: 1px; height: 1px; }
.lead-form .submit-row { grid-column: 1 / -1; }
.lead-form .btn { width: 100%; padding: 15px; }

/* ==========================================================================
   MOTION  (plain CSS; pure on-load reveals that always end visible)
   ========================================================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
/* Applied directly to elements: the animation always runs, so it always
   ends visible. No static opacity:0 rule is ever left on real content. */
.reveal   { animation: fadeUp .7s ease both; }
.reveal-1 { animation: fadeUp .7s ease .08s both; }
.reveal-2 { animation: fadeUp .7s ease .18s both; }
.reveal-3 { animation: fadeUp .7s ease .28s both; }
.fade-in  { animation: fadeIn 1s ease both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ==========================================================================
   RESPONSIVE (shared chrome)
   ========================================================================== */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 84px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 16px; }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .main-nav a { display: block; padding: 14px 0; }
  .site-footer .wrap { grid-template-columns: 1fr; gap: 34px; }
  .lead-form { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .header-cta { display: none; }
  .section { padding: 52px 0; }
}

/* ==========================================================================
   page: home
   ========================================================================== */
.home-hero { position: relative; min-height: 560px; display: flex; align-items: center; overflow: hidden; }
.home-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,25,45,.45), rgba(10,25,45,.55)); }
.home-hero-inner { position: relative; z-index: 2; text-align: center; margin: 0 auto; max-width: 900px; padding-top: 40px; padding-bottom: 40px; }
.home-hero h1 { color: #fff; font-size: clamp(34px, 6vw, 60px); text-shadow: 0 2px 14px rgba(0,0,0,.35); margin-bottom: 18px; }
.home-hero p { color: #eef3f8; font-size: clamp(16px, 2vw, 19px); max-width: 640px; margin: 0 auto 26px; text-shadow: 0 1px 6px rgba(0,0,0,.4); }

.about-section { position: relative; background: var(--panel); overflow: hidden; }
.about-bg { position: absolute; right: 0; top: 0; width: 60%; height: 100%; object-fit: cover; opacity: .10; }
.about-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-copy h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 18px; }
.about-copy p { color: var(--ink-soft); margin: 0 0 16px; }
.check-list { list-style: none; margin: 8px 0 26px; padding: 0; }
.check-list li { position: relative; padding-left: 34px; margin-bottom: 14px; color: var(--ink-soft); }
.check-list li::before {
  content: "\2713"; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff;
  font-size: 13px; line-height: 22px; text-align: center; font-weight: 700;
}
.about-media { position: relative; }
.about-photo { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; }
.about-badge {
  position: absolute; left: -14px; bottom: 70px; background: #fff; border-radius: 12px;
  box-shadow: var(--shadow); padding: 12px 16px; display: flex; align-items: center; gap: 10px; max-width: 260px;
}
.about-badge img { width: 44px; height: 44px; background: #0d4c82; border-radius: 10px; padding: 8px; box-sizing: content-box; flex-shrink: 0; }
.about-badge span { font-weight: 600; color: var(--ink); font-size: 14px; line-height: 1.3; }
.about-strip { width: 200px; max-width: 60%; margin-top: 16px; border-radius: 10px; box-shadow: var(--shadow-sm); }

.services-band { position: relative; background: linear-gradient(160deg, #1663a6 0%, var(--blue) 45%, var(--blue-dark) 100%); }
.services-band .section-head h2, .services-band .section-head p { color: #fff; }
.service-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; padding: 0 0 24px; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(6,26,50,.28); }
.service-card img { width: 100%; height: 210px; object-fit: cover; }
.service-card h3 { font-size: 22px; margin: 20px 22px 8px; color: var(--ink); }
.service-card p { margin: 0 22px 20px; color: var(--ink-soft); flex: 1; }
.service-card .btn { margin: 0 22px; }

.gallery-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.gallery-grid img { width: 100%; height: 240px; object-fit: cover; border-radius: 10px; box-shadow: var(--shadow-sm); transition: transform .25s ease; }
.gallery-grid img:hover { transform: scale(1.03); }

.why-band { position: relative; padding: 72px 0; background: var(--blue-deep); overflow: hidden; }
.why-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .16; }
.why-band .wrap { position: relative; z-index: 2; }
.why-title { text-align: center; color: #fff; font-size: clamp(28px, 4vw, 40px); margin-bottom: 40px; }
.why-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 960px; margin: 0 auto; }
.why-card { border: 1px solid rgba(255,255,255,.35); border-radius: 12px; padding: 26px 22px; text-align: center; background: rgba(255,255,255,.04); transition: background .25s ease, transform .25s ease; }
.why-card:hover { background: rgba(255,255,255,.10); transform: translateY(-4px); }
.why-card img { width: 46px; height: 46px; margin: 0 auto 14px; filter: brightness(0) invert(1); }
.why-card h5 { color: #fff; font-size: 20px; margin: 0 0 8px; }
.why-card p { color: #cfe0f0; font-size: 15px; margin: 0; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-copy h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 16px; }
.contact-copy p { color: var(--ink-soft); margin: 0 0 24px; }
.contact-detail { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.contact-detail .cd-ic { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.contact-detail strong { display: block; color: var(--ink); }
.contact-detail a { color: var(--ink-soft); }
.contact-copy .btn-outline { margin-top: 12px; }

@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-bg { width: 100%; }
  .service-cards { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .why-cards { grid-template-columns: 1fr; }
}

/* ==========================================================================
   page: our-services
   ========================================================================== */
.svc-row {
  display: grid; grid-template-columns: 420px 1fr; gap: 0;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; margin-bottom: 40px;
}
.svc-media { position: relative; min-height: 320px; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; }
.svc-body { position: relative; padding: 40px 44px; }
.svc-num {
  position: absolute; top: 26px; right: 26px;
  font-family: var(--head); font-weight: 700; font-size: 22px; color: #fff;
  background: var(--blue); border-radius: 8px; padding: 6px 14px; letter-spacing: .02em;
}
.svc-body h3 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 14px; padding-right: 70px; }
.svc-body > p { color: var(--ink-soft); margin: 0 0 18px; }
.svc-body .check-list { margin: 0; }
.svc-body .check-list li { color: var(--ink); }
@media (max-width: 820px) {
  .svc-row { grid-template-columns: 1fr; }
  .svc-media { min-height: 240px; }
  .svc-body { padding: 30px 26px; }
  .svc-body h3 { padding-right: 60px; }
}

/* ==========================================================================
   page: blog
   ========================================================================== */
.blog-wrap { max-width: 820px; padding-top: 40px; padding-bottom: 70px; }
.crumb { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.blog-title { color: var(--ink); font-size: clamp(30px, 5vw, 44px); margin-bottom: 34px; }
.post-list { display: flex; flex-direction: column; gap: 30px; }
.post-card {
  display: grid; grid-template-columns: 300px 1fr; gap: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pc-media { display: block; }
.pc-media img { width: 100%; height: 100%; min-height: 210px; object-fit: cover; }
.pc-body { padding: 24px 26px; }
.pc-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; background: #e8622a; color: #fff;
  font-family: var(--head); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.pc-meta strong { display: block; color: var(--ink); font-size: 14px; font-weight: 600; }
.pc-sub { color: var(--muted); font-size: 13px; }
.pc-body h2 { font-size: 22px; line-height: 1.25; margin: 0 0 12px; color: var(--ink); }
.pc-body h2 a { color: var(--ink); }
.pc-body h2 a:hover { color: var(--blue); text-decoration: none; }
.pc-body > p { color: var(--ink-soft); font-size: 15px; margin: 0; }
@media (max-width: 640px) {
  .post-card { grid-template-columns: 1fr; }
  .pc-media img { min-height: 200px; }
}

/* ==========================================================================
   page: post
   ========================================================================== */
.article { max-width: 760px; margin: 0 auto; padding: 40px 24px 70px; }
.article .crumb { margin-bottom: 22px; }
.art-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.art-meta strong { color: var(--ink); font-size: 15px; font-weight: 600; }
.art-meta .pc-sub { color: var(--muted); font-size: 13px; }
.art-title { color: var(--ink); font-size: clamp(28px, 4.4vw, 40px); line-height: 1.15; margin-bottom: 26px; }
.art-hero { width: 100%; height: auto; border-radius: var(--radius); margin-bottom: 30px; box-shadow: var(--shadow-sm); }
.article p { color: var(--ink-soft); margin: 0 0 20px; }
.article h2 { color: var(--ink); font-size: clamp(22px, 3.2vw, 28px); margin: 36px 0 14px; }
.article ul, .article ol { color: var(--ink-soft); margin: 0 0 22px; padding-left: 22px; }
.article li { margin-bottom: 10px; }
.article a { color: var(--blue); }
.article em { color: var(--muted); }
.art-related { border-top: 1px solid var(--line); margin-top: 44px; padding-top: 30px; }
.art-related h3 { color: var(--ink); font-size: 20px; margin-bottom: 18px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-grid a { display: block; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s ease; }
.related-grid a:hover { transform: translateY(-3px); }
.related-grid img { width: 100%; height: 150px; object-fit: cover; }
@media (max-width: 620px) { .related-grid { grid-template-columns: 1fr; } }

/* page: post (portrait hero variant) */
.art-hero-portrait { max-width: 420px; display: block; margin-left: auto; margin-right: auto; }
