/* ===========================================
   PH Solutions Roofing & Construction
   Brand: black / gold (#F2A81D-ish) / red (#C8102E-ish)
   =========================================== */

:root {
  --black: #0d0d0d;
  --near-black: #161616;
  --charcoal: #232323;
  --gold: #f0a824;
  --gold-light: #ffc94d;
  --red: #c81e2c;
  --red-dark: #9c1420;
  --white: #ffffff;
  --off-white: #f4f4f2;
  --gray: #8a8a8a;
  --gray-light: #d8d8d6;

  --font-heading: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'Inter', Arial, Helvetica, sans-serif;

  --max-width: 1180px;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--off-white);
  background: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--white);
  line-height: 1.15;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin-bottom: 14px;
}

.section-sub {
  color: var(--gray-light);
  max-width: 640px;
  margin-bottom: 44px;
  font-size: 1.02rem;
}

.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.92rem;
  padding: 15px 30px;
  border-radius: 3px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(200, 30, 44, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(200, 30, 44, 0.45);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  color: var(--black);
  box-shadow: 0 8px 22px rgba(240, 168, 36, 0.3);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(240, 168, 36, 0.4);
}

.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--black);
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(240, 168, 36, 0.18);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.brand-text {
  font-family: var(--font-heading);
  line-height: 1.05;
}

.brand-text .b1 {
  color: var(--gold);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.brand-text .b2 {
  color: var(--white);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

.nav-links a {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.92rem;
  color: var(--gray-light);
  position: relative;
  padding: 6px 0;
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--gold);
}

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

.nav-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}

.nav-phone svg {
  width: 18px;
  height: 18px;
  fill: var(--gold);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--white);
  display: block;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 20% 20%, rgba(240, 168, 36, 0.14), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(200, 30, 44, 0.18), transparent 50%),
    var(--black);
  overflow: hidden;
  border-bottom: 1px solid rgba(240, 168, 36, 0.15);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../images/project-roof-decking.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.16;
  filter: grayscale(35%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 100px 24px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  margin-bottom: 20px;
}

.hero-copy h1 span {
  color: var(--gold);
}

.hero-copy p {
  color: var(--gray-light);
  font-size: 1.12rem;
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-badges {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--gray-light);
  text-transform: uppercase;
}

.hero-badge svg {
  width: 20px;
  height: 20px;
  fill: var(--gold);
  flex-shrink: 0;
}

.hero-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(240, 168, 36, 0.25);
}

.hero-visual img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.hero-visual .tag {
  position: absolute;
  bottom: 18px;
  left: 18px;
  background: rgba(13, 13, 13, 0.85);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 8px 14px;
  border-radius: 3px;
}

/* ---------- Trust strip ---------- */

.trust-strip {
  background: var(--near-black);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 26px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.trust-item svg {
  width: 30px;
  height: 30px;
  fill: var(--gold);
}

.trust-item span {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--gray-light);
}

/* ---------- Sections general ---------- */

section {
  padding: 90px 0;
}

.section-alt {
  background: var(--near-black);
}

/* ---------- Services grid (home teaser) ---------- */

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

.service-card {
  background: linear-gradient(160deg, var(--charcoal) 0%, var(--near-black) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
}

.service-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(240, 168, 36, 0.12);
  border: 1px solid rgba(240, 168, 36, 0.4);
  margin-bottom: 20px;
}

.service-icon svg {
  width: 26px;
  height: 26px;
  fill: var(--gold);
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--gray-light);
  font-size: 0.96rem;
  margin-bottom: 16px;
}

.service-card ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-card ul li {
  color: var(--gray-light);
  font-size: 0.9rem;
  padding-left: 20px;
  position: relative;
}

.service-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 2px;
  background: var(--red);
}

/* ---------- Gallery ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item .caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88), transparent);
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--white);
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 82vh;
  border: 2px solid var(--gold);
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 26px;
  right: 34px;
  font-size: 2.2rem;
  color: var(--white);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-size: 1.6rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
}

.lightbox-nav.prev { left: 24px; }
.lightbox-nav.next { right: 24px; }

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(120deg, var(--red-dark) 0%, var(--red) 55%, var(--gold) 140%);
  padding: 64px 0;
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-bottom: 14px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
}

.cta-band .btn-outline {
  border-color: var(--white);
}

/* ---------- About / Founder ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-visual img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(240, 168, 36, 0.2);
}

.about-card {
  background: var(--near-black);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 30px 34px;
  margin-bottom: 22px;
}

.about-card h3 {
  font-size: 1.05rem;
  color: var(--gold);
  margin-bottom: 10px;
}

.about-card p {
  color: var(--gray-light);
  font-size: 0.98rem;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 20px;
}

.value-item {
  text-align: center;
  padding: 26px 16px;
  background: var(--charcoal);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.value-item svg {
  width: 30px;
  height: 30px;
  fill: var(--gold);
  margin-bottom: 12px;
}

.value-item h4 {
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.value-item p {
  color: var(--gray-light);
  font-size: 0.86rem;
}

/* ---------- Process steps ---------- */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.process-step {
  position: relative;
  padding: 30px 24px 24px;
  background: var(--charcoal);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.process-step .num {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  color: rgba(240, 168, 36, 0.3);
  margin-bottom: 10px;
}

.process-step h4 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.process-step p {
  color: var(--gray-light);
  font-size: 0.9rem;
}

/* ---------- Service detail blocks (services page) ---------- */

.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 70px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.service-detail:last-child {
  border-bottom: none;
}

.service-detail.reverse .sd-copy {
  order: 2;
}

.service-detail.reverse .sd-visual {
  order: 1;
}

.sd-copy .eyebrow {
  margin-bottom: 8px;
}

.sd-copy h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  margin-bottom: 16px;
}

.sd-copy p {
  color: var(--gray-light);
  margin-bottom: 22px;
}

.sd-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
  margin-bottom: 26px;
}

.sd-list li {
  color: var(--off-white);
  font-size: 0.94rem;
  padding-left: 22px;
  position: relative;
}

.sd-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-weight: 700;
}

.sd-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sd-visual img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.sd-visual.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.sd-visual.split img {
  height: 380px;
}

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info-card,
.contact-form-card {
  background: var(--near-black);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 40px;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 26px;
}

.contact-row svg {
  width: 24px;
  height: 24px;
  fill: var(--gold);
  flex-shrink: 0;
  margin-top: 3px;
}

.contact-row h4 {
  font-size: 0.92rem;
  color: var(--white);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-row p,
.contact-row a {
  color: var(--gray-light);
  font-size: 0.96rem;
}

.contact-row a:hover {
  color: var(--gold);
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.service-tags span {
  background: rgba(240, 168, 36, 0.1);
  border: 1px solid rgba(240, 168, 36, 0.35);
  color: var(--gold);
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--gray-light);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--charcoal);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 13px 14px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.96rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-note {
  font-size: 0.82rem;
  color: var(--gray);
  margin-top: 14px;
}

.form-success {
  display: none;
  background: rgba(240, 168, 36, 0.1);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  padding: 16px 18px;
  border-radius: 4px;
  margin-top: 18px;
  font-size: 0.92rem;
}

.form-success.show {
  display: block;
}

.map-wrap {
  margin-top: 60px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  filter: grayscale(60%) contrast(1.1);
}

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

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  padding: 130px 0 70px;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(240, 168, 36, 0.12), transparent 55%), var(--black);
  border-bottom: 1px solid rgba(240, 168, 36, 0.15);
}

.page-hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  margin-bottom: 14px;
}

.page-hero p {
  color: var(--gray-light);
  max-width: 560px;
  margin: 0 auto;
}

.breadcrumb {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--gray-light);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--black);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 60px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand img {
  height: 60px;
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--gray);
  font-size: 0.9rem;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.88rem;
  color: var(--gold);
  margin-bottom: 18px;
  letter-spacing: 0.06em;
}

.footer-col ul li {
  margin-bottom: 11px;
}

.footer-col ul li a {
  color: var(--gray-light);
  font-size: 0.92rem;
  transition: color 0.15s ease;
}

.footer-col ul li a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--gray);
}

/* ---------- Sticky call button (mobile) ---------- */

.sticky-call {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  display: none;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 15px;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero-content,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual img {
    height: 340px;
  }

  .services-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-grid,
  .value-grid,
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .service-detail {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 50px 0;
  }

  .service-detail.reverse .sd-copy,
  .service-detail.reverse .sd-visual {
    order: initial;
  }
}

@media (max-width: 720px) {
  .nav-links,
  .nav-phone span {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--near-black);
    flex-direction: column;
    padding: 20px 24px;
    gap: 18px;
    border-top: 1px solid rgba(240, 168, 36, 0.2);
  }

  .services-grid,
  .gallery-grid,
  .trust-grid,
  .value-grid,
  .process-grid,
  .form-row,
  .sd-list {
    grid-template-columns: 1fr;
  }

  section {
    padding: 60px 0;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 70px 24px 60px;
  }

  .sticky-call {
    display: block;
  }

  body {
    padding-bottom: 54px;
  }

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