/*
Theme Name: HKADRA Association
Theme URI: https://example.local/hkadra
Author: Chapman Chung
Description: Old-style fixed-width member association theme for 香港汽車回收劏車商會 (Hong Kong Auto Dismantling Recycling Association). Inspired by classic HK industry association sites (~960px, blue nav, red notice).
Version: 1.0.0
Text Domain: hkadra
*/

/* --- Reset (light) --- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
a { color: #5a5a5a; text-decoration: none; }
a:hover { color: #47cdff; }
ul { margin: 0; padding: 0; list-style: none; }

body {
  font-family: "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", "宋體", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #5a5a5a;
  background: #7eb8e8 url("assets/img/sky-bg.jpg") center top / cover no-repeat fixed;
  background-color: #7eb8e8;
}

/* --- Fixed ~960px column --- */
.site-wrap {
  width: 960px;
  max-width: 100%;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 0 12px rgba(0,0,0,0.25);
}

/* --- Header / banner --- */
.site-header {
  position: relative;
  background: #1e5a96 url("assets/img/banner.jpg") center center / cover no-repeat;
  min-height: 180px;
  border-bottom: 3px solid #0d3a66;
}

.site-header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px 28px;
  min-height: 180px;
  background: linear-gradient(90deg, rgba(8,40,70,0.55) 0%, rgba(8,40,70,0.25) 55%, rgba(8,40,70,0.15) 100%);
}

.site-logo {
  flex: 0 0 auto;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #2e7d32;
  border: 3px solid #c9a227;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  text-align: center;
  line-height: 1.2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
  overflow: hidden;
}

.site-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-branding { flex: 1; }

.site-title {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #f0d060;
  text-shadow:
    0 0 4px rgba(0,0,0,0.85),
    1px 1px 0 #5a3e00,
    2px 2px 3px rgba(0,0,0,0.6),
    0 0 12px rgba(240,208,96,0.45);
}

.site-title a { color: inherit; }
.site-title a:hover { color: #ffe9a0; }

.site-description {
  margin: 0;
  font-size: 13px;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.lang-switch {
  position: absolute;
  left: 12px;
  bottom: 8px;
  font-size: 12px;
  background: #ddd;
  border: 1px solid #999;
  padding: 2px 6px;
  color: #333;
}

/* --- Blue gradient JPG-style nav --- */
.main-nav {
  background: linear-gradient(to bottom, #4a9ad4 0%, #1f6fad 48%, #155a92 100%);
  border-top: 1px solid #7ec0ea;
  border-bottom: 2px solid #0d3a66;
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: stretch;
}

.main-nav li {
  flex: 1 1 auto;
  text-align: center;
  border-right: 1px solid #7ec0ea;
  border-left: 1px solid #0d4a78;
}

.main-nav li:first-child { border-left: none; }
.main-nav li:last-child { border-right: none; }

.main-nav a {
  display: block;
  padding: 10px 6px;
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  text-shadow: 0 1px 1px rgba(0,0,0,0.35);
  background: transparent;
}

.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
  background: linear-gradient(to bottom, #6eb8e8 0%, #3a8fc4 100%);
  color: #fff !important;
}

/* Fallback if no menu assigned */
.main-nav .menu-fallback {
  display: flex;
  flex-wrap: wrap;
}
.main-nav .menu-fallback a {
  flex: 1 1 auto;
  text-align: center;
  border-right: 1px solid #7ec0ea;
}

/* --- Red notice bar --- */
.notice-bar {
  background: #ff0000;
  color: #fff;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.notice-bar a { color: #fff; text-decoration: underline; }
.notice-bar a:hover { color: #ffe0e0; }

/* --- Section bars (cyan-blue) --- */
.section-bar {
  background: linear-gradient(to bottom, #5eb3e0, #2f86c0);
  color: #fff;
  padding: 8px 14px;
  font-size: 16px;
  font-weight: 700;
  text-shadow: 0 1px 1px rgba(0,0,0,0.25);
  margin: 0;
}

/* --- Content --- */
.site-content {
  padding: 0 0 24px;
  background: #fff;
}

.content-pad { padding: 16px 20px; }

.home-block {
  margin: 16px 20px;
  border: 1px solid #c8c8c8;
  background: #fafafa;
}

.home-block.peach { background: #ffe8d2; border-color: #e0b896; }
.home-block.gold  { background: #fff4d0; border-color: #d4b24a; }
.home-block.tan   { background: #f0e6d2; border-color: #c9b48a; }

.home-block .block-body { padding: 14px 16px; }

.home-grid {
  display: flex;
  gap: 16px;
  margin: 16px 20px;
  flex-wrap: wrap;
}

.home-grid .card {
  flex: 1 1 280px;
  border: 1px solid #c8c8c8;
  background: #fff;
}

.home-grid .card h3 {
  margin: 0;
  background: linear-gradient(to bottom, #5eb3e0, #2f86c0);
  color: #fff;
  padding: 8px 12px;
  font-size: 15px;
}

.home-grid .card .card-body { padding: 12px; font-size: 13px; }

.entry-title {
  margin: 0 0 12px;
  padding: 8px 14px;
  background: linear-gradient(to bottom, #5eb3e0, #2f86c0);
  color: #fff;
  font-size: 18px;
  text-shadow: 0 1px 1px rgba(0,0,0,0.25);
}

.entry-content { padding: 8px 20px 20px; }
.entry-content p { margin: 0 0 1em; }
.entry-content h2 { color: #1f6fad; border-bottom: 1px solid #cfe3f2; padding-bottom: 4px; }

.placeholder-note {
  font-size: 12px;
  color: #888;
  font-style: italic;
}

/* --- Footer --- */
.site-footer {
  background: #f5f0e6;
  border-top: 2px solid #1f6fad;
  padding: 12px 20px;
  font-size: 12px;
  color: #5a5a5a;
  text-align: center;
}

.site-footer strong { color: #1f6fad; }

/* --- Tiny screens: keep desktop-first, simple stack --- */
@media (max-width: 980px) {
  .site-wrap { width: 100%; }
  .main-nav ul { display: block; }
  .main-nav li { border-right: none; border-bottom: 1px solid #0d4a78; }
  .site-title { font-size: 22px; }
}

/* --- Trusted members: photo slots, table, cards --- */
.photo-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 2px dashed #a0a0a0;
  background: repeating-linear-gradient(
    -45deg,
    #f5f5f5,
    #f5f5f5 8px,
    #ebebeb 8px,
    #ebebeb 16px
  );
  color: #777;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  padding: 8px;
}
.photo-slot.wide {
  width: 100%;
  height: 140px;
  margin: 0 0 4px;
  font-size: 14px;
}
.photo-slot.thumb {
  width: 72px;
  height: 54px;
  margin: 0 auto;
  font-size: 11px;
  padding: 4px;
}
.photo-slot.yard {
  width: 140px;
  height: 105px;
  flex: 0 0 140px;
  font-size: 12px;
}
.photo-slot.cert {
  width: 100%;
  height: 72px;
  margin-top: 8px;
  font-size: 12px;
}
.photo-slot.group-mini {
  width: 100%;
  height: 48px;
  margin-top: 6px;
  font-size: 11px;
}
.photo-slot-label {
  display: block;
  font-size: 11px;
  color: #888;
  margin-top: 4px;
  text-align: center;
}
.proof-slot-wrap {
  margin: 12px 20px 4px;
}
.trust-table-wrap {
  overflow-x: auto;
}
.trust-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: #fff;
}
.trust-table thead th {
  background: #2f86c0;
  color: #fff;
  padding: 8px 6px;
  border: 1px solid #1f6fad;
  text-align: center;
  font-weight: 700;
  white-space: nowrap;
}
.trust-table thead th:nth-child(2) { text-align: left; }
.trust-table tbody td {
  padding: 8px 6px;
  border: 1px solid #c8c8c8;
  text-align: center;
  vertical-align: middle;
}
.trust-table tbody td.col-name { text-align: left; font-weight: 600; color: #444; }
.trust-table tbody tr:nth-child(even) { background: #f7f7f7; }
.trust-table .rating-stars,
.member-card .rating-stars {
  color: #c9a227;
  letter-spacing: 1px;
  font-size: 14px;
}
.member-cards {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0;
}
.member-card {
  flex: 1 1 420px;
  border: 1px solid #c8c8c8;
  background: #fff;
  min-width: 280px;
}
.member-card .card-head {
  background: linear-gradient(to bottom, #5eb3e0, #2f86c0);
  color: #fff;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 700;
  text-shadow: 0 1px 1px rgba(0,0,0,0.25);
}
.member-card .card-body { padding: 12px; }
.member-card .card-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.member-card .card-meta {
  flex: 1;
  font-size: 13px;
}
.member-card .card-meta .name {
  font-size: 15px;
  font-weight: 700;
  color: #1f6fad;
  margin: 0 0 6px;
}
.member-card .card-meta .meta-row {
  margin: 0 0 4px;
  color: #5a5a5a;
}
.member-card .card-meta .meta-label {
  color: #888;
  font-size: 12px;
}
