/* Duncan Hospital School of Nursing — Shared Styles */
@import url(https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600;700&display=swap);
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #1e7db8;
  --red-dark: #0b2e4f;
  --navy: #0B2E4F;
  --teal: #0F6E56;
  --teal-light: #E1F5EE;
  --gold: #f0dfdf;
  --gold-light: #FAEEDA;
  --sky: #4FB6E6;
  --sky-soft: #E8F6FC;
  --text: #1a2330;
  --muted: #5b6b7c;
  --bg: #ffffff;
  --bg-soft: #f7f9fb;
  --border: #e6ebf0;
  --ff-head: 'Lora', Georgia, serif;
  --ff-body: 'Source Sans 3', system-ui, sans-serif;
  --shadow-sm: 0 2px 8px rgba(11,46,79,0.06);
  --shadow-md: 0 8px 28px rgba(11,46,79,0.10);
  --shadow-lg: 0 18px 50px rgba(11,46,79,0.14);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ===== Top utility bar ===== */
.topbar {
  background: linear-gradient(90deg, var(--navy), #143b66);
  color: rgba(255,255,255,0.9);
  font-size: 13px;
}
.topbar .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; gap: 14px; }
.topbar-info { display: flex; flex-wrap: wrap; gap: 22px; }
.topbar-info span { display: inline-flex; align-items: center; gap: 8px; }
.topbar-info svg { width: 14px; height: 14px; opacity: 0.8; }
.topbar-social { display: flex; gap: 12px; }
.topbar-social a { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,0.08); transition: all .25s; }
.topbar-social a:hover { background: var(--red); transform: translateY(-2px); }
.topbar-social svg { width: 13px; height: 13px; fill: #fff; }

/* ===== Header / Nav ===== */
.header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(8px);
}
.header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 54px;
  height: 54px;
  overflow: hidden; /* ensures circle crop */
  box-shadow: var(--shadow-sm);
  position: relative;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* prevents stretching */
  display: block;
}
.brand-mark::after { content: '+'; font-size: 28px; line-height: 1; color: var(--red); }
.brand-text strong { font-family: var(--ff-head); font-size: 17px; color: var(--navy); display: block; line-height: 1.1; }
.brand-text span { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text);
  padding: 10px 16px; border-radius: 8px;
  position: relative; transition: color .25s;
}
.nav a::after {
  content: ''; position: absolute; left: 16px; right: 16px; bottom: 4px;
  height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform .35s ease;
}
.nav a:hover { color: var(--red); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--red); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .3s; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 16px; border-bottom: 1px solid var(--border); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .25s; }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a { padding: 12px 8px; }
  .nav a::after { display: none; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 520px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(11,46,79,0.78), rgba(184,30,44,0.55)),
    url('https://images.unsplash.com/photo-1551601651-2a8555f1a136?auto=format&fit=crop&w=1800&q=80') center/cover no-repeat;
}
.hero-inner { max-width: 820px; padding: 80px 24px 110px; position: relative; z-index: 2; animation: fadeUp .9s ease both; }
.hero-eyebrow {
  display: inline-block;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: #fff; background: rgba(255,255,255,0.12);
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--ff-head); font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.15; margin-bottom: 14px;
  text-shadow: 0 4px 24px rgba(0,0,0,0.25);
}
.hero p { font-size: 17px; color: rgba(255,255,255,0.92); max-width: 640px; margin: 0 auto 26px; }
.hero-cta { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px;
  font-weight: 600; font-size: 14px; letter-spacing: 0.04em;
  cursor: pointer; border: none;
  transition: transform .25s, box-shadow .25s, background .25s;
}
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 10px 24px rgba(184,30,44,0.35); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(184,30,44,0.45); }
.btn-ghost { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.4); }
.btn-ghost:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }

/* Wave divider */
.hero-wave { position: absolute; bottom: -1px; left: 0; right: 0; line-height: 0; z-index: 3; }
.hero-wave svg { width: 100%; height: 80px; display: block; }

/* ===== Sections ===== */
section { padding: 70px 0; }
.section-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--red); margin-bottom: 10px;
}
.section-title {
  font-family: var(--ff-head); font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--navy); margin-bottom: 14px; line-height: 1.25;
}
.section-lead { color: var(--muted); max-width: 720px; margin-bottom: 36px; font-size: 16.5px; }
.section-head { margin-bottom: 40px; }
.section-head.center { text-align: center; }
.section-head.center .section-lead { margin-left: auto; margin-right: auto; }

.alt-bg { background: var(--bg-soft); }
.gradient-bg { background: linear-gradient(180deg, #fff 0%, var(--sky-soft) 100%); }

/* ===== Stats ===== */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px; margin-top: -60px; position: relative; z-index: 4;
}
.stat-card {
  background: #fff; border-radius: 16px; padding: 26px 22px;
  text-align: center; box-shadow: var(--shadow-md);
  border-top: 3px solid var(--red);
  transition: transform .35s, box-shadow .35s;
}
.stat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.stat-num { font-family: var(--ff-head); font-size: 2rem; font-weight: 700; color: var(--red); }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 4px; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 500; }

@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ===== Cards grid ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 28px 24px; transition: transform .35s, box-shadow .35s, border-color .35s;
  position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--red), var(--gold));
  transition: width .4s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card:hover::before { width: 100%; }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, var(--teal-light), var(--gold));
  color: #484848; display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 16px;
}
.card h4 { font-family: var(--ff-head); font-size: 1.15rem; color: var(--navy); margin-bottom: 8px; font-weight: 600; }
.card p { color: var(--muted); font-size: 14.5px; }

/* ===== Highlight band / mission ===== */
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .mission-grid { grid-template-columns: 1fr; } }
.mission-card {
  border-radius: 16px; padding: 30px;
  background: linear-gradient(135deg, var(--teal-light), var(--teal-light));
  box-shadow: var(--shadow-sm);
  transition: transform .35s;
}
.mission-card:hover { transform: translateY(-4px); }
.mission-card.alt { background: linear-gradient(135deg, var(--gold-light), var(--gold-light)); border-left-color: var(--gold); }
.mission-card h3 { font-family: var(--ff-head); color: var(--navy); font-size: 1.2rem; margin-bottom: 10px; }
.mission-card p { color: #3b4756; font-size: 15.5px; }

/* ===== Timeline ===== */
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 36px; }
.timeline::before { content: ''; position: absolute; left: 12px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--red), var(--gold)); border-radius: 2px; }
.timeline-item { position: relative; padding-bottom: 28px; }
.timeline-dot { position: absolute; left: -32px; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--red); box-shadow: 0 0 0 4px rgba(184,30,44,0.12); transition: transform .3s; }
.timeline-item:hover .timeline-dot { transform: scale(1.15); }
.timeline-year { font-family: var(--ff-head); font-weight: 700; color: var(--red); font-size: 1.1rem; margin-bottom: 4px; }
.timeline-text { color: var(--muted); font-size: 15.5px; }
.timeline-text strong { color: var(--navy); }

/* ===== Badges ===== */
.badges { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.badge { display: inline-block; background: var(--teal-light); color: #085041; font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 999px; letter-spacing: 0.03em; }
.badge-gold { background: var(--gold-light); color: #633806; }
.badge-red { background: #fde7ea; color: var(--red-dark); }

/* ===== Policy / legal pages ===== */
.legal { max-width: 880px; margin: 0 auto; }
.legal-meta { color: var(--muted); font-size: 13.5px; margin-bottom: 14px; padding: 10px 16px; background: var(--bg-soft); border-radius: 8px; display: inline-block; }
.legal-intro { color: var(--muted); margin-bottom: 36px; font-size: 16px; }
.policy-section { margin-bottom: 32px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.policy-section:last-child { border-bottom: 0; }
.policy-section h3 {
  font-family: var(--ff-head); font-size: 1.3rem; font-weight: 600;
  color: var(--navy); margin-bottom: 12px; display: flex; align-items: center; gap: 12px;
}
.policy-section h3 .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold));
  color: #484848; font-size: 14px; font-weight: 700;
}
.policy-section p, .policy-section li { color: #3b4756; font-size: 15.5px; line-height: 1.75; }
.policy-section p { margin-bottom: 10px; }
.policy-section ul { padding-left: 22px; margin: 8px 0 12px; }
.policy-section li { margin-bottom: 6px; }
.policy-section li strong { color: var(--navy); }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 50px; }
.contact-card {
  background: #fff; border-radius: 16px; padding: 28px 24px;
  border: 1px solid var(--border); transition: transform .3s, box-shadow .3s;
  position: relative; overflow: hidden;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.contact-card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--teal-light); color: #484848;
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px;
  font-size: 22px;
}
.contact-card h3 { font-family: var(--ff-head); font-size: 1.15rem; color: var(--navy); margin-bottom: 14px; }
.contact-card p { color: var(--text); margin-bottom: 8px; font-size: 14.5px; }
.contact-card span { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.5; }

.contact-form-wrap {
  background: linear-gradient(135deg, var(--sky-soft), var(--sky-soft));
  border-radius: 20px; padding: 40px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.contact-form-wrap h2 { font-family: var(--ff-head); color: var(--navy); margin-bottom: 8px; font-size: 1.6rem; }
.contact-form-wrap > p { color: var(--muted); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } .contact-form-wrap { padding: 28px 22px; } }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 12px; font-weight: 600; color: var(--navy); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.08em; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; background: #fff; border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 14px; font-size: 15px;
  font-family: var(--ff-body); color: var(--text);
  transition: border-color .25s, box-shadow .25s;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(184,30,44,0.12);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 12px; }

/* ===== Footer ===== */
.footer {
  background: var(--navy); color: rgba(255,255,255,0.78);
  padding: 56px 0 24px; margin-top: 60px;
  font-size: 14.5px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }

@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { color: #fff; font-family: var(--ff-head); font-size: 1.05rem; margin-bottom: 14px; font-weight: 600; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; text-align: center; font-size: 13px; color: rgba(255,255,255,0.55); }

/* ===== Animations ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Floating accent */
.floaty { animation: floaty 6s ease-in-out infinite; }
@keyframes floaty {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
