:root {
  --powe-bg: #efefef;
  --powe-surface: #ffffff;
  --powe-black: #000000;
  --powe-charcoal: #1f1f1f;
  --powe-gray: #6f6f73;
  --powe-gray-soft: #d9d9d9;
  --powe-accent: #f1300a;
  --powe-accent-dark: #c62608;
  --powe-line: rgba(255,255,255,.14);
  --powe-radius: 8px;
  --powe-shadow: 0 14px 36px rgba(0,0,0,.14);
  --powe-logo-max-width: 210px;
  --powe-logo-pad-top: 16px;
  --powe-logo-pad-bottom: 16px;
  --powe-logo-pad-left: 12px;
  --powe-logo-pad-right: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--powe-charcoal);
  background: var(--powe-bg);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(1240px, calc(100% - 36px)); margin: 0 auto; }
.section { padding: 92px 0; }

.section-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  font-weight: 700;
  color: var(--powe-accent);
  margin-bottom: 14px;
}

h1,h2,h3,h4 {
  line-height: 1.08;
  margin: 0 0 16px;
  font-weight: 800;
}

h1 { font-size: clamp(2.65rem, 6vw, 5.25rem); }
h2 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 16px; color: var(--powe-gray); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: .25s ease;
  border: 0;
  cursor: pointer;
  letter-spacing: .01em;
}
.button-primary { background: var(--powe-accent); color: #fff; }
.button-primary:hover { background: var(--powe-accent-dark); }
.button-secondary { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.22); }
.button-secondary:hover { background: rgba(255,255,255,.16); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(0,0,0,.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 90px;
}
.site-branding .custom-logo-link,
.site-branding .text-logo {
  display: inline-flex;
  align-items: center;
  padding: var(--powe-logo-pad-top) var(--powe-logo-pad-right) var(--powe-logo-pad-bottom) var(--powe-logo-pad-left);
}
.site-branding img { max-width: var(--powe-logo-max-width); width: 100%; height: auto; }
.text-logo { color: #fff; font-weight: 800; font-size: 1.18rem; }
.main-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 0;
  padding: 0;
}
.main-nav a, .header-contact a { color: #fff; font-weight: 700; text-transform: uppercase; font-size: .95rem; }
.main-nav a:hover, .header-contact a:hover { color: var(--powe-accent); }
.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
}

.hero-section {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--powe-black);
  color: #fff;
}
.hero-media, .hero-overlay, .hero-video, .hero-image { position: absolute; inset: 0; }
.hero-video, .hero-image { width: 100%; height: 100%; object-fit: cover; }
.hero-image { background-size: cover; background-position: center; }
.hero-fallback {
  background:
    linear-gradient(180deg, rgba(0,0,0,.48), rgba(0,0,0,.48)),
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 800"><rect fill="%23000" width="800" height="800"/></svg>') center/cover no-repeat;
}
.hero-overlay { background: linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.5) 42%, rgba(0,0,0,.2) 100%); }
.hero-content-wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 430px);
  gap: 34px;
  align-items: end;
  padding: 132px 0 86px;
}
.hero-copy p { max-width: 780px; color: rgba(255,255,255,.9); font-size: 1.08rem; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-card {
  background: rgba(0,0,0,.68);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--powe-shadow);
}
.hero-card h2 { font-size: 1.55rem; color:#fff; }
.hero-card ul { margin: 0 0 20px; padding-left: 20px; color: rgba(255,255,255,.9); }
.mini-cta { font-weight: 700; color: var(--powe-accent); }

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 48px;
  align-items: center;
}
.feature-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
  margin-top: 28px;
}
.feature-points div {
  padding: 18px;
  background: #fff;
  border-radius: 20px;
  border: 1px solid #dddddd;
}
.feature-points strong { display: block; margin-bottom: 8px; }
.feature-points span { color: var(--powe-gray); font-size: .95rem; }
.image-card {
  min-height: 470px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--powe-shadow);
  background: #ececec;
}
.image-card img { width: 100%; height: 100%; object-fit: cover; }
.image-placeholder {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 32px;
  color: var(--powe-charcoal);
  background: linear-gradient(135deg, #f1f1f1, #dbdbdb);
  text-align: center;
}
.image-placeholder.small { min-height: 240px; }

.section-heading { max-width: 860px; margin-bottom: 38px; }
.section-heading.centered { text-align: center; margin-inline: auto; margin-bottom: 46px; }
.section-services { background: linear-gradient(180deg, #fff 0%, #f3f3f3 100%); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.service-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,.08);
  border: 1px solid #dddddd;
}
.service-image-wrap img, .project-item img { width: 100%; height: 250px; object-fit: cover; }
.service-content { padding: 24px; }

.section-floorplans { background: #f4f4f4; }
.floorplan-tabs,
.project-filters,
.quote-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.floorplan-tab,
.project-filter,
.quote-tab {
  background: transparent;
  border: 1px solid #cfcfcf;
  color: var(--powe-charcoal);
  padding: 14px 18px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: .25s ease;
}
.floorplan-tab.is-active,
.project-filter.is-active,
.quote-tab.is-active,
.floorplan-tab:hover,
.project-filter:hover,
.quote-tab:hover {
  background: var(--powe-black);
  color: #fff;
  border-color: var(--powe-black);
}
.floorplan-panels { margin-top: 30px; }
.floorplan-panel { display: none; }
.floorplan-panel.is-active { display: block; }
.floorplan-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(320px, .9fr);
  gap: 28px;
  align-items: start;
  background: #fff;
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 18px 40px rgba(0,0,0,.06);
}
.floorplan-copy {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.floorplan-stats { display: flex; flex-wrap: wrap; gap: 10px; }
.floorplan-stats span {
  background: #f4f4f4;
  border: 1px solid #dddddd;
  color: var(--powe-charcoal);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .94rem;
}
.floorplan-secondary-wrap,
.floorplan-main-image,
.floorplan-blueprint-image {
  border-radius: 22px;
  overflow: hidden;
  background: #ececec;
  box-shadow: 0 12px 28px rgba(0,0,0,.06);
}
.floorplan-secondary-wrap img,
.floorplan-main-image img,
.floorplan-blueprint-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.floorplan-visuals { display: grid; gap: 18px; }
.floorplan-main-image { min-height: 260px; }
.floorplan-blueprint-image { min-height: 260px; }

.section-projects {
  background: linear-gradient(180deg, rgba(0,0,0,.92), rgba(0,0,0,.9)), var(--powe-black);
  color: #fff;
}
.section-projects p { color: rgba(255,255,255,.78); }
.section-projects .section-heading {
  max-width: 100%;
  margin-bottom: 28px;
}
.section-projects .project-filter {
  color: #fff;
  border-color: rgba(255,255,255,.26);
  background: rgba(255,255,255,.04);
}
.section-projects .project-filter:hover,
.section-projects .project-filter.is-active {
  background: #fff;
  color: #000;
  border-color: #fff;
}
.masonry-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
  grid-auto-flow: row;
}
.project-item,
.project-item:nth-child(5n+1),
.project-item:nth-child(5n+3) {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
  min-height: 0;
  aspect-ratio: 1 / 1;
  box-shadow: none;
  grid-row: span 1;
}
.project-item img { height: 100%; min-height: 220px; }
.project-thumb,
.project-thumb img { width: 100%; height: 100%; }
.project-thumb img { display:block; object-fit:cover; }
.project-overlay-card,
.project-category-label,
.project-item h3 { display: none !important; }
.project-item.is-hidden { display: none; }

.section-quote { background: #fff; }
.quote-panels { margin-top: 24px; }
.quote-panel { display: none; }
.quote-panel.is-active { display: block; }
.quote-panel-intro { margin-bottom: 18px; }
.quote-form-shell {
  background: #111111;
  color: #fff;
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--powe-shadow);
}
.powe-fallback-form label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}
.fallback-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.fallback-grid .full-width { grid-column: 1 / -1; }
.powe-fallback-form input,
.powe-fallback-form select,
.powe-fallback-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: #fff;
  padding: 14px 16px;
  border-radius: 16px;
}
.powe-fallback-form textarea { resize: vertical; }
.fallback-note { color: rgba(255,255,255,.68); margin-top: 14px; }

.section-why { background: var(--powe-black); color: #fff; }
.section-why p { color: rgba(255,255,255,.74); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.why-card {
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.04));
  border-radius: 22px;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.1);
}
.why-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--powe-accent);
  margin-bottom: 12px;
}

.section-testimonials { background: #f5f5f5; }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.testimonial-card {
  margin: 0;
  background: #fff;
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 16px 36px rgba(0,0,0,.06);
  border: 1px solid #dddddd;
}
.testimonial-card p { font-size: 1.04rem; color: var(--powe-charcoal); }
.testimonial-card cite { display: block; margin-top: 18px; font-style: normal; font-weight: 700; color: var(--powe-accent-dark); }

.section-cta-band {
  background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
  color: #fff;
}
.section-cta-band p { color: rgba(255,255,255,.78); }
.cta-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.section-faq { background: #fff; }
.faq-list { max-width: 900px; margin: 0 auto; }
.faq-item {
  border: 1px solid #dddddd;
  border-radius: 18px;
  padding: 0 22px;
  margin-bottom: 14px;
  background: #f8f8f8;
}
.faq-item summary {
  cursor: pointer;
  padding: 20px 0;
  font-weight: 700;
  color: var(--powe-charcoal);
}
.faq-item p { padding: 0 0 20px; margin: 0; }

.section-contact h2 { max-width: 12ch; }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
  gap: 32px;
}
.contact-details {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}
.contact-details li { margin-bottom: 12px; }
.form-placeholder-card {
  background: #111111;
  color: #fff;
  border-radius: 24px;
  padding: 30px;
  box-shadow: var(--powe-shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.form-placeholder-card p { color: rgba(255,255,255,.76); }
.form-placeholder-card h3,
.shortcode-example { text-transform:none; }
.shortcode-example {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 14px 16px;
  font-family: monospace;
  line-height:1.6;
}

.inner-page { padding: 80px 0; }
.content-narrow { width: min(860px, calc(100% - 32px)); }
.entry-content p { margin-bottom: 20px; }

.site-footer {
  background: #0b0b0b;
  color: rgba(255,255,255,.88);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .9fr .8fr;
  gap: 32px;
  padding: 68px 0 34px;
}
.site-footer h3 { color: #fff; }
.footer-list, .site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a:hover { color: var(--powe-accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-bottom p { margin: 0; color: rgba(255,255,255,.6); }

@media (max-width: 1180px) {
  .service-grid,
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .masonry-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .menu-toggle { display: block; justify-self: end; }
  .header-contact { display: none; }
  .header-inner { grid-template-columns: auto auto; }
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #0f0f10;
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 12px 16px 20px;
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero-content-wrap,
  .two-col,
  .floorplan-layout,
  .cta-band-inner,
  .contact-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .feature-points,
  .fallback-grid,
  .testimonial-grid { grid-template-columns: 1fr 1fr; }
  .masonry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .container { width: min(100% - 24px, 1240px); }
  .hero-content-wrap { padding: 112px 0 72px; }
  .hero-buttons,
  .feature-points,
  .floorplan-tabs,
  .project-filters,
  .quote-tabs,
  .cta-actions,
  .fallback-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
    display: grid;
  }
  .button { width: 100%; }
  .masonry-grid,
  .service-grid,
  .why-grid { grid-template-columns: 1fr; }
  .project-item,
  .project-item:nth-child(5n+1),
  .project-item:nth-child(5n+3) { grid-row: span 1; aspect-ratio: 4 / 3; }
  .section-contact h2 { max-width: none; }

  /* Mobile brand consistency */
  .section-projects .project-filters { gap: 14px; }
  .section-projects .project-filter {
    width: 100%;
    color: #fff;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.45);
  }
  .section-projects .project-filter.is-active,
  .section-projects .project-filter:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
  }
  .floorplan-tab {
    width: 100%;
    background: #fff;
    color: var(--powe-charcoal);
    border-color: #d0d0d0;
  }
  .floorplan-tab.is-active,
  .floorplan-tab:hover {
    background: #000;
    color: #fff;
    border-color: #000;
  }
  .button-primary {
    background: var(--powe-accent);
    color: #fff;
  }
  .button-secondary {
    background: rgba(255,255,255,.06);
    color: #fff;
    border: 1px solid rgba(255,255,255,.28);
  }
  .why-number,
  .section-eyebrow { color: var(--powe-accent); }
}
