/* =============================================
   Watch Takes Courage — Global Styles
   Brand: #FFC121 (yellow) + #141414 (near-black)
   Font: Inter (Google Fonts)
   ============================================= */

:root {
  /* ── WTC Brand Colors ── */
  --black:     #141414;   /* WTC near-black (primary bg) */
  --black-mid: #1c1c1c;
  --black-light:#2a2a2a;
  --yellow:    #FFC121;   /* WTC primary yellow */
  --yellow-light:#FFD060;
  --yellow-dark: #E5A800;
  --yellow-pale: #FFF8E1; /* soft yellow tint for light sections */

  /* ── UI Colors ── */
  --white:     #ffffff;
  --off-white: #fafafa;
  --gray-light:#f2f2f2;
  --gray:      #888888;
  --gray-dark: #555555;
  --red:       #e53935;
  --green:     #2e7d32;
  --text:      #141414;

  /* ── Aliases for component compatibility ── */
  --navy:       var(--black);
  --navy-mid:   var(--black-mid);
  --navy-light: var(--black-light);
  --gold:       var(--yellow);
  --gold-light: var(--yellow-light);
  --cream:      var(--yellow-pale);
  --cream-dark: #ffe8a0;

  /* ── Radii / Shadows / Timing ── */
  --radius:    8px;
  --radius-sm: 4px;
  --radius-lg: 16px;
  --shadow:    0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.18);
  --transition: all 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-weight: 400;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--black);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p  { color: var(--gray-dark); }

a { color: var(--yellow-dark); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--yellow); }

/* ── Navbar ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--black);
  border-bottom: 3px solid var(--yellow);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.navbar-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--yellow);
  flex-shrink: 0;
}

.navbar-title {
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
}
.navbar-title span {
  color: var(--yellow);
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  list-style: none;
}

.nav-links a {
  color: #cccccc;
  font-size: 0.87rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--yellow);
  background: rgba(255,193,33,0.1);
}

@keyframes wtc-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,193,33,0.7); }
  50%       { box-shadow: 0 0 0 10px rgba(255,193,33,0); }
}

.nav-cta {
  background: var(--yellow) !important;
  color: var(--black) !important;
  font-weight: 700 !important;
  border-radius: var(--radius) !important;
}
.nav-cta:hover {
  background: var(--yellow-light) !important;
  color: var(--black) !important;
}

.nav-donate {
  background: transparent !important;
  color: var(--yellow) !important;
  font-weight: 700 !important;
  border: 2px solid var(--yellow) !important;
  border-radius: var(--radius) !important;
  padding: 0.4rem 1rem !important;
}
.nav-donate:hover {
  background: var(--yellow) !important;
  color: var(--black) !important;
}

.btn-pulse {
  animation: wtc-pulse 2s ease-in-out infinite;
}
.btn-pulse:hover {
  animation: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Hero ── */
.hero {
  background: var(--black);
  padding: 6rem 2rem 5rem;
  text-align: center;
  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='%23FFC121' 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-badge {
  display: inline-block;
  background: rgba(255,193,33,0.12);
  color: var(--yellow);
  border: 1px solid var(--yellow);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}
.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero h1 em { color: var(--yellow); font-style: normal; }
.hero p  { color: var(--white); font-size: 1.1rem; max-width: 640px; margin: 0 auto 2.5rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Hero logo image */
.hero-logo {
  width: 130px;
  height: 130px;
  border-radius: var(--radius-lg);
  object-fit: contain;
  margin: 0 auto 2rem;
  display: block;
  border: 3px solid var(--yellow);
  background: var(--black-mid);
  padding: 0.5rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1;
}
.btn-primary        { background: var(--yellow); color: var(--black); border-color: var(--yellow); }
.btn-primary:hover  { background: var(--yellow-light); color: var(--black); border-color: var(--yellow-light); }
.btn-outline        { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.35); }
.btn-outline:hover  { border-color: var(--yellow); color: var(--yellow); }
.btn-navy           { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-navy:hover     { background: var(--black-mid); border-color: var(--black-mid); color: var(--yellow); }
.btn-danger         { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-danger:hover   { background: #c62828; }
.btn-success        { background: var(--green); color: var(--white); border-color: var(--green); }
.btn-success:hover  { background: #1b5e20; }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.82rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Sections ── */
.section { padding: 5rem 2rem; }
.section-alt  { background: var(--yellow-pale); }
.section-dark { background: var(--black); }
.section-dark p { color: var(--white); }
.container { max-width: 1100px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header .overline {
  display: inline-block;
  color: var(--yellow-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.section-header h2 { margin-bottom: 0.75rem; color: var(--black); }
.section-header p  { max-width: 560px; margin: 0 auto; }
.section-dark .section-header h2 { color: var(--white); }
.section-dark .section-header .overline { color: var(--yellow); }

/* ── Mission Pillars ── */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.75rem;
}
.pillar-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--yellow);
  text-align: center;
  transition: var(--transition);
}
.pillar-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pillar-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.pillar-card h3 { color: var(--black); margin-bottom: 0.5rem; }
.pillar-card p  { font-size: 0.9rem; }

/* ── Stats ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.stat-card {
  text-align: center;
  padding: 2rem 1rem;
  background: rgba(255,193,33,0.08);
  border: 1px solid rgba(255,193,33,0.25);
  border-radius: var(--radius);
}
.stat-number { font-size: 2.8rem; font-weight: 800; color: var(--yellow); line-height: 1; }
.stat-label  { font-size: 0.85rem; color: var(--white); margin-top: 0.4rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* ── Feature Cards ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-left: 4px solid var(--yellow);
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature-card h3 { color: var(--black); margin-bottom: 0.6rem; }
.feature-card p  { font-size: 0.92rem; margin-bottom: 1.25rem; }

/* ── Forms ── */
.form-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  max-width: 720px;
  margin: 0 auto;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--black);
  margin-bottom: 0.4rem;
}
.form-group label .required { color: var(--red); margin-left: 2px; }
.form-control {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid #d1d5db;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: 'Inter', inherit;
  transition: var(--transition);
  background: var(--white);
  color: var(--text);
}
.form-control:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255,193,33,0.2);
}
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }

/* Star Rating */
.star-rating { display: flex; gap: 0.35rem; flex-direction: row-reverse; justify-content: flex-end; }
.star-rating input { display: none; }
.star-rating label {
  font-size: 1.8rem;
  color: #d1d5db;
  cursor: pointer;
  transition: var(--transition);
  margin: 0;
  font-weight: 400;
}
.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label { color: var(--yellow); }

/* ── Table ── */
.table-wrapper { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; background: var(--white); }
thead { background: var(--black); color: var(--white); }
thead th { padding: 0.9rem 1rem; font-size: 0.82rem; font-weight: 600; text-align: left; letter-spacing: 0.04em; text-transform: uppercase; }
tbody tr { border-bottom: 1px solid var(--gray-light); transition: background 0.15s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--yellow-pale); }
tbody td { padding: 0.85rem 1rem; font-size: 0.9rem; }

/* ── Badge / Tag ── */
.badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-gold   { background: rgba(255,193,33,0.18); color: #a06800; }
.badge-green  { background: rgba(46,125,50,0.12);  color: var(--green); }
.badge-red    { background: rgba(229,57,53,0.12);   color: var(--red); }
.badge-blue   { background: rgba(42,42,42,0.10);    color: var(--black-light); }
.badge-gray   { background: var(--gray-light);       color: var(--gray); }

/* Stars display */
.stars-display { color: var(--yellow); letter-spacing: 1px; font-size: 1rem; }

/* ── Alert ── */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  font-size: 0.92rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.alert-success { background: rgba(46,125,50,0.08); border-left: 4px solid var(--green);  color: #1b5e20; }
.alert-info    { background: rgba(255,193,33,0.08); border-left: 4px solid var(--yellow); color: #7a5000; }
.alert-warning { background: rgba(255,193,33,0.14); border-left: 4px solid var(--yellow-dark); color: #7a4000; }

/* ── Page Header ── */
.page-header {
  background: var(--black);
  padding: 3.5rem 2rem 3rem;
  text-align: center;
  border-bottom: 3px solid var(--yellow);
}
.page-header h1 { color: var(--white); margin-bottom: 0.75rem; }
.page-header p  { color: var(--white); max-width: 560px; margin: 0 auto; }

/* ── Tabs ── */
.tab-bar {
  display: flex;
  border-bottom: 2px solid #e5e5e5;
  margin-bottom: 2rem;
  gap: 0;
  overflow-x: auto;
}
.tab-btn {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: 'Inter', inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: var(--gray);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
  white-space: nowrap;
}
.tab-btn:hover { color: var(--black); }
.tab-btn.active { color: var(--yellow-dark); border-bottom-color: var(--yellow); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Search / Filter bar ── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  align-items: center;
}
.filter-bar .form-control { max-width: 260px; }
.search-input { position: relative; flex: 1; min-width: 200px; max-width: 340px; }
.search-input input { padding-left: 2.4rem; }
.search-input::before {
  content: '🔍';
  position: absolute;
  left: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  pointer-events: none;
}

/* ── Rating bar ── */
.rating-bar-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.rating-bar-row span:first-child { width: 60px; font-size: 0.85rem; color: var(--gray); }
.rating-bar { flex: 1; height: 8px; background: var(--gray-light); border-radius: 4px; overflow: hidden; }
.rating-bar-fill { height: 100%; background: var(--yellow); border-radius: 4px; }
.rating-bar-row span:last-child { width: 36px; font-size: 0.85rem; color: var(--gray); text-align: right; }

/* ── Accordion ── */
.accordion { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.accordion-item { border-bottom: 1px solid #e5e5e5; }
.accordion-item:last-child { border-bottom: none; }
.accordion-header {
  padding: 1.1rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  background: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.15s;
  color: var(--black);
  font-family: 'Inter', inherit;
  border: none;
  width: 100%;
  text-align: left;
}
.accordion-header:hover { background: var(--yellow-pale); }
.accordion-item.open .accordion-header { background: var(--yellow-pale); color: var(--black); }
.accordion-header .chevron { transition: var(--transition); font-style: normal; }
.accordion-item.open .chevron { transform: rotate(180deg); }
.accordion-body { display: none; padding: 0 1.5rem 1.25rem; font-size: 0.92rem; color: var(--gray-dark); background: var(--white); }
.accordion-item.open .accordion-body { display: block; }

/* ── Footer ── */
footer {
  background: var(--black);
  color: var(--white);
  padding: 4rem 2rem 2rem;
  border-top: 3px solid var(--yellow);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand p { font-size: 0.9rem; margin-top: 0.75rem; line-height: 1.7; color: var(--white); }
.footer-col h4 { color: var(--yellow); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 1rem; font-weight: 700; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul a { color: var(--white); font-size: 0.9rem; }
.footer-col ul a:hover { color: var(--yellow); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--white);
}
.footer-bottom .logo-text { color: var(--yellow); font-weight: 700; }
.footer-brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--yellow);
  margin-bottom: 0.75rem;
}

/* ── Utility ── */
.text-yellow  { color: var(--yellow); }
.text-black   { color: var(--black); }
.text-white   { color: var(--white); }
.text-gold    { color: var(--yellow); }
.text-navy    { color: var(--black); }
.text-center  { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.divider { border: none; border-top: 1px solid #e5e5e5; margin: 2rem 0; }
.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hidden { display: none !important; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* ── About page ── */
.value-card { background: var(--white); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); border-top: 4px solid var(--yellow); }
.value-card h3 { color: var(--black); margin-bottom: 0.5rem; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--black);
    padding: 1rem;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.75rem 1rem; border-radius: 0; width: 100%; }
  .hamburger { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 4rem 1.25rem 3.5rem; }
  .section { padding: 3.5rem 1.25rem; }
  .page-header { padding: 2.5rem 1.25rem 2rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 320px; justify-content: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
