/*
Theme Name: William Trowell Trail BC
Theme URI: https://example.com/
Author: Real Authority Media
Description: A custom one-page WordPress theme for William Trowell, Construction Project Manager in Trail, BC.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: william-trowell-trail-bc
*/

:root {
  --green: #0f2a22;
  --green-dark: #081814;
  --blue: #123047;
  --orange: #c46f32;
  --cream: #f4f0e8;
  --text: #14212b;
  --muted: #64716f;
  --white: #ffffff;
  --line: rgba(255,255,255,.24);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.hero {
  min-height: 760px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(8,24,20,.94) 0%, rgba(15,42,34,.78) 38%, rgba(18,48,71,.38) 100%),
    url('https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1800&q=80') center/cover no-repeat;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 58%);
  pointer-events: none;
}

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  font-weight: 700;
  letter-spacing: .06em;
}

.logo-mark {
  width: 58px;
  height: 42px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: skewX(-28deg) rotate(45deg);
  opacity: .9;
}

.brand span {
  display: block;
  font-size: 13px;
  color: var(--orange);
  letter-spacing: .12em;
  margin-top: 2px;
}

.site-nav {
  display: flex;
  gap: 30px;
  align-items: center;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.site-nav a:hover { color: var(--orange); }

.nav-button {
  border: 1px solid var(--orange);
  padding: 13px 22px;
  color: #fff;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 105px;
  max-width: 640px;
}

.hero h1 {
  font-size: clamp(56px, 8vw, 96px);
  line-height: .95;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.kicker {
  color: var(--orange);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: .08em;
  font-size: 22px;
}

.location {
  text-transform: uppercase;
  font-size: 20px;
  letter-spacing: .04em;
  margin-bottom: 18px;
}

.orange-line {
  width: 72px;
  height: 3px;
  background: var(--orange);
  margin: 18px 0 24px;
}

.hero p {
  font-size: 18px;
  max-width: 500px;
  margin-bottom: 34px;
}

.credentials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 660px;
  margin: 36px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.credential {
  padding: 18px 14px;
  text-align: center;
  border-right: 1px solid var(--line);
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .04em;
}

.credential:last-child { border-right: 0; }
.credential .icon { display: block; font-size: 26px; margin-bottom: 8px; }

.buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 15px 28px;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  border: 1px solid var(--orange);
}

.btn-primary { background: var(--orange); color: #fff; }
.btn-secondary { color: #fff; }

.section { padding: 78px 0; }

.about { background: var(--cream); }

.about-grid {
  display: grid;
  grid-template-columns: .9fr 1.2fr;
  gap: 70px;
  align-items: center;
}

.portrait-card {
  min-height: 390px;
  border-radius: 4px;
  background:
    linear-gradient(rgba(0,0,0,.05), rgba(0,0,0,.05)),
    url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&w=900&q=80') center/cover no-repeat;
  box-shadow: 0 18px 42px rgba(0,0,0,.12);
}

.section-label {
  color: var(--orange);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: .14em;
  font-size: 13px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-label::after {
  content: "";
  width: 54px;
  height: 1px;
  background: var(--orange);
}

.about h2,
.regional h2 {
  font-size: 34px;
  line-height: 1.2;
  margin-bottom: 22px;
}

.lead {
  font-size: 20px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 20px;
}

.about p:not(.lead) { margin-bottom: 16px; }

.expertise {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: #fff;
  padding: 72px 0;
}

.expertise .section-label {
  justify-content: center;
  color: #fff;
  margin-bottom: 42px;
}

.expertise .section-label::after {
  background: var(--orange);
  width: 34px;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.service-card {
  border-left: 1px solid rgba(255,255,255,.22);
  padding: 8px 24px 8px 28px;
}

.service-card .icon {
  color: var(--orange);
  font-size: 34px;
  margin-bottom: 18px;
}

.service-card h3 {
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 17px;
  margin-bottom: 14px;
}

.service-card p {
  color: rgba(255,255,255,.78);
  font-size: 15px;
}

.regional {
  background: #fffaf1;
  padding: 72px 0;
}

.regional-grid {
  display: grid;
  grid-template-columns: .9fr 1.2fr;
  gap: 52px;
  align-items: center;
}

.mountain-card {
  min-height: 310px;
  background:
    linear-gradient(rgba(196,111,50,.08), rgba(196,111,50,.08)),
    url('https://images.unsplash.com/photo-1501785888041-af3ef285b470?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
  border-radius: 4px;
}

.cta {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(8,24,20,.95), rgba(18,48,71,.92)),
    url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  padding: 48px 0;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}

.cta h2 { font-size: 30px; margin-bottom: 10px; }
.cta p { color: rgba(255,255,255,.82); max-width: 620px; }

footer {
  background: #07110f;
  color: rgba(255,255,255,.72);
  padding: 28px 0;
  font-size: 14px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .site-nav { display: none; }
  .hero { min-height: auto; padding-bottom: 72px; }
  .hero-content { padding-top: 70px; }
  .credentials, .expertise-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .regional-grid, .cta-grid { grid-template-columns: 1fr; }
  .cta-grid { text-align: left; }
}

@media (max-width: 560px) {
  .credentials, .expertise-grid { grid-template-columns: 1fr; }
  .credential { border-right: 0; border-bottom: 1px solid var(--line); }
  .hero h1 { font-size: 48px; }
  .kicker { font-size: 18px; }
  .section { padding: 54px 0; }
}
