/* ==========================================================================
   SMCF — shared stylesheet for all server-rendered pages.
   See MIGRATION_NOTES.md for the palette/font source-of-truth and the
   file-naming decisions made while building this.
   ========================================================================== */

/* ---- Reset (minimal) ---------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
}

/* ---- Design tokens -------------------------------------------------------
   Brand palette extracted from the compiled Avada CSS custom properties
   (see MIGRATION_NOTES.md "Brand palette" for the source values/roles).
   ---------------------------------------------------------------------- */
:root {
  /* Palette */
  --smcf-cream: #f9f6f2;
  --smcf-gray-light: #e5e5e5;
  --smcf-gold: #d89d4e;
  --smcf-rust: #9a513f;
  --smcf-slate: #6f7d99;
  --smcf-sage: #515d53;
  --smcf-charcoal: #4a4a4a;
  --smcf-white: #ffffff;

  /* Fonts (self-hosted, see public/assets/fonts/) */
  --smcf-font-heading: 'Cinzel', Georgia, 'Times New Roman', serif;
  --smcf-font-body: 'Montserrat', Arial, Helvetica, sans-serif;
  --smcf-font-accent: 'Raleway', Arial, Helvetica, sans-serif;
  --smcf-font-display: 'Lato', Arial, Helvetica, sans-serif;

  /* Layout */
  --smcf-max-width: 1216px;
  --smcf-header-height: 96px;
}

/* ---- Self-hosted @font-face rules -----------------------------------------
   Mapped from the scrape's compiled fusion-styles CSS @font-face blocks
   (Latin-range subset only — covers Spanish accented characters too, see
   MIGRATION_NOTES.md). Filenames renamed from the original content hashes.
   ---------------------------------------------------------------------- */
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/assets/fonts/cinzel-400-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 500 700;
  font-display: swap;
  src: url('/assets/fonts/montserrat-400-500-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/montserrat-italic-400-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/raleway-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/lato-700.woff2') format('woff2');
}

/* ---- Vue bootstrapping ---------------------------------------------------- */
[v-cloak] {
  display: none;
}

/* ---- Base typography -------------------------------------------------- */
body {
  font-family: var(--smcf-font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--smcf-charcoal);
  background: var(--smcf-cream);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--smcf-font-heading);
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 20px;
  color: var(--smcf-charcoal);
}

h1 {
  font-size: 2.75rem;
  text-transform: uppercase;
}

h2 {
  font-size: 2rem;
  text-transform: uppercase;
}

h3 {
  font-size: 1.375rem;
  text-transform: uppercase;
}

p {
  margin: 0 0 20px;
}

a {
  color: var(--smcf-gold);
  transition: color 0.15s ease;
}

a:hover {
  color: var(--smcf-rust);
}

/* ---- Layout helpers ----------------------------------------------------- */
.smcf-container {
  max-width: var(--smcf-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.smcf-section {
  padding: 64px 20px;
}

.smcf-section--tight {
  padding: 40px 20px;
}

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

.smcf-section--white {
  background: var(--smcf-white);
}

.smcf-section--charcoal {
  background: var(--smcf-charcoal);
  color: var(--smcf-cream);
}

.smcf-section--charcoal h2,
.smcf-section--charcoal h3 {
  color: var(--smcf-cream);
}

.smcf-eyebrow {
  font-family: var(--smcf-font-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--smcf-gold);
  margin-bottom: 8px;
  display: block;
}

.smcf-rule {
  width: 80px;
  height: 2px;
  background: var(--smcf-gold);
  border: 0;
  margin: 0 0 24px;
}

/* ---- Buttons -------------------------------------------------------------- */
.smcf-button {
  display: inline-block;
  font-family: var(--smcf-font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 3px;
  background: var(--smcf-gold);
  color: var(--smcf-white);
}

.smcf-button:hover {
  background: var(--smcf-rust);
  color: var(--smcf-white);
}

.smcf-button--outline {
  background: transparent;
  border: 2px solid var(--smcf-cream);
  color: var(--smcf-cream);
}

.smcf-button--outline:hover {
  background: var(--smcf-cream);
  color: var(--smcf-charcoal);
  border-color: var(--smcf-cream);
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
  background: var(--smcf-charcoal);
  position: relative;
  z-index: 100;
}

.site-header__inner {
  max-width: var(--smcf-max-width);
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--smcf-header-height);
}

.site-header__logo img {
  height: 56px;
  width: auto;
}

.site-header__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  padding: 8px;
}

.site-header__toggle-bar {
  width: 26px;
  height: 2px;
  background: var(--smcf-cream);
  display: block;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav__item {
  position: relative;
}

.site-nav__item--lang {
  padding-left: 24px;
  border-left: 1px solid rgba(249, 246, 242, 0.25);
}

@media (max-width: 900px) {
  .site-nav__item--lang {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 8px;
    padding-top: 8px;
  }
}

.site-nav__link {
  display: block;
  font-family: var(--smcf-font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--smcf-cream);
  padding: 8px 0;
}

.site-nav__link:hover {
  color: var(--smcf-gold);
}

.site-nav__sublist {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--smcf-white);
  border-top: 2px solid var(--smcf-gold);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  padding: 8px 0;
}

.site-nav__item--has-children:hover .site-nav__sublist,
.site-nav__item--has-children:focus-within .site-nav__sublist {
  display: block;
}

.site-nav__sublink {
  display: block;
  padding: 10px 20px;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--smcf-charcoal);
}

.site-nav__sublink:hover {
  color: var(--smcf-gold);
  background: var(--smcf-cream);
}

@media (max-width: 900px) {
  .site-header__toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--smcf-charcoal);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

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

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
  }

  .site-nav__link {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-nav__sublist {
    display: block;
    position: static;
    background: transparent;
    border-top: 0;
    box-shadow: none;
    padding: 0 0 8px 16px;
  }

  .site-nav__sublink {
    color: var(--smcf-cream);
    padding: 8px 0;
  }

  .site-nav__sublink:hover {
    background: transparent;
  }
}

/* ==========================================================================
   Homepage sections
   ========================================================================== */
.smcf-hero {
  position: relative;
  height: 45vh;
  min-height: 320px;
  overflow: hidden;
  background: var(--smcf-charcoal);
}

.smcf-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Hero intro copy sits in its own section below the video band (not
   overlaid on it) so the text never competes with the footage. */
.smcf-hero-intro h1 {
  max-width: 640px;
}

.smcf-hero-intro p {
  max-width: 620px;
  font-size: 1.05rem;
}

.smcf-causes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 32px;
}

.smcf-cause-card {
  background: var(--smcf-white);
  border-top: 3px solid var(--smcf-gold);
  padding: 28px 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.smcf-cause-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.smcf-cause-card p {
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.smcf-cause-card a {
  font-family: var(--smcf-font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.smcf-banner {
  background: var(--smcf-rust);
  color: var(--smcf-cream);
  text-align: center;
  padding: 56px 20px;
}

.smcf-banner h2 {
  color: var(--smcf-cream);
  font-family: var(--smcf-font-display);
}

.smcf-banner p {
  max-width: 560px;
  margin: 0 auto 24px;
}

.smcf-testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.smcf-testimonial {
  background: rgba(249, 246, 242, 0.06);
  border: 1px solid rgba(249, 246, 242, 0.15);
  padding: 24px;
  font-size: 0.9rem;
  font-style: italic;
}

.smcf-testimonial cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-family: var(--smcf-font-accent);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--smcf-gold);
}

.smcf-cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

@media (max-width: 900px) {
  .smcf-causes-grid,
  .smcf-testimonials {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .smcf-causes-grid,
  .smcf-testimonials {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--smcf-cream);
  border-top: 1px solid var(--smcf-gray-light);
  color: var(--smcf-sage);
  padding: 56px 20px 24px;
}

.site-footer__inner {
  max-width: var(--smcf-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.site-footer__heading {
  font-family: var(--smcf-font-heading);
  font-size: 1rem;
  color: var(--smcf-charcoal);
  margin-bottom: 16px;
}

.site-footer__contact-list li {
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.site-footer__contact-list a {
  color: var(--smcf-sage);
}

.site-footer__contact-list a:hover {
  color: var(--smcf-gold);
}

.site-footer__social {
  display: flex;
  gap: 16px;
}

.site-footer__social a {
  font-family: var(--smcf-font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--smcf-sage);
}

.site-footer__social a:hover {
  color: var(--smcf-gold);
}

.site-footer__legal {
  max-width: var(--smcf-max-width);
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--smcf-gray-light);
  font-size: 0.78rem;
  text-align: center;
}

.site-footer__legal a {
  color: var(--smcf-sage);
  text-decoration: underline;
}

.site-footer__legal a:hover {
  color: var(--smcf-gold);
}

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