/* ============================================================
   wttcm.com — Benedictus Technology Services
   Shared stylesheet — all pages include this one file
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Source+Sans+3:wght@300;400;600&display=swap');

/* ── Design tokens ── */
:root {
  --navy:       #0A1628;
  --navy-mid:   #152645;
  --navy-light: #1E3A6E;
  --gold:       #C9A84C;
  --gold-light: #E8C96A;
  --gold-dim:   #8C7035;
  --red:        #B22234;
  --cream:      #F5F0E8;
  --cream-dark: #E2DDD4;
  --parchment:  #F0EDE6;
  --text-body:  #2A2420;
  --text-muted: #5A5248;
  --white:      #FFFFFF;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Source Sans 3', system-ui, sans-serif;

  --radius:     6px;
  --radius-lg:  12px;
  --shadow:     0 2px 12px rgba(10,22,40,0.12);
  --shadow-lg:  0 6px 32px rgba(10,22,40,0.18);

  --max-w: 1100px;
  --nav-h: 64px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--cream);
}
img { max-width: 100%; display: block; }
a { color: var(--navy-light); text-decoration: none; }
a:hover { color: var(--gold); }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.25;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; font-family: var(--font-sans); letter-spacing: .04em; text-transform: uppercase; color: var(--gold-dim); }
p  { margin-bottom: 1rem; color: var(--text-body); }
p:last-child { margin-bottom: 0; }

.lead { font-size: 1.15rem; color: var(--text-muted); line-height: 1.8; }

/* ── Layout helpers ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-dark { background: var(--navy); color: var(--cream); }
.section-dark h2, .section-dark h3 { color: var(--cream); }
.section-dark p, .section-dark .lead { color: var(--cream-dark); }
.section-mid  { background: var(--navy-mid); }
.section-parchment { background: var(--parchment); }

.text-center { text-align: center; }
.text-gold   { color: var(--gold); }
.text-red    { color: var(--red); }
.text-muted  { color: var(--text-muted); }

/* ── Divider ornament ── */
.ornament {
  display: flex; align-items: center; gap: 1rem;
  margin: 1.5rem 0; color: var(--gold);
  font-size: .85rem; letter-spacing: .15em;
}
.ornament::before, .ornament::after {
  content: ''; flex: 1; height: 1px; background: var(--gold-dim); opacity: .4;
}
.section-dark .ornament { color: var(--gold-light); }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: .7rem 1.75rem;
  font-family: var(--font-sans);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .04em;
  border-radius: var(--radius);
  transition: all .2s ease;
  cursor: pointer;
  border: none;
  text-align: center;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover { background: var(--gold-light); color: var(--navy); transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid var(--gold-dim);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-1px); }

.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy-light);
}
.btn-outline-dark:hover { border-color: var(--navy); background: var(--navy); color: var(--cream); }

/* ── Navigation ── */
#site-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(201,168,76,0.2);
  height: var(--nav-h);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem;
}
.nav-brand {
  display: flex; flex-direction: column; line-height: 1.1;
  text-decoration: none;
}
.nav-brand-name {
  font-family: var(--font-serif);
  font-size: 1.15rem; font-weight: 700;
  color: var(--cream); letter-spacing: .01em;
}
.nav-brand-sub {
  font-size: .65rem; letter-spacing: .12em;
  color: var(--gold-dim); text-transform: uppercase;
}
.nav-links {
  display: flex; align-items: center; gap: .25rem;
  list-style: none;
}
.nav-links a {
  display: block; padding: .45rem .8rem;
  font-size: .85rem; font-weight: 600; letter-spacing: .03em;
  color: var(--cream-dark); border-radius: var(--radius);
  transition: color .15s, background .15s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--gold); background: rgba(201,168,76,0.08);
}
.nav-links .nav-cta a {
  background: var(--gold); color: var(--navy); padding: .4rem 1rem;
}
.nav-links .nav-cta a:hover { background: var(--gold-light); color: var(--navy); }

/* Mobile nav */
.nav-toggle {
  display: none; background: none; border: none;
  cursor: pointer; padding: .5rem; color: var(--cream);
  font-size: 1.4rem;
}
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; flex-direction: column; align-items: flex-start;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--navy); padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(201,168,76,0.2);
    gap: .1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: .6rem .8rem; }
}

/* ── Page hero ── */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 60%, var(--navy-light) 100%);
  color: var(--cream);
  padding: 5rem 0 4rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9A84C' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero h1 { color: var(--cream); }
.hero .lead { color: var(--cream-dark); }
.hero-eyebrow {
  font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: .75rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

/* ── Page header (interior pages, smaller than hero) ── */
.page-header {
  background: var(--navy);
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid rgba(201,168,76,0.15);
}
.page-header h1 { color: var(--cream); font-size: clamp(1.6rem, 4vw, 2.4rem); }
.page-header .lead { color: var(--cream-dark); margin-top: .5rem; }
.page-header .hero-eyebrow { margin-bottom: .5rem; }

/* ── Cards ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-icon {
  font-size: 1.75rem; margin-bottom: 1rem;
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  background: var(--parchment); border-radius: var(--radius);
}
.card h3 { margin-bottom: .5rem; }
.card .card-tag {
  display: inline-block; margin-bottom: .75rem;
  font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold-dim); background: var(--parchment);
  padding: .2rem .6rem; border-radius: 3px;
}

/* ── Stat bar ── */
.stat-bar {
  display: flex; flex-wrap: wrap; gap: 0;
  background: var(--navy-mid);
  border-top: 1px solid rgba(201,168,76,0.15);
  border-bottom: 1px solid rgba(201,168,76,0.15);
}
.stat-item {
  flex: 1; min-width: 140px;
  padding: 1.75rem 1.5rem; text-align: center;
  border-right: 1px solid rgba(201,168,76,0.1);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-serif); font-size: 2.2rem; font-weight: 700;
  color: var(--gold); display: block; line-height: 1;
}
.stat-label { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cream-dark); margin-top: .35rem; }

/* ── Feature list ── */
.feature-list { list-style: none; }
.feature-list li {
  padding: .4rem 0;
  padding-left: 1.4rem;
  position: relative;
  color: var(--text-body);
  font-size: .95rem;
}
.feature-list li::before {
  content: '✦';
  position: absolute; left: 0;
  color: var(--gold); font-size: .6rem; top: .55rem;
}
.section-dark .feature-list li { color: var(--cream-dark); }
.section-dark .feature-list li::before { color: var(--gold-light); }

/* ── Service detail blocks ── */
.service-block {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start;
  padding: 3rem 0; border-bottom: 1px solid var(--cream-dark);
}
.service-block:last-child { border-bottom: none; }
.service-block.reverse { direction: rtl; }
.service-block.reverse > * { direction: ltr; }
@media (max-width: 700px) {
  .service-block { grid-template-columns: 1fr; gap: 1.5rem; direction: ltr; }
}

/* ── Badge / credential chips ── */
.badge-row { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  background: rgba(201,168,76,0.12); border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold-light); font-size: .72rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .3rem .75rem; border-radius: 3px;
}

/* ── Support hub cards ── */
.support-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 1rem;
}
.support-card h3 { margin-bottom: .25rem; }
.support-card .support-type {
  font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-dim);
}

/* ── FAQ accordion ── */
.faq-list { list-style: none; }
.faq-item { border-bottom: 1px solid var(--cream-dark); }
.faq-item:first-child { border-top: 1px solid var(--cream-dark); }
.faq-question {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem 0;
  font-family: var(--font-serif); font-size: 1rem; font-weight: 600;
  color: var(--navy); text-align: left; gap: 1rem;
}
.faq-question .faq-icon { color: var(--gold); font-size: 1.1rem; flex-shrink: 0; transition: transform .25s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-answer-inner { padding-bottom: 1.25rem; color: var(--text-muted); font-size: .95rem; line-height: 1.75; }
.faq-answer-inner p { margin-bottom: .5rem; }
.faq-answer-inner ul { margin: .5rem 0 .5rem 1.25rem; }
.faq-answer-inner li { margin-bottom: .25rem; }

/* ── App card ── */
.app-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.app-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.app-card-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 2rem; display: flex; align-items: center; gap: 1.25rem;
}
.app-icon {
  width: 64px; height: 64px; border-radius: 14px;
  background: var(--gold); display: flex; align-items: center; justify-content: center;
  font-size: 2rem; flex-shrink: 0;
}
.app-card-header h3 { color: var(--cream); margin-bottom: .2rem; }
.app-card-header p  { color: var(--cream-dark); font-size: .9rem; margin: 0; }
.app-card-body { padding: 1.5rem; }
.app-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.25rem; }

/* ── Tools ── */
.tool-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: 2rem; box-shadow: var(--shadow);
}
.tool-card h3 { margin-bottom: .5rem; }

/* ── Footer ── */
#site-footer {
  background: var(--navy);
  border-top: 1px solid rgba(201,168,76,0.15);
  padding: 3rem 0 2rem;
  color: var(--cream-dark);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand-name {
  font-family: var(--font-serif); font-size: 1.1rem; font-weight: 700;
  color: var(--cream); margin-bottom: .35rem;
}
.footer-brand-sub { font-size: .75rem; letter-spacing: .1em; color: var(--gold-dim); text-transform: uppercase; }
.footer-desc { font-size: .875rem; color: var(--text-muted); margin-top: .75rem; line-height: 1.6; }
.footer-col h4 { font-family: var(--font-sans); font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gold-dim); margin-bottom: .75rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .4rem; }
.footer-col a { font-size: .875rem; color: var(--cream-dark); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem;
  font-size: .8rem; color: var(--text-muted);
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--gold); }

/* ── Utility ── */
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.gap-2 { gap: 1rem; }
