/* ============================================================
   QUINARIUS LTD — WEBSITE STYLESHEET
   Brand: Classical authority, modern clarity
   Palette: Navy / Warm White / Parchment / Aurum Gold / Argentum Silver / Charcoal
   Fonts: Cormorant Garamond (display) · Jost (body/UI)
   ============================================================ */

@import url('fonts.css');

/* ── RESET & BASE ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy:        #0F1E35;
  --navy-mid:    #1A2E4A;
  --warm-white:  #FDFBF8;
  --parchment:   #F8F5EF;
  --gold:        #C9A84C;
  --gold-lt:     #E2C97A;
  --silver:      #A8B4C0;
  --silver-lt:   #D4DCE4;
  --charcoal:    #2E3A47;
  --text-mid:    #4A5568;
  --max-w:       1080px;
  --section-pad: 80px 24px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  color: var(--charcoal);
  background: var(--warm-white);
  line-height: 1.75;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── TYPOGRAPHY SCALE ── */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  line-height: 1.15;
  color: var(--navy);
}
h1 { font-size: clamp(36px, 5vw, 58px); font-weight: 300; letter-spacing: 0.01em; }
h2 { font-size: clamp(28px, 3.5vw, 40px); font-weight: 300; }
h3 { font-size: clamp(20px, 2.5vw, 26px); }
h4 { font-size: 18px; font-style: italic; font-weight: 300; color: var(--charcoal); }

.eyebrow {
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--silver);
  display: block;
  margin-bottom: 16px;
}

.lead {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 300;
  line-height: 1.65;
  color: var(--charcoal);
}

/* ── LAYOUT ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

section { padding: var(--section-pad); }

/* ── COIN RULE ── */
.coin-rule {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
}
.coin-rule .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.coin-rule .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
.coin-rule.silver .line {
  background: linear-gradient(90deg, transparent, var(--silver), transparent);
}
.coin-rule.silver .dot { background: var(--silver); }
.coin-rule.short { max-width: 200px; }

/* ── NAVIGATION ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--warm-white);
  border-bottom: 1px solid #EAE7E1;
  padding: 0 32px;
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--charcoal);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }
.nav-cta {
  font-size: 10px !important;
  letter-spacing: 0.2em !important;
  color: var(--navy) !important;
  border: 1px solid var(--navy);
  padding: 8px 18px;
  transition: background 0.2s, color 0.2s !important;
}
.nav-cta:hover {
  background: var(--navy) !important;
  color: var(--warm-white) !important;
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--navy);
  transition: transform 0.2s;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--navy);
  color: var(--silver-lt);
  padding: 48px 32px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
}
.footer-brand p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--silver);
  margin-top: 12px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  list-style: none;
}
.footer-nav a {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--gold); }
.footer-copy {
  max-width: var(--max-w);
  margin: 24px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(168,180,192,0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-copy p {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--silver);
  opacity: 0.7;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 13px 28px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: none;
}
.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover { background: var(--gold-lt); }
.btn-navy {
  background: var(--navy);
  color: var(--warm-white);
}
.btn-navy:hover { background: var(--navy-mid); }
.btn-outline {
  background: transparent;
  border: 1px solid var(--navy);
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--warm-white); }
.btn-outline-cream {
  background: transparent;
  border: 1px solid rgba(253,251,248,0.4);
  color: var(--warm-white);
}
.btn-outline-cream:hover {
  background: rgba(253,251,248,0.1);
}

/* ── HOME: HERO ── */
.hero {
  background: var(--navy);
  padding: 100px 32px 90px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--silver), transparent);
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  max-width: 740px;
}
.hero h1 {
  color: var(--warm-white);
  margin-bottom: 28px;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold);
}
.hero .hero-sub {
  font-family: 'Jost', sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--silver-lt);
  margin-bottom: 40px;
  max-width: 600px;
}
.hero .hero-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}
.hero .hero-divider .line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--silver));
}

/* ── HOME: SERVICES CARDS ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: #EAE7E1;
}
.service-card {
  background: var(--warm-white);
  padding: 36px 32px;
  transition: background 0.2s;
}
.service-card:hover { background: var(--parchment); }
.service-card .card-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 12px;
}
.service-card h3 {
  font-size: 19px;
  margin-bottom: 8px;
  line-height: 1.25;
}
.service-card .card-sub {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 16px;
  font-weight: 400;
}
.service-card p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--charcoal);
}
.service-card .card-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.service-card .card-link::after { content: ' →'; }

/* ── HOME: CREDIBILITY BAND ── */
.credibility {
  background: var(--parchment);
  padding: 64px 32px;
  border-top: 1px solid #EAE7E1;
  border-bottom: 1px solid #EAE7E1;
}
.cred-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
  text-align: center;
}
.cred-item .cred-figure {
  font-family: 'Cormorant Garamond', serif;
  font-size: 38px;
  font-weight: 300;
  color: var(--navy);
  line-height: 1;
  display: block;
}
.cred-item .cred-label {
  font-size: 12px;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.4;
  margin-top: 8px;
  display: block;
}
.cred-item .cred-label strong {
  display: block;
  font-weight: 400;
  color: var(--charcoal);
  font-size: 13px;
}

/* ── HOME: CTA SECTION ── */
.cta-section {
  background: var(--navy);
  padding: 80px 32px;
  text-align: center;
}
.cta-section h2 {
  color: var(--warm-white);
  margin-bottom: 16px;
}
.cta-section p {
  color: var(--silver-lt);
  font-size: 16px;
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: var(--navy);
  padding: 64px 32px 56px;
  position: relative;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--silver), transparent);
}
.page-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.page-hero h1 { color: var(--warm-white); font-size: clamp(28px, 4vw, 44px); }
.page-hero .lead { color: var(--silver-lt); margin-top: 16px; max-width: 600px; }

/* ── ABOUT: CAREER SECTION ── */
.about-career {
  background: var(--warm-white);
  position: relative;
  overflow: hidden;
}
.values-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.v-word {
  position: absolute;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  color: var(--navy);
  opacity: 0.055;
  white-space: nowrap;
  user-select: none;
  line-height: 1;
}
.about-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}
.about-content p {
  margin-bottom: 1.4em;
  font-size: 15.5px;
  line-height: 1.85;
}
.about-content p:last-child { margin-bottom: 0; }

/* ── ABOUT: NAME SECTION ── */
.about-name {
  background: var(--parchment);
  padding: var(--section-pad);
  border-top: 1px solid #EAE7E1;
  border-bottom: 1px solid #EAE7E1;
}
.about-name-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.name-text p {
  font-size: 15.5px;
  line-height: 1.85;
  margin-bottom: 1.2em;
  color: var(--charcoal);
}
.name-text p:last-child { margin-bottom: 0; }
.name-display {
  text-align: center;
}
.name-display .word-quinarius {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 300;
  color: var(--navy);
  letter-spacing: 0.12em;
  display: block;
}
.name-display .word-latin {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--silver);
  letter-spacing: 0.15em;
  margin-top: 8px;
  display: block;
}

/* ── ABOUT: CREDENTIALS ── */
.credentials {
  background: var(--warm-white);
  padding: var(--section-pad);
}
.credentials-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.cred-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 32px;
  border: 1px solid #EAE7E1;
}
.cred-row {
  padding: 16px 24px;
  border-bottom: 1px solid #EAE7E1;
  font-size: 14px;
  color: var(--charcoal);
  display: flex;
  align-items: center;
  gap: 12px;
}
.cred-row::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
.cred-row:nth-child(odd) { border-right: 1px solid #EAE7E1; }
.cred-row:nth-last-child(-n+2):nth-child(odd),
.cred-row:last-child { border-bottom: none; }

/* ── SERVICES PAGE ── */
.service-section {
  padding: 72px 32px;
  border-bottom: 1px solid #EAE7E1;
}
.service-section:nth-child(even) { background: var(--parchment); }
.service-section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: start;
}
.service-meta { padding-top: 6px; }
.service-meta .service-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  font-weight: 300;
  color: #EAE7E1;
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}
.service-meta h2 {
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: 8px;
}
.service-meta .service-for {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--silver);
  font-weight: 400;
}
.service-body p {
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--charcoal);
  margin-bottom: 1.3em;
}
.service-body p:last-child { margin-bottom: 0; }

/* ── INSIGHTS PAGE ── */
.insights-intro {
  background: var(--warm-white);
  padding: var(--section-pad);
}
.insights-intro-inner {
  max-width: 680px;
  margin: 0 auto;
}
.insights-intro .lead {
  margin-bottom: 1.4em;
}
.insights-placeholder {
  background: var(--parchment);
  padding: var(--section-pad);
  border-top: 1px solid #EAE7E1;
}
.insights-placeholder-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
  padding: 48px 0;
}
.insights-placeholder p {
  font-size: 15px;
  color: var(--text-mid);
  max-width: 480px;
  margin: 16px auto 0;
}

/* ── CONTACT PAGE ── */
.contact-section {
  background: var(--warm-white);
  padding: var(--section-pad);
}
.contact-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 80px;
  align-items: start;
}
.contact-intro p {
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--charcoal);
  margin-bottom: 1.3em;
}
.contact-details {
  margin-top: 40px;
}
.contact-details p {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.8;
}
.contact-details a { color: var(--gold); }
.contact-details a:hover { text-decoration: underline; }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--silver);
  font-weight: 400;
}
input, select, textarea {
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: var(--charcoal);
  background: var(--warm-white);
  border: 1px solid #DDD9D2;
  padding: 11px 14px;
  width: 100%;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A8B4C0' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.required-note {
  font-size: 11px;
  color: var(--silver);
  margin-top: -8px;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  :root { --section-pad: 56px 20px; }
  .container { padding: 0 20px; }
  .site-nav { padding: 0 20px; }
  .nav-links { display: none; flex-direction: column; gap: 0; position: absolute; top: 72px; left: 0; right: 0; background: var(--warm-white); border-bottom: 1px solid #EAE7E1; padding: 16px 0; }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid #F0EDE7; }
  .nav-links a { display: block; padding: 12px 24px; letter-spacing: 0.12em; }
  .nav-toggle { display: flex; }
  .site-nav { position: relative; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: 16px; margin-top: 8px; }
  .footer-copy { flex-direction: column; align-items: flex-start; }
  .about-name-inner { grid-template-columns: 1fr; gap: 40px; }
  .name-display { text-align: left; }
  .service-section-inner { grid-template-columns: 1fr; gap: 24px; }
  .service-meta .service-num { font-size: 36px; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .form-row { grid-template-columns: 1fr; }
  .cred-list { grid-template-columns: 1fr; }
  .cred-row:nth-child(odd) { border-right: none; }
  .cred-row:nth-last-child(-n+2):nth-child(odd) { border-bottom: 1px solid #EAE7E1; }
  .cred-row:last-child { border-bottom: none; }
}
