/* ============================================================
   ATLAS MEDICAL COMPANY — GLOBAL STYLES
   ============================================================ */

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

:root {
  --navy:       #0B1F3A;
  --navy-mid:   #122649;
  --navy-light: #1A3560;
  --gold:       #C9A84C;
  --gold-light: #E8C96A;
  --gold-pale:  #F5EDD6;
  --white:      #FFFFFF;
  --off-white:  #F7F9FC;
  --gray-light: #EBF0F5;
  --gray-text:  #5A6A7A;
  --text-dark:  #0B1F3A;
  --success:    #3B6D11;
  --success-bg: #EAF3DE;
  --error:      #A32D2D;
  --error-bg:   #FCEBEB;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--text-dark);
  overflow-x: hidden;
}

/* ── Typography ── */
h1, h2, h3 { font-family: 'Playfair Display', serif; }
.section-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 0.75rem;
}
.section-title {
  font-family: 'Playfair Display', serif; font-size: 38px;
  font-weight: 700; color: var(--navy); line-height: 1.2; margin-bottom: 1.25rem;
}
.section-sub {
  font-size: 17px; color: var(--gray-text); line-height: 1.7;
  max-width: 640px; font-weight: 300;
}
.section-title.light { color: var(--white); }
.section-sub.light   { color: rgba(255,255,255,0.6); }
.section-label.light { color: rgba(201,168,76,0.8); }

/* ── Layout ── */
section { padding: 6rem 3rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }

/* ── Buttons ── */
.btn-primary {
  background: var(--gold); color: var(--navy);
  padding: 13px 26px; border-radius: 4px; font-size: 14px;
  font-weight: 700; text-decoration: none; letter-spacing: 0.04em;
  display: inline-block; transition: background 0.2s, transform 0.15s;
  border: none; cursor: pointer; font-family: 'DM Sans', sans-serif;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-ghost {
  border: 1px solid rgba(255,255,255,0.3); color: var(--white);
  padding: 13px 26px; border-radius: 4px; font-size: 14px;
  font-weight: 500; text-decoration: none; letter-spacing: 0.04em;
  display: inline-block; transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-navy {
  background: var(--navy); color: var(--white);
  padding: 14px 30px; border-radius: 4px; font-size: 14px;
  font-weight: 700; text-decoration: none; letter-spacing: 0.04em;
  display: inline-block; transition: background 0.2s;
  border: none; cursor: pointer; font-family: 'DM Sans', sans-serif;
}
.btn-navy:hover { background: var(--navy-light); }

/* ── NAV ── */
nav {
  background: var(--navy); padding: 0 3rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; position: sticky; top: 0; z-index: 200;
  border-bottom: 2px solid var(--gold);
}
.nav-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.nav-brand { color: var(--white); font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 600; letter-spacing: 0.02em; }
.nav-brand span { color: var(--gold); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 14px; font-weight: 500; letter-spacing: 0.03em; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-cta {
  background: var(--gold); color: var(--navy); padding: 9px 22px;
  border-radius: 4px; font-size: 13px; font-weight: 700;
  text-decoration: none; letter-spacing: 0.04em; transition: background 0.2s;
  border: none; cursor: pointer; font-family: 'DM Sans', sans-serif;
}
.nav-cta:hover { background: var(--gold-light); }

/* ── TRUST BAR ── */
.trust-bar {
  background: var(--gold); padding: 0.9rem 3rem;
  display: flex; align-items: center; justify-content: center;
  gap: 2.5rem; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 8px;
  color: var(--navy); font-size: 13px; font-weight: 600; letter-spacing: 0.03em;
}
.trust-sep { color: var(--navy); opacity: 0.3; font-size: 18px; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: var(--navy);
  background-image: linear-gradient(135deg, #0B1F3A 0%, #1A3560 100%);
  padding: 5rem 3rem;
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; bottom: -100px; right: 40px;
  width: 500px; height: 500px;
  border: 1px solid rgba(201,168,76,0.07); border-radius: 50%;
}
.page-hero-inner { max-width: 1100px; margin: 0 auto; position: relative; z-index: 2; }
.page-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,168,76,0.12); border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold); font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 2px; margin-bottom: 1.25rem;
}
.page-hero h1 {
  font-family: 'Playfair Display', serif; font-size: 48px; font-weight: 700;
  color: var(--white); line-height: 1.12; margin-bottom: 1rem;
}
.page-hero h1 em { color: var(--gold); font-style: normal; }
.page-hero p { font-size: 17px; color: rgba(255,255,255,0.65); line-height: 1.7; max-width: 620px; font-weight: 300; }

/* ── CARDS ── */
.card {
  background: var(--off-white); border: 1px solid var(--gray-light);
  border-radius: 8px; padding: 2rem; position: relative; overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--gold); transform: translateY(-3px); }
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}
.card:hover::before { transform: scaleX(1); }
.card-icon {
  width: 48px; height: 48px; background: var(--navy); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; color: var(--gold);
}
.card h3 { font-size: 17px; font-weight: 600; color: var(--navy); margin-bottom: 0.75rem; font-family: 'DM Sans', sans-serif; }
.card p  { font-size: 14px; color: var(--gray-text); line-height: 1.7; }

/* ── FORM ── */
.form-row     { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group   { display: flex; flex-direction: column; margin-bottom: 1rem; }
.form-group label {
  font-size: 12px; font-weight: 600; color: var(--navy);
  letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  border: 1px solid var(--gray-light); border-radius: 4px;
  padding: 11px 14px; font-size: 14px; font-family: 'DM Sans', sans-serif;
  color: var(--text-dark); background: var(--off-white);
  transition: border-color 0.2s, background 0.2s; outline: none; width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); background: var(--white); }
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235A6A7A' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
.form-group textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
.form-submit {
  width: 100%; background: var(--navy); color: var(--white); border: none;
  border-radius: 4px; padding: 15px; font-size: 15px; font-weight: 700;
  font-family: 'DM Sans', sans-serif; letter-spacing: 0.04em; cursor: pointer;
  transition: background 0.2s; margin-top: 0.5rem;
}
.form-submit:hover { background: var(--navy-light); }
.form-note { font-size: 12px; color: var(--gray-text); text-align: center; margin-top: 0.75rem; line-height: 1.5; }
.form-error-msg {
  background: var(--error-bg); border: 1px solid #F7C1C1; border-radius: 4px;
  padding: 10px 14px; font-size: 13px; color: var(--error); margin-bottom: 1rem; display: none;
}
.form-success { display: none; text-align: center; padding: 2rem 1rem; }
.form-success-icon {
  width: 60px; height: 60px; background: var(--success-bg); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem;
}
.form-success h3 { font-size: 20px; font-weight: 600; color: var(--navy); margin-bottom: 0.5rem; font-family: 'DM Sans', sans-serif; }
.form-success p  { font-size: 14px; color: var(--gray-text); line-height: 1.6; }

/* ── FOOTER ── */
footer { background: #060f1e; padding: 3rem; }
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem;
}
.footer-brand { font-family: 'Playfair Display', serif; color: var(--white); font-size: 18px; margin-bottom: 8px; }
.footer-brand span { color: var(--gold); }
.footer-tagline { font-size: 13px; color: rgba(255,255,255,0.4); line-height: 1.6; margin-bottom: 1rem; }
.footer-contact a { display: block; color: rgba(255,255,255,0.5); text-decoration: none; font-size: 13px; margin-bottom: 4px; transition: color 0.2s; }
.footer-contact a:hover { color: var(--gold); }
.footer-col h4 { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.footer-col a  { display: block; color: rgba(255,255,255,0.45); text-decoration: none; font-size: 13px; margin-bottom: 8px; transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  max-width: 1100px; margin: 2rem auto 0; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(255,255,255,0.25);
}

/* ── MODAL ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(6,15,30,0.85);
  z-index: 1000; display: none; align-items: center; justify-content: center;
  padding: 1rem;
}
.modal-overlay.active { display: flex; }
.modal-box {
  background: var(--white); border-radius: 12px; width: 100%; max-width: 640px;
  max-height: 90vh; overflow-y: auto; position: relative;
  animation: modalIn 0.2s ease;
}
@keyframes modalIn { from { opacity:0; transform: translateY(16px); } to { opacity:1; transform: translateY(0); } }
.modal-header {
  background: var(--navy); padding: 1.75rem 2rem;
  border-bottom: 2px solid var(--gold); border-radius: 12px 12px 0 0;
  display: flex; justify-content: space-between; align-items: center;
}
.modal-header h3 { font-family: 'Playfair Display', serif; color: var(--white); font-size: 20px; font-weight: 700; margin: 0; }
.modal-header p  { color: rgba(255,255,255,0.55); font-size: 13px; margin: 4px 0 0; }
.modal-close {
  background: none; border: none; color: rgba(255,255,255,0.5); cursor: pointer;
  font-size: 24px; line-height: 1; padding: 0; transition: color 0.2s; flex-shrink: 0;
}
.modal-close:hover { color: var(--gold); }
.modal-body { padding: 2rem; }

/* ── MISC ── */
.gold-divider { width: 48px; height: 3px; background: var(--gold); margin: 1.25rem 0; }
.check-list { list-style: none; padding: 0; }
.check-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 15px; color: var(--gray-text); line-height: 1.6; margin-bottom: 0.75rem;
}
.check-list li::before {
  content: ''; width: 20px; height: 20px; background: var(--gold); border-radius: 50%;
  flex-shrink: 0; margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1F3A' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px; background-repeat: no-repeat; background-position: center;
}

@media (max-width: 768px) {
  nav { padding: 0 1.5rem; }
  .nav-links { display: none; }
  section { padding: 4rem 1.5rem; }
  .section-title { font-size: 28px; }
  .page-hero h1 { font-size: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .trust-bar { gap: 1rem; padding: 1rem; }
}
