/* Allenco: Valve Refurbishing & Manufacturing
   Brand palette: Allenco blue + industrial red */

:root {
  --allenco-blue: #0f2a52;
  --allenco-blue-dark: #0a1e3b;
  --allenco-blue-light: #1c3f78;
  --allenco-red: #d9261c;
  --allenco-red-dark: #a91b13;
  --allenco-red-light: #f04a40;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --bg-dark: #0a1e3b;
  --text: #1f2937;
  --text-soft: #4b5563;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --shadow-sm: 0 1px 2px rgba(15, 42, 82, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 42, 82, 0.08);
  --shadow-lg: 0 10px 30px rgba(15, 42, 82, 0.12);
  --radius: 6px;
  --radius-lg: 10px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--allenco-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--allenco-red);
}

h1, h2, h3, h4 {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-weight: 700;
  color: var(--allenco-blue);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--allenco-blue-dark);
  color: #cbd5e1;
  font-size: 0.85rem;
  padding: 8px 0;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.topbar a {
  color: #cbd5e1;
}

.topbar a:hover {
  color: #fff;
}

.topbar-info {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.topbar-info span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--allenco-blue);
}

.brand img {
  height: 68px;
  width: auto;
}

.brand-text small {
  display: block;
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 16px;
  border-radius: var(--radius);
  position: relative;
}

.nav a:hover {
  color: var(--allenco-red);
  background: var(--bg-soft);
}

.nav a.active {
  color: var(--allenco-red);
}

.nav a.active::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 2px;
  background: var(--allenco-red);
  border-radius: 2px;
}

.nav .btn-quote {
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  color: var(--allenco-blue);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-primary {
  background: var(--allenco-red);
  color: #fff;
}

.btn-primary:hover {
  background: var(--allenco-red-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn-outline:hover {
  background: #fff;
  color: var(--allenco-blue);
}

.btn-blue {
  background: var(--allenco-blue);
  color: #fff;
}

.btn-blue:hover {
  background: var(--allenco-blue-dark);
  color: #fff;
}

/* ---------- Hero (blue banner; photo disabled until a wide landscape shot is available) ----------
   To re-enable the photo background later:
     1. Drop a wide (1920x1080+) photo at assets/images/hero-valves.jpg
     2. Uncomment the .hero::before and .hero::after blocks below
     3. Add a top-level z-index to .hero > .container so it sits above the overlays
*/
.hero {
  background:
    linear-gradient(135deg, rgba(10, 30, 59, 0.92) 0%, rgba(15, 42, 82, 0.88) 100%),
    radial-gradient(circle at 80% 20%, rgba(217, 38, 28, 0.25) 0%, transparent 50%),
    var(--allenco-blue-dark);
  color: #fff;
  padding: 90px 0 110px;
  position: relative;
  overflow: hidden;
}

/* Photo background, disabled until a wide landscape shot is ready.
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/images/hero-valves.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(10, 30, 59, 0.78) 0%, rgba(15, 42, 82, 0.62) 100%),
    linear-gradient(180deg, rgba(10, 30, 59, 0.35) 0%, rgba(10, 30, 59, 0.55) 100%);
  z-index: 1;
}
*/

.hero > .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  color: #fff;
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--allenco-red-light);
}

.hero p.lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(217, 38, 28, 0.18);
  color: var(--allenco-red-light);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
  border: 1px solid rgba(217, 38, 28, 0.35);
}

.hero-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(6px);
}

.hero-card h3 {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.hero-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-card li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-card li::before {
  content: "✓";
  color: var(--allenco-red-light);
  font-weight: 700;
  width: 22px;
  height: 22px;
  background: rgba(217, 38, 28, 0.2);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

/* ---------- Sections ---------- */
.section {
  padding: 80px 0;
}

.section-soft {
  background: var(--bg-soft);
}

.section-dark {
  background: var(--allenco-blue-dark);
  color: #fff;
}

.section-dark h2,
.section-dark h3 {
  color: #fff;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-head .eyebrow {
  display: inline-block;
  color: var(--allenco-red);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-head p {
  color: var(--text-soft);
  font-size: 1.05rem;
}

/* ---------- Services / Feature cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: all 0.25s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--allenco-blue);
}

.card .icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--allenco-blue) 0%, var(--allenco-blue-light) 100%);
  color: #fff;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
}

.card .icon.red {
  background: linear-gradient(135deg, var(--allenco-red) 0%, var(--allenco-red-light) 100%);
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  color: var(--text-soft);
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- Photo feature blocks (scattered valve photos) ---------- */
.photo-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.photo-feature.reverse {
  grid-template-columns: 1fr 1fr;
}

.photo-feature.reverse .photo {
  order: 2;
}

.photo-feature.reverse .copy {
  order: 1;
}

.photo-feature .photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  background: var(--allenco-blue-dark);
}

/* Portrait variant, for vertical (3:4) valve photos */
.photo-feature .photo.portrait {
  aspect-ratio: 3 / 4;
}

.photo-feature .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.photo-feature .photo:hover img {
  transform: scale(1.04);
}

/* Red accent stripe down one side of the photo */
.photo-feature .photo::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 6px;
  background: var(--allenco-red);
}

.photo-feature .copy h2 {
  margin-bottom: 16px;
}

.photo-feature .copy p {
  color: var(--text-soft);
  font-size: 1.02rem;
}

.photo-feature .copy ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.photo-feature .copy li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--text);
}

.photo-feature .copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 18px;
  height: 2px;
  background: var(--allenco-red);
}

/* Dark variant, copy panel sits over a dark background */
.photo-feature.dark {
  background: var(--allenco-blue-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.photo-feature.dark .copy h2,
.photo-feature.dark .copy p {
  color: #fff;
}

.photo-feature.dark .copy li {
  color: rgba(255, 255, 255, 0.9);
}

.photo-feature.dark .photo::after {
  background: var(--allenco-red);
}

@media (max-width: 900px) {
  .photo-feature,
  .photo-feature.reverse,
  .photo-feature.dark {
    grid-template-columns: 1fr;
    padding: 32px;
    gap: 28px;
  }

  .photo-feature.reverse .photo,
  .photo-feature.reverse .copy {
    order: unset;
  }
}

/* ---------- Inline Google Maps embed ---------- */
.map-embed {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  background: var(--allenco-blue-dark);
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---------- Contact top grid (info left, map right) ---------- */
.contact-top-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-top-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  text-align: center;
}

.stat .num {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--allenco-red-light);
  line-height: 1;
}

.stat .label {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  margin-top: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Industries / Tag list ---------- */
.tag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.tag {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--allenco-red);
  padding: 16px 18px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--allenco-blue);
}

.tag .dot {
  width: 10px;
  height: 10px;
  background: var(--allenco-blue);
  border-radius: 50%;
}

/* ---------- About page blocks ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-grid .visual {
  background: linear-gradient(135deg, var(--allenco-blue) 0%, var(--allenco-blue-light) 100%);
  border-radius: var(--radius-lg);
  padding: 48px;
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-grid .visual::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(217, 38, 28, 0.4) 0%, transparent 70%);
  border-radius: 50%;
}

.about-grid .visual .badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.about-grid .visual .badge .big {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--allenco-red-light);
  line-height: 1;
}

.about-grid .visual .badge .small {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.value-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.value-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.value-list li:last-child { border-bottom: 0; }

.value-list .marker {
  flex: 0 0 36px;
  height: 36px;
  background: var(--allenco-red);
  color: #fff;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
}

.value-list strong {
  color: var(--allenco-blue);
  display: block;
  margin-bottom: 4px;
}

.value-list span {
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
}

.contact-info {
  background: var(--allenco-blue-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
}

.contact-info h2 {
  color: #fff;
}

.contact-info .item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-info .item:last-child { border-bottom: 0; }

.contact-info .item .ico {
  width: 44px;
  height: 44px;
  background: rgba(217, 38, 28, 0.18);
  color: var(--allenco-red-light);
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info .item .label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.contact-info .item .val {
  font-size: 1rem;
  color: #fff;
}

.contact-info .item .val a {
  color: #fff;
}

.contact-info .item .val a:hover {
  color: var(--allenco-red-light);
}

/* ---------- CTA banner ---------- */
.cta {
  background: linear-gradient(135deg, var(--allenco-red) 0%, var(--allenco-red-dark) 100%);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}

.cta h2 {
  color: #fff;
  margin-bottom: 12px;
}

.cta p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto 28px;
}

.cta .btn {
  background: #fff;
  color: var(--allenco-red);
}

.cta .btn:hover {
  background: var(--allenco-blue);
  color: #fff;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #07142a;
  color: #94a3b8;
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  padding: 6px 0;
}

.site-footer a {
  color: #94a3b8;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer .brand img {
  height: 60px;
  margin-bottom: 14px;
  filter: brightness(0) invert(1);
}

.site-footer .about-text {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #94a3b8;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: #64748b;
}

/* ---------- Page hero (small, for inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--allenco-blue-dark) 0%, var(--allenco-blue) 100%);
  color: #fff;
  padding: 70px 0 80px;
  text-align: center;
  position: relative;
}

.page-hero h1 {
  color: #fff;
  margin-bottom: 12px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.breadcrumb {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 18px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
}

.breadcrumb a:hover {
  color: var(--allenco-red-light);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .container,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 60px 0 80px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 18px;
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    gap: 4px;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 14px;
  }

  .nav a.active::after {
    left: 14px;
    right: 14px;
  }

  .site-header {
    position: relative;
  }

  .topbar-info {
    font-size: 0.8rem;
    gap: 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 56px 0;
  }
}