/* Felege Ghion Ethiopian Community — shared styles */

:root {
  --nile: #0f4c5c;        /* deep Blue Nile teal — primary */
  --nile-dark: #0a3540;
  --nile-light: #e6f0f2;
  --gold: #e0a526;        /* accent */
  --gold-dark: #b9841a;
  --green: #2e7d4f;
  --red: #b23a2f;
  --ink: #1d2428;
  --muted: #5b676d;
  --line: #dde3e5;
  --paper: #fbf8f2;       /* warm off-white page */
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(15, 76, 92, 0.08);
  --max: 1120px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Fraunces", Georgia, serif;
  --font-ethi: "Noto Sans Ethiopic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

img, svg { max-width: 100%; display: block; }

a { color: var(--nile); }
a:hover { color: var(--nile-dark); }

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.2;
  color: var(--nile-dark);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: var(--ink); padding: 8px 14px; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* Ethiopian flag-inspired stripe */
.tri-stripe { height: 5px; background: linear-gradient(90deg, var(--green) 0 33.3%, var(--gold) 33.3% 66.6%, var(--red) 66.6% 100%); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 242, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--nile-dark); }
.brand img { width: 56px; height: 56px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; }
.brand-sub { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.02em; }

.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 999px;
  text-decoration: none; color: var(--ink); font-weight: 500; font-size: 0.97rem;
}
.nav-links a:hover { background: var(--nile-light); color: var(--nile-dark); }
.nav-links a[aria-current="page"] { background: var(--nile); color: var(--white); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 10px;
  width: 44px; height: 44px; cursor: pointer; color: var(--nile-dark);
}
.nav-toggle svg { margin: auto; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; padding: 12px 20px 20px;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem var(--font-body); text-decoration: none; cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: var(--gold-dark); color: var(--ink); }
.btn-outline { border-color: currentColor; color: var(--white); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); }
.btn-dark { background: var(--nile); color: var(--white); }
.btn-dark:hover { background: var(--nile-dark); color: var(--white); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  /* Blue Nile Falls photo under a teal tint: darker on the left so the headline stays readable */
  background:
    linear-gradient(90deg, rgba(10, 53, 64, 0.94) 0%, rgba(10, 53, 64, 0.78) 45%, rgba(10, 53, 64, 0.35) 100%),
    var(--nile-dark) url("/images/blue-nile-falls.jpg") center 40% / cover no-repeat;
  padding: clamp(64px, 10vw, 120px) 0 clamp(80px, 12vw, 140px);
}
@media (max-width: 760px) {
  .hero {
    background:
      linear-gradient(180deg, rgba(10, 53, 64, 0.88) 0%, rgba(10, 53, 64, 0.8) 100%),
      var(--nile-dark) url("/images/blue-nile-falls-960.jpg") 65% center / cover no-repeat;
  }
}
.hero h1 { color: var(--white); max-width: 15ch; }
.hero .lead { font-size: 1.2rem; max-width: 52ch; color: rgba(255, 255, 255, 0.88); }
.hero-ethi { font-family: var(--font-ethi); color: var(--gold); font-size: 1.25rem; margin-bottom: 12px; letter-spacing: 0.04em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-waves { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 80px; color: var(--paper); }

.page-hero {
  background: linear-gradient(160deg, var(--nile) 0%, var(--nile-dark) 100%);
  color: var(--white); padding: 64px 0 56px;
}
.page-hero h1 { color: var(--white); margin-bottom: 8px; }
.page-hero p { color: rgba(255, 255, 255, 0.85); max-width: 60ch; font-size: 1.15rem; margin: 0; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold-dark); margin-bottom: 10px;
}
.section-head p { color: var(--muted); }

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: start; }
@media (max-width: 400px) { .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.card p:last-child { margin-bottom: 0; }
.card .icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: var(--nile-light); color: var(--nile); margin-bottom: 16px;
}

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.quote {
  border-left: 4px solid var(--gold); padding: 8px 0 8px 24px;
  font-family: var(--font-head); font-size: 1.35rem; color: var(--nile-dark); font-style: italic;
}

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 32px; margin-bottom: 12px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* Values */
.value-num { font-family: var(--font-head); font-size: 2rem; color: var(--gold-dark); line-height: 1; margin-bottom: 8px; }

/* ---------- Leadership ---------- */
.person { text-align: center; }
.avatar {
  width: 112px; height: 112px; border-radius: 50%; margin: 0 auto 16px;
  display: grid; place-items: center; font-family: var(--font-head); font-size: 2.2rem;
  background: linear-gradient(135deg, var(--nile-light), #fff3d6); color: var(--nile); border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--gold);
}
.person .role { color: var(--gold-dark); font-weight: 600; font-size: 0.95rem; margin-bottom: 8px; }
.person p { color: var(--muted); font-size: 0.97rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--gold); color: var(--ink); border-radius: var(--radius);
  padding: clamp(32px, 5vw, 56px); display: flex; flex-wrap: wrap; gap: 24px;
  align-items: center; justify-content: space-between;
}
.cta-band h2 { color: var(--ink); margin: 0 0 6px; }
.cta-band p { margin: 0; max-width: 52ch; }

/* ---------- Contact ---------- */
.email-card { max-width: 620px; margin: 0 auto; text-align: center; padding: clamp(32px, 6vw, 56px); }
.email-icon {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center;
  background: var(--nile-light); color: var(--nile); box-shadow: 0 0 0 2px var(--gold);
}
.email-card p { color: var(--muted); max-width: 46ch; margin-left: auto; margin-right: auto; }
.email-address {
  display: block; margin: 8px 0 24px; font-family: var(--font-head); font-weight: 600;
  font-size: clamp(1.15rem, 4.2vw, 1.6rem); color: var(--nile-dark); overflow-wrap: anywhere;
}
.email-address:hover { color: var(--gold-dark); }
.email-note { margin: 24px auto 0; font-size: 0.95rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--nile-dark); color: rgba(255, 255, 255, 0.8); padding: 56px 0 28px; margin-top: 0; }
.site-footer a { color: rgba(255, 255, 255, 0.9); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 { color: var(--white); font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.footer-brand img { width: 48px; height: 48px; }
.footer-brand span { font-family: var(--font-head); color: var(--white); font-size: 1.15rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15); margin-top: 40px; padding-top: 20px;
  font-size: 0.9rem; display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between;
}

/* ---------- 404 ---------- */
.not-found { text-align: center; padding: 120px 0; }
.not-found .big { font-family: var(--font-head); font-size: 6rem; color: var(--gold); line-height: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.quote footer { font-family: var(--font-body); font-style: normal; font-size: 0.95rem; color: var(--muted); margin-top: 10px; }

/* Clickable service cards (home) */
.card-link { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s; }
.card-link:hover { color: inherit; transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 10px 30px rgba(15, 76, 92, 0.14); }
.card-link .more { margin-top: auto; padding-top: 12px; font-weight: 600; color: var(--nile); }
.card-link:hover .more { color: var(--gold-dark); }

/* Services page */
.service-jump { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 28px; padding-bottom: 4px; }
.service-jump a {
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--white);
  text-decoration: none; color: var(--nile-dark); font-weight: 500; font-size: 0.95rem;
}
.service-jump a:hover { border-color: var(--nile); background: var(--nile-light); }
.service { scroll-margin-top: 80px; }
.service-icon { width: 60px; height: 60px; border-radius: 14px; display: grid; place-items: center; background: var(--nile-light); color: var(--nile); margin-bottom: 16px; }

/* Email links inside dark hero and gold CTA band */
.page-hero p a { color: var(--gold); }
.cta-band p a { color: var(--ink); font-weight: 600; }

.photo-credit { flex-basis: 100%; font-size: 0.8rem; opacity: 0.75; }
.photo-credit a { text-decoration: underline; }
