/* ============================================================
   HappyHome Design System — Rotary Huawen Adaptation
   套用於宜蘭華文扶輪社網站設計稿

   字體規模設計原則（老花眼友善）
   ─────────────────────────────────
   • 最小可見字體：14px（僅限極少數補充資訊）
   • 內文基準：18px（原本 16px 對長輩略小）
   • 表格 / 表單：最小 16px（iOS < 16px 會觸發自動縮放）
   • 行高：1.75–1.8（增加行間空白，減少閱讀壓力）
   • 所有 UI 元件（按鈕、導覽、卡片）≥ 15px
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Inter+Tight:wght@300;400;500;600&display=swap');

:root {
  /* ── Brand Colors ── */
  --color-bg:           #FAFAF8;
  --color-surface:      #F5F0EA;
  --color-surface-warm: #EDE4D8;
  --color-surface-mid:  #E4D9CB;
  --color-dark:         #1C1814;
  --color-dark-mid:     #2E2820;

  /* ── Accent — Caramel / Terracotta ── */
  --color-accent:       #B5764A;
  --color-accent-light: #CC9470;
  --color-accent-deep:  #8F5C34;
  --color-accent-dim:   rgba(181,118,74,0.12);
  --color-accent-border:rgba(181,118,74,0.25);

  /* ── Secondary — Sage Green ── */
  --color-sage:         #6B8C73;
  --color-sage-dim:     rgba(107,140,115,0.12);
  --color-sage-border:  rgba(107,140,115,0.25);

  /* ── Text ── */
  --color-text-dark:    #1C1814;
  --color-text-body:    #3D3028;
  --color-text-muted:   #8A7B6A;
  --color-text-dim:     #B5A898;
  --color-text-light:   #FAFAF8;

  /* ── Border ── */
  --color-border:       rgba(28,24,20,0.08);
  --color-border-strong:rgba(28,24,20,0.16);

  /* ── Status ── */
  --color-success: #4A9B6F;
  --color-warning: #D4845A;
  --color-error:   #C94F4F;
  --color-info:    #5A82B0;

  /* ── Typography ── */
  --font-heading: 'Manrope', sans-serif;
  --font-body:    'Inter Tight', sans-serif;

  /* ── Font Sizes（老花眼友善版）──
     調整重點：
       caption 12→14px  xs 13→15px
       body-sm 14→16px  body 16→18px  body-lg 18→22px
       heading 最小值全面拉高（clamp 下限提升）
  ── */
  --text-display: clamp(3rem,    7vw,   6rem);      /* 48–96px，展示大標 */
  --text-h1:      clamp(2.5rem,  4.5vw, 4rem);      /* 40–64px */
  --text-h2:      clamp(1.875rem,2.8vw, 2.75rem);   /* 30–44px */
  --text-h3:      clamp(1.375rem,1.8vw, 2rem);      /* 22–32px */
  --text-h4:      clamp(1.125rem,1.4vw, 1.375rem);  /* 18–22px */
  --text-body-lg: 1.375rem;    /* 22px — 重要說明 / 大卡片內文 */
  --text-body:    1.125rem;    /* 18px — 一般內文（原 16px） */
  --text-body-sm: 1rem;        /* 16px — 次要內文（原 14px） */
  --text-xs:      0.9375rem;   /* 15px — 標籤 / 輔助說明（原 13px） */
  --text-caption: 0.875rem;    /* 14px — 最小值，僅版權 / 時間戳記（原 12px） */

  /* ── Spacing (8px grid) ── */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* ── Layout ── */
  --section-padding-x: clamp(1.25rem, 5vw, 7.5rem);
  --section-padding-y: clamp(3rem, 7vw, 7rem);
  --container-content: 1280px;
  --container-narrow:  800px;
  --navbar-height:     80px;   /* 由 72px 增高，配合較大字體 */

  /* ── Border Radius ── */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* ── Shadows ── */
  --shadow-sm:     0 1px 4px rgba(28,24,20,0.06);
  --shadow-md:     0 4px 16px rgba(28,24,20,0.10);
  --shadow-lg:     0 8px 32px rgba(28,24,20,0.14);
  --shadow-card:   0 2px 20px rgba(28,24,20,0.08);
  --shadow-accent: 0 4px 20px rgba(181,118,74,0.25);

  /* ── Motion ── */
  --ease-smooth: cubic-bezier(0.4,0,0.2,1);
  --ease-spring: cubic-bezier(0.34,1.56,0.64,1);
  --ease-out:    cubic-bezier(0,0,0.2,1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  font-size: var(--text-body);     /* 18px 基準 */
  background: var(--color-bg);
  color: var(--color-dark);
  line-height: 1.75;               /* 原 1.6，增加行間距 */
  -webkit-font-smoothing: antialiased;
}

/* ── Navbar ── */
.navbar {
  height: var(--navbar-height);    /* 80px */
  display: flex; align-items: center;
  padding: 0 var(--section-padding-x);
  background: rgba(250,250,248,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  position: sticky; top: 0; z-index: 100;
}
.navbar-inner {
  display: flex; align-items: center; width: 100%;
  max-width: var(--container-content); margin: 0 auto;
}
.navbar-logo {
  font-family: var(--font-heading); font-weight: 800; font-size: 1.25rem; /* 20px */
  letter-spacing: -0.02em; color: var(--color-dark); text-decoration: none;
  display: flex; align-items: center; gap: 10px; margin-right: 40px; flex-shrink: 0;
}
.navbar-logo-mark {
  width: 40px; height: 40px; border-radius: 10px; background: var(--color-accent);
  display: flex; align-items: center; justify-content: center; color: #fff;
  font-family: var(--font-heading); font-weight: 800; font-size: 1.125rem;
}
.nav-links { display: flex; align-items: center; gap: 28px; flex: 1; }
.nav-link {
  font-size: 1rem;             /* 16px，原 14px */
  font-weight: 500; color: rgba(28,24,20,0.6);
  text-decoration: none; transition: color 200ms; position: relative; white-space: nowrap;
}
.nav-link:hover { color: var(--color-dark); }
.nav-link.active { color: var(--color-dark); font-weight: 600; }
.nav-link.active::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--color-accent); border-radius: 1px;
}
.navbar-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--radius-full);
  background: var(--color-accent); color: #fff;
  font-family: var(--font-body); font-size: 1rem; font-weight: 600; /* 16px，原 14px */
  border: none; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background 200ms, transform 300ms var(--ease-spring), box-shadow 200ms;
}
.btn-primary:hover { background: var(--color-accent-deep); transform: scale(1.04); box-shadow: var(--shadow-accent); }
.btn-primary:active { transform: scale(0.97); }
.btn-primary.sm { padding: 10px 22px; font-size: 0.9375rem; }  /* 15px */
.btn-primary.lg { padding: 17px 40px; font-size: 1.0625rem; } /* 17px */

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius-full);
  background: transparent; color: var(--color-dark);
  font-family: var(--font-body); font-size: 1rem; font-weight: 500; /* 16px，原 14px */
  border: 1.5px solid rgba(28,24,20,0.18); cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: border-color 200ms, background 200ms;
}
.btn-outline:hover { border-color: var(--color-accent); background: var(--color-accent-dim); }
.btn-outline.sm { padding: 9px 20px; font-size: 0.9375rem; }  /* 15px */

.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 24px; border-radius: var(--radius-full);
  background: var(--color-accent-dim); color: var(--color-accent);
  font-family: var(--font-body); font-size: 1rem; font-weight: 600; /* 16px */
  border: 1px solid var(--color-accent-border); cursor: pointer; text-decoration: none;
  transition: background 200ms;
}
.btn-ghost:hover { background: rgba(181,118,74,0.2); }

.btn-text {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer; padding: 4px 0;
  color: var(--color-accent); font-family: var(--font-body); font-size: 1rem; font-weight: 500;
  text-decoration: none;
}
.btn-text:hover { color: var(--color-accent-deep); }

/* ── Section Layout ── */
.section { padding: var(--section-padding-y) var(--section-padding-x); }
.section-dark { background: var(--color-dark); padding: var(--section-padding-y) var(--section-padding-x); }
.section-warm { background: var(--color-surface-warm); padding: var(--section-padding-y) var(--section-padding-x); }
.section-surface { background: var(--color-surface); padding: var(--section-padding-y) var(--section-padding-x); }
.container { max-width: var(--container-content); margin: 0 auto; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; }

/* ── Eyebrow ── */
.eyebrow {
  font-size: 0.8125rem;        /* 13px，比設計系統原版稍大 */
  font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--color-accent);
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
}
.eyebrow::before { content: ''; width: 20px; height: 1.5px; background: var(--color-accent); display: block; }

/* ── Section Title / Desc ── */
.section-title {
  font-family: var(--font-heading); font-weight: 800; letter-spacing: -0.02em;
  color: var(--color-dark); line-height: 1.15;
}
.section-title-light { color: var(--color-bg); }
.section-desc {
  font-size: var(--text-body);   /* 18px，原 16px */
  color: rgba(28,24,20,0.6); line-height: 1.75;
}
.section-desc-light { color: rgba(250,250,248,0.55); }

/* ── Cards ── */
.card {
  background: var(--color-bg); border-radius: var(--radius-lg);
  border: 1px solid var(--color-border); overflow: hidden;
  transition: transform 300ms var(--ease-spring), box-shadow 300ms;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(181,118,74,0.15); }
.card-body { padding: 28px; }   /* 原 24px，更寬鬆 */

.card-img {
  aspect-ratio: 16/9; background: linear-gradient(135deg, var(--color-surface-warm), #D4C5B0);
  display: flex; align-items: center; justify-content: center;
  color: rgba(28,24,20,0.2); font-size: var(--text-xs); overflow: hidden;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; }

.card-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.8125rem;          /* 13px，原 11px */
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-accent); margin-bottom: 8px;
}
.card-title {
  font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; /* 20px，原 18px */
  color: var(--color-dark); line-height: 1.3; margin-bottom: 10px;
}
.card-meta {
  font-size: var(--text-xs);     /* 15px，原 13px */
  color: var(--color-text-muted); display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.card-desc {
  font-size: var(--text-body-sm); /* 16px，原 14px */
  color: rgba(28,24,20,0.6); line-height: 1.75; margin-top: 8px;
}

/* ── Badge ── */
.badge {
  display: inline-flex; align-items: center;
  padding: 4px 12px; border-radius: var(--radius-full);
  font-size: 0.8125rem;          /* 13px，原 11px */
  font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
}
.badge-accent  { background: var(--color-accent); color: #fff; }
.badge-sage    { background: var(--color-sage); color: #fff; }
.badge-outline { background: transparent; border: 1px solid var(--color-border-strong); color: var(--color-text-muted); }
.badge-warm    { background: var(--color-surface-warm); color: var(--color-text-body); }
.badge-success { background: rgba(74,155,111,0.12); color: #2d7a52; border: 1px solid rgba(74,155,111,0.25); }
.badge-warning { background: rgba(212,132,90,0.12); color: #954f2a; border: 1px solid rgba(212,132,90,0.25); }
.badge-error   { background: rgba(201,79,79,0.1);  color: #9b2b2b; border: 1px solid rgba(201,79,79,0.2); }
.badge-info    { background: rgba(90,130,176,0.1);  color: #2e5a8a; border: 1px solid rgba(90,130,176,0.2); }

/* ── Hero ── */
.hero {
  min-height: 580px; display: flex; align-items: center;
  background: linear-gradient(160deg, var(--color-bg) 0%, var(--color-surface-warm) 60%, #D4C5B0 100%);
  padding: 88px var(--section-padding-x);
  position: relative; overflow: hidden;
}
.hero-dark {
  min-height: 580px; display: flex; align-items: center;
  background: linear-gradient(135deg, var(--color-dark), var(--color-dark-mid));
  padding: 88px var(--section-padding-x);
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: var(--radius-full);
  background: var(--color-accent-dim); border: 1px solid var(--color-accent-border);
  font-size: 0.8125rem;          /* 13px */
  font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-accent); margin-bottom: 24px;
}
.hero-title {
  font-family: var(--font-heading); font-size: var(--text-h1); font-weight: 800;
  color: var(--color-dark); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 20px;
}
.hero-title em { color: var(--color-accent); font-style: normal; }
.hero-title-light { color: var(--color-bg); }
.hero-desc {
  font-size: clamp(1.0625rem, 2vw, 1.25rem); /* 17–20px，原 15–18px */
  color: rgba(28,24,20,0.65); line-height: 1.75; margin-bottom: 40px;
}
.hero-desc-light { color: rgba(250,250,248,0.6); }

/* ── Image Placeholder ── */
.img-placeholder {
  background: linear-gradient(135deg, var(--color-surface-warm), #D4C5B0);
  display: flex; align-items: center; justify-content: center;
  color: rgba(28,24,20,0.3); font-size: var(--text-xs); /* 15px，原 13px */
  font-weight: 500;
}

/* ── Form Elements ── */
.form-label {
  display: block;
  font-size: var(--text-body-sm); /* 16px，原 13px — 防止 iOS 縮放 */
  font-weight: 600; color: var(--color-text-dark);
  margin-bottom: 8px; letter-spacing: 0.01em;
}
.form-input {
  width: 100%; padding: 13px 18px; border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border-strong); background: var(--color-bg);
  font-family: var(--font-body);
  font-size: 1rem;               /* 16px — iOS < 16px 會強制縮放頁面 */
  color: var(--color-dark); outline: none;
  transition: border-color 200ms;
  line-height: 1.5;
}
.form-input:focus { border-color: var(--color-accent); box-shadow: 0 0 0 3px var(--color-accent-dim); }
.form-input::placeholder { color: var(--color-text-dim); }
select.form-input {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding: 13px 40px 13px 18px;
  cursor: pointer;
}
.form-textarea { resize: vertical; min-height: 140px; }
.form-select { appearance: none; cursor: pointer; }

/* ── Table ── */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--color-border); }
table { width: 100%; border-collapse: collapse; }
thead tr { background: var(--color-surface); border-bottom: 1px solid var(--color-border-strong); }
th {
  padding: 14px 18px; text-align: left;
  font-size: 0.8125rem;          /* 13px，原 12px */
  font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--color-text-muted);
}
td {
  padding: 16px 18px;            /* 加高 row，更易閱讀 */
  font-size: var(--text-body-sm); /* 16px，原 14px */
  color: var(--color-text-dark); border-bottom: 1px solid var(--color-border);
  line-height: 1.5;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--color-surface); }

/* ── Footer ── */
.footer {
  background: var(--color-dark); padding: 72px var(--section-padding-x) 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
.footer-brand {
  font-family: var(--font-heading); font-size: 1.25rem; font-weight: 800;
  color: var(--color-bg); display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.footer-logo-mark {
  width: 36px; height: 36px; border-radius: 9px; background: var(--color-accent);
  display: flex; align-items: center; justify-content: center; color: #fff;
  font-family: var(--font-heading); font-weight: 800; font-size: 1rem; flex-shrink: 0;
}
.footer-desc {
  font-size: var(--text-body-sm); /* 16px，原 14px */
  color: rgba(250,250,248,0.5); line-height: 1.75; margin-bottom: 24px; max-width: 300px;
}
.footer-col-title {
  font-size: 0.8125rem;          /* 13px，原 11px */
  font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(250,250,248,0.4); margin-bottom: 20px;
}
.footer-link {
  display: block;
  font-size: var(--text-body-sm); /* 16px，原 14px */
  color: rgba(250,250,248,0.55); text-decoration: none;
  margin-bottom: 12px; transition: color 200ms;
}
.footer-link:hover { color: var(--color-bg); }
.footer-social { display: flex; gap: 10px; }
.footer-social-btn {
  width: 40px; height: 40px; border-radius: 9px; border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04); display: flex; align-items: center; justify-content: center;
  color: rgba(250,250,248,0.5); cursor: pointer;
  transition: background 200ms, color 200ms, border-color 200ms;
}
.footer-social-btn:hover { background: rgba(181,118,74,0.15); color: var(--color-accent); border-color: var(--color-accent-border); }
.footer-bottom {
  margin-top: 56px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-bottom-text {
  font-size: var(--text-caption); /* 14px，原 12px */
  color: rgba(250,250,248,0.35);
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-link {
  font-size: var(--text-caption); /* 14px，原 12px */
  color: rgba(250,250,248,0.35); text-decoration: none; transition: color 200ms;
}
.footer-bottom-link:hover { color: rgba(250,250,248,0.7); }

/* ── Member Area Sidebar ── */
.ma-shell { display: flex; width: 100%; min-height: 100vh; }
.ma-sidebar {
  width: 272px;                  /* 原 256px，配合更大字體 */
  flex-shrink: 0; background: var(--color-dark);
  display: flex; flex-direction: column; height: 100vh;
  position: sticky; top: 0; overflow-y: auto;
}
.ma-sidebar::-webkit-scrollbar { width: 4px; }
.ma-sidebar::-webkit-scrollbar-thumb { background: rgba(250,250,248,0.12); border-radius: 4px; }
.ma-sidebar-top {
  padding: 24px 20px; border-bottom: 1px solid rgba(250,250,248,0.08);
  display: flex; align-items: center; gap: 12px;
}
.ma-sidebar-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--color-accent-dim); border: 2px solid var(--color-accent-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-accent); font-weight: 700;
  font-size: var(--text-body-sm); /* 16px */
  flex-shrink: 0;
}
.ma-sidebar-user-name {
  font-size: var(--text-body-sm); /* 16px，原 13px */
  font-weight: 600; color: var(--color-bg);
}
.ma-sidebar-user-role {
  font-size: var(--text-xs);     /* 15px，原 11px */
  color: rgba(250,250,248,0.45); margin-top: 2px;
}
.ma-nav-group { padding: 8px 0; }
.ma-nav-group-label {
  padding: 10px 20px 5px;
  font-size: 0.75rem;            /* 12px，原 10px，分組標籤可接受稍小 */
  font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(250,250,248,0.3);
}
.ma-nav-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 20px;
  font-size: var(--text-body-sm); /* 16px，原 13px */
  color: rgba(250,250,248,0.65); cursor: pointer;
  transition: background 150ms, color 150ms; border-left: 2px solid transparent;
  text-decoration: none;
}
.ma-nav-item:hover { background: rgba(250,250,248,0.06); color: rgba(250,250,248,0.95); }
.ma-nav-item.active {
  background: var(--color-accent-dim); color: var(--color-accent);
  border-left-color: var(--color-accent); font-weight: 600;
}
.ma-nav-item .icon { width: 20px; text-align: center; font-size: 17px; flex-shrink: 0; }
.ma-nav-divider { height: 1px; background: rgba(250,250,248,0.06); margin: 6px 20px; }
.ma-content { flex: 1; min-width: 0; background: var(--color-surface); overflow-x: hidden; }
.ma-topbar {
  background: var(--color-bg); border-bottom: 1px solid var(--color-border);
  padding: 0 28px; height: 68px;  /* 原 60px，配合更大字體 */
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
}
.ma-topbar-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;           /* 18px，原 16px */
  font-weight: 800; color: var(--color-dark);
}
.ma-page-body { padding: 36px 28px; } /* 原 32px 24px */

/* ── Utility ── */
.divider { height: 1px; background: var(--color-border); }
.text-accent { color: var(--color-accent); }
.text-muted { color: var(--color-text-muted); }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; }

/* Mobile menu — hidden by default, shown on small screens when toggled */
.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  width: 100%;
  z-index: 999;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 12px 20px 16px;
  gap: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.mobile-menu a {
  font-size: 1rem; font-weight: 500; color: var(--color-dark);
  text-decoration: none; padding: 10px 0;
  border-bottom: 1px solid var(--color-border-light, var(--color-border));
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu.open { display: flex; }

@media (max-width: 960px) {
  .nav-links { display: none; }
  #mobile-menu-btn { display: flex !important; }
  .footer-grid { grid-template-columns: repeat(2,1fr); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .ma-sidebar { display: none; }
}
