/* Centaur Electrics — public site
   Brand matches luxury business card: deep navy + gold + white
   Typography: Bodoni/Didot display · Optima body
*/

:root {
  --navy: #0b1f3a;
  --navy-deep: #081628;
  --navy-soft: #132a4a;
  --navy-mid: #1c3a63;
  --gold: #c6a030;
  --gold-bright: #e4c662;
  --gold-dim: rgba(198, 160, 48, 0.35);
  --copper: #c6a030;
  --copper-hot: #e4c662;
  --sand: #f4f1ea;
  --sand-2: #e8e2d6;
  --ink: #0f1a28;
  --muted: #5a6a7a;
  --line: #d4cbb8;
  --card: #ffffff;
  --ok: #1f7a4c;
  --danger: #b91c1c;
  --shadow: 0 14px 40px rgba(8, 22, 40, 0.18);
  --shadow-sm: 0 4px 16px rgba(8, 22, 40, 0.12);
  --radius: 14px;
  --radius-sm: 10px;
  --max: 1120px;
  --header-h: 72px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --font-display: "Bodoni 72", "Didot", "Playfair Display", Georgia, "Times New Roman", Times, serif;
  --font-body: "Optima", "Source Sans 3", "Segoe UI", "Avenir Next", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font: var(--font-body);
  --focus: 0 0 0 3px #fff, 0 0 0 6px var(--gold);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.55;
  font-size: 1.05rem;
  padding-bottom: calc(76px + var(--safe-b));
}

h1, h2, h3, .brand-text strong, .display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.04em;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-soft); }
a:hover { color: var(--gold); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  background: var(--gold);
  color: var(--navy-deep);
  padding: 12px 18px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 22, 40, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gold-dim);
  padding-top: var(--safe-t);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  min-width: 0;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  padding: 4px;
  border: 2px solid var(--gold);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.brand-text {
  min-width: 0;
}
.brand-text strong {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.04em;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-text span {
  display: block;
  font-size: 0.72rem;
  opacity: 0.8;
  font-weight: 500;
}

.nav-desktop {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
}

.nav-desktop a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 8px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-desktop a:hover,
.nav-desktop a:focus-visible {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.header-cta {
  display: none;
  margin-left: 8px;
}

.nav-toggle {
  margin-left: auto;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.nav-mobile {
  display: none;
  background: var(--navy-deep);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 8px 16px 16px;
}
.nav-mobile.is-open { display: block; }
.nav-mobile a {
  display: block;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 14px 12px;
  border-radius: 10px;
  min-height: 48px;
}
.nav-mobile a:hover,
.nav-mobile a:focus-visible {
  background: rgba(255,255,255,0.1);
}

@media (min-width: 880px) {
  .nav-desktop { display: flex; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
  line-height: 1.2;
  text-align: center;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
  box-shadow: 0 6px 18px rgba(198, 160, 48, 0.35);
  font-weight: 700;
}
.btn-primary:hover {
  background: var(--gold-bright);
  color: var(--navy-deep);
}
.btn-secondary {
  background: #fff;
  color: var(--navy);
  border-color: rgba(11, 61, 92, 0.15);
}
.btn-secondary:hover {
  border-color: var(--navy);
  color: var(--navy);
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.45);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.btn-navy {
  background: var(--navy-deep);
  color: #fff;
  border-color: var(--gold-dim);
}
.btn-navy:hover {
  background: var(--navy-soft);
  color: #fff;
  border-color: var(--gold);
}
.btn-block { width: 100%; }
.btn-sm {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 0.85rem;
}

/* ── Layout ── */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

.section {
  padding: 56px 0;
}
.section-alt {
  background: #fff;
}
.section-navy {
  background: linear-gradient(160deg, #061018 0%, var(--navy-deep) 50%, var(--navy) 100%);
  color: #fff;
  border-top: 1px solid var(--gold-dim);
  border-bottom: 1px solid var(--gold-dim);
}

.section-head {
  margin-bottom: 28px;
  max-width: 640px;
}
.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.55rem, 3.5vw, 2.15rem);
  color: var(--navy-deep);
  letter-spacing: 0.03em;
  line-height: 1.2;
  font-family: var(--font-display);
  font-weight: 500;
}
.section-navy .section-head h2 { color: var(--gold-bright); }
.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}
.section-navy .section-head p { color: rgba(255,255,255,0.82); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.section-navy .eyebrow { color: var(--gold-bright); }

/* ── Hero ── */
.hero {
  position: relative;
  background:
    radial-gradient(900px 500px at 90% 10%, rgba(198, 160, 48, 0.14) 0%, transparent 55%),
    linear-gradient(165deg, #061018 0%, var(--navy-deep) 40%, var(--navy) 100%);
  color: #fff;
  padding: 40px 0 56px;
  overflow: hidden;
  border-bottom: 1px solid var(--gold-dim);
}

.hero-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
  }
  .hero { padding: 56px 0 72px; }
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.hero .lead {
  margin: 0 0 24px;
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 36em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.trust-pills li {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.16);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.hero-card {
  background: rgba(8, 22, 40, 0.92);
  color: #fff;
  border-radius: calc(var(--radius) + 2px);
  padding: 22px;
  box-shadow: var(--shadow);
  border: 2px solid var(--gold);
  box-shadow:
    0 0 0 1px rgba(228, 198, 98, 0.35),
    0 18px 50px rgba(0, 0, 0, 0.4);
}

.hero-card .logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}
.hero-card .logo-wrap img {
  width: 120px;
  height: 136px;
  object-fit: contain;
}

.hero-card h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  color: var(--gold-bright);
  text-align: center;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
}
.hero-card > p {
  margin: 0 0 16px;
  text-align: center;
  color: rgba(255,255,255,0.72);
  font-size: 0.92rem;
}

.quick-actions {
  display: grid;
  gap: 10px;
}

/* ── Trust bar ── */
.trust-bar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.trust-bar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 720px) {
  .trust-bar ul { grid-template-columns: repeat(4, 1fr); }
}
.trust-bar li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--sand);
}
.trust-bar strong {
  color: var(--navy);
  font-size: 0.92rem;
}
.trust-bar span {
  color: var(--muted);
  font-size: 0.8rem;
}

/* ── Cards / grids ── */
.grid-3 {
  display: grid;
  gap: 16px;
}
@media (min-width: 700px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.grid-2 {
  display: grid;
  gap: 16px;
}
@media (min-width: 800px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}

.card {
  background: var(--card);
  border: 1px solid rgba(198, 160, 48, 0.28);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.card h3 {
  margin: 0 0 8px;
  color: var(--navy-deep);
  font-size: 1.15rem;
  font-family: var(--font-display);
  letter-spacing: 0.03em;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(198, 160, 48, 0.12);
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 12px;
  font-weight: 800;
}

.service-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ── Forms ── */
.form-panel {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: var(--shadow);
  color: var(--ink);
}
.section:not(.section-navy) .form-panel {
  border-color: var(--line);
}

.form-grid {
  display: grid;
  gap: 14px;
}
@media (min-width: 560px) {
  .form-grid.two-col {
    grid-template-columns: 1fr 1fr;
  }
  .form-grid.two-col .full { grid-column: 1 / -1; }
}

label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--navy);
  margin-bottom: 6px;
}

.field-hint {
  display: block;
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 4px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea {
  min-height: 110px;
  resize: vertical;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--navy-soft);
  box-shadow: 0 0 0 3px rgba(11, 61, 92, 0.15);
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.form-status {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  display: none;
}
.form-status.is-ok {
  display: block;
  background: #e8f6ee;
  color: var(--ok);
  border: 1px solid #b7e0c6;
}
.form-status.is-err {
  display: block;
  background: #fdecec;
  color: var(--danger);
  border: 1px solid #f3c1c1;
}

.form-note {
  margin: 12px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ── Portals ── */
.portal-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.portal-card .meta {
  font-size: 0.85rem;
  color: var(--muted);
}
.portal-card .badge {
  display: inline-block;
  background: #e8f6ee;
  color: var(--ok);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.portal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.portal-empty {
  background: var(--sand);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  color: var(--muted);
}

/* ── Steps ── */
.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
@media (min-width: 700px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.steps li {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--line);
  position: relative;
  padding-top: 28px;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -12px;
  left: 18px;
  width: 32px;
  height: 32px;
  background: var(--gold);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 4px 10px rgba(196, 92, 38, 0.35);
}
.steps h3 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 1.05rem;
}
.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ── About ── */
.about-panel {
  display: grid;
  gap: 24px;
  align-items: start;
}
@media (min-width: 800px) {
  .about-panel { grid-template-columns: 1.2fr 0.8fr; }
}
.about-panel p { color: var(--muted); }
.about-panel ul {
  margin: 12px 0 0;
  padding: 0 0 0 1.1em;
  color: var(--muted);
}
.about-panel li { margin-bottom: 6px; }

.contact-box {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--line);
}
.contact-box h3 {
  margin: 0 0 12px;
  color: var(--navy);
}
.contact-box a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}
.contact-box a:hover { color: var(--gold); }
.contact-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
  font-size: 0.95rem;
}
.contact-row span {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Footer ── */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.85);
  padding: 40px 0 28px;
  font-size: 0.92rem;
  border-top: 2px solid var(--gold);
}
.footer-grid {
  display: grid;
  gap: 28px;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.site-footer h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 0.95rem;
}
.site-footer a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
}
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer li { margin-bottom: 8px; }
.footer-brand {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.footer-brand img {
  width: 48px;
  height: 48px;
  background: #fff;
  border-radius: 10px;
  padding: 3px;
  object-fit: contain;
}
.footer-fine {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.8rem;
  opacity: 0.75;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
}

/* ── Mobile sticky bar ── */
.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(11, 61, 92, 0.12);
  padding: 8px 8px calc(8px + var(--safe-b));
}
.mobile-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 52px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.72rem;
  border-radius: 12px;
  padding: 6px;
}
.mobile-bar a span.icon-txt {
  font-size: 1.1rem;
  line-height: 1;
}
.mobile-bar a.primary {
  background: var(--gold);
  color: var(--navy-deep);
}
.mobile-bar a:hover,
.mobile-bar a:focus-visible {
  background: var(--sand);
}
.mobile-bar a.primary:hover,
.mobile-bar a.primary:focus-visible {
  background: var(--gold-bright);
  color: var(--navy-deep);
}

@media (min-width: 880px) {
  .mobile-bar { display: none; }
  body { padding-bottom: 0; }
}

/* ── Utility ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ok);
}
.live-dot::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(31, 122, 76, 0.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(31, 122, 76, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(31, 122, 76, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 122, 76, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .live-dot::before { animation: none; }
}

.divider-gold {
  width: 64px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  border-radius: 1px;
  margin: 12px 0 0;
}

/* Gold frame utility (card language) */
.gold-frame {
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 1px rgba(228, 198, 98, 0.25);
}

/* Print: clean contact sheet */
@media print {
  .site-header, .mobile-bar, .nav-toggle, .hero-actions, .btn { display: none !important; }
  body { padding: 0; background: #fff; color: #000; }
  .hero { background: none; color: #000; }
}
