/* =============================================
   SMS IT Support Hub — Shared Stylesheet
   The Sisters of Mary Schools
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@500;600&display=swap');

:root {
  /* === Brand accent colors (use for small elements only) === */
  --sms-blue:        #0000ff;
  --sms-white:       #ffffff;
  --palatinate:      #2a2aff;
  --risd-blue:       #5555ff;
  --tropical-indigo: #8080ff;
  --federal-blue:    #04045d;
  --navy-blue:       #00008a;
  --dark-blue:       #0000b3;

  /* === Structural colors (comfortable for large areas, WCAG AA+) === */
  --struct-deep:     #1a3a8a;   /* Header, footer, page-hero start */
  --struct-mid:      #2d5cc8;   /* Buttons, step circles, interactive */
  --struct-light:    #4b72e0;   /* Hero gradient mid, card borders */
  --struct-soft:     #7799ee;   /* Hero gradient end, subtle accents */
  --link-color:      #1a4bc4;   /* Body text links — 7.3:1 on white */

  /* === Marian gold === */
  --gold:            #b8942e;
  --gold-light:      #f5e6b0;

  /* === Neutrals === */
  --body-text:       #1a1a3e;   /* Near-black with blue tint */
  --gray-text:       #374151;   /* Secondary text */
  --gray-light:      #f5f7fc;   /* Page background */
  --gray-mid:        #dde3f0;   /* Dividers, borders */
  --card-bg:         #ffffff;

  /* === Shadows === */
  --shadow-sm:       0 1px 6px rgba(26,58,138,0.08);
  --shadow-md:       0 2px 16px rgba(26,58,138,0.11);
  --shadow-hover:    0 6px 28px rgba(26,58,138,0.18);

  --radius:          12px;
  --transition:      0.2s ease;
}

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

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

body {
  font-family: 'Segoe UI', system-ui, Arial, sans-serif;
  background: var(--gray-light);
  color: var(--body-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

a { color: var(--link-color); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--struct-deep); text-decoration: underline; }

img { max-width: 100%; display: block; }

/* ================================================================
   HEADER
   Structural deep blue — calm, professional, WCAG AAA for white text
   ================================================================ */
.site-header {
  background: var(--struct-deep);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(26,58,138,0.25);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-wrap:hover { text-decoration: none; }

.logo-wrap img {
  height: 44px;
  width: 44px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text .school-name {
  color: var(--sms-white);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

.logo-text .site-label {
  color: var(--gold-light);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--sms-white);
  border-radius: 2px;
  transition: var(--transition);
}

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 11px;
  border-radius: 6px;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(255,255,255,0.14);
  color: var(--sms-white);
  text-decoration: none;
}

/* ================================================================
   HERO (home page)
   Comfortable gradient — deep to mid blue, no harsh saturation
   ================================================================ */
.hero {
  background: linear-gradient(140deg, var(--struct-deep) 0%, var(--struct-mid) 55%, var(--struct-light) 100%);
  color: var(--sms-white);
  padding: 72px 24px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin-bottom: 30px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.95);
  color: var(--struct-deep);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 30px;
  border-radius: 8px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

.hero-btn:hover {
  background: var(--gold-light);
  color: var(--struct-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  text-decoration: none;
}

/* ================================================================
   PAGE HEADER (inner pages)
   ================================================================ */
.page-hero {
  background: linear-gradient(140deg, var(--struct-deep) 0%, var(--struct-mid) 100%);
  color: var(--sms-white);
  padding: 40px 24px 36px;
  position: relative;
  overflow: hidden;
}


.page-hero-inner {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
}

.breadcrumb a { color: rgba(255,255,255,0.65); }
.breadcrumb a:hover { color: var(--sms-white); text-decoration: none; }
.breadcrumb span { color: rgba(255,255,255,0.35); }

.page-hero-icon {
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  margin-bottom: 14px;
}

.page-hero h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.page-hero p {
  color: rgba(255,255,255,0.82);
  font-size: 1rem;
  line-height: 1.65;
}

/* ================================================================
   MAIN CONTENT
   ================================================================ */
.main-content {
  flex: 1;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  padding: 40px 24px 60px;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--struct-deep);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gray-mid);
}

/* ================================================================
   TOPIC CARDS
   ================================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.topic-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 28px 24px;
  border-left: 4px solid var(--struct-light);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.topic-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  color: inherit;
  text-decoration: none;
}

.card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--struct-mid), var(--struct-soft));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.card-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--struct-deep);
}

.card-desc {
  font-size: 0.88rem;
  color: var(--gray-text);
  line-height: 1.6;
  flex: 1;
}

.card-arrow {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--struct-mid);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ================================================================
   QUICK LINKS
   ================================================================ */
.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 40px;
}

.quick-link {
  background: var(--card-bg);
  border: 1.5px solid var(--gray-mid);
  border-radius: 8px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--struct-deep);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.quick-link:hover {
  border-color: var(--struct-mid);
  background: #eef3ff;
  color: var(--struct-deep);
  transform: translateY(-1px);
  text-decoration: none;
}

.quick-link-icon {
  font-size: 1.15rem;
  width: 26px;
  text-align: center;
}

/* ================================================================
   STEP CARDS
   ================================================================ */
.steps-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}

.step-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 22px 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  background: var(--struct-mid);
  color: var(--sms-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
}

.step-body { flex: 1; }

.step-body h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--struct-deep);
  margin-bottom: 6px;
}

.step-body p {
  font-size: 0.9rem;
  color: var(--gray-text);
  line-height: 1.65;
}

.step-body .step-tip {
  margin-top: 10px;
  background: #eef3ff;
  border-left: 3px solid var(--struct-light);
  border-radius: 0 6px 6px 0;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--struct-deep);
}

.step-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  background: var(--struct-mid);
  color: var(--sms-white);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 6px;
  transition: background var(--transition), transform var(--transition);
  text-decoration: none;
}

.step-link:hover {
  background: var(--struct-deep);
  color: var(--sms-white);
  transform: translateY(-1px);
  text-decoration: none;
}

/* ================================================================
   ALERT BOXES
   ================================================================ */
.alert {
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.alert-icon { font-size: 1.15rem; flex-shrink: 0; margin-top: 2px; }

.alert-info {
  background: #eef3ff;
  border-left: 4px solid var(--struct-light);
  color: var(--struct-deep);
}

.alert-warning {
  background: #fffbeb;
  border-left: 4px solid #d97706;
  color: #78350f;
}

.alert-success {
  background: #ecfdf5;
  border-left: 4px solid #059669;
  color: #064e3b;
}

/* ================================================================
   FAQ ACCORDION
   ================================================================ */
.faq-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 36px; }

details.faq-item {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--struct-light);
  overflow: hidden;
}

details.faq-item summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--struct-deep);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  user-select: none;
}

details.faq-item summary::-webkit-details-marker { display: none; }

details.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  flex-shrink: 0;
  color: var(--struct-mid);
  transition: transform var(--transition);
}

details.faq-item[open] > summary { border-bottom: 1px solid var(--gray-mid); }
details.faq-item[open] summary::after { content: '−'; }

.faq-body {
  padding: 14px 20px 18px;
  font-size: 0.9rem;
  color: var(--gray-text);
  line-height: 1.7;
}

.faq-body p + p { margin-top: 10px; }

/* ================================================================
   TIPS GRID
   ================================================================ */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}

.tip-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 20px;
  border-top: 3px solid var(--struct-light);
}

.tip-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.tip-app-icon { font-size: 1.45rem; }

.tip-card h3 {
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--struct-deep);
}

.tip-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tip-list li {
  font-size: 0.87rem;
  color: var(--gray-text);
  padding-left: 20px;
  position: relative;
  line-height: 1.55;
}

.tip-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--struct-mid);
  font-weight: 700;
}

/* ================================================================
   STICKY HELP BUTTON
   ================================================================ */
.sticky-help {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
}

.sticky-help a {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--struct-mid);
  color: var(--sms-white);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 22px;
  border-radius: 50px;
  box-shadow: 0 4px 18px rgba(45,92,200,0.40);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}

.sticky-help a:hover {
  background: var(--struct-deep);
  color: var(--sms-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(26,58,138,0.50);
  text-decoration: none;
}

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  background: var(--struct-deep);
  color: rgba(255,255,255,0.75);
  padding: 40px 24px 0;
  margin-top: auto;
}

.footer-inner { max-width: 1100px; margin: 0 auto; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}

.footer-brand .logo-wrap { margin-bottom: 12px; }

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.62);
}

.footer-col h4 {
  color: var(--sms-white);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }

.footer-col ul li a {
  color: rgba(255,255,255,0.62);
  font-size: 0.85rem;
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--sms-white); text-decoration: none; }

/* Father Al quote strip */
.footer-motto {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 20px 24px;
  text-align: center;
  font-family: 'Dancing Script', cursive;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--gold-light);
  font-style: normal;
  line-height: 1.8;
  opacity: 0.92;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.footer-motto cite {
  display: block;
  font-family: 'Segoe UI', system-ui, Arial, sans-serif;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-top: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 14px 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.76rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--sms-white); text-decoration: none; }

/* ================================================================
   SECTION LAYOUT
   ================================================================ */
.content-section { margin-bottom: 48px; }

.section-intro {
  font-size: 0.95rem;
  color: var(--gray-text);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--struct-deep);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    gap: 2px;
    box-shadow: 0 8px 24px rgba(26,58,138,0.3);
  }

  .site-nav.open { display: flex; }

  .site-nav a {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  .step-card { flex-direction: column; gap: 12px; }

  .hero { padding: 52px 20px 48px; }

  .main-content { padding: 28px 16px 60px; }

  .sticky-help a { padding: 12px 18px; font-size: 0.85rem; }
}

@media (max-width: 480px) {
  .cards-grid { grid-template-columns: 1fr; }
  .tips-grid { grid-template-columns: 1fr; }
  .quick-links-grid { grid-template-columns: 1fr 1fr; }
}
