/* ============================================================
   Educare-HK (匠仁慈善機構) — static clone
   Cloned from: https://educarehkngo.wixsite.com/educarehk
   Design tokens & dimensions measured from the live site @1440px
   ============================================================ */

/* ---------- Fonts (extracted from the original site) ---------- */
@import url(../fonts.css);

/* ---------- Design tokens ---------- */
:root {
  --blue-dark:  #192A88;  /* nav active, buttons */
  --blue-steel: #4682B4;  /* hero handwritten title */
  --blue-peri:  #566FB8;  /* about heading, hero link */
  --peach:      #FFBBA3;  /* about "EduCare-HK Charity" */
  --ink:        #000000;
  --ink-soft:   #282626;

  --bg-header:  #F3F3F3;
  --bg-hero-card: #F3F3F3;
  --bg-footer:  #DCEAF8;
  --bg-about:   #DCEAF8;
  --bg-about-card: #FFF8F8;
  --about-card-shadow: #729FC5;
  --bg-card:    #F5F5F5;  /* activities cards */

  --font-round: 'tsukushimarugothic', 'lato', 'Microsoft JhengHei', 'PingFang TC', sans-serif;
  --font-body:  'avenir-lt-w01_35-light1475496', 'lato', 'Microsoft JhengHei', 'PingFang TC', sans-serif;
  --font-nav:   'lato', 'lato-light', 'Microsoft JhengHei', 'PingFang TC', sans-serif;
  --font-hand:  'wf_78d0a60e78474d7badbe5bfc2', 'lato', cursive;
  --font-lulo:  'lulo-clean-w01-one-bold', 'lato', sans-serif;

  --header-h: 123px;
  --footer-h: 177px;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--bg-header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 184px 0 18px;
}
.brand { display: flex; align-items: flex-start; gap: 10px; }
.brand-logo { width: 80px; height: 84px; margin-top: 9px; }
.brand-text {
  font-family: var(--font-round);
  font-size: 18px;
  line-height: 19.8px;
  letter-spacing: -0.03em;
  margin-top: 33px;
}
.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a {
  font-family: var(--font-nav);
  font-size: 16px;
  font-weight: 700;
  line-height: 30px;
  color: var(--ink);
  white-space: nowrap;
}
.main-nav a:hover { color: var(--blue-dark); }
.main-nav a.active { color: var(--blue-dark); }

/* mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
  padding: 8px;
}

/* ---------- Footer ---------- */
.site-footer {
  height: var(--footer-h);
  background: var(--bg-footer);
  display: flex;
  align-items: center;
  padding: 0 240px 0 252px;
  justify-content: space-between;
  font-family: var(--font-round);
  font-size: 18px;
  line-height: 19.8px;
  letter-spacing: -0.03em;
}
.footer-center {
  display: flex;
  align-items: flex-start;
  gap: 51px;
  margin-top: -26px; /* logo sits higher than the text columns (original) */
}
.footer-logo { width: 89px; height: 83px; }
.footer-name { margin-top: 40px; }
.footer-left, .footer-right { max-width: 260px; }
.footer-right { text-align: left; }
.site-footer a:hover { text-decoration: underline; }

/* ============================================================
   HOME
   ============================================================ */
.hero {
  height: 579px;
  background: url(../assets/hero-bg.jpg) center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-card {
  position: relative;
  width: 528px;
  height: 323px;
  background: var(--bg-hero-card);
  text-align: center;
  transform: translateY(-13px); /* original card sits slightly above center */
}
.hero-title {
  position: absolute;
  top: 31px; left: 0; right: 0;
  font-family: var(--font-hand);
  font-size: 31px;
  font-weight: 400;
  line-height: 37.2px;
  color: var(--blue-steel);
}
.hero-logo {
  position: absolute;
  top: 99px; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 84px;
}
.hero-name {
  position: absolute;
  top: 205px; left: 0; right: 0;
  font-family: var(--font-round);
  font-size: 18px;
  line-height: 26px;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.hero-link {
  position: absolute;
  top: 272px; left: 0; right: 0;
  display: inline-block;
  font-family: var(--font-lulo);
  font-size: 15px;
  line-height: 21px;
  color: var(--blue-peri);
}
.hero-link:hover { opacity: .8; }

/* ============================================================
   ABOUT  (關於我們)
   ============================================================ */
.about-main {
  background: var(--bg-about);
  min-height: 835px;
  display: flex;
  align-items: flex-start;
  padding: 77px 0 40px 77px;
}
.about-card {
  position: relative;
  flex: 0 0 auto;
  width: 404px;
  height: 393px;
  background: var(--bg-about-card);
  box-shadow: 11px 11px 0 var(--about-card-shadow);
}
.about-card img {
  width: 100%;
  height: 370px;
  object-fit: contain;
  margin-top: 11px;
}
.about-text {
  margin-left: 175px;
  max-width: 578px;
}
.about-text h1 {
  font-family: var(--font-round);
  font-size: 31px;
  font-weight: 400;
  line-height: 38px;
  color: var(--ink);
}
.about-big {
  font-family: var(--font-round);
  font-size: 51px;
  font-weight: 400;
  line-height: 62px;
  color: var(--blue-peri);
  margin-top: 4px;
}
.about-peach {
  font-family: var(--font-round);
  font-size: 31px;
  font-weight: 400;
  line-height: 38px;
  color: var(--peach);
  margin-top: 6px;
}
.about-para {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 36px;
  color: var(--ink);
  margin-top: 36px;
}
.about-para:first-of-type { margin-top: 50px; }

/* ============================================================
   ACTIVITIES  (機構活動)
   ============================================================ */
.act-main {
  background: #fff;
  padding: 84px 30px 36px;
}
.act-title {
  font-family: var(--font-round);
  font-size: 56px;
  font-weight: 700;
  line-height: 62px;
  text-align: center;
  color: var(--ink);
}
.act-dash {
  width: 29px;
  height: 4px;
  background: var(--ink);
  margin: 33px auto 52px;
}
.act-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
}
.act-card {
  position: relative;
  height: 428px;
  background: var(--bg-card);
  padding: 80px 45px 0 54px;
}
.act-card h2 {
  font-family: var(--font-nav);
  font-size: 53px;
  font-weight: 700;
  line-height: 62px;
  text-align: center;
  color: var(--ink);
}
.act-card p {
  font-family: var(--font-body);
  font-size: 24px;
  line-height: 34px;
  color: var(--ink);
  margin-top: 17px;
}
.act-btn {
  position: absolute;
  top: 310px;
  left: 50%;
  transform: translateX(-50%);
  width: 142px;
  height: 40px;
  background: var(--blue-dark);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 40px;
  text-align: center;
  display: block;
}
.act-btn:hover { background: #14236e; }

/* ============================================================
   CONTACT  (聯絡我們)
   ============================================================ */
.contact-main {
  background: #fff;
  min-height: 566px;
  display: flex;
  align-items: flex-start;
  padding: 116px 0 60px 87px;
}
.contact-info { flex: 0 0 466px; width: 466px; }
.contact-info h1 {
  font-family: var(--font-nav);
  font-size: 30px;
  font-weight: 700;
  line-height: 36px;
  color: var(--ink);
}
.c-whatsapp {
  margin-top: 44px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 19px;
  color: var(--ink-soft);
}
.c-email {
  margin-top: 21px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 19px;
  color: var(--ink);
}
.c-socials { margin-top: 32px; display: flex; gap: 5px; }
.c-socials a { display: block; width: 25px; height: 25px; }
.c-socials img { width: 25px; height: 25px; }

.contact-form {
  margin-left: 87px;
  width: 635px;
  max-width: 100%;
  padding: 0 10px 0 12px;
}
.form-row { display: flex; gap: 27px; }
.form-field { margin-bottom: 20px; }
.form-row .form-field { flex: 1; }
.contact-form label {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 19px;
  color: var(--ink);
  margin-bottom: 8px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: #fff;
  border: 1px solid #000;
  border-radius: 0;
  padding: 8px 10px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  outline: none;
}
.contact-form input { height: 37px; padding-top: 8px; }
.contact-form textarea { height: 86px; resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--blue-dark); }
.form-submit {
  width: 100%;
  height: 36px;
  margin-top: 3px;
  background: var(--blue-dark);
  border: 1px solid var(--blue-dark);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
}
.form-submit:hover { background: #14236e; }
.form-note {
  margin-top: 14px;
  font-size: 14px;
  line-height: 20px;
  color: var(--blue-dark);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1280px) {
  .site-header { padding: 0 60px 0 18px; }
  .site-footer { padding: 0 60px; }
  .about-text { margin-left: 90px; }
}
@media (max-width: 1024px) {
  .hero { height: auto; padding: 60px 20px; }
  .hero-card { width: 100%; max-width: 528px; height: auto; padding: 40px 24px 44px; }
  .hero-title, .hero-logo, .hero-name, .hero-link { position: static; transform: none; margin: 0 auto; }
  .hero-title { margin-bottom: 28px; }
  .hero-logo { margin: 0 auto 26px; }
  .hero-name { margin-bottom: 26px; }

  .about-main { flex-direction: column; padding: 50px 24px; }
  .about-text { margin-left: 40px; width: 100%; max-width: 662px; }
  .about-big { font-size: 40px; line-height: 48px; }

  .act-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .act-main { padding: 60px 30px; }

  .contact-main { flex-direction: column; padding: 60px 24px; }
  .contact-form { margin-left: 0; margin-top: 40px; width: 100%; max-width: 635px; }
}
@media (max-width: 720px) {
  .site-header { height: auto; flex-wrap: wrap; padding: 10px 16px; }
  .brand { margin: 8px 0; }
  .brand-text { margin-top: 20px; font-size: 16px; }
  .brand-logo { width: 60px; height: 63px; }
  .nav-toggle { display: block; margin-left: auto; }
  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 6px 0 12px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 8px 0; width: 100%; }

  .site-footer {
    height: auto;
    flex-direction: column;
    gap: 26px;
    padding: 34px 24px;
    text-align: center;
  }
  .footer-center { margin: 0; flex-direction: column; gap: 12px; }
  .footer-name { margin-top: 0; }
  .footer-left, .footer-right { max-width: none; }

  .act-grid { grid-template-columns: 1fr; }
  .act-card { height: 380px; padding: 56px 24px 0; }
  .act-card p { line-height: 30px; }
  .act-card h2 { font-size: 44px; }
  .act-card p { font-size: 20px; }
  .act-btn { top: 268px; }

  .about-card { box-shadow: 8px 8px 0 var(--about-card-shadow); }
  .act-title { font-size: 44px; line-height: 52px; }
}
