/* ============================================================
   True Phase Electrical Contractors — truephasenyc.com
   Brand: charcoal + silver gray + electric gold
   ============================================================ */

:root {
  --gold: #d9a921;
  --gold-bright: #f0bf2e;
  --charcoal: #16181d;
  --charcoal-2: #1e2128;
  --charcoal-3: #262a33;
  --silver: #aeb2b8;
  --silver-light: #d6d9dd;
  --white: #f7f8f9;
  --text: #c9ccd1;
  --max-w: 1180px;
  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--charcoal);
  color: var(--text);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-bright); }

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

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

section { padding: 84px 0; }

.kicker {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 15px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 6px;
  margin-bottom: 18px;
}

.section-title { font-size: clamp(34px, 4.5vw, 52px); margin-bottom: 16px; }
.section-sub { max-width: 720px; color: var(--silver); margin-bottom: 42px; font-size: 18px; }
.section-intro { max-width: 760px; margin-bottom: 44px; }
.section-intro p { color: var(--silver); font-size: 18px; margin-bottom: 18px; }
.section-intro p:last-child { margin-bottom: 0; }

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #0e1013;
  border-bottom: 2px solid var(--gold);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.nav .logo { display: flex; align-items: center; }
.nav .logo img { height: 64px; width: auto; }
.nav ul { display: flex; gap: 30px; list-style: none; align-items: center; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav ul a {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--silver-light);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav ul a:hover, .nav ul a.active { color: var(--gold); }
.nav ul a.active { border-bottom-color: var(--gold); }
.btn-call {
  background: var(--gold);
  color: #1a1505 !important;
  padding: 12px 26px;
  font-weight: 700;
  font-size: 19px;
  border-radius: 3px;
  border-bottom: none !important;
  white-space: nowrap;
}
.btn-call:hover { background: var(--gold-bright); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--gold); margin: 5px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 130px 0 116px;
  background:
    linear-gradient(115deg, rgba(217, 169, 33, 0.06) 0%, transparent 45%),
    radial-gradient(ellipse at 78% 25%, rgba(217, 169, 33, 0.15), transparent 55%),
    linear-gradient(160deg, var(--charcoal-2) 0%, var(--charcoal) 70%);
  border-bottom: 1px solid #2c3039;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(174, 178, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(174, 178, 184, 0.05) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse at 72% 18%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse at 72% 18%, #000 0%, transparent 72%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  right: -130px;
  top: 50%;
  transform: translateY(-50%) rotate(-6deg);
  z-index: 0;
  width: 640px;
  height: 640px;
  background: url("../assets/img/tp-mark.png") no-repeat center / contain;
  opacity: 0.08;
  filter: drop-shadow(0 0 70px rgba(217, 169, 33, 0.35));
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(48px, 7vw, 86px);
  max-width: 840px;
  margin-bottom: 22px;
}
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p.lede { font-size: 20px; max-width: 640px; color: var(--silver); margin-bottom: 36px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

/* Entrance animation */
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.hero .kicker { animation: rise 0.6s ease 0.05s both; }
.hero h1 { animation: rise 0.6s ease 0.15s both; }
.hero p.lede { animation: rise 0.6s ease 0.25s both; }
.hero .hero-ctas { animation: rise 0.6s ease 0.35s both; }
.hero .hero-cred { animation: rise 0.6s ease 0.45s both; }
@media (prefers-reduced-motion: reduce) {
  .hero .kicker, .hero h1, .hero p.lede, .hero .hero-ctas, .hero .hero-cred { animation: none; }
}
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 19px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 15px 34px;
  border-radius: 3px;
  font-weight: 600;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: #1a1505; }
.btn-gold:hover { background: var(--gold-bright); color: #1a1505; }
.btn-line { border: 2px solid var(--silver); color: var(--white); }
.btn-line:hover { border-color: var(--gold); color: var(--gold); }
.hero-cred {
  display: flex;
  gap: 16px;
  margin-top: 56px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--silver);
}
.hero-cred > div {
  background: rgba(30, 33, 40, 0.7);
  border: 1px solid #2f333d;
  border-left: 3px solid var(--gold);
  border-radius: 3px;
  padding: 13px 20px;
  min-width: 150px;
}
.hero-cred strong { display: block; font-family: var(--font-head); font-size: 25px; color: var(--gold); letter-spacing: 0.04em; margin-bottom: 2px; }

/* ---------- Service cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.card {
  background: var(--charcoal-2);
  border: 1px solid #2c3039;
  border-top: 3px solid var(--gold);
  padding: 32px 28px;
  border-radius: 4px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--gold); }
.card-icon {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(217, 169, 33, 0.1);
  border: 1px solid rgba(217, 169, 33, 0.32);
  border-radius: 9px;
  margin-bottom: 20px;
}
.card-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card:hover .card-icon { background: rgba(217, 169, 33, 0.18); }
.card h3 { font-size: 25px; margin-bottom: 12px; }
.card p { font-size: 15.5px; color: var(--silver); }
.card .more { display: inline-block; margin-top: 14px; font-family: var(--font-head); letter-spacing: 0.1em; text-transform: uppercase; font-size: 15px; }

/* ---------- Why band ---------- */
.band {
  background: var(--charcoal-3);
  border-top: 1px solid #2c3039;
  border-bottom: 1px solid #2c3039;
}
.why-item { display: flex; gap: 18px; align-items: flex-start; }
.why-item .num {
  font-family: var(--font-head);
  font-size: 44px;
  color: var(--gold);
  line-height: 1;
  min-width: 56px;
}
.why-item h3 { font-size: 22px; margin-bottom: 6px; }
.why-item p { font-size: 15px; color: var(--silver); }
.grid-why { display: grid; grid-template-columns: repeat(2, 1fr); gap: 38px 48px; }

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

/* Projects carousel */
.carousel-wrap { position: relative; }
.car-btn {
  position: absolute;
  top: 28%;
  transform: translateY(-50%);
  z-index: 6;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(14, 16, 19, 0.9);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-head);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 4px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: background 0.15s ease, color 0.15s ease;
}
.car-btn:hover { background: var(--gold); color: var(--charcoal); }
.car-prev { left: -12px; }
.car-next { right: -12px; }
.carousel {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel-track { display: flex; gap: 26px; padding: 2px 0 6px; }
.carousel .proj {
  flex: 0 0 calc((100% - 52px) / 3);
  scroll-snap-align: start;
  min-width: 0;
}
@media (max-width: 960px) {
  .carousel .proj { flex: 0 0 calc((100% - 26px) / 2); }
}
@media (max-width: 680px) {
  .carousel .proj { flex: 0 0 86%; }
}
.proj {
  background: var(--charcoal-2);
  border: 1px solid #2c3039;
  border-radius: 4px;
  overflow: hidden;
}
.proj .ph {
  aspect-ratio: 4 / 2.7;
  background:
    radial-gradient(ellipse at center, rgba(217, 169, 33, 0.10), transparent 70%),
    var(--charcoal-3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.proj .ph img { width: 76px; opacity: 0.35; }
.proj .meta { padding: 20px 22px 24px; }
.proj .meta .tag {
  font-family: var(--font-head);
  font-size: 13.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Project category groups */
.proj-group { margin-bottom: 58px; }
.proj-group:last-child { margin-bottom: 0; }
.group-title {
  font-size: 27px;
  color: var(--white);
  padding-bottom: 12px;
  margin-bottom: 30px;
  border-bottom: 1px solid #2c3039;
  position: relative;
}
.group-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 64px;
  height: 3px;
  background: var(--gold);
}
.proj h3 { font-size: 23px; margin: 6px 0 8px; }
.proj p { font-size: 14.5px; color: var(--silver); }

/* ---------- CTA strip ---------- */
.cta-strip {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #ecb828 0%, var(--gold) 48%, #c89619 100%);
  padding: 76px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}
.cta-strip::before {
  content: "";
  position: absolute;
  right: -50px;
  top: 50%;
  transform: translateY(-50%) rotate(-8deg);
  width: 360px;
  height: 360px;
  background: url("../assets/img/tp-mark.png") no-repeat center / contain;
  filter: brightness(0);
  opacity: 0.07;
  pointer-events: none;
}
.cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 44px;
}
.cta-kicker {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #5c4b12;
  font-weight: 700;
  margin-bottom: 12px;
}
.cta-strip h2 {
  color: #14110a;
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.06;
  margin-bottom: 14px;
  max-width: 660px;
}
.cta-strip p {
  color: #3f340c;
  font-weight: 500;
  font-size: 16.5px;
  line-height: 1.6;
  max-width: 640px;
}
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.btn-dark { background: var(--charcoal); color: var(--gold); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.26); white-space: nowrap; }
.btn-dark:hover { background: #000; color: var(--gold-bright); }
.cta-phone {
  font-family: var(--font-head);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 16px;
  font-weight: 600;
  color: #14110a;
}
.cta-phone:hover { color: #000; }
@media (max-width: 760px) {
  .cta-inner { grid-template-columns: 1fr; gap: 26px; }
  .cta-actions { align-items: stretch; }
  .btn-dark { text-align: center; }
}

/* ---------- Service area / contact ---------- */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; margin-top: 8px; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid #2c3039; display: flex; gap: 14px; }
.contact-list .lbl {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  min-width: 110px;
  font-size: 15px;
  padding-top: 2px;
}
.contact-list a { font-size: 17px; }

/* ---------- Forms ---------- */
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
input, select, textarea {
  width: 100%;
  background: var(--charcoal-3);
  border: 1px solid #343945;
  color: var(--white);
  padding: 13px 15px;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 15.5px;
  margin-bottom: 16px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
label { font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--silver); display: block; margin-bottom: 6px; }
button[type="submit"] { border: 0; cursor: pointer; }

/* ---------- Contact page ---------- */
.trust-bar { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 28px; }
.trust-bar span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 14px;
  color: var(--silver-light);
}
.trust-bar span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 34px;
  align-items: start;
}

/* Light form card */
.form-card {
  background: #f4f5f6;
  border-radius: 7px;
  padding: 38px 36px 34px;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.42);
}
.form-card h2 { color: #14161a; font-family: var(--font-head); text-transform: uppercase; font-size: 30px; letter-spacing: 0.01em; }
.form-card .accent { width: 56px; height: 3px; background: var(--gold); margin: 12px 0 28px; }
.form-card label { color: #545962; }
.form-card input,
.form-card select,
.form-card textarea { background: #fff; border: 1px solid #d2d6dc; color: #14161a; }
.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.form-card input::placeholder,
.form-card textarea::placeholder { color: #9aa0a8; }
.form-card .btn-gold { width: 100%; text-align: center; }
.form-note {
  font-size: 14px;
  color: #545962;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e2e4e8;
  line-height: 1.55;
}
.form-note strong { color: #14161a; display: block; margin-bottom: 2px; }
.form-card .form-note a { color: #a8801a; font-weight: 600; }

/* Contact card */
.contact-card {
  background: var(--charcoal-2);
  border: 1px solid #2c3039;
  border-top: 3px solid var(--gold);
  border-radius: 7px;
  padding: 32px 30px;
}
.contact-card h2 { font-size: 25px; margin-bottom: 20px; }
.contact-row { display: flex; gap: 16px; padding: 15px 0; border-bottom: 1px solid #2c3039; }
.contact-row:first-of-type { padding-top: 0; }
.contact-row:last-child { border-bottom: 0; padding-bottom: 0; }
.c-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 9px;
  background: rgba(217, 169, 33, 0.1);
  border: 1px solid rgba(217, 169, 33, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.c-icon svg { width: 20px; height: 20px; stroke: var(--gold); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact-row .lbl {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-size: 13px;
  margin-bottom: 3px;
}
.contact-row .val { color: var(--silver-light); font-size: 15px; line-height: 1.5; }
.contact-row .val a { color: var(--silver-light); }
.contact-row .val a:hover { color: var(--gold); }
.contact-row .val .sub { color: var(--silver); font-size: 13.5px; }
@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
footer { background: #101216; border-top: 1px solid #2c3039; padding: 58px 0 30px; font-size: 14.5px; }
.foot-inner { text-align: center; }
.foot-logo { display: inline-block; }
.foot-logo img { height: 88px; width: auto; margin-bottom: 18px; }
.foot-tag {
  color: var(--gold);
  font-family: var(--font-head);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 14px;
  margin-bottom: 32px;
}
.foot-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 32px;
  margin-bottom: 24px;
}
.foot-nav a {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 17px;
  color: var(--silver-light);
}
.foot-nav a:hover { color: var(--gold); }
.foot-contact {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  color: var(--silver);
  margin-bottom: 10px;
}
.foot-contact a { color: var(--silver); }
.foot-contact a:hover { color: var(--gold); }
.foot-contact .dot { color: var(--gold); }
.foot-meta { color: #8a8f96; font-size: 13px; margin-bottom: 34px; }
.foot-bottom {
  border-top: 1px solid #23262d;
  padding-top: 24px;
  display: flex;
  justify-content: center;
  gap: 8px 26px;
  flex-wrap: wrap;
  color: #7c8087;
  font-size: 13px;
}
@media (max-width: 600px) {
  .foot-contact { flex-direction: column; gap: 8px; }
  .foot-contact .dot { display: none; }
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  padding: 76px 0 60px;
  background: linear-gradient(160deg, var(--charcoal-2) 0%, var(--charcoal) 75%);
  border-bottom: 1px solid #2c3039;
}
.page-hero h1 { font-size: clamp(38px, 5.5vw, 62px); }
.page-hero p { color: var(--silver); max-width: 680px; margin-top: 14px; font-size: 18px; }

/* ---------- Service detail rows ---------- */
.svc-row {
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  gap: 40px;
  padding: 44px 0;
  border-bottom: 1px solid #2c3039;
  align-items: start;
}
.svc-row:last-child { border-bottom: 0; }
.svc-row h2 { font-size: 32px; margin-bottom: 6px; }
.svc-row .tagline { color: var(--gold); font-family: var(--font-head); letter-spacing: 0.1em; text-transform: uppercase; font-size: 16px; }
.svc-row p { font-size: 16px; color: var(--text); margin-bottom: 15px; }
.svc-row ul { margin: 18px 0 0 18px; color: var(--silver); font-size: 15.5px; }
.svc-row ul li { margin-bottom: 7px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-why { grid-template-columns: 1fr; }
  .split, .svc-row { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
  .nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0e1013;
    flex-direction: column;
    padding: 22px 24px;
    gap: 18px;
    border-bottom: 2px solid var(--gold);
  }
  .nav ul.open { display: flex; }
  .nav-toggle { display: block; }
}
@media (max-width: 680px) {
  section { padding: 60px 0; }
  .nav .logo img { height: 44px; }
  .btn-call { padding: 9px 16px; font-size: 16px; }
  .grid-3, .grid-2, .proj-grid { grid-template-columns: 1fr; }
  form .row { grid-template-columns: 1fr; }
}
