/*
Theme Name: CW Twenty Twenty-Five Child
Theme URI: https://christopherwong.my
Description: Child theme for Christopher Wong property agent website
Author: Christopher Wong
Template: twentytwentyfive
Version: 1.0.7
*/

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

/* ===== VARIABLES ===== */
:root {
  --cw-black:      #141414;
  --cw-white:      #FFFFFF;
  --cw-bg:         #F5F4F1;
  --cw-charcoal:   #2C2C2C;
  --cw-red:        #C0392B;
  --cw-grey:       #6C757D;
  --cw-light-grey: #F0F0F0;
  --cw-border:     #E6E6E6;
  --cw-purple:     #8E44AD;
  --cw-orange:     #E67E22;
  --cw-blue:       #2980B9;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; }

body.cw-page {
  font-family: 'Inter', sans-serif !important;
  color: var(--cw-charcoal);
  background: var(--cw-bg);
  margin: 0;
  padding: 0;
}

body.cw-page .wp-site-blocks { all: unset; }

/* ===== NAV ===== */
.cw-nav {
  background: var(--cw-black);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
}

.cw-nav__brand {
  color: var(--cw-white);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
  display: flex;
  align-items: baseline;
  gap: 10px;
  letter-spacing: -0.3px;
}
.cw-nav__pea {
  color: #3A3A3A;
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 500;
}

.cw-nav-accent {
  height: 2px;
  background: var(--cw-red);
  position: sticky;
  top: 54px;
  z-index: 999;
}

.cw-nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.cw-nav__links li { display: flex; align-items: center; }

.cw-nav__links a {
  color: #666;
  text-decoration: none;
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.2px;
  transition: color 0.15s;
}
.cw-nav__links a:hover { color: var(--cw-white); }

.cw-btn-wa {
  background: var(--cw-red) !important;
  color: var(--cw-white) !important;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.8px;
  border-radius: 2px;
  text-decoration: none !important;
  white-space: nowrap;
}

.cw-nav__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.cw-nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cw-white);
  margin: 5px 0;
}

/* ===== FILTER BAR ===== */
.cw-filter {
  background: var(--cw-white);
  border-bottom: 1px solid #EBEBEB;
  position: sticky;
  top: 56px;
  z-index: 998;
  padding: 0 28px;
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.cw-filter__txn {
  display: flex;
  border-right: 1px solid #F0F0F0;
  margin-right: 24px;
  padding-right: 24px;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.cw-filter__sep { /* spacer already handled by margin */ }

.cw-filter__cats { display: flex; }

.cw-filter__txn-tab,
.cw-filter__cat-tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 14px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #BBBBBB;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  line-height: 1;
}

.cw-filter__txn-tab:hover,
.cw-filter__cat-tab:hover { color: var(--cw-charcoal); }

.cw-filter__txn-tab.active {
  color: var(--cw-red);
  border-bottom-color: var(--cw-red);
}

.cw-filter__cat-tab {
  font-weight: 400;
  letter-spacing: 0;
}
.cw-filter__cat-tab.active {
  color: var(--cw-black);
  font-weight: 700;
  letter-spacing: 0.5px;
  border-bottom-color: var(--cw-red);
}

/* ===== PAGE WRAPPER ===== */
.cw-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 28px;
}

/* ===== FEATURED CARD ===== */
.cw-featured {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 14px;
  cursor: pointer;
  user-select: none;
}

.cw-featured__img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
  filter: brightness(0.65);
}
.cw-featured__img--ph {
  width: 100%;
  height: 360px;
  background: #2a2a2a;
  display: block;
}

.cw-featured__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 20%, rgba(0,0,0,0.9) 100%);
  pointer-events: none;
}

.cw-featured__play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  width: 52px;
  height: 52px;
  background: rgba(192, 57, 43, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.cw-featured__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.cw-featured__left  { flex: 1; }
.cw-featured__right { text-align: right; flex-shrink: 0; }

.cw-featured__badges { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }

.cw-fbadge {
  display: inline-block;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 2px;
  letter-spacing: 0.8px;
  font-family: 'Inter', sans-serif;
}

.cw-featured__name {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 6px;
  font-family: 'Inter', sans-serif;
}
.cw-featured__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 12px;
  color: #bbb;
  font-family: 'Inter', sans-serif;
}
.cw-featured__price {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}
.cw-featured__wa {
  display: inline-block;
  background: var(--cw-red);
  color: #fff !important;
  font-size: 11px;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 2px;
  text-decoration: none !important;
  letter-spacing: 0.5px;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
}

/* ===== SMALL CARDS GRID ===== */
.cw-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.cw-card {
  background: var(--cw-white);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--cw-border);
  display: flex;
  flex-direction: column;
  font-family: 'Inter', sans-serif;
  transition: box-shadow 0.2s;
}
.cw-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.12); }

.cw-card__thumb {
  position: relative;
  height: 150px;
  overflow: hidden;
  cursor: pointer;
  background: var(--cw-light-grey);
  flex-shrink: 0;
}
.cw-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.8);
}
.cw-card__badge {
  display: inline-block;
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 2px;
  letter-spacing: 0.7px;
  font-family: 'Inter', sans-serif;
  pointer-events: none;
}

.cw-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}
.cw-card__thumb:hover .cw-card__overlay { opacity: 1; }
.cw-card__play {
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cw-card__body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.cw-card__name {
  font-size: 13px;
  font-weight: 700;
  color: #141414;
  margin: 0 0 2px;
  line-height: 1.3;
  cursor: pointer;
}
.cw-card__name:hover { color: var(--cw-red); }
.cw-card__area {
  font-size: 11px;
  color: #AAAAAA;
  margin: 0 0 10px;
}

/* stats row */
.cw-card__stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  background: #F8F7F5;
  border-radius: 3px;
  padding: 8px;
  margin-bottom: 10px;
}
.cw-card__stat { text-align: center; }
.cw-card__stat--mid {
  border-left: 1px solid #EBEBEB;
  border-right: 1px solid #EBEBEB;
}
.cw-card__stat > div:first-child { font-size: 15px; line-height: 1; }
.cw-card__stat-val { font-size: 10px; font-weight: 700; color: #333; margin-top: 3px; }
.cw-card__stat-lbl { font-size: 9px; color: #AAA; }

.cw-card__price {
  font-size: 14px;
  font-weight: 700;
  color: var(--cw-red);
  margin: 0 0 8px;
  margin-top: auto;
  padding-top: 4px;
}
.cw-card__enquire {
  display: block;
  background: #141414;
  color: #fff !important;
  font-size: 10px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 2px;
  text-decoration: none !important;
  letter-spacing: 0.5px;
  text-align: center;
  font-family: 'Inter', sans-serif;
  transition: opacity 0.2s;
}
.cw-card__enquire:hover { opacity: 0.8; }

/* ===== BOTTOM ROW (portals + owner) ===== */
.cw-bottom-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
}

.cw-portals-card {
  background: var(--cw-white);
  border: 1px solid var(--cw-border);
  border-radius: 4px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.cw-portals-label {
  font-size: 10px;
  color: #BBBBBB;
  letter-spacing: 1.5px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}
.cw-portals__links { display: flex; gap: 8px; flex-wrap: wrap; }
.cw-portal-btn {
  border: 1px solid #DDDDDD;
  color: #555 !important;
  font-size: 11px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 2px;
  text-decoration: none !important;
  letter-spacing: 0.3px;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s;
  white-space: nowrap;
}
.cw-portal-btn:hover { border-color: #999; color: #333 !important; }

.cw-owner-card {
  background: var(--cw-black);
  border-radius: 4px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.cw-owner-card__title {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 3px;
  font-family: 'Inter', sans-serif;
}
.cw-owner-card__sub {
  color: #444;
  font-size: 11px;
  font-family: 'Inter', sans-serif;
}
.cw-owner-card__btn {
  background: var(--cw-red);
  color: #fff !important;
  font-size: 11px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 2px;
  text-decoration: none !important;
  letter-spacing: 0.8px;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
  transition: opacity 0.2s;
}
.cw-owner-card__btn:hover { opacity: 0.85; }

/* ===== VIDEO MODAL ===== */
.cw-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 2000;
  align-items: flex-start;
  justify-content: center;
  padding: 52px 12px 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.cw-modal__box {
  background: #111;
  border-radius: 3px;
  overflow: hidden;
  width: 100%;
  max-width: 640px;
  position: relative;
  font-family: 'Inter', sans-serif;
  margin: auto;
}

/* Close button pinned to viewport top-right — always reachable */
.cw-modal__close {
  position: fixed;
  top: 10px;
  right: 12px;
  z-index: 2100;
  background: rgba(0,0,0,0.85);
  border: 2px solid rgba(255,255,255,0.3);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  touch-action: manipulation;
}

.cw-modal__wide {
  position: relative;
  padding-bottom: 56.25%;
}
.cw-modal__wide iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.cw-modal__short {
  position: relative;
  /* Cap Shorts at 72vh so it never overflows the screen */
  height: min(72vh, calc(100vw * 16 / 9));
  max-width: 400px;
  margin: 0 auto;
}
.cw-modal__short iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.cw-modal__info {
  padding: 16px 20px 20px;
}
.cw-modal__badges { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.cw-modal__name { color: #fff; font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.cw-modal__area { color: #666; font-size: 12px; margin-bottom: 6px; }
.cw-modal__meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #888;
  margin-bottom: 14px;
  border-bottom: 1px solid #222;
  padding-bottom: 14px;
  flex-wrap: wrap;
}
.cw-modal__price { color: var(--cw-red); font-size: 22px; font-weight: 700; margin-bottom: 14px; }
.cw-modal__notes { color: #888; font-size: 12px; margin-bottom: 12px; line-height: 1.5; }
.cw-modal__wa {
  display: block;
  background: var(--cw-red);
  color: #fff !important;
  text-align: center;
  padding: 12px;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  letter-spacing: 0.5px;
  font-family: 'Inter', sans-serif;
  transition: opacity 0.2s;
}
.cw-modal__wa:hover { opacity: 0.85; }

/* ===== LANGUAGE SWITCHER ===== */
.cw-lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.cw-lang-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 11px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 2px;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.cw-lang-btn:hover,
.cw-lang-btn.active { background: var(--cw-red); border-color: var(--cw-red); }
/* Hide Google Translate toolbar */
.goog-te-banner-frame, .skiptranslate { display: none !important; }
body { top: 0 !important; }

/* ===== FAQ ===== */
.cw-faq-section {
  background: var(--cw-white);
  border-top: 1px solid var(--cw-border);
  padding: 48px 28px;
  margin-top: 24px;
}
.cw-faq-inner { max-width: 1200px; margin: 0 auto; }
.cw-faq-inner > h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--cw-charcoal);
  margin: 0 0 2rem;
  font-family: 'Inter', sans-serif;
}
/* Two-column layout for Home FAQ */
.cw-faq-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
.cw-faq-col-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--cw-red);
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--cw-red);
  font-family: 'Inter', sans-serif;
}
.cw-faq-list { display: flex; flex-direction: column; gap: 0; }
.cw-faq-item {
  border-bottom: 1px solid var(--cw-light-grey);
  padding: 0;
}
.cw-faq-item summary {
  padding: 0.85rem 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cw-charcoal);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  line-height: 1.4;
}
.cw-faq-item summary::-webkit-details-marker { display: none; }
.cw-faq-item summary::after {
  content: '›';
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--cw-red);
  flex-shrink: 0;
  transform: rotate(90deg);
  transition: transform 0.2s;
  line-height: 1;
}
.cw-faq-item[open] summary::after { transform: rotate(270deg); }
.cw-faq-item p {
  font-size: 0.85rem;
  color: var(--cw-grey);
  line-height: 1.75;
  padding: 0 0 1rem;
  margin: 0;
}

/* ===== BUTTONS (global) ===== */
.cw-btn {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 2px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  text-align: center;
  transition: opacity 0.2s;
  line-height: 1.4;
}
.cw-btn:hover { opacity: 0.85; }
.cw-btn--red     { background: var(--cw-red); color: #fff !important; border-color: var(--cw-red); }
.cw-btn--outline { background: transparent; color: var(--cw-charcoal) !important; border-color: var(--cw-charcoal); }
.cw-btn--full    { width: 100%; display: block; }

/* ===== UTILITY ===== */
.cw-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: var(--cw-grey);
  font-style: italic;
}

/* ===== FOOTER ===== */
.cw-footer {
  background: var(--cw-black);
  color: var(--cw-white);
  padding: 32px 0 0;
  margin-top: 40px;
}
.cw-footer__grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px 24px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
}
.cw-footer__col h4 {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: #3A3A3A;
  margin: 0 0 14px;
  font-family: 'Inter', sans-serif;
}
.cw-footer__col address,
.cw-footer__col p {
  color: #444;
  font-size: 11px;
  line-height: 2.2;
  font-style: normal;
  margin: 0;
}
.cw-footer__col ul { list-style: none; margin: 0; padding: 0; }
.cw-footer__col ul li { margin-bottom: 0; }
.cw-footer__col a {
  color: #444;
  text-decoration: none;
  font-size: 11px;
  line-height: 2.4;
  display: block;
  transition: color 0.2s;
}
.cw-footer__col a:hover { color: var(--cw-white); }
.cw-footer__bar {
  border-top: 1px solid #1E1E1E;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cw-footer__bar p {
  color: #2E2E2E;
  font-size: 11px;
  margin: 0;
  font-family: 'Inter', sans-serif;
}

/* ===== ABOUT PAGE ===== */
.cw-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: center;
}
.cw-hero__photo { display: flex; justify-content: center; }
.cw-hero__photo img { width: 100%; max-width: 380px; display: block; object-fit: cover; }
.cw-hero__name { font-size: 2.4rem; font-weight: 700; margin: 0 0 0.2rem; line-height: 1.1; }
.cw-hero__chinese { color: var(--cw-grey); font-size: 1.4rem; margin: 0 0 0.5rem; }
.cw-hero__tagline { color: var(--cw-red); font-size: 1rem; font-style: italic; margin: 0 0 1rem; }
.cw-hero__lic { color: var(--cw-grey); font-size: 0.875rem; margin: 0; line-height: 1.6; }

.cw-story { background: var(--cw-light-grey); padding: 2.5rem 2rem; }
.cw-story__inner { max-width: 1200px; margin: 0 auto; }
.cw-story h2 { font-size: 1.4rem; margin: 0 0 1rem; }
.cw-story p { color: var(--cw-grey); line-height: 1.85; margin: 0 0 1rem; font-size: 0.95rem; }

.cw-credentials { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.cw-cred-badge {
  background: var(--cw-white);
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cw-charcoal);
  border-left: 3px solid var(--cw-red);
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

.cw-specialties { max-width: 1200px; margin: 0 auto; padding: 2.5rem 2rem; }
.cw-specialties h2 { font-size: 1.4rem; margin: 0 0 1.5rem; }
.cw-specialties__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.cw-spec-card {
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  border-top: 4px solid var(--cw-charcoal);
  background: var(--cw-white);
}
.cw-spec-card--residential { border-color: var(--cw-purple); }
.cw-spec-card--commercial  { border-color: var(--cw-orange); }
.cw-spec-card--industrial  { border-color: var(--cw-blue); }
.cw-spec-card--auction     { border-color: var(--cw-red); }
.cw-spec-card__icon  { font-size: 2rem; margin-bottom: 0.75rem; display: block; }
.cw-spec-card__title { font-weight: 700; font-size: 0.95rem; margin: 0 0 0.5rem; }
.cw-spec-card__desc  { color: var(--cw-grey); font-size: 0.82rem; line-height: 1.65; margin: 0; }

.cw-services-section { background: var(--cw-light-grey); padding: 2.5rem 2rem; }
.cw-services-section__inner { max-width: 1200px; margin: 0 auto; }
.cw-services-section h2 { font-size: 1.4rem; margin: 0 0 1.5rem; }
.cw-services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.875rem; }
.cw-service-item {
  background: var(--cw-white);
  padding: 0.875rem 1.125rem;
  font-weight: 600;
  font-size: 0.875rem;
  border-left: 3px solid var(--cw-charcoal);
}

.cw-languages { max-width: 1200px; margin: 0 auto; padding: 2.5rem 2rem; }
.cw-languages h2 { font-size: 1.4rem; margin: 0 0 1rem; }
.cw-lang-pills { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.cw-lang-pill {
  background: var(--cw-charcoal);
  color: #fff;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  font-size: 0.85rem;
}

.cw-join-team { background: var(--cw-charcoal); color: #fff; text-align: center; padding: 3.5rem 2rem; }
.cw-join-team h2 { font-size: 1.75rem; margin: 0 0 0.75rem; }
.cw-join-team p { color: rgba(255,255,255,0.78); margin: 0 0 1.75rem; }

/* ===== NEWSLETTER PAGE ===== */
.cw-nl-hero { background: var(--cw-light-grey); padding: 3.5rem 2rem; text-align: center; }
.cw-nl-hero h1 { font-size: 2rem; margin: 0 0 0.5rem; }
.cw-nl-hero p { color: var(--cw-grey); max-width: 520px; margin: 0 auto 2rem; line-height: 1.7; }
.cw-nl-form-wrap { max-width: 460px; margin: 0 auto; background: var(--cw-white); padding: 2rem; box-shadow: 0 2px 16px rgba(0,0,0,0.1); text-align: left; }
.cw-past-issues { max-width: 1200px; margin: 0 auto; padding: 2.5rem 2rem; }
.cw-past-issues h2 { font-size: 1.4rem; margin: 0 0 1.5rem; }
.cw-issue-placeholder { padding: 3rem 2rem; text-align: center; background: var(--cw-light-grey); color: var(--cw-grey); font-style: italic; }

/* ===== OWNER PAGE ===== */
.cw-owner-layout { max-width: 1200px; margin: 0 auto; padding: 3rem 2rem; display: grid; grid-template-columns: 3fr 2fr; gap: 3rem; align-items: start; }
.cw-owner-left h1 { font-size: 2rem; margin: 0 0 0.75rem; }
.cw-owner-left > p { color: var(--cw-grey); margin: 0 0 1.5rem; line-height: 1.7; }
.cw-trust-line { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.cw-trust-badge { background: var(--cw-light-grey); padding: 0.4rem 0.875rem; font-size: 0.8rem; font-weight: 600; }
.cw-owner-form-card { background: var(--cw-white); padding: 2rem; box-shadow: 0 2px 20px rgba(0,0,0,0.1); }

/* ===== FORM ELEMENTS ===== */
.cw-form-group { margin-bottom: 1.1rem; }
.cw-form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--cw-charcoal); }
.cw-form-group input[type="text"],
.cw-form-group input[type="email"],
.cw-form-group input[type="date"],
.cw-form-group textarea,
.cw-form-group select {
  width: 100%; padding: 0.625rem 0.875rem; border: 1px solid #ddd; border-radius: 0;
  font-family: 'Inter', sans-serif; font-size: 0.9rem; color: var(--cw-charcoal);
  outline: none; transition: border-color 0.2s; background: var(--cw-white);
}
.cw-form-group input:focus,
.cw-form-group textarea:focus,
.cw-form-group select:focus { border-color: var(--cw-charcoal); }
.cw-form-group textarea { resize: vertical; min-height: 90px; }
.cw-form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%232C2C2C' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.875rem center; padding-right: 2.5rem; }
.cw-radio-group { display: flex; gap: 1.5rem; padding-top: 0.2rem; }
.cw-radio-group label { display: flex; align-items: center; gap: 0.4rem; font-weight: 400; cursor: pointer; }
.cw-radio-group input[type="radio"] { width: auto; margin: 0; cursor: pointer; }
.cw-checkbox-row { display: flex; align-items: flex-start; gap: 0.5rem; cursor: pointer; }
.cw-checkbox-row input[type="checkbox"] { width: auto; margin-top: 3px; cursor: pointer; flex-shrink: 0; }
.cw-checkbox-row span { font-size: 0.875rem; color: var(--cw-grey); line-height: 1.5; }

/* ===== ALERTS ===== */
.cw-alert { padding: 1rem 1.25rem; margin-top: 1rem; font-size: 0.875rem; display: none; border-radius: 0; }
.cw-alert--success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.cw-alert--error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .cw-grid { grid-template-columns: repeat(2, 1fr); }
  .cw-specialties__grid { grid-template-columns: repeat(2, 1fr); }
  .cw-services__grid { grid-template-columns: repeat(2, 1fr); }
  .cw-footer__grid { grid-template-columns: 1.5fr 1fr 1fr; }
}

@media (max-width: 768px) {
  .cw-nav { padding: 0 16px; }
  .cw-nav__links { display: none; }
  .cw-nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--cw-black);
    padding: 1.5rem 1.5rem;
    gap: 1rem;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  }
  .cw-nav__links.open a { color: #aaa; font-size: 14px; }
  .cw-nav__hamburger { display: block; }

  .cw-filter { padding: 0 12px; top: 56px; }
  .cw-filter__txn { margin-right: 12px; padding-right: 12px; }
  .cw-filter__txn-tab, .cw-filter__cat-tab { padding: 12px 10px; font-size: 10px; }

  .cw-section { padding: 16px; }

  .cw-featured__img { height: 240px; }
  .cw-featured__name { font-size: 16px; }
  .cw-featured__price { font-size: 18px; }
  .cw-featured__overlay { flex-direction: column; align-items: flex-start; }
  .cw-featured__right { text-align: left; }

  .cw-grid { grid-template-columns: repeat(2, 1fr); }

  .cw-bottom-row { grid-template-columns: 1fr; }

  .cw-hero { grid-template-columns: 1fr; gap: 1.5rem; }
  .cw-hero__photo img { max-width: 280px; }
  .cw-hero__name { font-size: 1.8rem; }

  .cw-specialties__grid { grid-template-columns: 1fr; }
  .cw-services__grid { grid-template-columns: repeat(2, 1fr); }

  .cw-owner-layout { grid-template-columns: 1fr; gap: 2rem; padding: 2rem 1rem; }

  .cw-footer__grid { grid-template-columns: 1fr; padding: 0 16px 24px; gap: 24px; }
  .cw-footer__bar { padding: 18px 16px; }

  .cw-faq-section { padding: 32px 16px; }
  .cw-faq-cols { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
  .cw-grid { grid-template-columns: 1fr; }
  .cw-services__grid { grid-template-columns: 1fr; }
  .cw-specialties { padding: 2rem 1rem; }
  .cw-languages { padding: 2rem 1rem; }
  .cw-story { padding: 2rem 1rem; }
  .cw-modal__box { width: 100%; }
}

/* ===== TESTIMONIALS ===== */
.cw-testimonials {
  background: #F8F8F8;
  padding: 4rem 1.5rem;
}
.cw-testimonials__inner {
  max-width: 1200px;
  margin: 0 auto;
}
.cw-testimonials h2 {
  text-align: center;
  font-size: 1.75rem;
  color: #2C2C2C;
  margin-bottom: 2.5rem;
}
.cw-testimonials__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.cw-testimonial-card {
  background: #fff;
  border: 1px solid #F0F0F0;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.cw-testimonial-card__stars {
  color: #C0392B;
  font-size: 1rem;
  letter-spacing: 2px;
}
.cw-testimonial-card__text {
  font-size: .9rem;
  color: #2C2C2C;
  line-height: 1.65;
  flex: 1;
}
.cw-testimonial-card__author {
  font-size: .8rem;
  font-weight: 700;
  color: #2C2C2C;
  margin-top: .5rem;
}
.cw-testimonial-card__author span {
  display: block;
  font-weight: 400;
  color: #6C757D;
  font-size: .78rem;
}
@media (max-width: 1024px) {
  .cw-testimonials__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .cw-testimonials__grid { grid-template-columns: 1fr; }
}

/* ===== LCP + CLS FIXES ===== */
/* Reserve aspect ratio for YT thumbnail containers before JS loads */
.cw-featured__img,
.cw-featured__img--ph {
  aspect-ratio: 4 / 3;
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}
.cw-card__thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f0f0f0;
}
.cw-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Skeleton shimmer for grid while JS loads */
#cw-featured:empty,
#cw-grid:empty {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: cw-shimmer 1.4s infinite;
  border-radius: 4px;
}
@keyframes cw-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== ACCESSIBILITY CONTRAST FIXES ===== */
/* Filter tabs inactive: #BBBBBB -> #595959 (ratio 7.0:1 on white) */
.cw-filter__txn-tab,
.cw-filter__cat-tab { color: #595959; }

/* Card area subtext: #AAAAAA -> #696969 (ratio 4.54:1 on white) */
.cw-card__area { color: #696969 !important; }

/* Card stat label: #AAA -> #696969 (ratio 4.54:1 on #F8F7F5) */
.cw-card__stat-lbl { color: #696969 !important; }

/* Portal label: #BBBBBB -> #595959 */
.cw-portals-label { color: #595959 !important; }

/* Nav PEA badge: #3A3A3A on dark nav -> light grey */
.cw-nav__pea { color: #C8C8C8 !important; }

/* Screen-reader only utility */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ===== PHOTO ORIENTATION FIXES ===== */
.cw-featured--photo {
  background: #111;
}
.cw-featured--photo .cw-featured__img {
  aspect-ratio: unset !important;
  width: 100%;
  height: auto !important;
  max-height: 75vh;
  object-fit: contain !important;
  object-position: center;
  filter: none !important;
}
.cw-card__thumb--photo {
  background: #111 !important;
  aspect-ratio: unset !important;
  height: 200px;
}
.cw-card__thumb--photo img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center;
  filter: none !important;
}
@media (max-width: 768px) {
  .cw-featured--photo .cw-featured__img { max-height: 55vh; }
  .cw-card__thumb--photo { height: 160px; }
}
