/* =====================================================
   Saint Peter Industrial Advisory – Global Styles
   Refined & organised
   ===================================================== */

/* ------------------------------
   DESIGN TOKENS
------------------------------ */

:root {
  --ind-bg: #f5f1e7;
  --ind-bg-soft: #f9f6ef;
  --ind-surface: #ffffff;
  --ind-surface-soft: #fdfaf5;
  --ind-border: #e3e0d6;
  --ind-border-soft: #ede6d8;

  --ind-accent: #c9a162;
  --ind-accent-warm: #b78335;
  --ind-accent-soft: #efe0bd;

  --ind-ink: #151822;
  --ind-muted: #7b7f8c;
  --ind-muted-soft: #a1a4b0;

  --navy-deep: #071933;
  --navy-soft: #0e213f;

  --radius-card: 18px;
  --radius-pill: 999px;

  --shadow-soft: 0 18px 40px rgba(15, 18, 34, 0.09);
  --shadow-subtle: 0 8px 20px rgba(15, 18, 34, 0.05);
}

/* ------------------------------
   RESET-ish
------------------------------ */

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

html {
  scroll-behavior: smooth;
}

body.site-body {
  margin: 0;
  background: var(--ind-bg);
  color: var(--ind-ink);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  padding-top: 140px; /* space for toolbar + fixed header */
}

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

a {
  color: var(--ind-accent-warm);
  text-decoration: none;
  transition: color 0.18s ease, opacity 0.18s ease;
}

a:hover {
  text-decoration: underline;
}

/* Typography */

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.35em;
  font-family: "Playfair Display", "Times New Roman", serif;
  color: var(--ind-ink);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 1.9rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.2rem;
}

/* Layout helpers */

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

.site-main {
  min-height: 60vh;
  padding-bottom: 40px;
}

/* ------------------------------
   TOP TOOLBAR
------------------------------ */

.top-toolbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: var(--navy-deep);
  color: #f7f9ff;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.top-toolbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
}

.top-toolbar-right a {
  color: #f7f9ff;
  opacity: 0.85;
  margin-left: 10px;
  font-size: 11px;
}

.top-toolbar-right a:hover {
  opacity: 1;
}

.toolbar-separator {
  margin: 0 6px;
  opacity: 0.4;
}

/* ------------------------------
   HEADER
------------------------------ */

.site-header {
  position: fixed;
  top: 24px; /* sits below toolbar */
  left: 0;
  right: 0;
  z-index: 50;
  background: linear-gradient(
    120deg,
    rgba(249, 246, 239, 0.98),
    rgba(245, 241, 231, 0.98)
  );
  border-bottom: 1px solid rgba(227, 224, 214, 0.85);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 24px;
}

/* Brand block */

.brand-block {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-logo-circle {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-pill);
  padding: 3px;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo-inner {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-pill);
  background: #ffffff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo-inner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  margin-top: 2px;
}

/* “Saint Peter” */
.brand-line-small {
  font-family: "Playfair Display", serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--ind-ink);
  letter-spacing: 0;
  text-transform: none;
}

/* “Industrial Advisory” */
.brand-line-main {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ind-muted);
  font-weight: 500;
  margin-top: 2px;
}

/* Navigation */

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 18px;
}

.main-nav a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--ind-muted);
  text-decoration: none;
  padding-bottom: 4px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  bottom: -3px;
  background: transparent;
  border-radius: var(--radius-pill);
  transition: background 0.2s ease;
}

.main-nav a:hover {
  color: var(--ind-ink);
}

.main-nav a.is-active {
  color: var(--ind-ink);
}

.main-nav a.is-active::after {
  background: linear-gradient(
    90deg,
    var(--ind-accent),
    var(--ind-accent-warm)
  );
}

/* Header CTA */

.header-cta .btn-sm {
  font-size: 13px;
  padding: 8px 16px;
}

/* ------------------------------
   BUTTONS
------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s ease-out;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--ind-accent), var(--ind-accent-warm));
  border-color: transparent;
  color: #111111;
  box-shadow: 0 12px 25px rgba(185, 145, 77, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 8px 18px rgba(185, 145, 77, 0.5);
  transform: translateY(-1px);
}

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

.btn-outline:hover {
  border-color: var(--ind-accent-warm);
  background: rgba(255, 255, 255, 0.7);
}

/* More specialised button variants for homepage (optional) */

.btn-gold-strong {
  background: linear-gradient(
    135deg,
    var(--ind-accent),
    var(--ind-accent-warm)
  );
  color: #111827;
  border: none;
  box-shadow: 0 14px 32px rgba(185, 145, 77, 0.45);
}

.btn-gold-strong:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(185, 145, 77, 0.6);
}

.btn-ghost-dark {
  background: rgba(7, 25, 51, 0.85);
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.4);
}

.btn-ghost-dark:hover {
  background: rgba(7, 25, 51, 1);
}

/* ------------------------------
   GENERIC HERO BLOCKS
------------------------------ */

.hero {
  padding: 54px 0 36px;
}

.hero-alt {
  padding: 52px 0 32px;
}

.hero-subtitle {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  color: var(--ind-muted);
  margin-bottom: 10px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(239, 224, 189, 0.7);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #61410a;
  margin-bottom: 10px;
}

.hero-badge-light {
  background: rgba(249, 242, 222, 0.9);
  color: #4a3510;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 36px;
  align-items: center;
}

.hero-lead {
  font-size: 15px;
  color: var(--ind-muted);
  max-width: 520px;
  margin-bottom: 18px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 14px;
}

.hero-footnotes {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 12px;
  color: var(--ind-muted);
  margin-top: 10px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-tag-pill {
  font-size: 11px;
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  border: 1px solid rgba(201, 161, 98, 0.5);
  background: rgba(252, 246, 232, 0.9);
}

/* ------------------------------
   HOME – FULL-WIDTH VIDEO HERO
------------------------------ */

.hero-video-hero {
  position: relative;
  padding: 0;
  min-height: 420px;
  color: #ffffff;
  overflow: hidden;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0, rgba(201, 161, 98, 0.2), transparent),
    linear-gradient(to bottom, rgba(7, 25, 51, 0.3), rgba(7, 25, 51, 0.6));
}

.hero-video-content {
  position: relative;
  z-index: 1;
  padding: 96px 0 82px;
}

.hero-video-title {
  font-size: 2.4rem;
  margin-bottom: 10px;
  color: #fef9ec;
}

.hero-video-lead {
  max-width: 540px;
  font-size: 15px;
  color: #dde2f3;
}

.hero-video-content h1,
.hero-video-hero h1 {
  color: #c9a162 !important;
}

.hero-video-content p {
  color: #f5f1e7 !important;
}

/* Small video frames (services, industrial zone) */

.hero-video-frame {
  position: relative;
  width: 100%;
  height: 260px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: #000;
}

.hero-video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-video-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(7, 25, 51, 0.25),
    rgba(7, 25, 51, 0)
  );
  pointer-events: none;
}

/* Services page hero video height */

.service-hero-video {
  height: 260px;
}

/* ------------------------------
   HERO INSIGHT CARD
------------------------------ */

.hero-insight-card {
  background: radial-gradient(circle at 10% 0, #fefaf0, #f2e1c2);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  padding: 22px 22px 20px;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.hero-insight-title {
  font-family: "Playfair Display", serif;
  font-size: 18px;
  margin-bottom: 6px;
}

.hero-insight-subtext {
  font-size: 13px;
  color: var(--ind-muted);
  margin-bottom: 12px;
}

.hero-insight-list {
  margin: 0;
  padding-left: 16px;
  font-size: 13px;
  color: var(--ind-ink);
}

.hero-insight-metrics {
  display: flex;
  gap: 14px;
  margin-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.7);
  padding-top: 10px;
}

.hero-metric {
  flex: 1;
}

.hero-metric-label {
  font-size: 11px;
  color: var(--ind-muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.hero-metric-value {
  font-size: 14px;
  font-weight: 600;
}

/* ------------------------------
   SECTIONS
------------------------------ */

.section {
  padding: 32px 0;
}

.section-alt {
  padding: 32px 0;
  background: var(--ind-bg-soft);
}

.section-header {
  max-width: 640px;
  margin-bottom: 18px;
}

.section-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ind-muted);
  margin-bottom: 6px;
}

.section-title {
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.section-lead {
  font-size: 14px;
  color: var(--ind-muted);
}

/* ------------------------------
   CARDS & GRIDS
------------------------------ */

.card {
  background: var(--ind-surface);
  border-radius: var(--radius-card);
  border: 1px solid var(--ind-border);
  box-shadow: var(--shadow-subtle);
  padding: 18px 18px 16px;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.card p {
  font-size: 13px;
  color: var(--ind-muted);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
  border-color: var(--ind-accent-soft);
}

.card-pill-title {
  font-size: 11px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--ind-muted);
  margin-bottom: 8px;
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 24px;
}

/* ------------------------------
   LEGACY IMAGE BOXES
   (used across pages – still supported)
------------------------------ */

.image-box-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.image-box {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 180px;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-soft);
}

.image-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(7, 25, 51, 0.8),
    rgba(7, 25, 51, 0.1)
  );
}

.image-box-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px 14px 12px;
  color: #f7f7ff;
}

.image-box-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.85;
}

.image-box-title {
  font-size: 14px;
  font-weight: 600;
}

/* ------------------------------
   NEW POPUP CARDS
   (for replacing bottom images)
------------------------------ */

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

.popcard {
  position: relative;
  border-radius: 20px;
  border: 1px solid var(--ind-border);
  background: var(--ind-surface);
  box-shadow: var(--shadow-subtle);
  padding: 16px 18px 14px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.popcard-header h3 {
  font-size: 1.02rem;
  margin-bottom: 4px;
}

.popcard-header p {
  font-size: 13px;
  color: var(--ind-muted);
  margin: 0;
}

.popcard-body {
  margin-top: 8px;
  border-top: 1px dashed var(--ind-border-soft);
  padding-top: 8px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: max-height 0.28s ease, opacity 0.2s ease,
    transform 0.2s ease;
}

.popcard-body ul {
  margin: 4px 0 0;
  padding-left: 16px;
  font-size: 13px;
  color: var(--ind-ink);
}

.popcard-body li {
  margin-bottom: 4px;
}

/* open state */

.popcard.is-open {
  background: radial-gradient(circle at top, #071933, #020617);
  color: #f9fafb;
  border-color: var(--ind-accent);
  box-shadow: 0 20px 50px rgba(7, 25, 51, 0.6);
}

.popcard.is-open .popcard-header p {
  color: #e5e7eb;
}

.popcard.is-open .popcard-body {
  max-height: 260px;
  opacity: 1;
  transform: translateY(0);
}

/* subtle hover even before opening */

.popcard:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.16);
  border-color: var(--ind-accent-soft);
}

/* hint text under popup grid */

.popcard-hint {
  margin-top: 18px;
  font-size: 12px;
  color: var(--ind-muted-soft);
  text-align: center;
}

/* ------------------------------
   CHECKLISTS & STEPS
------------------------------ */

.checklist {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  font-size: 13px;
}

.checklist li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 4px;
}

.checklist li::before {
  content: "•";
  position: absolute;
  left: 4px;
  top: 0;
  color: var(--ind-accent-warm);
}

.steps-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.steps-list li {
  margin-bottom: 12px;
}

.steps-list-title {
  font-weight: 600;
}

/* ------------------------------
   CTA BAND
------------------------------ */

.section-cta {
  padding: 38px 0;
  background: radial-gradient(circle at 5% 0, #213157, #050712);
  color: #ffffff;
}

.section-cta-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.section-cta-inner h2 {
  color: #ffffff;
}

.section-cta-inner p {
  font-size: 14px;
  color: #c1c6d8;
  margin: 8px 0 18px;
}

.section-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.section-cta-side {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 16px 16px 14px;
  background: linear-gradient(
    140deg,
    rgba(249, 242, 222, 0.08),
    rgba(9, 15, 38, 0.9)
  );
  font-size: 13px;
  color: #e3e5f2;
}

/* ------------------------------
   FAQ
------------------------------ */

.faq-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.faq-item {
  border-radius: 14px;
  border: 1px solid var(--ind-border);
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
}

.faq-question {
  font-weight: 600;
  font-size: 14px;
}

.faq-answer {
  font-size: 13px;
  color: var(--ind-muted);
  margin-top: 4px;
}

/* ------------------------------
   FORMS
------------------------------ */

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

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

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 4px;
}

.form-control {
  width: 100%;
  border-radius: var(--radius-pill);
  border: 1px solid var(--ind-border);
  padding: 9px 12px;
  font-size: 14px;
  background: #fcfaf5;
  outline: none;
  transition: border-color 0.16s ease-out, box-shadow 0.16s ease-out,
    background 0.16s ease-out;
}

.form-control:focus {
  border-color: var(--ind-accent-warm);
  box-shadow: 0 0 0 1px rgba(201, 161, 98, 0.3);
  background: #ffffff;
}

textarea.form-control {
  border-radius: 16px;
  min-height: 110px;
  resize: vertical;
}

.form-control.error {
  border-color: #c24343;
  background: #fff6f6;
}

.form-help {
  font-size: 12px;
  color: var(--ind-muted);
}

.error-message {
  font-size: 12px;
  color: #b32e2e;
  margin-top: 2px;
}

/* Alerts */

.alert {
  border-radius: 16px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 14px;
}

.alert-success {
  background: #f0faf2;
  color: #1a5723;
  border: 1px solid #b8e5c0;
}

.alert-error {
  background: #fff5f5;
  color: #822222;
  border: 1px solid #f1c1c1;
}

/* ------------------------------
   FOOTER
------------------------------ */

.site-footer {
  background: var(--ind-bg-soft);
  border-top: 1px solid var(--ind-border);
  padding: 60px 0 0 0;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand-block {
  margin-bottom: 18px;
}

.footer-about {
  max-width: 300px;
  font-size: 14px;
  color: var(--ind-muted);
  line-height: 1.6;
  margin-top: 10px;
}

.footer-heading {
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ind-muted);
  margin-bottom: 16px;
}

.footer-links li,
.footer-contact li {
  list-style: none;
  margin-bottom: 10px;
}

.footer-links a,
.footer-contact a {
  color: var(--ind-ink);
  text-decoration: none;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--ind-accent);
}

.footer-bottom {
  margin-top: 40px;
  padding: 20px 0;
  background: #071933;
  color: #ffffff;
  text-align: center;
  font-size: 14px;
}

/* ------------------------------
   UTILITIES
------------------------------ */

.text-muted {
  color: var(--ind-muted);
  font-size: 13px;
}

/* Header hide/show on scroll */

.top-toolbar,
.site-header {
  transform: translateY(0);
  transition: transform 0.28s ease;
  will-change: transform;
}

body.header-hidden .top-toolbar {
  transform: translateY(-100%);
}

body.header-hidden .site-header {
  transform: translateY(-200%);
}

/* ------------------------------
   RESPONSIVE
------------------------------ */

@media (max-width: 960px) {
  body.site-body {
    padding-top: 148px;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
  }

  .main-nav ul {
    flex-wrap: wrap;
  }

  .hero-layout,
  .two-col,
  .grid-3,
  .grid-2,
  .image-box-grid,
  .popcard-grid,
  .section-cta-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 46px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .top-toolbar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  body.site-body {
    padding-top: 160px;
  }

  h1 {
    font-size: 1.9rem;
  }

  .hero-footnotes {
    flex-direction: column;
  }

  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}


