/* Westward Energy Services - site styles */

@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/lato-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/lato-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/lato-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: italic; font-weight: 700; font-display: swap; src: url("/assets/fonts/lato-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 900; font-display: swap; src: url("/assets/fonts/lato-latin-900-normal.woff2") format("woff2"); }

:root {
  --blue: #094f97;
  --blue-dark: #073d78;
  --blue-deep: #052d5a;
  --red: #ed1b24;
  --red-dark: #c8141c;
  --grey-bg: #e6e6e6;
  --grey-line: #d9d9d9;
  --text: #4a4a4a;
  --text-dark: #222;
  --white: #fff;
  --wrap: 1160px;
  --radius: 4px;
  --shadow: 0 1px 3px rgba(0, 0, 0, .08);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Lato", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--grey-bg);
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
a:hover { color: var(--red); }
h1, h2, h3, h4, h5, h6 { font-family: "Lato", sans-serif; font-weight: 700; color: var(--blue); line-height: 1.2; margin: 1.4em 0 .5em; }
h1 { font-size: 2.4rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.15rem; }
h5, h6 { font-size: 1.05rem; }
h2:first-child, h3:first-child, h4:first-child, h5:first-child, p:first-child { margin-top: 0; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--grey-line); margin: 1.5em 0; }
blockquote { margin: 0 0 1.2em; padding: .2em 0 .2em 1.2em; border-left: 4px solid var(--red); font-style: italic; color: var(--text-dark); }
blockquote p { margin: 0; }
strong { color: var(--text-dark); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.card { background: var(--white); box-shadow: var(--shadow); border-radius: var(--radius); }

/* buttons */
.btn {
  display: inline-block;
  background: var(--red);
  color: var(--white) !important;
  font-weight: 700;
  text-transform: uppercase;
  font-size: .85rem;
  letter-spacing: .02em;
  padding: .7em 1.4em;
  border-radius: 999px;
  text-decoration: none;
  transition: background .15s;
  white-space: nowrap;
}
.btn::before { content: "\2192\00a0"; }
.btn:hover { background: var(--red-dark); color: var(--white); }
.btn-light { background: var(--white); color: var(--red) !important; }
.btn-light:hover { background: #f3f3f3; }
.btn-wide { padding: 1.1em 2.2em; font-size: 1.05rem; text-transform: none; border-radius: var(--radius); background: linear-gradient(90deg, var(--red), rgba(237, 27, 36, .25)); }
.btn-wide:hover { background: linear-gradient(90deg, var(--red-dark), rgba(237, 27, 36, .35)); }

/* brand double line accent (red over blue) */
.dbl-line::after, .side-box h3::after {
  content: "";
  display: block;
  width: 56px;
  height: 7px;
  margin-top: .5em;
  background: linear-gradient(var(--red) 0 2px, transparent 2px 5px, var(--blue) 5px 7px);
}

/* arrow lists */
.arrow-list { list-style: none; margin: 0; padding: 0; }
.arrow-list li { padding: .3em 0 .3em 1.6em; position: relative; }
.arrow-list li::before { content: "\2192"; position: absolute; left: 0; color: var(--blue); }
.content ul:not(.arrow-list):not(.logo-strip):not(.post-grid) { padding-left: 1.6em; list-style: none; }
.content ul:not(.arrow-list):not(.logo-strip):not(.post-grid) > li { position: relative; padding: .15em 0; }
.content ul:not(.arrow-list):not(.logo-strip):not(.post-grid) > li::before { content: "\2192"; position: absolute; left: -1.6em; color: var(--blue); }
.content ol { padding-left: 1.4em; }
.content li { margin: 0 0 .3em; }

/* ---------- header ---------- */
.site-header { background: var(--white); position: relative; z-index: 20; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand img { display: block; width: 290px; height: auto; }
.header-cta { display: flex; align-items: center; gap: 18px; }
.quote-line { color: var(--text); font-size: 1.05rem; }
.quote-line a { color: var(--blue); font-weight: 700; text-decoration: none; font-size: 1.15rem; }
.social { color: var(--blue); display: inline-flex; width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: var(--white); align-items: center; justify-content: center; }
.social:hover { background: var(--red); color: var(--white); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; height: 3px; background: var(--blue); margin: 6px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }

.site-nav { background: var(--blue); }
.menu { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; align-items: center; }
.menu > li { position: relative; }
.menu > li > a { display: block; color: var(--white); font-weight: 700; text-decoration: none; padding: 16px 14px; font-size: 1rem; border-radius: 999px; margin: 6px 0; }
.menu > li.active > a, .menu > li > a:hover { background: var(--blue-dark); color: var(--white); }
.sub-toggle { display: none; }
.sub { list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; left: 0; min-width: 260px; background: var(--white); box-shadow: 0 8px 24px rgba(0, 0, 0, .18); border-top: 4px solid var(--red); opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .15s; z-index: 30; }
.menu > li:hover > .sub, .menu > li:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 8px 18px; color: var(--blue); text-decoration: none; font-weight: 700; font-size: .95rem; }
.sub a:hover, .sub a[aria-current] { background: #eef3fa; color: var(--red); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  color: var(--white);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(9, 79, 151, .88) 0%, rgba(9, 79, 151, .78) 45%, rgba(237, 27, 36, .82) 100%);
}
.hero > .wrap { position: relative; }
.hero h1 { color: var(--white); margin: 0; }
.hero-page .wrap { padding-top: 56px; padding-bottom: 56px; }
.hero-page h1 { font-size: 2.3rem; }

.hero-home { text-align: center; padding-top: 48px; }
.hero-home .hero-kicker { font-size: 1.6rem; margin: 0; }
.hero-home h1 { font-size: 3.4rem; font-weight: 700; }
.hero-home .hero-sub { font-size: 1.6rem; margin: 0; }
.hero-home .hero-sub::after { content: ""; display: inline-block; width: 70px; height: 7px; margin-left: 12px; vertical-align: middle; background: linear-gradient(var(--red) 0 2px, transparent 2px 5px, var(--white) 5px 7px); }
.sector-tabs { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 40px; max-width: 960px; }
.sector-tab {
  border: 0; padding: 0; cursor: pointer; height: 170px; position: relative;
  background-size: cover; background-position: center; color: var(--white);
  font: inherit; font-weight: 700; font-size: 1.1rem; text-align: left;
}
.sector-tab::before { content: ""; position: absolute; inset: 0; background: rgba(9, 79, 151, .55); transition: background .15s; }
.sector-tab.is-active::before, .sector-tab:hover::before { background: rgba(237, 27, 36, .55); }
.sector-tab span { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.sector-tab.is-active span::after { content: "\2192"; display: block; margin-top: 4px; }

/* ---------- home sections ---------- */
.sectors .sector-card { padding: 40px 48px; margin-top: 0; }
.sector-panel { display: none; grid-template-columns: 1.4fr 1fr; gap: 48px; }
.sector-panel.is-active { display: grid; }
.sector-text h2 { margin-top: 0; }
.sector-text h2 a { text-decoration: none; }
.sector-text .lead { color: var(--blue); font-weight: 700; font-size: 1.05rem; }
.sector-text .intro { color: var(--blue); font-weight: 700; font-size: 1.2rem; line-height: 1.4; }
.sector-links h3 { margin-top: 0; }

.band { color: var(--white); background: linear-gradient(90deg, var(--red) 0%, var(--blue) 100%); }
.band-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 44px; padding-bottom: 44px; flex-wrap: wrap; }
.band-title { font-size: 1.6rem; font-weight: 700; margin: 0; text-transform: uppercase; }
.band-actions { display: flex; align-items: center; gap: 22px; font-size: 1.25rem; flex-wrap: wrap; }
.band-actions a { color: var(--white); text-decoration: none; }

.about-home { padding: 36px 0 0; }
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; grid-template-rows: auto 1fr; gap: 24px 40px; padding: 40px 48px; }
.about-img img { border-radius: var(--radius); width: 100%; }
.about-text { grid-row: 1 / span 2; }
.about-quick { grid-column: 2; }
.kicker { text-transform: uppercase; font-size: .9rem; letter-spacing: .06em; color: var(--text); }

.testimonials-band { margin-top: 36px; position: relative; background-size: cover; background-position: center; color: var(--white); }
.testimonials-band::before { content: ""; position: absolute; inset: 0; background: rgba(9, 79, 151, .9); }
.testimonials-row { position: relative; display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; padding-top: 64px; padding-bottom: 64px; align-items: center; }
.testimonials-right h2 { font-style: italic; color: var(--white); font-size: 2rem; margin-top: 0; }
.testimonials-right h2 a { color: inherit; text-decoration: none; }
.quote-rotator { position: relative; min-height: 150px; }
.quote-rotator blockquote { display: none; border: 0; padding: 0 56px; margin: 0; font-size: 1.2rem; position: relative; }
.quote-rotator blockquote.is-active { display: block; }
.quote-rotator blockquote::before, .quote-rotator blockquote::after { font-size: 5rem; line-height: 1; position: absolute; font-style: normal; opacity: .9; }
.quote-rotator blockquote::before { content: "\201C"; left: 0; top: -10px; }
.quote-rotator blockquote::after { content: "\201D"; right: 0; bottom: 10px; }
.quote-rotator footer { font-style: normal; font-weight: 700; font-size: .8rem; margin-top: 18px; padding-top: 14px; border-top: 1px dotted rgba(255, 255, 255, .4); }

.accreditations { background: var(--white); padding: 24px 0; }
.logo-strip { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 36px; align-items: center; }
.logo-strip img { height: 60px; width: auto; filter: grayscale(1); opacity: .8; transition: all .15s; }
.logo-strip a:hover img { filter: none; opacity: 1; }

.community { padding: 36px 0 48px; }
.community .card { padding: 32px 48px; }
.community h2 a { text-decoration: none; }
.post-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.post-grid a { text-decoration: none; font-weight: 700; display: block; }
.post-grid img, .thumb-ph { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); margin-bottom: 8px; background: var(--grey-bg); }
.thumb-ph { background: linear-gradient(135deg, var(--blue), var(--blue-deep)); }

/* ---------- inner pages ---------- */
.page-grid { display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: start; margin-top: -24px; position: relative; z-index: 2; padding-bottom: 48px; }
.content { padding: 36px 44px; }
.content img { border-radius: var(--radius); }
.content h2, .content h3 { margin-top: 1.4em; }
.content > h2:first-child, .content > h3:first-child, .content > h4:first-child, .content > h5:first-child { margin-top: 0; }
.content h4, .content h5 { color: var(--blue); font-size: 1.1rem; }
.content .post-date { color: #888; font-size: .9rem; margin-bottom: 1.2em; }
.side-box { background: var(--blue); color: var(--white); box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; }
.side-box h3 { background: var(--white); color: var(--blue); margin: 0; padding: 20px 22px 14px; font-size: 1.1rem; }
.side-box h3::after { width: 50px; margin-top: .6em; }
.side-box ul { list-style: none; margin: 0; padding: 14px 10px 18px; }
.side-box li a { display: block; color: var(--white); font-weight: 700; text-decoration: none; padding: 8px 12px 8px 34px; position: relative; font-size: .95rem; border-radius: var(--radius); }
.side-box li a::before { content: "\2192"; position: absolute; left: 12px; }
.side-box li a:hover, .side-box li a[aria-current] { background: var(--blue-dark); color: var(--white); }
.side-body { padding: 18px 22px 22px; }
.side-body p { margin-bottom: 1em; }
.side-body a { color: var(--white); }
.big-phone { font-size: 1.5rem; font-weight: 700; text-decoration: none; }
.side-details .addr { text-align: right; }

.news-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 36px 44px; margin-top: -24px; position: relative; z-index: 2; margin-bottom: 48px; }
.news-cols h2 { text-align: center; margin-top: 0; }
.news-cols .post-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
.news-cols .post-grid a { font-size: .9rem; text-align: center; }

/* ---------- footer ---------- */
.footer-cta { background: var(--white); }
.footer-cta-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 26px; padding-bottom: 26px; flex-wrap: wrap; }
.footer-cta-row img { width: 260px; height: auto; }
.footer-main { background: var(--blue); color: #cfe0f3; font-size: .85rem; }
.footer-main-row { display: flex; justify-content: space-between; gap: 24px; padding-top: 28px; padding-bottom: 24px; flex-wrap: wrap; }
.footer-main strong, .footer-main .copy { color: var(--white); }
.footer-main p { margin: 0 0 .4em; }
.footer-main address { font-style: normal; text-align: right; }
.footer-bottom { background: var(--blue-dark); color: #cfe0f3; font-size: .85rem; }
.footer-bottom-row { display: flex; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }
.footer-bottom ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.footer-bottom li + li::before { content: "\00b7"; margin-right: 8px; }
.footer-bottom a { color: var(--white); text-decoration: none; font-weight: 700; }
.footer-bottom p { margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .sector-panel, .about-grid, .testimonials-row, .news-cols { grid-template-columns: 1fr; }
  .about-quick { grid-column: auto; }
  .about-text { grid-row: auto; }
  .post-grid { grid-template-columns: repeat(3, 1fr); }
  .menu > li > a { padding: 14px 10px; font-size: .92rem; }
}
@media (max-width: 860px) {
  .header-row { flex-wrap: wrap; }
  .header-cta { order: 3; width: 100%; justify-content: space-between; }
  .quote-line { font-size: .95rem; }
  .nav-toggle { display: block; }
  .site-nav { display: none; }
  .nav-open .site-nav { display: block; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
  .menu { flex-direction: column; align-items: stretch; padding: 8px 0 12px; }
  .menu > li { display: flex; flex-wrap: wrap; align-items: center; }
  .menu > li > a { flex: 1; border-radius: var(--radius); margin: 2px 0; }
  .sub-toggle { display: block; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
  .sub-toggle::before { content: ""; position: absolute; left: 16px; top: 15px; width: 9px; height: 9px; border-right: 2px solid var(--white); border-bottom: 2px solid var(--white); transform: rotate(45deg); transition: transform .15s; }
  .menu > li.sub-open .sub-toggle::before { transform: rotate(225deg); top: 20px; }
  .sub { position: static; width: 100%; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none; border-top: 0; background: var(--blue-dark); border-radius: var(--radius); }
  .menu > li.sub-open > .sub { display: block; }
  .menu > li:hover > .sub:not(.x) { display: none; }
  .menu > li.sub-open:hover > .sub { display: block; }
  .sub a { color: var(--white); }
  .sub a:hover, .sub a[aria-current] { background: var(--blue-deep); color: var(--white); }
  .page-grid { grid-template-columns: 1fr; margin-top: 0; }
  .content, .sectors .sector-card, .about-grid, .community .card, .news-cols { padding: 24px 20px; }
  .hero-home h1 { font-size: 2.2rem; }
  .hero-home .hero-kicker, .hero-home .hero-sub { font-size: 1.2rem; }
  .hero-page h1 { font-size: 1.8rem; }
  .sector-tabs { grid-template-columns: 1fr; }
  .sector-tab { height: 90px; }
  .post-grid, .news-cols .post-grid { grid-template-columns: repeat(2, 1fr); }
  .band-title { font-size: 1.2rem; }
  .footer-main address { text-align: left; }
  .quote-rotator blockquote { padding: 0 36px; font-size: 1.05rem; }
  .quote-rotator blockquote::before, .quote-rotator blockquote::after { font-size: 3.5rem; }
}
@media (max-width: 480px) {
  .brand img { width: 220px; }
  .header-cta { flex-wrap: wrap; gap: 10px; }
  .post-grid, .news-cols .post-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}
