/* Cornerstone Gas — all styles.
   Phones first, then:  >= 426px  tablets / wider phones
                        >= 1024px landscape  desktop layout (form beside the hero text) */

/* ---------- fonts (self-hosted, latin subset) ---------- */
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url(/assets/fonts/poppins-400.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url(/assets/fonts/poppins-600.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url(/assets/fonts/poppins-700.woff2) format("woff2"); }
@font-face { font-family: "Roboto";  font-weight: 400; font-display: swap; src: url(/assets/fonts/roboto-400.woff2) format("woff2"); }

/* ---------- design tokens ---------- */
:root {
  --blue: #1481c4;
  --blue-dark: #0f6aa3;
  --blue-tint: #e6f2fa;
  --navy: #2e4670;
  --navy-deep: #1c2d4a;
  --ink: #1d2533;
  --muted: #5b6577;
  --surface: #f3f6fa;
  --line: #d8dfe9;
  --radius: 0.75rem;
  --shadow: 0 0.25rem 1rem rgba(28, 45, 74, 0.12);
  --header-h: 3.5rem;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: "Poppins", sans-serif; line-height: 1.5; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
.i { width: 1em; height: 1em; flex-shrink: 0; fill: currentColor; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; }
.only-large { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.75rem; border: 0; border-radius: 999px;
  background: var(--blue); color: #fff; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn:hover, .btn:active { background: var(--blue-dark); }

/* ---------- header (fixed bar on phones/tablets) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  height: var(--header-h); display: flex; align-items: center; padding: 0 1rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 var(--line), 0 0.25rem 0.75rem rgba(28, 45, 74, 0.08);
}
.brand { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.brand img { height: 2.25rem; width: auto; }
.brand span { font-family: "Roboto", sans-serif; font-size: 1.15rem; white-space: nowrap; }
.header-call { display: none; }
.menu-btn { margin-left: auto; padding: 0.5rem; border: 0; background: none; color: var(--navy); font-size: 1.4rem; line-height: 0; cursor: pointer; }

/* ---------- off-canvas menu (phones/tablets) ---------- */
.menu {
  position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
}
.menu[hidden] { display: none; }
.menu-close { align-self: flex-end; height: var(--header-h); padding: 0 1rem; border: 0; background: none; color: #fff; font-size: 1.5rem; line-height: 0; cursor: pointer; }
.menu ul { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 2rem; text-align: center; }
.menu a { color: #fff; font-size: 1.75rem; font-weight: 600; text-decoration: none; }

/* ---------- hero ---------- */
.hero { display: flex; flex-direction: column; }
.hero__text {
  padding: 3rem 1.25rem 2.5rem; text-align: center; color: #fff;
  background:
    linear-gradient(180deg, rgba(28, 45, 74, 0.55) 0%, rgba(28, 45, 74, 0.35) 45%, rgba(28, 45, 74, 0.85) 100%),
    url(/assets/img/desert-morning-1100.webp) 40% center / cover no-repeat;
}
.hero__kicker { margin-bottom: 0.75rem; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.9; }
.hero h1 { font-size: 2.1rem; font-weight: 600; line-height: 1.2; text-wrap: balance; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35); }
.hero__blurb { max-width: 22rem; margin: 1rem auto 0; font-size: 0.95rem; line-height: 1.6; }
.hero__btn { min-width: 12rem; margin-top: 1.75rem; box-shadow: 0 0.5rem 1.25rem rgba(20, 129, 196, 0.45); }

/* service area */
.locations { padding: 1rem 1rem 1.1rem; background: var(--navy); color: #fff; text-align: center; }
.locations__label { margin-bottom: 0.6rem; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
.locations ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; }
.locations li { padding: 0.25rem 0.7rem; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 999px; font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase; }

/* contact form */
.contact { padding: 2rem 1rem; }
.contact-form { overflow: hidden; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.contact-form__header { display: flex; justify-content: center; align-items: center; gap: 0.75rem; padding: 1rem; background: var(--blue); color: #fff; font-size: 1.5rem; }
.contact-form__header h2 { font-size: 1.4rem; font-weight: 600; }
.contact-form__fields { display: flex; flex-direction: column; gap: 0.75rem; padding: 1.25rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 0.8rem 0.9rem; border: 1px solid var(--line); border-radius: 0.5rem;
  background: var(--surface); font-size: 1rem; appearance: none;
}
.contact-form select {
  padding-right: 2.5rem; background-repeat: no-repeat; background-position: right 1rem center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235b6577' stroke-width='2'/%3E%3C/svg%3E");
}
.contact-form select:invalid { color: var(--muted); }
.contact-form textarea { min-height: 8rem; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--blue); background-color: #fff; box-shadow: 0 0 0 3px rgba(20, 129, 196, 0.2);
}
.contact-form .btn { margin-top: 0.25rem; padding: 0.9rem; font-size: 1.05rem; }

/* ---------- sections ---------- */
.wrap { padding: 2.5rem 1rem; }
.section-title { margin-bottom: 0.5rem; font-size: 1.6rem; font-weight: 600; text-align: center; }
.circle { display: flex; justify-content: center; align-items: center; flex-shrink: 0; border-radius: 50%; }

/* Who We Serve */
.industries { background: linear-gradient(180deg, var(--blue) 0%, var(--blue-dark) 100%); color: #fff; }
.section-sub { max-width: 20rem; margin: 0 auto 1.5rem; font-size: 0.9rem; text-align: center; opacity: 0.9; }
.industry-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.industry-card:last-child { grid-column: 1 / -1; }
.industry-card {
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem; padding: 1.1rem 0.5rem;
  border-radius: var(--radius); background: #fff; box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.12);
}
.industry-card .circle { width: 3rem; height: 3rem; background: var(--blue-tint); color: var(--blue); font-size: 1.6rem; }
.industry-card h3 { font-size: 0.95rem; font-weight: 600; text-align: center; color: var(--ink); }

/* What We Do */
.services .section-title { margin-bottom: 1.5rem; }
.service-cards { display: flex; flex-direction: column; gap: 1rem; }
.service-card { padding: 1.25rem; border-top: 4px solid var(--blue); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.service-card h3 { display: flex; align-items: center; gap: 0.85rem; font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
.service-card .circle { width: 3rem; height: 3rem; background: var(--blue); color: #fff; font-size: 1.6rem; }
.service-card p { margin-top: 0.75rem; font-size: 0.92rem; color: var(--muted); }
.checks { margin-top: 0.75rem; }
.checks li { position: relative; padding: 0.3rem 0 0.3rem 1.6rem; border-top: 1px solid var(--surface); font-size: 0.92rem; }
.checks li::before {
  content: ""; position: absolute; left: 0.2rem; top: 0.75rem; width: 0.7rem; height: 0.4rem;
  border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg);
}

/* ---------- footer ---------- */
.site-footer { padding: 2rem 1.25rem 1.5rem; background: var(--navy-deep); color: rgba(255, 255, 255, 0.85); text-align: center; }
.site-footer__name { margin-bottom: 1rem; font-size: 1.1rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; }
.site-footer__info { font-size: 0.9rem; }
.site-footer__info p { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.site-footer__info .dot { display: none; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer .pill { display: inline-block; padding: 0.5rem 1.25rem; border-radius: 999px; background: var(--blue); font-weight: 600; }
.site-footer hr { margin: 1rem 0 0.5rem; border: 0; border-top: 1px solid rgba(255, 255, 255, 0.15); }
.site-footer small { font-size: 0.75rem; color: rgba(255, 255, 255, 0.55); }

/* ---------- tablets and wider phones ---------- */
@media (min-width: 426px) {
  html { font-size: 17px; }
  .site-header { padding: 0 1.5rem; }
  .hero__text { padding: 5rem 2rem 4rem; }
  .hero h1 { font-size: 2.75rem; }
  .hero__blurb { max-width: 30rem; font-size: 1.05rem; }
  .locations li { font-size: 0.8rem; }
  .contact { padding: 3rem 2rem; }
  .contact-form, .wrap { max-width: 40rem; margin: 0 auto; }
  .wrap { padding: 3.5rem 2rem; }
  .industry-cards { display: flex; flex-wrap: wrap; justify-content: center; }
  .industry-card { flex: 0 0 calc((100% - 1.5rem) / 3); }
}

/* ---------- desktop ---------- */
@media (min-width: 1024px) and (orientation: landscape) {
  :root { --header-h: 6.5rem; }
  html { font-size: 16px; scroll-padding-top: 0; }
  .only-small { display: none; }
  .only-large { display: revert; }

  .site-header { position: static; height: auto; min-height: max(var(--header-h), 12.4vh); padding: 0 7%; background: #f8f8ff; box-shadow: none; }
  .brand img { height: 4.2rem; }
  .brand span { font-size: 2rem; line-height: 1.2; }
  .header-call { display: block; margin-left: auto; font-family: "Roboto", sans-serif; font-size: 1.5rem; font-weight: 700; }
  .header-call a { display: inline-block; margin-left: 0.4rem; padding: 0.4rem 1.1rem; border-radius: 999px; background: var(--blue); color: #fff; text-decoration: none; }
  .menu-btn, .menu { display: none; }

  /* service area bar on top, then hero text + form side by side over the photo */
  .hero {
    display: grid; grid-template-columns: 7% 6.5fr 3.5fr 7%; grid-template-rows: auto 1fr;
    min-height: calc(100vh - max(var(--header-h), 12.4vh));
    background: url(/assets/img/desert-morning.webp) center / cover no-repeat;
  }
  .locations { grid-column: 1 / -1; grid-row: 1; display: flex; align-items: center; min-height: 6.6vh; padding: 0.4rem 7%; }
  .locations ul { flex: 1; }
  .locations__label { display: none; }
  .locations ul { justify-content: space-around; gap: 0.5rem; }
  .locations li { padding: 0.3rem 1.1rem; border-color: rgba(255, 255, 255, 0.35); font-size: 1rem; }

  .hero__text { grid-column: 2; grid-row: 2; padding: 10vh 0 3rem 2rem; background: none; }
  .hero h1 { font-size: 4rem; line-height: 1.5; text-wrap: wrap; text-shadow: 2px 2px #100c08; }
  .hero__blurb { width: 70%; max-width: none; margin: 1rem auto 0; padding: 0 1rem; background: rgba(0, 0, 0, 0.35); font-size: 1.5rem; line-height: 1.5; }
  .hero__blurb p { padding: 1rem 0; }
  .hero__blurb p + p { padding-top: 0; }

  .contact { grid-column: 3 / 5; grid-row: 2; display: flex; padding: 9vh 7% 9vh 14%; }
  .contact .contact-form { flex: 1; display: flex; flex-direction: column; max-width: none; margin: 0; box-shadow: 0 0.75rem 2rem rgba(28, 45, 74, 0.3); }
  .contact-form__header { padding: 0.9rem 1rem; font-size: 3rem; }
  .contact-form__header h2 { font-size: 2rem; }
  .contact-form__fields { flex: 1; gap: 1rem; padding: 1rem 5% 1rem; }
  .contact-form input, .contact-form select, .contact-form textarea { padding: 0.6rem 0.9rem; }
  .contact-form textarea { flex: 1; resize: none; }
  .contact-form .btn { margin-top: 0; padding: 0.6rem; font-size: 1.2rem; }

  .wrap { max-width: none; padding: 4rem 7% 0; }
  .section-title { font-size: 2.25rem; line-height: 1.2; }

  .section-sub { width: 60%; max-width: none; margin: 1rem auto 2.5rem; font-size: 1.25rem; }
  .industries .wrap { padding-bottom: 7rem; }
  .industry-cards { flex-wrap: nowrap; gap: 0; }
  .industry-card { flex: 0 1 20%; margin: 0 0.75rem; gap: 1rem; padding: 1.75rem 1rem; box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.15); }
  .industry-card:last-child { grid-column: auto; }
  .industry-card .circle { width: 5rem; height: 5rem; font-size: 2.55rem; }
  .industry-card h3 { font-size: 1.15rem; }

  .services .section-title { margin-bottom: 2.5rem; }
  .services .wrap { padding-bottom: 5rem; }
  .service-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .service-card { padding: 1.75rem; }
  .service-card h3 { gap: 1rem; font-size: 1.35rem; }
  .service-card .circle { width: 3.5rem; height: 3.5rem; font-size: 2.1rem; }
  .service-card p { margin-top: 1rem; font-size: 1rem; line-height: 1.6; }
  .checks { margin-top: 1rem; }
  .checks li { padding: 0.4rem 0 0.4rem 1.75rem; font-size: 1rem; }
  .checks li::before { top: 0.85rem; width: 0.75rem; }

  .site-footer { padding: 2.5rem 0 1.5rem; }
  .site-footer__name { margin-bottom: 1.25rem; }
  .site-footer__info { width: 50vw; margin: 0 auto; font-size: 1rem; line-height: 2; }
  .site-footer__info p { display: block; margin-bottom: 0; }
  .site-footer__info .dot { display: inline; margin: 0 0.35rem; }
  .site-footer .pill { padding: 0.2rem 1.1rem; }
  .site-footer hr { margin: 1.5rem 0 1rem; }
  .site-footer small { font-size: 0.8rem; }
}

/* smaller laptops / landscape tablets: scale the desktop layout down a little */
@media (min-width: 1024px) and (max-width: 1472px) and (orientation: landscape) {
  .brand img { height: 4.5rem; margin: 1rem 0; }
  .brand span { font-size: 1.4rem; }
  .header-call { font-size: 1.4rem; text-align: center; }
  .hero h1 { font-size: 2.9rem; text-wrap: balance; }
  .hero h1 br { display: none; }
  .hero__blurb { font-size: 1.275rem; }
  .contact-form__header h2 { font-size: 1.8rem; }
  .site-footer__info { width: 65vw; }
}

/* ---------- 404 page ---------- */
.not-found { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 2rem; text-align: center; }
.not-found h1 { font-size: 2rem; font-weight: 600; }
.not-found .btn { margin: 0.5rem 0; }
