/* ===== GIFT CARD EDUCATION HUB — DESIGN SYSTEM ===== */
:root {
  --color-primary: #1B4F72;
  --color-secondary: #2E86C1;
  --color-accent: #F39C12;
  --color-accent-dark: #D68910;
  --color-success: #1E8449;
  --color-danger: #C0392B;
  --color-bg: #F8FAFB;
  --color-surface: #FFFFFF;
  --color-text: #2C3E50;
  --color-muted: #7F8C8D;
  --color-border: #D5DBDB;
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body: 'Arial', 'Helvetica Neue', Helvetica, sans-serif;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--color-text); background: var(--color-bg); line-height: 1.7; }
a { color: var(--color-secondary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
ul, ol { padding-left: 1.5rem; }

/* ===== SKIP TO CONTENT (ACCESSIBILITY) ===== */
.skip-link { position: absolute; top: -100px; left: 0; background: var(--color-primary); color: #fff; padding: 0.5rem 1rem; z-index: 9999; border-radius: 0 0 var(--radius) 0; font-size: 0.875rem; }
.skip-link:focus { top: 0; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.3; color: var(--color-primary); }
h1 { font-size: 2.4rem; margin-bottom: 1rem; }
h2 { font-size: 1.9rem; margin-bottom: 0.875rem; }
h3 { font-size: 1.4rem; color: var(--color-secondary); margin-bottom: 0.75rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
small { font-size: 0.875rem; color: var(--color-muted); }

/* ===== LAYOUT ===== */
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
.container--narrow { max-width: 800px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4rem 0; }
.section--sm { padding: 2.5rem 0; }
.section--lg { padding: 5rem 0; }
.section--dark { background: var(--color-primary); color: #fff; }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark p { color: #fff; }
.section--gray { background: #EBF5FB; }
.section--white { background: #fff; }

/* ===== NAV ===== */
.navbar { background: var(--color-primary); box-shadow: 0 2px 8px rgba(0,0,0,0.15); position: sticky; top: 0; z-index: 1000; }
.navbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 64px; }
.navbar__logo { display: flex; align-items: center; gap: 0.5rem; color: #fff; font-family: var(--font-heading); font-size: 1.2rem; font-weight: bold; text-decoration: none; flex-shrink: 0; }
.navbar__logo:hover { text-decoration: none; opacity: 0.9; }
.navbar__logo-icon { width: 36px; height: 36px; background: var(--color-accent); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.navbar__links { display: flex; align-items: center; gap: 0.25rem; list-style: none; padding: 0; margin: 0; flex-wrap: nowrap; }
.navbar__links li { position: relative; }
.navbar__links a { color: rgba(255,255,255,0.92); padding: 0.5rem 0.75rem; border-radius: 4px; font-size: 0.875rem; font-weight: 500; white-space: nowrap; display: flex; align-items: center; gap: 0.25rem; }
.navbar__links a:hover { background: rgba(255,255,255,0.12); text-decoration: none; color: #fff; }
.navbar__links a.active { background: rgba(255,255,255,0.18); color: #fff; }
.navbar__cta { background: var(--color-accent); color: #fff !important; padding: 0.5rem 1rem !important; border-radius: var(--radius); font-weight: 600; }
.navbar__cta:hover { background: var(--color-accent-dark) !important; }

/* Dropdown */
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { display: block; }
.dropdown { display: none; position: absolute; top: 100%; left: 0; background: #fff; min-width: 220px; box-shadow: var(--shadow-md); border-radius: var(--radius); padding: 0.5rem 0; z-index: 1001; border: 1px solid var(--color-border); }
.dropdown a { color: var(--color-text) !important; padding: 0.6rem 1rem !important; display: block; border-radius: 0 !important; font-size: 0.875rem; }
.dropdown a:hover { background: #EBF5FB !important; color: var(--color-primary) !important; }
.dropdown-arrow { font-size: 0.65rem; }

/* Mobile nav */
.navbar__hamburger { display: none; background: none; border: none; color: #fff; font-size: 1.4rem; cursor: pointer; padding: 0.5rem; }
.navbar__mobile { display: none; background: var(--color-primary); border-top: 1px solid rgba(255,255,255,0.1); }
.navbar__mobile.open { display: block; }
.navbar__mobile a { display: block; color: rgba(255,255,255,0.9); padding: 0.75rem 1.5rem; font-size: 0.9rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
.navbar__mobile a:hover { background: rgba(255,255,255,0.08); text-decoration: none; }
.navbar__mobile-group { padding: 0.5rem 1.5rem 0.25rem; font-size: 0.7rem; font-weight: bold; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-top: 0.5rem; }

/* ===== HERO ===== */
.hero { background: linear-gradient(135deg, #122A44 0%, var(--color-primary) 55%, #2471A3 100%); padding: 5rem 0 4rem; color: #fff; }
.hero h1 { color: #fff; font-size: 2.6rem; margin-bottom: 1rem; }
.hero__subtitle { font-size: 1.15rem; color: rgba(255,255,255,0.88); max-width: 640px; margin: 0 auto 2rem; }
.hero__badge { display: inline-block; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25); color: rgba(255,255,255,0.9); padding: 0.4rem 1rem; border-radius: 20px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.03em; margin-bottom: 1.5rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 2rem; }

/* ===== BUTTONS ===== */
.btn { display: inline-block; padding: 0.7rem 1.5rem; border-radius: var(--radius); font-weight: 600; font-size: 0.9rem; cursor: pointer; border: none; text-align: center; transition: background 0.15s, opacity 0.15s; text-decoration: none; }
.btn:hover { text-decoration: none; opacity: 0.9; }
.btn--primary { background: var(--color-accent); color: #fff; }
.btn--primary:hover { background: var(--color-accent-dark); color: #fff; opacity: 1; }
.btn--outline { background: transparent; border: 2px solid rgba(255,255,255,0.6); color: #fff; }
.btn--outline:hover { background: rgba(255,255,255,0.1); color: #fff; }
.btn--dark { background: var(--color-primary); color: #fff; }
.btn--dark:hover { background: #154060; color: #fff; opacity: 1; }
.btn--sm { padding: 0.45rem 1rem; font-size: 0.82rem; }

/* ===== CARDS ===== */
.card { background: var(--color-surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; }
.card--bordered { border: 1px solid var(--color-border); box-shadow: none; }
.card:hover { box-shadow: var(--shadow-md); }
.card-grid { display: grid; gap: 1.25rem; }
.card-grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card-grid--3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card-grid--4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.card__icon { font-size: 2rem; margin-bottom: 0.75rem; }
.card__title { font-family: var(--font-heading); font-size: 1.1rem; color: var(--color-primary); margin-bottom: 0.5rem; }
.card__body { font-size: 0.9rem; color: var(--color-muted); line-height: 1.6; }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero { background: var(--color-primary); padding: 3rem 0 2.5rem; color: #fff; }
.page-hero h1 { color: #fff; font-size: 2.2rem; margin-bottom: 0.75rem; }
.page-hero p { color: rgba(255,255,255,0.85); font-size: 1.05rem; max-width: 600px; }
.breadcrumb { font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-bottom: 0.75rem; }
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: #fff; }

/* ===== TABLES ===== */
.table-wrapper { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); margin: 1.5rem 0; }
table { width: 100%; border-collapse: collapse; background: #fff; font-size: 0.9rem; }
thead th { background: var(--color-primary); color: #fff; text-align: left; padding: 0.85rem 1rem; font-weight: 600; font-family: var(--font-heading); }
tbody tr:nth-child(even) { background: #F2F9FF; }
tbody td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--color-border); vertical-align: top; }
tbody tr:last-child td { border-bottom: none; }

/* ===== INFO/WARNING BOXES ===== */
.box { padding: 1.25rem 1.5rem; border-radius: var(--radius); margin: 1.5rem 0; }
.box--info { background: #D6EAF8; border-left: 4px solid var(--color-secondary); }
.box--info h4 { color: var(--color-primary); }
.box--warning { background: #FADBD8; border-left: 4px solid var(--color-danger); }
.box--warning h4 { color: var(--color-danger); }
.box--success { background: #D5F5E3; border-left: 4px solid var(--color-success); }
.box--success h4 { color: var(--color-success); }
.box--accent { background: #FEF9E7; border-left: 4px solid var(--color-accent); }
.box__title { font-weight: bold; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; }

/* ===== FAQ (details/summary) ===== */
.faq-item { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); margin-bottom: 0.75rem; overflow: hidden; }
.faq-item summary { padding: 1rem 1.25rem; cursor: pointer; font-weight: 600; font-family: var(--font-heading); color: var(--color-primary); list-style: none; display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.25rem; line-height: 1; color: var(--color-accent); flex-shrink: 0; transition: transform 0.15s; font-weight: 300; }
.faq-item[open] summary::after { content: '−'; }
.faq-item[open] summary { background: #EBF5FB; }
.faq-answer { padding: 1rem 1.25rem; font-size: 0.93rem; line-height: 1.75; border-top: 1px solid var(--color-border); }
.faq-category { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #fff; background: var(--color-secondary); padding: 0.25rem 0.75rem; border-radius: 20px; display: inline-block; margin-bottom: 1rem; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 1.25rem; }
label { display: block; font-weight: 600; font-size: 0.875rem; margin-bottom: 0.4rem; color: var(--color-text); }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; padding: 0.65rem 0.9rem; border: 1.5px solid var(--color-border); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.9rem; color: var(--color-text); background: #fff;
  transition: border-color 0.15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--color-secondary); box-shadow: 0 0 0 3px rgba(46,134,193,0.15); }
textarea { resize: vertical; min-height: 120px; }
.form-hint { font-size: 0.8rem; color: var(--color-muted); margin-top: 0.3rem; }
.consent-block { display: flex; gap: 0.75rem; align-items: flex-start; background: #f8f8f8; padding: 1rem; border-radius: var(--radius); border: 1px solid var(--color-border); }
.consent-block input[type="checkbox"] { margin-top: 0.2rem; flex-shrink: 0; width: 16px; height: 16px; }
.consent-block label { font-weight: normal; font-size: 0.85rem; margin-bottom: 0; }
.alert { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.25rem; font-size: 0.9rem; }
.alert--success { background: #D5F5E3; border: 1px solid #A9DFBF; color: var(--color-success); }
.alert--error { background: #FADBD8; border: 1px solid #F1948A; color: var(--color-danger); }

/* ===== COMMUNITY QUESTIONS ===== */
.question-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1rem; }
.question-card__meta { font-size: 0.78rem; color: var(--color-muted); margin-bottom: 0.5rem; display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }
.question-card__text { font-size: 0.92rem; color: var(--color-text); }
.badge { display: inline-block; font-size: 0.7rem; padding: 0.2rem 0.6rem; border-radius: 20px; font-weight: 600; }
.badge--pending { background: #FEF9E7; color: #9A7D0A; border: 1px solid #F9E79F; }
.badge--answered { background: #D5F5E3; color: var(--color-success); border: 1px solid #A9DFBF; }
.badge--us { background: #EBF5FB; color: var(--color-primary); }
.badge--ca { background: #FEF9E7; color: #C0392B; }

/* ===== CHECKLIST ===== */
.checklist { list-style: none; padding: 0; }
.checklist li { padding: 0.5rem 0; padding-left: 2rem; position: relative; border-bottom: 1px solid var(--color-border); }
.checklist li:last-child { border-bottom: none; }
.checklist li::before { content: '✓'; position: absolute; left: 0; color: var(--color-success); font-weight: bold; font-size: 1rem; }

/* ===== COMPARISON TABLE ===== */
.compare-row--highlight td { background: #EBF5FB !important; font-weight: 600; }

/* ===== STATS ===== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.stat-card { text-align: center; padding: 2rem 1.5rem; background: rgba(255,255,255,0.1); border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.15); }
.stat-card__num { font-size: 2.2rem; font-family: var(--font-heading); color: var(--color-accent); display: block; margin-bottom: 0.25rem; }
.stat-card__label { font-size: 0.9rem; color: rgba(255,255,255,0.8); }

/* ===== FOOTER ===== */
.footer { background: #0D2B42; color: rgba(255,255,255,0.75); padding: 3.5rem 0 0; }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem; margin-bottom: 2.5rem; }
.footer__col-title { font-family: var(--font-heading); color: #fff; font-size: 0.95rem; margin-bottom: 1rem; }
.footer__links { list-style: none; padding: 0; }
.footer__links li { margin-bottom: 0.45rem; }
.footer__links a { color: rgba(255,255,255,0.65); font-size: 0.875rem; }
.footer__links a:hover { color: #fff; text-decoration: none; }
.footer__about { font-size: 0.85rem; line-height: 1.6; color: rgba(255,255,255,0.6); }
.footer__bottom { background: #081C2D; padding: 1.25rem 0; font-size: 0.78rem; color: rgba(255,255,255,0.45); text-align: center; }
.footer__disclaimer { background: #F9E79F; color: #5D4037; padding: 0.75rem 1.5rem; text-align: center; font-size: 0.8rem; font-weight: 600; border-radius: var(--radius); margin-bottom: 2rem; }

/* ===== PAGE CONTENT ===== */
.content h2 { margin-top: 2.5rem; padding-top: 1rem; border-top: 2px solid var(--color-border); }
.content h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.content h3 { margin-top: 1.75rem; }
.content ul, .content ol { margin-bottom: 1rem; }
.content li { margin-bottom: 0.4rem; }

/* ===== STEP LIST ===== */
.steps { list-style: none; padding: 0; counter-reset: step-counter; }
.steps li { counter-increment: step-counter; padding: 1rem 1rem 1rem 3.5rem; margin-bottom: 0.75rem; background: #fff; border-radius: var(--radius); border: 1px solid var(--color-border); position: relative; }
.steps li::before { content: counter(step-counter); position: absolute; left: 1rem; top: 1rem; width: 2rem; height: 2rem; background: var(--color-primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 0.85rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  .hero h1 { font-size: 1.9rem; }
  .hero__subtitle { font-size: 1rem; }
  .navbar__links { display: none; }
  .navbar__hamburger { display: block; }
  .section, .section--lg { padding: 2.5rem 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
  .hero__ctas { flex-direction: column; align-items: center; }
}
