/* ============================================
   All Pro Installation — Site Stylesheet
   ============================================ */
:root {
  --navy: #2e2142;
  --navy-deep: #241834;
  --navy-mid: #372a4e;
  --amber: #d97742;
  --amber-dark: #b85c2c;
  --light: #f7f5f2;
  --gray: #cdc5da;
  --ink: #2a2433;
  --ink-soft: #5d5468;
  --card-border: #e8e3ee;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #ffffff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--navy-deep);
  border-bottom: 4px solid var(--amber);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-link img { width: 54px; height: auto; }

.brand-name {
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  line-height: 1.2;
}
.brand-name span { color: var(--amber); }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid rgba(255,255,255,0.35);
  border-radius: 8px;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  padding: 6px 12px;
  cursor: pointer;
}

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

.site-nav a {
  color: var(--gray);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 10px;
  border-radius: 6px;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}

.site-nav a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.site-nav a.active { color: #fff; }
.site-nav a.active { box-shadow: inset 0 -3px 0 var(--amber); border-radius: 6px 6px 0 0; }

.site-nav a.nav-cta {
  background: var(--amber);
  color: var(--navy-deep);
  margin-left: 8px;
  box-shadow: none;
}
.site-nav a.nav-cta:hover { background: #e68a58; color: var(--navy-deep); }

/* ---------- Hero (home) ---------- */
.hero {
  text-align: center;
  padding: 72px 24px 76px;
  color: var(--light);
  background:
    linear-gradient(rgba(36, 24, 52, 0.90), rgba(46, 33, 66, 0.96)),
    repeating-linear-gradient(135deg, #372a4e 0px, #372a4e 40px, #2b1f3e 40px, #2b1f3e 80px);
}

.hero img.hero-logo {
  width: 280px;
  max-width: 72vw;
  filter: drop-shadow(0 8px 22px rgba(0,0,0,0.45));
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(1.6rem, 4.2vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  max-width: 760px;
  margin: 0 auto 14px;
  line-height: 1.25;
}

.hero p.lead {
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  color: var(--gray);
  max-width: 640px;
  margin: 0 auto 30px;
}

.hero .sub {
  font-size: 0.9rem;
  color: var(--gray);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 26px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  padding: 15px 32px;
  border-radius: 8px;
  font-size: 1rem;
  letter-spacing: 0.4px;
  transition: transform 0.15s ease, background 0.15s ease;
  border: none;
  cursor: pointer;
}

.btn-amber {
  background: var(--amber);
  color: var(--navy-deep);
  box-shadow: 0 6px 18px rgba(217,119,66,0.30);
}
.btn-amber:hover { background: #e68a58; transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.45);
}
.btn-outline:hover { border-color: var(--amber); color: var(--amber); transform: translateY(-2px); }

.btn-navy {
  background: var(--navy);
  color: #fff;
}
.btn-navy:hover { background: var(--navy-mid); transform: translateY(-2px); }

.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: 64px 24px; }
.section-alt { background: var(--light); }
.section-dark {
  background: var(--navy-deep);
  color: var(--light);
}

.container { max-width: 1120px; margin: 0 auto; }
.container-narrow { max-width: 820px; margin: 0 auto; }

.section-title {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 800;
  color: var(--navy);
  text-align: center;
  margin-bottom: 8px;
}
.section-dark .section-title { color: #fff; }

.section-sub {
  text-align: center;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto 42px;
}
.section-dark .section-sub { color: var(--gray); }

.title-rule {
  width: 72px;
  height: 4px;
  background: var(--amber);
  border-radius: 2px;
  margin: 14px auto 18px;
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 2px 10px rgba(46,33,66,0.05);
}

.card h3 {
  color: var(--navy);
  font-size: 1.12rem;
  margin-bottom: 10px;
}

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

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card-icon svg { width: 24px; height: 24px; stroke: var(--amber); }

.card ul { margin: 12px 0 0 18px; color: var(--ink-soft); font-size: 0.93rem; }
.card ul li { margin-bottom: 5px; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.gallery-tile {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: #fff;
  box-shadow: 0 2px 10px rgba(46,33,66,0.05);
}

.gallery-ph {
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(rgba(46,33,66,0.88), rgba(46,33,66,0.88)),
    repeating-linear-gradient(135deg, #efe9f0 0px, #efe9f0 30px, #e5dde7 30px, #e5dde7 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--gray);
}

.gallery-ph svg { width: 42px; height: 42px; stroke: var(--amber); opacity: 0.9; }
.gallery-ph span { font-size: 0.82rem; letter-spacing: 1px; text-transform: uppercase; }

.gallery-tile figcaption {
  padding: 14px 18px;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.98rem;
}

/* ---------- Feature / checklist ---------- */
.feature-list { list-style: none; margin-top: 10px; }
.feature-list li {
  padding-left: 34px;
  position: relative;
  margin-bottom: 14px;
  color: var(--ink-soft);
}
.feature-list li strong { color: var(--navy); }
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--amber);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>') center / contain no-repeat;
}

/* ---------- Two-column ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
  background:
    linear-gradient(rgba(36, 24, 52, 0.92), rgba(46, 33, 66, 0.96)),
    repeating-linear-gradient(135deg, #372a4e 0px, #372a4e 40px, #2b1f3e 40px, #2b1f3e 80px);
  color: #fff;
  text-align: center;
  padding: 52px 24px;
}
.page-banner h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; }
.page-banner p { color: var(--gray); max-width: 620px; margin: 10px auto 0; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 16px; }
.form-grid label { font-weight: 700; color: var(--navy); font-size: 0.92rem; }
.form-grid input,
.form-grid textarea,
.form-grid select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #d3cbdc;
  border-radius: 8px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
.form-grid input:focus,
.form-grid textarea:focus,
.form-grid select:focus {
  outline: 2px solid var(--amber);
  border-color: var(--amber);
}
.form-note { font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- Portal cards ---------- */
.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 26px;
}
.portal-card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-top: 5px solid var(--amber);
  border-radius: 12px;
  padding: 34px 28px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(46,33,66,0.06);
}
.portal-card .card-icon { margin: 0 auto 18px; }
.portal-card h3 { color: var(--navy); font-size: 1.2rem; margin-bottom: 10px; }
.portal-card p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 22px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 56px 24px;
}
.cta-band h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; margin-bottom: 12px; }
.cta-band p { color: var(--gray); margin-bottom: 26px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: var(--gray);
  padding: 44px 24px 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  align-items: start;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; text-align: center; } }

.footer-brand img { width: 120px; margin-bottom: 12px; }
.footer-brand p { font-size: 0.9rem; max-width: 300px; }
@media (max-width: 760px) { .footer-brand p { margin: 0 auto; } }

.site-footer h4 {
  color: #fff;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}

.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer a { color: var(--gray); text-decoration: none; font-size: 0.92rem; }
.site-footer a:hover { color: var(--amber); }

.footer-bottom {
  max-width: 1120px;
  margin: 34px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 0.8rem;
}

/* ---------- Mobile nav ---------- */
@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--navy-deep);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 16px 18px;
    border-bottom: 4px solid var(--amber);
    gap: 2px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 14px; font-size: 1rem; }
  .site-nav a.active { box-shadow: inset 3px 0 0 var(--amber); border-radius: 0 6px 6px 0; }
  .site-nav a.nav-cta { margin-left: 0; margin-top: 8px; text-align: center; }
}

/* ---------- Footer disclosures ---------- */
.footer-disclosures {
  max-width: 1120px;
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--gray);
}
.footer-disclosures p { margin-bottom: 10px; }
.footer-disclosures a { color: var(--amber); text-decoration: none; }
.footer-disclosures a:hover { text-decoration: underline; }

/* ---------- Animated blueprint hero ---------- */
.hero-video {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(36,24,52,0.55), rgba(36,24,52,0.78)),
    repeating-linear-gradient(0deg, rgba(240,201,168,0.06) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(240,201,168,0.06) 0 1px, transparent 1px 48px),
    #241834;
}
.hero-anim {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0.5;
  pointer-events: none;
}
.hero-anim svg { width: 1250px; max-width: 160%; height: auto; }
.hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }

.bp { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.bp.draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: bp-draw 18s linear infinite;
  animation-delay: var(--d, 0s);
}
@keyframes bp-draw {
  0%   { stroke-dashoffset: 1; opacity: 0.9; }
  10%  { stroke-dashoffset: 0; opacity: 0.9; }
  82%  { stroke-dashoffset: 0; opacity: 0.9; }
  92%  { stroke-dashoffset: 0; opacity: 0; }
  93%  { stroke-dashoffset: 1; opacity: 0; }
  100% { stroke-dashoffset: 1; opacity: 0.9; }
}
.crane-hook { animation: hoist 7s ease-in-out infinite alternate; }
@keyframes hoist { from { transform: translateY(0); } to { transform: translateY(70px); } }

@media (prefers-reduced-motion: reduce) {
  .bp.draw { animation: none; stroke-dashoffset: 0; }
  .crane-hook { animation: none; }
}
