/* app/assets/stylesheets/templates/grace_minimalist.css */

/* We inherit --primary, --font-body, --font-display from tenant_site.html.erb */
:root {
  --orange: var(--primary, #F97316);
  --orange-dark: color-mix(in srgb, var(--primary) 80%, black);
  --teal: #2CB67D;
  --yellow: #F5B800;
  --red: #E63B2E;
  --dark: #1A1A2E;
  --text: #444;
  --light-bg: #F9F7F4;
  --white: #fff;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

/* ── HEADER ── */
.gm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  height: 68px;
  background: var(--white);
  box-shadow: 0 1px 12px rgba(0,0,0,.07);
  position: sticky;
  top: 0;
  z-index: 100;
}

.gm-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.gm-logo img {
  height: 40px;
}
.gm-logo span { color: var(--orange); }

.gm-nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin-bottom: 0;
}
.gm-nav-links a {
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  color: var(--dark);
  transition: color .2s;
}
.gm-nav-links a:hover { color: var(--orange); }
.gm-has-dropdown { position: relative; cursor: pointer; }
.gm-has-dropdown::after { content: " ▾"; font-size: .7rem; }

.gm-nav-actions { display: flex; gap: 14px; align-items: center; }

.gm-btn-ghost {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 500;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}
.gm-btn-ghost::before { content: "👤"; font-size: .85rem; }

.gm-btn-primary {
  background: var(--orange);
  color: var(--white);
  border: none;
  padding: 10px 22px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background .2s, transform .15s;
  text-decoration: none;
}
.gm-btn-primary::before { content: "❤"; font-size: .8rem; }
.gm-btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); color: var(--white); }

/* ── HERO ── */
.gm-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
  background: var(--light-bg);
  overflow: hidden;
  position: relative;
}

.gm-hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 70px 60px 70px 60px;
  position: relative;
  z-index: 2;
}

.gm-hero-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' fill='none'%3E%3Ccircle cx='100' cy='100' r='60' stroke='%23ddd' stroke-width='1'/%3E%3C/svg%3E");
  opacity: .15;
  z-index: -1;
}

.gm-hero-left h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 16px;
}
.gm-hero-left h1 .accent { color: var(--orange); font-style: italic; }

.gm-hero-left p {
  font-size: .95rem;
  color: #777;
  margin-bottom: 30px;
  max-width: 380px;
  line-height: 1.65;
}

.gm-btn-donate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  letter-spacing: .04em;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 18px rgba(0,0,0,.15);
  width: fit-content;
}
.gm-btn-donate:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.2); color: var(--white); }

/* hero right – dark panel with image */
.gm-hero-right {
  background: #1e2d4a;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.gm-hero-right::before {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  background: var(--orange);
  border-radius: 50%;
  top: 30px;
  right: 80px;
  opacity: .9;
}

.gm-hero-child {
  position: absolute;
  right: 60px;
  top: 0;
  height: 100%;
  width: 260px;
  object-fit: cover;
  object-position: top;
  z-index: 1;
}

.gm-child-placeholder {
  position: absolute;
  right: 60px;
  top: 0;
  height: 100%;
  width: 260px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.gm-child-placeholder svg { height: 100%; width: auto; }

.gm-hero-badge {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  text-align: center;
}
.gm-hero-badge .big-num {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  text-shadow: 2px 4px 20px rgba(0,0,0,.4);
  letter-spacing: -.02em;
}
.gm-hero-badge .big-label {
  background: var(--orange);
  color: var(--white);
  padding: 8px 24px;
  font-size: .88rem;
  font-weight: 600;
  display: inline-block;
  margin-top: 8px;
  clip-path: polygon(4% 0%, 96% 0%, 100% 50%, 96% 100%, 4% 100%, 0% 50%);
}

.gm-deco { position: absolute; z-index: 2; pointer-events: none; }

/* ── CAUSE CARDS (MINISTRIES PREVIEW) ── */
.gm-causes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.gm-cause-card {
  padding: 44px 36px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: filter .2s;
}
.gm-cause-card:hover { filter: brightness(1.08); }
.gm-cause-card.teal   { background: var(--teal); }
.gm-cause-card.yellow { background: var(--yellow); }
.gm-cause-card.red    { background: var(--red); }

.gm-cause-icon {
  font-size: 1.8rem;
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gm-cause-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}

.gm-btn-donate-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 2px solid rgba(255,255,255,.5);
  padding-bottom: 2px;
  width: fit-content;
  transition: border-color .2s;
  margin-top: auto;
}
.gm-btn-donate-sm:hover { border-color: var(--white); color: var(--white); }

/* ── ABOUT / MISSION ── */
.gm-about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 90px 80px;
  align-items: center;
  background: var(--white);
  position: relative;
}

.gm-about-text .section-tag {
  font-size: .8rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}
.gm-about-text h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 20px;
  line-height: 1.2;
}
.gm-about-text p {
  font-size: .95rem;
  line-height: 1.8;
  color: #666;
  margin-bottom: 32px;
  max-width: 420px;
}

.gm-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 2px solid var(--orange);
  color: var(--orange);
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .88rem;
  text-decoration: none;
  letter-spacing: .03em;
  transition: background .2s, color .2s, transform .15s;
}
.gm-btn-outline:hover { background: var(--orange); color: var(--white); transform: translateY(-1px); }

.gm-about-img { position: relative; }
.gm-about-img img,
.gm-about-img .img-placeholder {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
.gm-about-img .img-placeholder {
  background: linear-gradient(135deg, #ddd 0%, #c5c5c5 100%);
  display: flex; align-items: center; justify-content: center; font-size: 4rem;
}

/* ── FOOTER ── */
.gm-footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding: 60px 80px 30px;
}
.gm-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.gm-footer-brand .logo { color: var(--white); font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; text-decoration: none; display: block; margin-bottom: 16px; }
.gm-footer-brand p { font-size: .88rem; line-height: 1.75; max-width: 260px; }

.gm-footer-col h4 {
  color: var(--white);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.gm-footer-col ul { list-style: none; padding: 0; }
.gm-footer-col ul li { margin-bottom: 10px; }
.gm-footer-col ul a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: .88rem;
  transition: color .2s;
}
.gm-footer-col ul a:hover { color: var(--orange); }

.gm-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: .82rem;
  opacity: .55;
}

/* Animations */
.gm-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.gm-reveal.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 900px) {
  .gm-header { padding: 0 24px; }
  .gm-nav-links { display: none; }
  .gm-hero { grid-template-columns: 1fr; }
  .gm-hero-right { display: none; }
  .gm-causes { grid-template-columns: 1fr; }
  .gm-about { grid-template-columns: 1fr; padding: 60px 24px; }
  .gm-footer { padding: 40px 24px 20px; }
  .gm-footer-grid { grid-template-columns: 1fr 1fr; }
}
