/* Nith River Gas Services — custom one-page site */
:root {
  --teal-900: #092c37;
  --teal-800: #0e485b;
  --teal-700: #104f63;
  --teal-300: #6ca2ac;
  --teal-100: #e7f3ff;
  --accent: #f58220;
  --accent-dark: #d96f14;
  --ink: #2d2d2d;
  --muted: #5c6b70;
  --paper: #ffffff;
  --wash: #f4f7f7;
  --line: #dfe7e7;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(9, 44, 55, 0.10);
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  line-height: 1.65;
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.25; color: var(--teal-900); margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1140px, 92%); margin: 0 auto; }
.section { padding: 4.5rem 0; scroll-margin-top: var(--header-h); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin: 0 0 0.4em;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--teal-900); color: #fff; padding: 0.6rem 1rem; z-index: 200;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}
.btn-lg { padding: 0.9rem 1.9rem; font-size: 1.05rem; }
.btn-accent { background: var(--accent); color: #fff; box-shadow: var(--shadow); }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-primary { background: var(--teal-700); color: #fff; }
.btn-primary:hover { background: var(--teal-800); transform: translateY(-1px); }
.btn-outline-light { border-color: rgba(255,255,255,0.85); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,0.14); }
.btn-call { background: var(--accent); color: #fff; padding: 0.6rem 1.1rem; font-size: 0.95rem; }
.btn-call:hover { background: var(--accent-dark); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
}
.site-header.scrolled { box-shadow: 0 2px 14px rgba(9,44,55,0.12); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }
.brand img { height: 56px; width: auto; display: block; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  color: var(--teal-900); text-decoration: none; font-weight: 600; font-size: 1rem;
  padding: 0.4rem 0; border-bottom: 2px solid transparent;
}
.main-nav a:hover { border-bottom-color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 0.8rem; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 0.5rem;
}
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--teal-900); border-radius: 2px; margin: 5px 0; }

/* Hero */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background: url("../../images/hero.jpg") center 35% / cover no-repeat;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(9,44,55,0.88) 20%, rgba(16,79,99,0.62) 60%, rgba(9,44,55,0.35));
}
.hero-content { position: relative; z-index: 1; padding: 6.5rem 0 6rem; max-width: 720px; }
.hero h1 { color: #fff; margin-bottom: 0.7em; }
.hero-sub { font-size: 1.15rem; color: #f2f7f7; max-width: 620px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.8rem; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: center; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }

/* Services */
.services { background: var(--wash); }
.services h2, .services .eyebrow { text-align: left; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 2rem; }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform 0.18s ease;
}
.card:hover { transform: translateY(-4px); }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card-body { padding: 1.3rem 1.3rem 1.5rem; }
.card-body h3 { margin-bottom: 0.35em; }
.card-body p { margin: 0; color: var(--muted); }

/* Projects / gallery */
.tabs { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.6rem 0 1.8rem; }
.tab {
  border: 2px solid var(--teal-700); background: #fff; color: var(--teal-700);
  font: inherit; font-weight: 700; padding: 0.55rem 1.3rem; border-radius: 999px; cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.tab:hover { background: var(--teal-100); }
.tab.is-active { background: var(--teal-700); color: #fff; }
.tab:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.tab-panel[hidden] { display: none; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.gallery figure {
  margin: 0; background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
.gallery img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.gallery figcaption {
  padding: 0.7rem 1rem; font-size: 0.92rem; font-weight: 600; color: var(--teal-800);
}

/* Reviews */
.reviews { background: var(--teal-900); color: #eaf2f2; }
.reviews h2 { color: #fff; }
.reviews .eyebrow { color: var(--teal-300); }
.review-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.review-card {
  background: #fff; color: var(--ink); border-radius: var(--radius);
  padding: 1.8rem 1.6rem; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.stars { color: var(--accent); font-size: 1.25rem; letter-spacing: 0.15em; margin-bottom: 0.8rem; }
.review-card blockquote { margin: 0 0 1.2rem; font-size: 1.02rem; flex: 1; }
.reviewer { margin: 0; font-weight: 700; color: var(--teal-800); font-size: 0.95rem; }
.reviews-cta { text-align: center; margin-top: 2.4rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }
.contact-list { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
.contact-list strong { display: block; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.contact-list a { color: var(--teal-700); font-weight: 700; font-size: 1.15rem; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.contact-list span { font-size: 1.02rem; }
.contact-form {
  background: var(--wash); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow);
}
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; margin-bottom: 0.35rem; font-size: 0.95rem; }
.field input, .field textarea {
  width: 100%; font: inherit; padding: 0.7rem 0.9rem;
  border: 1px solid #c3d2d2; border-radius: 8px; background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus {
  outline: 3px solid rgba(245,130,32,0.35); border-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 110px; }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 0.9rem 0 0; font-weight: 600; min-height: 1.4em; }
.form-note.error { color: #b3261e; }
.form-note.ok { color: var(--teal-700); }

/* Footer */
.site-footer { background: var(--teal-900); color: #cfdcdc; }
.footer-grid {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2.5rem;
  padding: 3rem 0 2.4rem;
}
.footer-brand img { width: 200px; }
.site-footer h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.9em; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-nav a, .footer-contact a { color: #cfdcdc; text-decoration: none; }
.footer-nav a:hover, .footer-contact a:hover { color: #fff; text-decoration: underline; }
.footer-contact p { margin: 0 0 0.55rem; }
.footer-bar { border-top: 1px solid rgba(255,255,255,0.14); }
.footer-bar .wrap { padding: 1.1rem 0; }
.footer-bar p { margin: 0; font-size: 0.9rem; color: #a9bdbd; }

/* Thank-you page */
.thanks { min-height: 60vh; display: flex; align-items: center; text-align: center; }
.thanks .wrap { max-width: 620px; }

/* Responsive */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .review-cards { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: var(--header-h); 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; gap: 0; padding: 0.6rem 4%; }
  .main-nav a { display: block; padding: 0.8rem 0.2rem; border-bottom: 1px solid var(--line); }
  .main-nav li:last-child a { border-bottom: 0; }
  .btn-call { padding: 0.55rem 0.85rem; font-size: 0.88rem; }
  .section { padding: 3.2rem 0; }
  .hero-content { padding: 4.5rem 0 4rem; }
  .contact-form { padding: 1.4rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
}
@media (max-width: 480px) {
  .cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
  .gallery figcaption { font-size: 0.82rem; padding: 0.55rem 0.7rem; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
}
