:root {
  --navy: #1B2A56;
  --navy-dark: #121D3D;
  --amber: #FBB040;
  --amber-dark: #D9922A;
  --paper: #FAF9F6;
  --ink: #22283A;
  --ink-soft: #4B5266;
  --line: #E3E1DA;
  --max-width: 960px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2 {
  font-weight: 700;
  margin: 0;
  color: var(--navy);
}

a { color: var(--navy); }
a:hover { color: var(--amber-dark); }

.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.icon-lg {
  width: 34px;
  height: 34px;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 3px solid var(--amber);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 8px;
  padding: 3px;
  display: flex;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 5px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.brand-zh {
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand-en {
  color: var(--amber);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}

.site-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.site-nav a {
  color: #E8E9EF;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.site-nav a:hover {
  color: var(--amber);
  border-bottom-color: var(--amber);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 3px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.btn-amber {
  background: var(--amber);
  color: var(--navy-dark);
}

.btn-amber:hover {
  background: var(--amber-dark);
  color: var(--navy-dark);
  opacity: 1;
}

.btn-outline {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}

.btn-outline:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.btn-outline-navy {
  border-color: var(--navy);
  color: var(--navy);
}

.btn-outline-navy:hover {
  border-color: var(--amber-dark);
  color: var(--amber-dark);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--navy-dark);
  color: #fff;
  overflow: hidden;
  padding: 88px 0 76px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(3px) brightness(0.8) saturate(0.95);
  transform: scale(1.06);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(27,42,86,0.6) 0%, rgba(18,29,61,0.78) 100%);
}

.hero-sunburst {
  position: absolute;
  top: 50%;
  right: -120px;
  width: 480px;
  height: 480px;
  transform: translateY(-50%);
  background: var(--amber);
  opacity: 0.1;
  z-index: 2;
  clip-path: polygon(
    50% 0%, 61% 35%, 93% 7%, 68% 39%,
    100% 50%, 68% 61%, 93% 93%, 61% 65%,
    50% 100%, 39% 65%, 7% 93%, 32% 61%,
    0% 50%, 32% 39%, 7% 7%, 39% 35%
  );
}

.hero-inner {
  position: relative;
  z-index: 3;
  text-align: center;
}

.hero-logo {
  width: 108px;
  height: 108px;
  margin: 0 auto 26px;
  background: #fff;
  border-radius: 20px;
  padding: 12px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.28);
}

.hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-eyebrow {
  margin: 0 0 18px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--amber);
}

.hero h1 {
  color: #fff;
  font-size: 2.1rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-en {
  font-size: 1.05rem;
  font-weight: 500;
  color: #C9CEE0;
  letter-spacing: 0.01em;
}

.hero-tagline {
  margin: 26px 0 0;
  font-size: 1.15rem;
  color: #F1E4C8;
}

.hero-cta {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Divider (sunburst motif) ---------- */

.divider {
  display: flex;
  justify-content: center;
  padding: 6px 0;
}

.divider-mark {
  width: 22px;
  height: 22px;
  background: var(--amber);
  clip-path: polygon(
    50% 0%, 61% 35%, 93% 7%, 68% 39%,
    100% 50%, 68% 61%, 93% 93%, 61% 65%,
    50% 100%, 39% 65%, 7% 93%, 32% 61%,
    0% 50%, 32% 39%, 7% 7%, 39% 35%
  );
}

/* ---------- Sections ---------- */

.section {
  padding: 56px 0;
}

.section h2 {
  font-size: 1.5rem;
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--line);
}

.about-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: start;
}

.about-text p {
  color: var(--ink-soft);
  margin: 0 0 18px;
}

.about-text p:last-child { margin-bottom: 0; }

.about-photos {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-photo {
  margin: 0;
}

.about-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--line);
}

.about-photo figcaption {
  margin-top: 6px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* Meeting info card */

.meeting-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: 4px;
  padding: 22px 24px;
  color: var(--navy);
}

.meeting-card .icon-lg {
  color: var(--amber-dark);
}

.meeting-card p {
  margin: 0;
  color: var(--ink-soft);
}

/* Numbered / icon card grid (service achievements + focus areas) */

.card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.num-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(27, 42, 86, 0.05);
}

.num-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.num-badge {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--line);
  letter-spacing: 0.02em;
}

.num-card .icon {
  color: var(--amber-dark);
}

.service-title {
  font-weight: 700;
  color: var(--navy);
}

.service-desc {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Photo cards (service achievements) */

.photo-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.photo-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(27, 42, 86, 0.06);
  display: flex;
  flex-direction: column;
}

.photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: top;
}

.photo-card-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 3px solid var(--amber);
}

.photo-card-body .service-title {
  font-size: 0.88rem;
  line-height: 1.5;
}

.photo-card-body .service-desc {
  font-size: 0.78rem;
  line-height: 1.55;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 1px 0 1px;
}

.tag {
  font-size: 0.7rem;
  color: var(--navy);
  background: #F2EEE3;
  border-radius: 999px;
  padding: 2px 9px;
  font-weight: 500;
}

/* Focus areas — compact variant of the card grid */

.focus-intro {
  color: var(--ink-soft);
  margin-top: -14px;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.focus-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.num-card-sm {
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
}

.num-card-sm .icon {
  color: var(--amber-dark);
}

.num-card-sm span:last-child {
  font-weight: 500;
  color: var(--navy);
}

/* What is Rotary */

.rotary-intro {
  color: var(--ink-soft);
  margin: -8px 0 18px;
}

.rotary-intro-tight {
  margin-top: 0;
  margin-bottom: 14px;
}

.rotary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0 34px;
}

.rotary-block {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  border-radius: 3px;
  padding: 18px 20px;
}

.rotary-block h3 {
  margin: 0 0 10px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--amber-dark);
  text-transform: uppercase;
}

.rotary-block p {
  margin: 0;
  color: var(--navy);
  font-weight: 500;
}

.rotary-block ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.rotary-block ul li {
  color: var(--navy);
  font-weight: 500;
}

.rotary-block ul li::before {
  content: "·";
  color: var(--amber-dark);
  margin-right: 6px;
}

.four-way-heading {
  margin: 0 0 4px;
  font-size: 1.05rem;
  color: var(--navy);
}

.four-way-list {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  counter-reset: fwt;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.four-way-list li {
  counter-increment: fwt;
  position: relative;
  padding: 14px 20px 14px 56px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--navy);
  font-weight: 500;
}

.four-way-list li::before {
  content: counter(fwt);
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--amber);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rotary-note {
  color: #8B8F9E;
  font-size: 0.85rem;
  margin: 0;
}

/* Join */

.join {
  background: #F2EEE3;
}

.join-inner {
  text-align: center;
}

.join-lead {
  color: var(--ink-soft);
  margin: 0 0 26px;
}

.join-cta {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Contact */

.contact-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: baseline;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 14px;
}

.contact-item dt {
  min-width: 88px;
  color: var(--amber-dark);
  font-weight: 700;
  font-size: 0.92rem;
}

.contact-item dd {
  margin: 0;
  color: var(--ink-soft);
}

.contact-item a {
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-dark);
  color: #B9BFD6;
  padding: 32px 0;
  text-align: center;
  font-size: 0.85rem;
}

.footer-logo {
  display: block;
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  background: #fff;
  border-radius: 10px;
  padding: 5px;
}

.footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.footer-org {
  color: #fff;
  font-weight: 700;
  margin: 0 0 10px;
}

.footer-line {
  margin: 4px 0;
}

.footer-domain {
  margin: 12px 0 0;
  color: var(--amber);
  letter-spacing: 0.02em;
}

/* ---------- Responsive ---------- */

@media (max-width: 600px) {
  .hero { padding: 64px 0 56px; }
  .hero h1 { font-size: 1.6rem; }
  .hero-en { font-size: 0.9rem; }
  .hero-tagline { font-size: 1rem; }
  .section { padding: 40px 0; }
  .header-inner { flex-direction: column; align-items: flex-start; }
  .site-nav { gap: 12px; font-size: 0.85rem; }
  .contact-item { flex-direction: column; gap: 4px; }
  .contact-item dt { min-width: unset; }
  .meeting-card { flex-direction: column; }
  .four-way-list li { padding-left: 50px; }
  .about-layout { grid-template-columns: 1fr; }
  .about-photos { flex-direction: row; }
  .about-photos .about-photo { flex: 1; }
}
