/* ==========================================================================
   MAMA CHRISTA FOUNDATION — CONTACT PAGE STYLESHEET (contact.css)
   Theme: Vibrant Warm Orange & Clean White
   ========================================================================== */

/* 1. BRAND COLOR SYSTEM & DESIGN VARIABLES */
:root {
  --orange: #C74B17;          /* Primary Mama Christa Orange */
  --orange-hover: #A33A0D;    /* Darker Orange for active/hover */
  --orange-light: #FF8F5E;    /* Soft accent orange */
  --tint: #FFF4EE;            /* Light warm orange-white background tint */
  --tint-accent: #FFEFE5;     /* Soft section background gradient */
  --white: #FFFFFF;           /* Clean white card backgrounds */
  --strong: #231815;          /* Deep warm charcoal for headings */
  --ink: #2B2320;             /* Body text color */
  --muted: #665953;           /* Subtitles and supporting text */
  --line: #E8D9CF;            /* Soft warm borders */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 4px 14px rgba(199, 75, 23, 0.08);
  --shadow-md: 0 16px 36px rgba(199, 75, 23, 0.12);
  --shadow-lg: 0 24px 50px rgba(199, 75, 23, 0.16);
}

/* 2. BASE RESET & TYPOGRAPHY */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Figtree', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background-color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Offset main content so fixed header does not overlap hero section */
main {
  padding-top: 80px;
}

h1, h2, h3, h4, .hc-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  color: var(--strong);
  line-height: 1.2;
}

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

.section {
  padding: 5rem 5%;
}

/* 3. REUSABLE BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.8rem;
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--white);
  background-color: var(--orange);
  border: 2px solid var(--orange);
  border-radius: 9999px;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 14px rgba(199, 75, 23, 0.25);
}

.btn:hover {
  background-color: var(--orange-hover);
  border-color: var(--orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(199, 75, 23, 0.35);
}

.btn-ghost {
  background-color: transparent;
  color: var(--strong);
  border-color: var(--line);
  box-shadow: none;
}

.btn-ghost:hover {
  background-color: var(--tint);
  border-color: var(--orange);
  color: var(--orange);
  box-shadow: none;
}

.btn-sm {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
}

/* 4. SITE HEADER & NAVIGATION */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem clamp(1rem, 4vw, 3rem);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: box-shadow 0.3s, padding 0.3s, background 0.3s;
  border-bottom: 1px solid rgba(232, 217, 207, 0.5);
}

.site-header.scrolled {
  box-shadow: 0 6px 24px rgba(199, 75, 23, 0.12);
  padding-block: 0.3rem;
  background: rgba(255, 255, 255, 0.96);
}

.brand img {
  height: 54px;
  width: auto;
  mix-blend-mode: multiply;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  font-weight: 500;
}

.nav a:not(.btn) {
  text-decoration: none;
  position: relative;
  padding: 0.2rem 0;
  color: var(--ink);
  transition: color 0.3s;
}

.nav a:not(.btn):hover {
  color: var(--orange);
}

.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 100%;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav a:not(.btn):hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease);
}

.nav-toggle span:first-child { top: 16px; }
.nav-toggle span:last-child { top: 26px; }

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-5px) rotate(-45deg);
}

/* 5. HERO SECTION & LINKED FIGURES CARD */
.page-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
  padding: 3.5rem 5% 5rem;
  background: linear-gradient(135deg, var(--white) 0%, var(--tint) 100%);
}

.crumbs {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
  font-weight: 500;
}

.crumbs a {
  color: var(--orange);
}

.crumbs a:hover {
  text-decoration: underline;
}

.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  margin-bottom: 1.2rem;
}

.page-hero .lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 52ch;
  margin-bottom: 2rem;
}

.page-hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Hero card motif */
.hero-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--white);
  border-radius: 28px;
  padding: 2.6rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.hero-card .chain {
  display: block;
  width: min(360px, 92%);
  margin: 0 auto 1.4rem;
}

.hero-card .chain .arms {
  stroke: var(--orange);
  stroke-width: 3;
  stroke-dasharray: 6 6;
}

.hero-card .chain .kid circle,
.hero-card .chain .kid rect,
.hero-card .chain .kid path {
  fill: var(--orange);
}

.hc-title {
  font-size: 1.35rem;
  font-weight: 700;
}

.hc-sub {
  color: var(--orange);
  font-weight: 600;
  margin-top: 0.3rem;
  font-size: 0.95rem;
}

/* 6. CONTACT MAIN (INFO & FORM) */
.contact-main {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 3.5rem;
  align-items: start;
  background: linear-gradient(180deg, var(--white) 0%, var(--tint) 100%);
}

.info h2 {
  max-width: 12ch;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 1.8rem;
}

.info-list, .social {
  list-style: none;
  padding: 0;
}

.info-list {
  display: grid;
  gap: 1.2rem;
  margin-bottom: 2.4rem;
}

.info-list li {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  padding: 1.2rem 1.4rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.35s;
}

.info-list li:hover {
  transform: translateX(6px);
  border-color: var(--orange);
  box-shadow: var(--shadow-md);
}

.info-list h3 {
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.info-list p, .info-list a {
  color: var(--muted);
  overflow-wrap: anywhere;
  font-size: 0.97rem;
}

.info-list div {
  min-width: 0;
}

.info-list a {
  color: var(--strong);
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(var(--orange), var(--orange)) 0 100% / 0 2px no-repeat;
  transition: background-size 0.4s var(--ease), color 0.3s;
}

.info-list a:hover {
  background-size: 100% 2px;
  color: var(--orange);
}

.ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--tint);
  transition: transform 0.4s var(--ease), background 0.3s;
}

.info-list li:hover .ico {
  background: var(--orange);
  transform: rotate(-8deg) scale(1.08);
}

.ico svg, .social svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--orange);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s;
}

.info-list li:hover .ico svg {
  stroke: var(--white);
}

.follow {
  font-size: 1.1rem;
  margin-bottom: 0.9rem;
}

.social {
  display: flex;
  gap: 0.8rem;
}

.social a {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--white);
  transition: transform 0.35s var(--ease), background 0.3s, border-color 0.3s;
}

.social a:hover {
  background: var(--orange);
  border-color: var(--orange);
  transform: translateY(-4px);
}

.social a:hover svg {
  stroke: var(--white);
}

/* Form Styles */
.form-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 2.6rem;
  box-shadow: var(--shadow-lg);
}

.form-card h2 {
  max-width: none;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 0.4rem;
}

.form-sub {
  color: var(--muted);
  margin-bottom: 1.8rem;
  font-size: 0.98rem;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.field {
  margin-bottom: 1.3rem;
  position: relative;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.93rem;
  margin-bottom: 0.4rem;
  color: var(--strong);
}

.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  padding: 0.9rem 1rem;
  background: #FFFCFA;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

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

.field select {
  appearance: none;
  cursor: pointer;
  padding-right: 2.6rem;
  background: #FFFCFA url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C74B17' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 0.9rem center / 20px no-repeat;
}

.field input:hover, .field select:hover, .field textarea:hover {
  border-color: #E8B79F;
}

.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--orange);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(199, 75, 23, 0.18);
}

.field.invalid input, .field.invalid select, .field.invalid textarea {
  border-color: #B3261E;
  box-shadow: 0 0 0 4px rgba(179, 38, 30, 0.1);
}

.err {
  display: block;
  color: #B3261E;
  font-size: 0.85rem;
  font-weight: 500;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-4px);
  transition: max-height 0.3s var(--ease), opacity 0.3s, transform 0.3s var(--ease);
}

.field.invalid .err {
  max-height: 3em;
  opacity: 1;
  transform: none;
  margin-top: 0.35rem;
}

.count {
  position: absolute;
  right: 0.4rem;
  top: 0.1rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn.submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 1rem 1.6rem;
}

.btn.submit:disabled {
  opacity: 0.75;
  cursor: progress;
  transform: none;
  box-shadow: none;
}

.spin {
  display: none;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.submit.loading .spin {
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-note {
  min-height: 1.4em;
  margin-top: 0.9rem;
  font-size: 0.92rem;
  color: #B3261E;
  text-align: center;
}

/* Success State */
.success {
  text-align: center;
  padding: 2rem 0;
}

.success[hidden] {
  display: none;
}

.success svg {
  width: 90px;
  height: 90px;
  margin-bottom: 1rem;
  fill: none;
  stroke: var(--orange);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.success circle {
  stroke-dasharray: 215;
  stroke-dashoffset: 215;
}

.success path {
  stroke: var(--strong);
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
}

.success.show circle {
  animation: draw 0.9s var(--ease) forwards;
}

.success.show path {
  animation: draw 0.6s var(--ease) 0.7s forwards;
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

.success.show h2, .success.show p, .success.show .btn {
  animation: fadeUp 0.8s var(--ease) 0.9s backwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.success h2 {
  margin-inline: auto;
  margin-bottom: 0.4rem;
}

.success p {
  color: var(--muted);
  max-width: 44ch;
  margin: 0 auto 1.6rem;
}

/* 7. WAYS TO ENGAGE */
.ways {
  background: linear-gradient(180deg, var(--white) 0%, var(--tint-accent) 100%);
}

.ways h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 2.2rem;
  text-align: center;
}

.way-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.way-grid li {
  display: flex;
}

.way-grid button {
  width: 100%;
  text-align: left;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.8rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), background 0.4s, color 0.4s, box-shadow 0.4s, border-color 0.4s;
  box-shadow: var(--shadow-sm);
}

.way-grid button h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  transition: color 0.4s;
}

.way-grid button:hover {
  transform: translateY(-8px);
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
  box-shadow: var(--shadow-lg);
}

.way-grid button:hover h3 {
  color: var(--white);
}

.way-grid .num {
  font: 800 2.4rem/1 'Bricolage Grotesque', sans-serif;
  color: var(--orange);
  margin-bottom: 1rem;
  transition: color 0.4s;
}

.way-grid p {
  color: var(--muted);
  font-size: 0.97rem;
  margin-bottom: 1.2rem;
  transition: color 0.4s;
}

.way-grid .go {
  margin-top: auto;
  font-weight: 600;
  color: var(--orange);
  transition: color 0.4s;
}

.way-grid .go i {
  display: inline-block;
  font-style: normal;
  transition: transform 0.35s var(--ease);
}

.way-grid button:hover .num,
.way-grid button:hover p,
.way-grid button:hover .go {
  color: var(--white);
}

.way-grid button:hover .go i {
  transform: translateX(6px);
}

/* 8. FIND US (MAP SECTION) */
.find {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3.5rem;
  align-items: center;
  background: var(--white);
}

.find h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 0.8rem;
}

.find p {
  color: var(--muted);
  margin-bottom: 1.6rem;
  font-size: 1.05rem;
}

.map {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--white);
  aspect-ratio: 16 / 10;
  background: var(--tint);
}

.map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* 9. SITE FOOTER */
.site-footer {
  background: var(--strong);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 5%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.site-footer img {
  height: 50px;
  width: auto;
  border-radius: 8px;
}

.site-footer p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}

/* 10. RESPONSIVE BREAKPOINTS */
@media (max-width: 960px) {
  .page-hero, .contact-main, .find {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }

  .info h2 {
    max-width: none;
  }

  .way-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-card {
    max-width: 520px;
    margin: 0 auto;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.4rem;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(199, 75, 23, 0.12);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s var(--ease), opacity 0.3s;
  }

  .nav-toggle[aria-expanded="true"] + .nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 600px) {
  main {
    padding-top: 72px;
  }

  .section {
    padding: 3.5rem 1.2rem;
  }

  .page-hero {
    padding: 2rem 1.2rem 3.5rem;
  }

  .form-card {
    padding: 1.8rem 1.2rem;
    border-radius: 22px;
  }

  .row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .way-grid {
    grid-template-columns: 1fr;
  }

  .map {
    aspect-ratio: 4 / 3;
    border-width: 4px;
    border-radius: 22px;
  }

  .hero-card {
    padding: 1.8rem 1.2rem;
  }
}