/* CCIV website - Zoho Sites custom CSS.
   Source of truth: _clients/CCIV/zoho/custom.css. Paste into Zoho:
   Customization > Code > Custom CSS Editor (main site and each subsite).
   Tokens and rules mirror the approved mockup (_clients/CCIV/mockup). */

:root {
  --cciv-blue-700: #0E3BA8;
  --cciv-blue-600: #1550E0;
  --cciv-blue-100: #DCE6FC;
  --cciv-blue-50: #EEF3FE;
  --cciv-navy: #0A1A33;
  --cciv-ink: #111827;
  --cciv-muted: #5B6475;
  --cciv-line: #E3E7EE;
  --cciv-surface: #F6F8FB;
  --cciv-ccig: #100ACE;
  --cciv-sky: #4FC3F7;
  --cciv-font: "Inter", "Noto Sans JP", system-ui, sans-serif;
}

/* ---------- Base type ---------- */
body, .theme-content-area, .zptext, .zptext p, .theme-menu a, .zpbutton, input, select, textarea {
  font-family: var(--cciv-font) !important;
}
body { color: var(--cciv-ink); letter-spacing: 0.02em; }
.zptext, .zptext p { line-height: 1.8; color: var(--cciv-ink); }
.zpheading { font-family: var(--cciv-font) !important; font-weight: 700 !important; line-height: 1.4; letter-spacing: 0.02em; color: var(--cciv-ink); }
h1.zpheading { font-size: 48px; }
h2.zpheading { font-size: 32px; }
h3.zpheading { font-size: 20px; }
a { color: var(--cciv-blue-600); }
a:hover { color: var(--cciv-blue-700); }

/* ---------- Top bar (contact details above the fold) ---------- */
/* Zoho's top bar only holds the language switcher; the contact line is CSS text (not clickable;
   the footer carries the tel/mailto links). Change the wording here, not in the editor. */
.theme-header-topbar { background: var(--cciv-navy) !important; color: #fff; font-size: 13px; }
.theme-header-topbar a, .theme-header-topbar .theme-lang-label { color: #fff !important; }
.theme-header-topbar > .zpcontainer { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.theme-header-topbar > .zpcontainer::before { content: "16F Sun Wah Tower, 115 Nguyen Hue, HCMC   ·   TEL +84(0)28-3521-0300   ·   cciv@ccig.co.jp"; white-space: pre; font-size: 13px; letter-spacing: 0.02em; color: #fff; }
@media (max-width: 960px) { .theme-header-topbar > .zpcontainer::before { content: "TEL +84(0)28-3521-0300"; } }

/* ---------- Header + menu ---------- */
.theme-header { background: #fff !important; border-bottom: 1px solid var(--cciv-line); }
/* Logo, then "Member of CCI Group" beside it. The Zoho site name stays in settings (used for the
   logo alt text) but is hidden on the page. */
.theme-logo-parent img[data-zs-logo] { height: 60px !important; width: auto !important; }
.theme-site-name-caption { display: none !important; }
.theme-logo-parent a { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.theme-logo-parent a::after { content: "Member of\A CCI Group"; white-space: pre; border-left: 1px solid var(--cciv-line); padding-left: 12px; font-size: 11px; font-weight: 500; line-height: 1.4; letter-spacing: 0.08em; color: var(--cciv-muted); }
.theme-header .theme-menu ul[data-zs-menu-container] { justify-content: flex-end !important; gap: 32px; }
.theme-menu ul[data-zs-menu-container] > li > a { background: transparent !important; padding: 8px 0 !important; border-bottom: 2px solid transparent; }
.theme-menu a, .theme-menu .theme-menu-name { color: var(--cciv-ink) !important; font-size: 14px; font-weight: 500; }
.theme-menu a:hover .theme-menu-name, .theme-menu .theme-menu-selected > a .theme-menu-name { color: var(--cciv-blue-600) !important; }
.theme-menu .theme-menu-selected > a { border-bottom-color: var(--cciv-blue-600); }
/* The last menu item (the Contact page) renders as the pill button from the mockup. */
@media (min-width: 961px) {
  .theme-menu ul[data-zs-menu-container] > li:last-child:not(:first-child) > a { background: var(--cciv-blue-600) !important; border-bottom: 0 !important; border-radius: 999px; padding: 10px 20px !important; }
  .theme-menu ul[data-zs-menu-container] > li:last-child:not(:first-child) > a .theme-menu-name { color: #fff !important; font-weight: 700; }
  .theme-menu ul[data-zs-menu-container] > li:last-child:not(:first-child) > a:hover { background: var(--cciv-blue-700) !important; }
  .theme-menu ul[data-zs-menu-container] > li:last-child:not(:first-child) > a:hover .theme-menu-name { color: #fff !important; }
}

/* ---------- Buttons ---------- */
.zpbutton.zpbutton-type-primary {
  background: var(--cciv-blue-600) !important; border-color: var(--cciv-blue-600) !important; color: #fff !important;
  border-radius: 999px !important; font-weight: 700; padding: 12px 24px;
}
.zpbutton.zpbutton-type-primary:hover { background: var(--cciv-blue-700) !important; border-color: var(--cciv-blue-700) !important; }
.zpbutton.zpbutton-type-secondary {
  background: transparent !important; border: 1px solid var(--cciv-blue-600) !important; color: var(--cciv-blue-600) !important;
  border-radius: 999px !important; font-weight: 700; padding: 12px 24px;
}

/* ---------- Section rhythm (8px scale: 96 desktop / 64 mobile) ---------- */
.zpsection { padding-top: 96px; padding-bottom: 96px; }
.cciv-surface, .cciv-surface.zpsection { background: var(--cciv-surface) !important; }
@media (max-width: 960px) { .zpsection { padding-top: 64px; padding-bottom: 64px; } h1.zpheading { font-size: 32px; } h2.zpheading { font-size: 22px; } }

/* Eyebrow label above section headings: add class "cciv-eyebrow" to a text element. */
.cciv-eyebrow, .cciv-eyebrow p { font-size: 13px !important; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cciv-blue-600) !important; }

/* ---------- Content defaults ---------- */
.zptext p + p { margin-top: 16px; }
/* Buttons sit on the text's left edge, not centred (mockup). */
.theme-content-area .zpbutton-container { text-align: left !important; justify-content: flex-start !important; }

/* ---------- Homepage sections (class set on the section in the editor) ---------- */
/* Hero: tighter top, the stage carries the visual weight. */
.cciv-hero.zpsection { padding-top: 48px; padding-bottom: 64px; }

/* Group & partner logo strip. */
.cciv-partners.zpsection { padding-top: 48px; padding-bottom: 48px; border-top: 1px solid var(--cciv-line); border-bottom: 1px solid var(--cciv-line); }
.cciv-label, .cciv-label p { font-size: 13px !important; color: var(--cciv-muted) !important; letter-spacing: 0.08em; }
.cciv-partners .zprow { align-items: center !important; }
/* Zoho's own image rules are (0,3,2) !important; these must out-rank them. */
.zpelem-image.cciv-logo .zpimage-container figure img.zpimage { height: 52px !important; width: auto !important; max-inline-size: none !important; }
.zpelem-image.cciv-logo.cciv-logo--sm .zpimage-container figure img.zpimage { height: 36px !important; }

/* Services: heading block + four cards, numbered 01-04 by CSS so editors never renumber by hand. */
.cciv-services-head.zpsection { padding-bottom: 32px; }
.cciv-services.zpsection { padding-top: 0; counter-reset: cciv-svc; }
.cciv-services .zpelem-col { counter-increment: cciv-svc; position: relative; isolation: isolate; padding-top: 32px; padding-bottom: 24px; }
.cciv-services .zpelem-col::before { content: ""; position: absolute; inset: 0 12px; z-index: -1; background: #fff; border: 1px solid var(--cciv-line); border-radius: 16px; }
.cciv-services .zpelem-col > .zpelement { padding-left: 12px; padding-right: 12px; }
.cciv-services .zprow { align-items: stretch !important; }
.cciv-services .zpicon-container { text-align: left !important; align-items: flex-start !important; justify-content: flex-start !important; }
.cciv-services .zpicon { display: none !important; }
.cciv-services .zpicon-container::before { content: counter(cciv-svc, decimal-leading-zero); display: block; margin-bottom: 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.16em; color: var(--cciv-blue-600); }
.cciv-services .zpicon-heading { font-family: var(--cciv-font) !important; font-size: 20px !important; font-weight: 700 !important; line-height: 1.4; color: var(--cciv-ink) !important; text-align: left !important; margin-bottom: 8px; }
.cciv-services .zpicon-text-container, .cciv-services .zpicon-text-container p { font-size: 14px; line-height: 1.7; color: var(--cciv-muted) !important; text-align: left !important; }
.cciv-services .zpbutton-type-link { font-weight: 700; color: var(--cciv-blue-600) !important; padding-left: 0; }
@media (max-width: 960px) { .cciv-services .zpelem-col { margin-bottom: 16px; } }

/* Network: heading block, four key figures, then the office list. */
.cciv-network-head.zpsection { padding-bottom: 32px; }
.cciv-stats.zpsection { padding-top: 0; padding-bottom: 48px; }
.cciv-stats .zpicon { display: none !important; }
.cciv-stats .zpicon-container { align-items: flex-start !important; justify-content: flex-start !important; text-align: left !important; border-top: 2px solid var(--cciv-blue-600); padding-top: 16px; }
.cciv-stats .zpicon-heading { font-family: var(--cciv-font) !important; font-size: 40px !important; font-weight: 700 !important; line-height: 1.2; color: var(--cciv-blue-600) !important; text-align: left !important; margin-bottom: 4px; }
.cciv-stats .zpicon-text-container, .cciv-stats .zpicon-text-container p { font-size: 14px; color: var(--cciv-muted) !important; text-align: left !important; }
/* Offices: one text element per column; each paragraph is "City<br>Company". Styled by section class so new columns need no class. */
.cciv-offices-sec.zpsection { padding-top: 0; }
.cciv-offices-sec .zptext p { margin: 0 !important; padding: 16px 0; border-top: 1px solid var(--cciv-line); font-size: 14px; line-height: 1.6; color: var(--cciv-muted) !important; }
.cciv-offices-sec .zptext p::first-line { font-size: 16px; font-weight: 700; color: var(--cciv-ink); }

/* Team: one text element, one paragraph per person ("Role<br>Name"), laid out as cards.
   Adding a person = adding a paragraph. */
.zpsection:has(.cciv-team-list) { background: var(--cciv-surface) !important; }
.cciv-team-list .zptext { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; margin-top: 16px; }
.cciv-team-list p { margin: 0 !important; padding: 24px; background: #fff; border: 1px solid var(--cciv-line); border-radius: 16px; font-size: 18px; font-weight: 700; line-height: 1.6; color: var(--cciv-ink) !important; }
.cciv-team-list p::first-line { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--cciv-blue-600); }
@media (max-width: 960px) { .cciv-team-list .zptext { grid-template-columns: repeat(2, 1fr); } }

/* News: one paragraph per item ("Date  Tag<br>Title"). */
.cciv-news-list .zptext { margin-top: 16px; }
.cciv-news-list p { margin: 0 !important; padding: 20px 0; border-bottom: 1px solid var(--cciv-line); font-size: 16px; font-weight: 500; line-height: 1.7; color: var(--cciv-ink) !important; }
.cciv-news-list p:first-child { border-top: 1px solid var(--cciv-line); }
.cciv-news-list p::first-line { font-size: 13px; font-weight: 400; color: var(--cciv-muted); }

/* ---------- Inner pages (About, and later Services / Team / Contact) ---------- */
/* Eyebrow without a class: a text element sitting directly above an H1/H2 is its label. */
.zpelem-text:has(+ .zpelem-heading :is(h1, h2)) .zptext,
.zpelem-text:has(+ .zpelem-heading :is(h1, h2)) .zptext p { font-size: 13px !important; font-weight: 700; line-height: 1.6; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cciv-blue-600) !important; }
/* Page hero: set class "cciv-page-hero" on the first section (H1 + lead paragraph). */
.cciv-page-hero.zpsection { padding-top: 64px; padding-bottom: 64px; background: var(--cciv-surface) !important; border-bottom: 1px solid var(--cciv-line); }
.cciv-page-hero .zpheading { text-align: left !important; }
.cciv-page-hero .zptext, .cciv-page-hero .zptext p { max-width: 720px; font-size: 18px; text-align: left !important; color: var(--cciv-muted) !important; }
/* Grey band on alternate sections, picked by what they contain. */
.zpsection:has(.cciv-dl), .zpsection:has(.zpelem-map) { background: var(--cciv-surface) !important; }
/* Cards: one text element, one paragraph per card ("Title<br>Text"). */
.cciv-cards .zptext { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 16px; }
.cciv-cards .zptext p { margin: 0 !important; padding: 24px; background: #fff; border: 1px solid var(--cciv-line); border-radius: 16px; font-size: 14px; line-height: 1.7; color: var(--cciv-muted) !important; }
.cciv-cards .zptext p::first-line { font-size: 20px; font-weight: 700; line-height: 2; color: var(--cciv-ink); }
.cciv-cards + .zpelem-heading { margin-top: 48px; }
/* Office network: one paragraph per office ("City<br>Entity"); a bold paragraph is "you are here". */
.cciv-network .zptext { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 16px; margin-top: 8px; }
.cciv-network .zptext p { margin: 0 !important; padding-top: 16px; border-top: 2px solid var(--cciv-line); font-size: 14px; line-height: 1.6; color: var(--cciv-muted) !important; }
.cciv-network .zptext p::first-line { font-size: 16px; font-weight: 700; color: var(--cciv-ink); }
.cciv-network .zptext p:has(b, strong) { border-top-color: var(--cciv-blue-600); }
/* Company profile: one paragraph per row ("<b>Label</b><br>Value"), shown as two columns. */
.cciv-dl .zptext { margin-top: 16px; border-top: 1px solid var(--cciv-line); }
.cciv-dl .zptext p { display: grid; grid-template-columns: 200px 1fr; gap: 0 24px; margin: 0 !important; padding: 16px 0; border-bottom: 1px solid var(--cciv-line); font-size: 16px; line-height: 1.7; }
.cciv-dl .zptext p br { display: none; }
.cciv-dl .zptext p b, .cciv-dl .zptext p strong { font-size: 14px; }
.zpelem-map iframe { border-radius: 16px; }
@media (max-width: 960px) {
  .cciv-cards .zptext { grid-template-columns: 1fr; }
  .cciv-network .zptext { grid-template-columns: repeat(2, 1fr); }
  .cciv-dl .zptext p { grid-template-columns: 1fr; }
}

/* ---------- Footer (site-wide, "Edit Footer" in the editor) ----------
   Three sections in order: CTA line + button, three columns (company / sitemap / policies),
   bottom line. In each column the first paragraph is the heading. */
.theme-footer-area { background: var(--cciv-navy) !important; color: var(--cciv-blue-100); }
.theme-footer-area .zpsection { padding-top: 40px; padding-bottom: 40px; background: transparent !important; }
.theme-footer-area .zptext, .theme-footer-area .zptext p { font-size: 14px; line-height: 1.7; color: var(--cciv-blue-100) !important; }
.theme-footer-area .zptext p + p { margin-top: 10px; }
.theme-footer-area .zptext p:first-child { color: #fff !important; font-weight: 700; margin-bottom: 14px; }
.theme-footer-area a, .theme-footer-area .zptext a { color: #fff !important; text-decoration: none; }
.theme-footer-area .zptext a:hover { text-decoration: underline; }
.footer-container > .zpsection:first-child { padding-top: 48px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-container > .zpsection:first-child .zptext p { font-size: 20px !important; margin: 0; }
.theme-footer-area .zpbutton.zpbutton-type-primary { background: #fff !important; border-color: #fff !important; color: var(--cciv-navy) !important; }
.theme-footer-area .zpbutton.zpbutton-type-primary:hover { background: var(--cciv-blue-50) !important; border-color: var(--cciv-blue-50) !important; }
.footer-container > .zpsection:last-child { padding-top: 16px; padding-bottom: 24px; border-top: 1px solid rgba(255,255,255,.12); }
.footer-container > .zpsection:last-child .zptext { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }
.footer-container > .zpsection:last-child .zptext p { margin: 0 !important; font-size: 12px; font-weight: 400; color: var(--cciv-blue-100) !important; }
@media (max-width: 960px) {
  .footer-container > .zpsection:first-child .zpbutton-container { text-align: left !important; justify-content: flex-start !important; margin-top: 16px; }
  .theme-footer-area .zpelem-col { margin-bottom: 24px; }
}

