/* Redeemer's Restoration International — shared site styles */

:root {
  --maroon: #7a2a2a;
  --maroon-dark: #5c1f1f;
  --gold: #b8862c;
  --cream: #f7f2ea;
  --cream-border: #e6dcc9;
  --text: #2b2b2b;
  --text-light: #666360;
  --white: #ffffff;
  --font-heading: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

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

a {
  color: var(--maroon);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Top accent bar */
.top-bar {
  height: 6px;
  background: var(--maroon);
}

/* Header / nav */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--cream-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  line-height: 1.1;
}

.brand-icon {
  height: 44px;
  width: 44px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--maroon);
  letter-spacing: 0.02em;
}

.brand-tagline {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--text-light);
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--maroon);
  border-radius: 1px;
}

.main-nav > ul {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--maroon);
}

/* Nav dropdowns (Take Action / Learn More) */
.has-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
}

.dropdown-toggle::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-top: 2px;
}

.dropdown-toggle:hover,
.dropdown-toggle.active {
  color: var(--maroon);
}

.dropdown-menu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
}

.has-dropdown.open .dropdown-menu {
  display: block;
}

.dropdown-menu a.active {
  color: var(--maroon);
}

@media (min-width: 1101px) {
  .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.9rem;
    background: var(--white);
    border: 1px solid var(--cream-border);
    border-radius: 6px;
    box-shadow: 0 12px 24px rgba(43, 30, 20, 0.15);
    min-width: 190px;
    padding: 0.5rem 0;
    z-index: 200;
  }

  .dropdown-menu li {
    display: block;
  }

  .dropdown-menu a {
    display: block;
    padding: 0.6rem 1.2rem;
    white-space: nowrap;
    color: var(--text);
  }

  .dropdown-menu a:hover {
    background: var(--cream);
    color: var(--maroon);
  }
}

.header-cta {
  display: inline-block;
  background: var(--maroon);
  color: var(--white) !important;
  padding: 0.55rem 1.25rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

.header-cta:hover {
  background: var(--maroon-dark);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.lang-toggle-btn {
  display: inline-flex;
  align-items: center;
  background: var(--gold);
  color: var(--maroon-dark);
  border: none;
  border-radius: 24px;
  padding: 0.6rem 1.15rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lang-toggle-btn:hover {
  background: #a3761f;
}

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
  padding: 4rem 0;
  text-align: center;
  border-bottom: 1px solid var(--cream-border);
}

.hero-logo {
  max-width: 220px;
  width: 100%;
  height: auto;
  margin: 0 auto 1.5rem;
}

.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: 2.6rem;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.hero .lead {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 640px;
  margin: 1rem auto 2rem;
}

.hero-rule {
  width: 70px;
  height: 3px;
  background: var(--maroon);
  margin: 1.25rem auto;
  border: none;
}

.btn-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.75rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--maroon);
}

.btn-primary {
  background: var(--maroon);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--maroon-dark);
  border-color: var(--maroon-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--maroon);
}

.btn-secondary:hover {
  background: var(--cream);
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--cream-border);
  border: 1px solid var(--cream-border);
  margin: 2.5rem 0;
}

.stat {
  background: var(--cream);
  text-align: center;
  padding: 2rem 1rem;
}

.stat .number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--maroon);
  font-weight: bold;
}

.stat .label {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

/* Feature photo */
.photo-feature {
  padding: 2.5rem 0 0;
}

.photo-feature .eyebrow {
  text-align: center;
}

.photo-feature h2 {
  text-align: center;
  margin-bottom: 1.25rem;
}

.photo-feature figure {
  margin: 0;
}

.photo-feature img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(43, 30, 20, 0.18);
}

.photo-feature figcaption {
  text-align: center;
  font-style: italic;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 0.9rem;
}

/* Video feature */
.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(43, 30, 20, 0.18);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-wrapper.wide {
  max-width: 720px;
  aspect-ratio: 16 / 9;
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--cream);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section h2 {
  font-size: 1.9rem;
  border-bottom: 1px solid var(--cream-border);
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 700px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

/* Boxed callouts (mirrors PDF's cream boxes with colored left border) */
.callout {
  background: var(--cream);
  border: 1px solid var(--cream-border);
  border-left: 4px solid var(--maroon);
  padding: 1.5rem;
}

.callout.gold {
  border-left-color: var(--gold);
}

.callout .callout-label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.callout h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

/* Lists */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.6rem;
}

.check-list li::before {
  content: '\2022';
  color: var(--maroon);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Numbered process steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--cream-border);
  border: 1px solid var(--cream-border);
}

.step {
  background: var(--cream);
  padding: 1.5rem;
  text-align: center;
}

.step .step-number {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--maroon);
  font-weight: bold;
  margin-bottom: 0.4rem;
}

/* Pull quote */
.pull-quote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--maroon);
  text-align: center;
  max-width: 760px;
  margin: 2.5rem auto;
  line-height: 1.5;
}

/* Giving tables */
.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--cream-border);
  border-radius: 6px;
  margin: 1.5rem 0;
}

.giving-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
  font-size: 0.95rem;
}

.giving-table th,
.giving-table td {
  padding: 0.9rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--cream-border);
}

.giving-table thead th {
  background: var(--maroon);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  white-space: nowrap;
}

.giving-table tbody tr:nth-child(even) {
  background: var(--cream);
}

.giving-table tbody tr:last-child td {
  border-bottom: none;
}

.giving-table .cost {
  color: var(--maroon);
  font-weight: 700;
  white-space: nowrap;
}

/* Cards (opportunities grid) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.card {
  border: 1px solid var(--cream-border);
  border-radius: 6px;
  padding: 1.5rem;
}

.card h3 {
  font-size: 1.05rem;
  color: var(--maroon);
}

/* Simple form */
.form-field {
  margin-bottom: 1.25rem;
}

.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--cream-border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

.form-field textarea {
  resize: vertical;
  min-height: 140px;
}

/* Footer */
.site-footer {
  background: var(--maroon-dark);
  color: #f0e6e0;
  padding: 2.5rem 0 1.5rem;
  margin-top: 2rem;
}

.site-footer a {
  color: #f0e6e0;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-note {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.85rem;
  color: #d8c4bd;
}

/* Mobile nav */
@media (max-width: 1100px) {
  .nav-toggle {
    display: flex;
  }

  .nav-right {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--cream-border);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem 1.5rem;
    gap: 1rem;
    display: none;
  }

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

  .main-nav > ul {
    flex-direction: column;
    gap: 1rem;
  }

  .dropdown-menu {
    padding-left: 1.25rem;
    margin-top: 0.75rem;
  }

  .dropdown-menu li + li {
    margin-top: 0.6rem;
  }

  .header-cta {
    text-align: center;
  }

  .lang-toggle-btn {
    justify-content: center;
  }

  .brand-icon {
    height: 36px;
    width: 36px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }
}
