/* ============================================================
   BLEM Property Management Co. Ltd — Site Stylesheet
   Brand zones (header / hero / footer): poster palette
     navy #10294A · orange #E4581C · yellow #FFC933
   Body zones: neutral palette only
     paper #FAFAF8 · ink #23272B · stone #6E747D
   ============================================================ */

:root {
  --navy: #10294a;
  --navy-deep: #0b1e38;
  --orange: #e4581c;
  --orange-dark: #c74a15;
  --yellow: #ffc933;

  --paper: #fafaf8;
  --paper-2: #f1f0ec;
  --ink: #23272b;
  --stone: #6e747d;
  --line: #e3e1dc;

  --radius: 10px;
  --container: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  z-index: 200;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

/* ------------------------------------------------------------
   HEADER — branded zone
   ------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  transition: box-shadow 0.25s ease;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
  padding-bottom: 20px;
  transition: padding 0.25s ease;
}

.site-header.scrolled .container {
  padding-top: 10px;
  padding-bottom: 10px;
}
.site-header.scrolled { box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25); }

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

.brand-mark {
  width: 40px;
  height: 40px;
  flex: none;
  background: var(--orange);
  color: #fff;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.5px;
}

.brand-name { font-weight: 800; font-size: 18px; letter-spacing: 1px; }
.brand-sub {
  display: block;
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--yellow);
}

.main-nav { display: flex; align-items: center; gap: 28px; }

.main-nav a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.main-nav a:hover { color: #fff; }
.main-nav a[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--yellow);
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-dark); }

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
  background: transparent;
}
.btn-outline-light:hover { border-color: #fff; }

.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; }

.nav-cta { flex: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------
   HERO — branded zone
   ------------------------------------------------------------ */

.hero {
  position: relative;
  background: var(--navy-deep);
  color: #fff;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(9, 22, 42, 0.78) 0%, rgba(9, 22, 42, 0.58) 45%, rgba(9, 22, 42, 0.4) 100%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 3;
  padding: 96px 0 110px;
  max-width: 640px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(34px, 5.2vw, 56px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 22px;
}

.hero p.lead {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 34px;
  max-width: 540px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-tag {
  margin-top: 44px;
  font-size: 14px;
  font-style: italic;
  color: var(--yellow);
  letter-spacing: 0.5px;
}

.hero-art {
  position: absolute;
  right: -40px;
  bottom: 0;
  width: 52%;
  min-width: 480px;
  z-index: 2;
  opacity: 0.9;
  pointer-events: none;
}

.hero .hero-art { opacity: 0.5; }

/* Small page hero (About / Properties / Contact) */
.page-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.page-hero .hero-inner { padding: 64px 0 72px; }
.page-hero h1 {
  font-size: clamp(30px, 4.2vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
}
.page-hero p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 560px;
  font-size: 17px;
}
.page-hero .hero-art { width: 44%; min-width: 380px; opacity: 0.55; }

/* ------------------------------------------------------------
   BODY SECTIONS — neutral zone only
   ------------------------------------------------------------ */

.section { padding: 88px 0; }
.section.tight { padding: 64px 0; }
.section.alt { background: var(--paper-2); }

.section-label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 14px;
}

h2.section-title {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.4px;
  max-width: 620px;
}

.section-intro {
  color: var(--stone);
  font-size: 17px;
  max-width: 620px;
  margin-top: 16px;
}

/* Split editorial layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.split .split-body p { margin-bottom: 18px; font-size: 17px; }
.split .split-body p:last-of-type { margin-bottom: 0; }

.text-link {
  display: inline-block;
  margin-top: 22px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
  padding-bottom: 2px;
  transition: opacity 0.2s ease;
}
.text-link:hover { opacity: 0.65; }

/* Core values band */
.values-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 56px;
}
.value-item { border-top: 3px solid var(--ink); padding-top: 20px; }
.value-item .value-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--stone);
  letter-spacing: 1px;
}
.value-item h3 {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 800;
  margin: 6px 0 8px;
}
.value-item p { color: var(--stone); font-size: 15px; }

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 56px;
}

.service-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(35, 39, 43, 0.08);
}
.service-card .service-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--stone);
  letter-spacing: 1px;
}
.service-card .service-icon {
  margin: 16px 0 14px;
  color: var(--ink);
}
.service-card h3 { font-size: 17.5px; font-weight: 700; margin-bottom: 8px; }
.service-card p { font-size: 14.5px; color: var(--stone); }

/* Featured cards */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(35, 39, 43, 0.09);
}
.feature-card .card-art { background: var(--paper-2); }
.feature-card .card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.feature-card .card-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 8px;
}
.feature-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.feature-card p { font-size: 15px; color: var(--stone); flex: 1; }
.feature-card .text-link { margin-top: 18px; }

/* Pillars (Why BLEM) */
.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 56px;
  margin-top: 56px;
}
.pillar { display: flex; gap: 20px; align-items: flex-start; }
.pillar .pillar-num {
  font-size: 15px;
  font-weight: 800;
  color: var(--stone);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  width: 46px;
  height: 46px;
  flex: none;
  display: grid;
  place-items: center;
}
.pillar h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.pillar p { font-size: 15px; color: var(--stone); }

/* CTA band (neutral, pre-footer) */
.cta-band { background: var(--ink); color: #fff; }
.cta-band .cta-inner {
  padding: 76px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
.cta-band p { color: rgba(255, 255, 255, 0.72); margin-top: 10px; max-width: 480px; }
.cta-band .btn { background: #fff; color: var(--ink); }
.cta-band .btn:hover { background: var(--paper-2); }

/* ------------------------------------------------------------
   PORTFOLIO (Properties page)
   ------------------------------------------------------------ */

.portfolio { padding: 40px 0 80px; }

.entry {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}
.entry:last-child { border-bottom: 0; }
.entry.reverse .entry-art { order: 2; }

.entry-art {
  background: var(--paper-2);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.entry-art img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 560 / 400;
  object-fit: cover;
}

.entry-art.contain img { object-fit: contain; }

.entry-info .entry-num {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--stone);
  margin-bottom: 12px;
}
.entry-info h2 {
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 6px;
}
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--stone);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
}
.entry-info p { font-size: 16px; margin-bottom: 16px; }
.entry-info ul { list-style: none; }
.entry-info li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--stone);
}
.entry-info li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px;
  height: 2px;
  background: var(--ink);
}

/* Progress indicator */
.progress-indicator {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--stone);
  background: rgba(250, 250, 248, 0.85);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  backdrop-filter: blur(4px);
}

/* ------------------------------------------------------------
   ABOUT PAGE
   ------------------------------------------------------------ */

.about-block { padding: 72px 0; border-bottom: 1px solid var(--line); }
.about-block:last-of-type { border-bottom: 0; }

.offices-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.office-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.office-card .office-kicker {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 8px;
}
.office-card h3 { font-size: 19px; font-weight: 800; margin-bottom: 4px; }
.office-card p { font-size: 14px; color: var(--stone); }

/* ------------------------------------------------------------
   CONTACT PAGE
   ------------------------------------------------------------ */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.contact-info h2 { font-size: 26px; font-weight: 800; margin-bottom: 20px; }

.contact-list { list-style: none; margin-bottom: 36px; }
.contact-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.contact-list .contact-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--stone);
  width: 96px;
  flex: none;
  padding-top: 3px;
}
.contact-list .contact-value { font-size: 16px; font-weight: 600; }
.contact-list .contact-value a { text-decoration: none; }
.contact-list .contact-value a:hover { text-decoration: underline; }
.contact-list .contact-note { display: block; font-size: 13.5px; font-weight: 400; color: var(--stone); }

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
}
.contact-form h2 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.contact-form > p { font-size: 14.5px; color: var(--stone); margin-bottom: 26px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 13.5px; font-weight: 700; }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  width: 100%;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--ink);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-submit { margin-top: 24px; }
.form-status { margin-top: 14px; font-size: 14px; color: var(--stone); }

/* ------------------------------------------------------------
   FOOTER — branded zone
   ------------------------------------------------------------ */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.8);
  border-top: 4px solid var(--orange);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr;
  gap: 48px;
  padding: 64px 0 48px;
}

.site-footer h3 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.site-footer h3 span { color: var(--yellow); }

.footer-about p { font-size: 14.5px; max-width: 340px; margin-top: 16px; }
.footer-tagline { font-style: italic; color: var(--yellow); margin-top: 14px; font-size: 14px; }

.footer-nav ul, .footer-contact ul { list-style: none; }
.footer-nav li, .footer-contact li { margin-bottom: 10px; font-size: 14.5px; }
.footer-nav a, .footer-contact a { color: rgba(255, 255, 255, 0.8); text-decoration: none; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--yellow); }

.footer-contact .fc-label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.55);
}

/* ------------------------------------------------------------
   REVEAL ANIMATION (JS adds .js to body; IO adds .in-view)
   ------------------------------------------------------------ */

body.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
body.js .reveal.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body.js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .service-card:hover, .feature-card:hover { transform: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .values-band { grid-template-columns: repeat(2, 1fr); }
  .offices-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-art { opacity: 0.35; }
}

@media (max-width: 860px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-deep);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    display: none;
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.3);
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    padding: 14px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 16px;
  }
  .main-nav a[aria-current="page"] { border-bottom-color: var(--yellow); }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }

  .split { grid-template-columns: 1fr; gap: 32px; }
  .featured-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; gap: 32px; }
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; padding: 48px 0 36px; }

  .entry {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 56px 0;
  }
  .entry.reverse .entry-art { order: 0; }

  .progress-indicator { right: 14px; top: auto; bottom: 18px; transform: none; }

  .hero-inner { padding: 72px 0 84px; }
  .hero-art { display: none; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .values-band { grid-template-columns: 1fr; gap: 24px; }
  .offices-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .contact-list li { flex-direction: column; gap: 4px; }
  .contact-list .contact-label { width: auto; }
}
