/*
Theme Name: Tokyo MSP Industries
Theme URI: https://tokyomsp.com/
Author: Tokyo MSP Industries Ltd.
Description: A block-first corporate theme connecting Japanese investors with opportunities in Bangladesh.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: tokyo-msp
*/

:root {
  --msp-navy: #0e2345;
  --msp-red: #d01d21;
  --msp-ink: #071123;
  --msp-muted: #5d646f;
  --msp-surface: #f8fafd;
  --msp-line: #d3d8de;
  --msp-white: #fafcfe;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-feature-settings: "ss01", "cv11"; -webkit-font-smoothing: antialiased; }
a { text-underline-offset: 0.2em; }

.msp-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--msp-line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
}
.admin-bar .msp-site-header { top: 32px; }
.msp-header-inner { min-height: 80px; }
.msp-brand-mark {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: var(--msp-navy);
  color: var(--msp-white);
  font-family: var(--wp--preset--font-family--cormorant);
  font-size: 18px;
}
.msp-brand-name { letter-spacing: 0.025em; }
.msp-brand-subtitle { color: var(--msp-muted); font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase; }
.msp-site-header .wp-block-navigation-item__content { color: var(--msp-muted); font-size: 14px; text-decoration: none; }
.msp-site-header .wp-block-navigation-item__content:hover { color: var(--msp-ink); }

.msp-section { border-top: 1px solid var(--msp-line); padding-block: clamp(6rem, 9vw, 8rem); }
.msp-hero { overflow: hidden; padding-block: clamp(5rem, 8vw, 7rem); }
.msp-surface { background: var(--msp-surface); }
.msp-eyebrow { color: var(--msp-muted); font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; }
.msp-eyebrow::before { content: ""; display: inline-block; width: 32px; height: 1px; margin-right: 12px; vertical-align: middle; background: var(--msp-red); }
.msp-centered-eyebrow::after { content: ""; display: inline-block; width: 32px; height: 1px; margin-left: 12px; vertical-align: middle; background: var(--msp-red); }
.msp-hero-title { font-size: clamp(2.6rem, 5vw, 4.2rem) !important; line-height: 1.05 !important; letter-spacing: -0.025em; }
.msp-section-title { font-size: clamp(2rem, 4vw, 3rem) !important; line-height: 1.1 !important; }
.msp-lead { color: var(--msp-muted); line-height: 1.625; }
.msp-button-outline .wp-block-button__link { border-color: var(--msp-line) !important; color: var(--msp-ink) !important; }
.msp-button-outline .wp-block-button__link:hover { background: #f1f4f7 !important; }

.msp-stats { max-width: 32rem; margin-top: 4rem !important; border-top: 1px solid var(--msp-line); padding-top: 2rem; }
.msp-stat-label { color: var(--msp-muted); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; }
.msp-stat-value { color: var(--msp-navy); font-family: var(--wp--preset--font-family--cormorant); font-size: 2.25rem; }
.msp-portrait-wrap { position: relative; }
.msp-portrait-wrap::before, .msp-portrait-wrap::after { content: ""; position: absolute; z-index: 2; width: 96px; height: 96px; pointer-events: none; }
.msp-portrait-wrap::before { top: -16px; left: -16px; border-top: 2px solid var(--msp-red); border-left: 2px solid var(--msp-red); }
.msp-portrait-wrap::after { right: -16px; bottom: -16px; border-right: 2px solid var(--msp-navy); border-bottom: 2px solid var(--msp-navy); }
.msp-portrait img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; filter: grayscale(15%); }
.msp-person-meta { margin-top: 1.5rem !important; border-top: 1px solid var(--msp-line); padding-top: 1rem; }

.msp-feature-grid, .msp-card-grid, .msp-industry-grid, .msp-value-grid { gap: 1px !important; background: var(--msp-line); }
.msp-feature, .msp-service-card, .msp-industry { height: 100%; background: #fff; }
.msp-feature { padding: 2rem; }
.msp-feature:hover, .msp-service-card:hover, .msp-industry:hover { background: #f1f4f7; }
.msp-feature-code, .msp-icon-box { color: var(--msp-red); font-family: var(--wp--preset--font-family--cormorant); }
.msp-feature-code { font-size: 1.75rem; }
.msp-location-card { margin-top: 1px !important; padding: 2rem; background: var(--msp-navy); color: var(--msp-white); }
.msp-quote { border-left: 2px solid var(--msp-red); padding-left: 1.25rem; font-family: var(--wp--preset--font-family--cormorant); font-size: 1.25rem; font-style: italic; }

.msp-service-card { display: flex; min-height: 330px; flex-direction: column; padding: 2.5rem; }
.msp-icon-box { display: flex; width: 48px; height: 48px; align-items: center; justify-content: center; border: 1px solid var(--msp-line); font-size: 18px; }
.msp-service-card h3 { color: var(--msp-navy); font-size: 1.5rem; }
.msp-service-link { margin-top: auto !important; color: var(--msp-navy); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; }
.msp-bespoke { display: flex; min-height: 330px; flex-direction: column; justify-content: space-between; padding: 2.5rem; background: var(--msp-navy); color: var(--msp-white); }

.msp-dark { background: var(--msp-navy); color: var(--msp-white); }
.msp-dark .msp-eyebrow, .msp-dark .msp-lead { color: rgba(250, 252, 254, 0.7); }
.msp-dark .msp-section-title { color: var(--msp-white); }
.msp-value-grid { background: rgba(250, 252, 254, 0.1); }
.msp-value-card { height: 100%; padding: 2.5rem; background: var(--msp-navy); }
.msp-value-number { color: var(--msp-red); font-family: var(--wp--preset--font-family--cormorant); font-size: 2.25rem; }
.msp-value-card p:last-child { color: rgba(250, 252, 254, 0.62); }

.msp-industry { padding: 2.5rem 1rem; text-align: center; }
.msp-industry .msp-feature-code { font-size: 1.5rem; }
.msp-process-grid { position: relative; margin-top: 5rem !important; }
.msp-process-grid::before { content: ""; position: absolute; top: 24px; right: 0; left: 0; height: 1px; background: var(--msp-line); }
.msp-process-step { position: relative; }
.msp-step-number { display: flex; position: relative; z-index: 1; width: 48px; height: 48px; align-items: center; justify-content: center; border: 1px solid var(--msp-line); background: var(--msp-surface); color: var(--msp-red); font-family: var(--wp--preset--font-family--cormorant); }

.msp-contact-list { margin-top: 2.5rem !important; }
.msp-contact-row { padding-bottom: 1rem; border-bottom: 1px solid var(--msp-line); }
.msp-contact-label { color: var(--msp-muted); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; }
.msp-contact-form { padding: clamp(2rem, 5vw, 3rem); border: 1px solid var(--msp-line); background: var(--msp-surface); }
.msp-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.msp-field label { display: block; margin-bottom: 0.5rem; color: var(--msp-muted); font-size: 10px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; }
.msp-field input, .msp-field textarea { width: 100%; border: 1px solid var(--msp-line); border-radius: 0; padding: 0.75rem 1rem; background: #fff; color: var(--msp-ink); font: inherit; }
.msp-field input { height: 48px; }
.msp-field textarea { min-height: 160px; resize: vertical; }
.msp-field-full { grid-column: 1 / -1; }
.msp-form-footer { display: flex; margin-top: 2rem; align-items: center; justify-content: space-between; gap: 1rem; }
.msp-form-note { color: var(--msp-muted); font-size: 12px; }
.msp-submit { border: 0; padding: 1rem 1.75rem; background: var(--msp-red); color: #fff; cursor: pointer; font: inherit; font-size: 13px; font-weight: 500; }

.msp-site-footer { border-top: 1px solid var(--msp-line); background: var(--msp-navy); color: var(--msp-white); }
.msp-footer-main { padding-block: 4rem; }
.msp-site-footer a { color: rgba(250, 252, 254, 0.72); }
.msp-site-footer ul { list-style: none; }
.msp-site-footer .msp-brand-mark { background: var(--msp-red); }
.msp-footer-label { color: rgba(250, 252, 254, 0.5); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; }
.msp-footer-bottom { border-top: 1px solid rgba(250, 252, 254, 0.1); padding-top: 1.5rem; color: rgba(250, 252, 254, 0.5); font-size: 12px; }

@media (max-width: 781px) {
  .admin-bar .msp-site-header { top: 46px; }
  .msp-site-header .wp-block-navigation__responsive-container-open { display: flex; }
  .msp-hero { padding-block: 5rem; }
  .msp-process-grid::before { display: none; }
  .msp-service-card, .msp-bespoke { min-height: auto; }
}
@media (max-width: 600px) {
  .msp-section { padding-block: 5rem; }
  .msp-header-inner { min-height: 70px; }
  .msp-form-grid { grid-template-columns: 1fr; }
  .msp-form-footer { align-items: flex-start; flex-direction: column; }
}
