/* PerspIQ website styles — tokens pulled directly from the Figma design file */

:root {
  --navy: #16404D;       /* headings, nav links */
  --dark: #0A272D;       /* hero/footer background, text on gold buttons */
  --gold: #CEA055;       /* accent, buttons, icons */
  --gold-light: #E7CDA0; /* eyebrow text on hero */
  --cream: #F7F4EC;      /* light section bg, input fill */
  --border: #EFE8D6;     /* card borders, nav border */
  --muted: #5B6B70;      /* body copy */
  --white: #FFFFFF;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-pill: 20px;

  --container: 1280px;
  --shadow-modal: 0 20px 60px rgba(5, 20, 26, 0.25);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 80px;
}

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: var(--navy);
}

.logo-mark {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 500;
  font-size: 15px;
  color: var(--navy);
  transition: opacity 0.15s ease;
}

.nav-links a:hover { opacity: 0.65; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.lang-toggle {
  display: flex;
  background: var(--cream);
  border-radius: var(--radius-pill);
  padding: 4px;
  gap: 2px;
}

.lang-toggle a {
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

.lang-toggle a.active {
  background: var(--navy);
  color: var(--white);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); opacity: 0.92; }

.btn-primary {
  background: var(--gold);
  color: var(--dark);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--white);
  color: var(--white);
}

.btn-secondary.on-light {
  border-color: var(--navy);
  color: var(--navy);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--dark);
  padding: 100px 0 110px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero .container { position: relative; z-index: 1; }

.eyebrow-pill {
  display: inline-block;
  background: var(--gold);
  color: var(--gold-light);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1.5px;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  margin-bottom: 28px;
}

.hero h1 {
  color: var(--white);
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
  max-width: 760px;
  margin: 0 auto 24px;
}

.hero p {
  color: var(--white);
  font-size: 18px;
  line-height: 1.5;
  max-width: 600px;
  margin: 0 auto 40px;
  opacity: 0.9;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* ---------- Section headers ---------- */
.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 56px;
}

.section-eyebrow {
  display: block;
  color: var(--gold);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 38px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 18px;
}

.section-header p {
  color: var(--muted);
  font-size: 16px;
  margin: 0;
}

/* ---------- Services ---------- */
.services {
  background: var(--cream);
  padding: 100px 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--dark);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 19px;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 12px;
}

.service-card p {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

/* ---------- Process ---------- */
.process {
  background: var(--dark);
  padding: 100px 0;
}

.process .section-eyebrow { color: var(--gold); }
.process .section-header h2 { color: var(--white); }

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.process-step .num {
  font-size: 32px;
  font-weight: 700;
  color: var(--gold);
  display: block;
  margin-bottom: 14px;
}

.process-step h3 {
  font-size: 19px;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 10px;
}

.process-step p {
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(255,255,255,0.75);
  margin: 0;
}

/* ---------- About ---------- */
.about {
  background: var(--white);
  padding: 100px 0;
}

.about .container {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 80px;
  align-items: start;
}

.about-feature { margin-bottom: 34px; }
.about-feature:last-child { margin-bottom: 0; }

.about-feature h4 {
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 8px;
}

.about-feature p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

.about-body .section-eyebrow { text-align: left; margin-bottom: 12px; }

.about-body h2 {
  font-size: 34px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 24px;
  line-height: 1.25;
}

.about-body p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* ---------- Contact ---------- */
.contact {
  background: var(--white);
  padding: 100px 0;
}

.contact .container {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 80px;
}

.contact-info .section-eyebrow { text-align: left; }

.contact-info h2 {
  font-size: 34px;
  font-weight: 700;
  color: var(--navy);
  margin: 12px 0 18px;
}

.contact-info > p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 420px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 22px;
}

.contact-detail .icon {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  color: var(--gold);
}

.contact-detail .label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin-bottom: 4px;
}

.contact-detail .value {
  font-size: 15px;
  color: var(--navy);
  font-weight: 500;
}

/* Form (shared by inline contact form + modals) */
.field { margin-bottom: 24px; }
.field:last-of-type { margin-bottom: 0; }

.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 8px;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14px;
  color: var(--navy);
}

.field textarea { resize: vertical; min-height: 80px; }

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.form-submit {
  width: 100%;
  padding: 14px;
  margin-top: 8px;
  border-radius: var(--radius-md);
  background: var(--gold);
  color: var(--dark);
  font-weight: 600;
  font-size: 15px;
}

.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-note {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 12px;
  text-align: center;
}

.form-error {
  display: none;
  background: #FBEAEA;
  color: #A23B3B;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 13.5px;
  margin-bottom: 16px;
}

.form-error.visible { display: block; }

/* honeypot field, hidden from real users */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Privacy teaser ---------- */
.privacy-teaser {
  background: var(--cream);
  padding: 90px 0;
  text-align: center;
}

.privacy-teaser .section-eyebrow { color: var(--muted); }

.privacy-teaser h2 {
  font-size: 30px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 16px;
}

.privacy-teaser p {
  font-size: 15.5px;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 28px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--dark);
  padding: 56px 0 40px;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 28px;
  list-style: none;
  margin: 0 0 44px;
  padding: 0;
}

.footer-links a {
  color: rgba(255,255,255,0.85);
  font-size: 15px;
}

.footer-links a:hover { color: var(--gold); }

.footer-divider {
  height: 1px;
  background: rgba(255,255,255,0.12);
  margin-bottom: 24px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
}

.footer-bottom a { color: rgba(255,255,255,0.8); }

/* ---------- Modals (privacy policy + book a consultation + confirmation) ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 39, 45, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}

.modal-overlay.open { display: flex; }

.modal-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-modal);
  width: 100%;
  max-width: 800px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 48px;
}

.modal-card.modal-sm {
  max-width: 480px;
}

.modal-card.modal-confirm {
  max-width: 400px;
  text-align: center;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
}

.modal-header .eyebrow {
  display: block;
  color: var(--gold);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

.modal-header h2 {
  font-size: 30px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 6px;
}

.modal-header .updated {
  font-size: 13.5px;
  color: var(--muted);
}

.modal-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--border);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.policy-section { margin-bottom: 28px; }
.policy-section:last-child { margin-bottom: 0; }

.policy-section h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 10px;
}

.policy-section p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

.modal-card.modal-sm p.modal-sub {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 24px;
}

.confirm-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.modal-confirm h2 { font-size: 22px; margin-bottom: 12px; }
.modal-confirm p { color: var(--muted); font-size: 14px; margin: 0 0 24px; }

.modal-confirm .btn { display: inline-flex; }

/* ---------- Mobile nav menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(10,39,45,0.55);
  display: none;
  z-index: 999;
  justify-content: flex-end;
}

.mobile-menu.open { display: flex; }

.mobile-menu-panel {
  background: var(--white);
  width: 280px;
  max-width: 85vw;
  height: 100%;
  padding: 20px;
  box-shadow: -10px 0 40px rgba(0,0,0,0.15);
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.mobile-menu-header span { font-weight: 600; font-size: 16px; color: var(--navy); }

.mobile-menu-links { list-style: none; margin: 0 0 16px; padding: 0; }

.mobile-menu-links li a {
  display: block;
  padding: 14px 8px;
  font-size: 16px;
  font-weight: 500;
  color: var(--navy);
  border-radius: 8px;
}

.mobile-menu-links li a:hover { background: var(--cream); }

.mobile-menu-panel .btn { width: 100%; margin-top: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .container { padding: 0 24px; }

  .nav-links { display: none; }
  .hamburger { display: flex; }
  .navbar .btn-primary { display: none; }

  .hero { padding: 64px 0 72px; }
  .hero h1 { font-size: 34px; }
  .hero p { font-size: 16px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }

  .service-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; row-gap: 40px; }

  .about .container,
  .contact .container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-links { justify-content: flex-start; flex-wrap: wrap; }
  .footer-bottom { flex-direction: column; gap: 8px; }

  .modal-card { padding: 28px; }
  .modal-header h2 { font-size: 24px; }
}

@media (max-width: 560px) {
  .process-grid { grid-template-columns: 1fr; }
  .section-header h2 { font-size: 28px; }
}
