/* ============================================
   NORCAL VENTURE CAPITAL — Design System
   ============================================ */

:root {
  /* Color Tokens */
  --navy: #003c7b;
  --navy-dark: #002a57;
  --navy-deep: #001d3d;
  --gold: #f2ca38;
  --gold-light: #f7d96b;
  --gold-dark: #d4a820;
  --gray-dark: #333333;
  --gray-medium: #666666;
  --gray-light: #cccccc;
  --gray-bg: #f8f9fa;
  --white: #ffffff;

  /* Typography Tokens */
  --font-heading: 'Crete Round', Georgia, serif;
  --font-body: 'Lato', -apple-system, sans-serif;

  /* Spacing Tokens */
  --section-padding: 90px 0;
  --container-width: 1200px;
  --container-padding: 0 30px;

  /* Transitions & Shadows */
  --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-xl: 0 16px 64px rgba(0,0,0,0.2);
}

/* Reset & Base */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--gray-dark); line-height: 1.7; background: var(--white); overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: var(--transition-fast); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--container-width); margin: 0 auto; padding: var(--container-padding); }

/* Revealer Animations */
.reveal, .reveal-left, .reveal-right { opacity: 0; transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal { transform: translateY(40px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal.visible, .reveal-left.visible, .reveal-right.visible { opacity: 1; transform: translate(0); }

/* Header & Navigation */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; transition: var(--transition-fast); }
.header__inner { display: flex; align-items: center; justify-content: space-between; max-width: 1400px; margin: 0 auto; padding: 20px 40px; }
.header.scrolled { background: var(--navy-dark); box-shadow: var(--shadow-md); }
.header.scrolled .header__inner { padding: 12px 40px; }
.header__logo img { height: 60px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }
.header__nav { display: flex; align-items: center; gap: 12px; }
.header__nav-link { color: var(--white); font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 8px 12px; }
.header__nav-link:hover, .header__nav-link.active { color: var(--gold); }

/* Dropdowns */
.header__nav-item { position: relative; }
.header__dropdown { position: absolute; top: 100%; left: 0; min-width: 260px; background: var(--white); border-radius: 6px; box-shadow: var(--shadow-xl); padding: 10px 0; opacity: 0; visibility: hidden; transform: translateY(10px); transition: var(--transition-fast); border-top: 3px solid var(--gold); }
.header__nav-item:hover .header__dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.header__dropdown-link { display: block; padding: 10px 20px; color: var(--gray-dark); font-size: 13px; }
.header__dropdown-link:hover { background: var(--gray-bg); color: var(--navy); padding-left: 25px; }

/* Hero Section */
.hero { position: relative; height: 100vh; min-height: 650px; overflow: hidden; }
.hero__slides { position: relative; width: 100%; height: 100%; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.5s ease; }
.hero__slide.active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,29,61,0.8) 0%, rgba(0,60,123,0.5) 100%); z-index: 2; }
.hero__content { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 0 20px; }
.hero__tagline { font-size: 13px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.hero__title { font-family: var(--font-heading); font-size: clamp(32px, 5vw, 56px); color: var(--white); margin-bottom: 20px; }
.hero__subtitle { font-size: clamp(15px, 1.8vw, 18px); color: rgba(255,255,255,0.9); max-width: 750px; margin-bottom: 36px; }
.hero__cta { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; background: var(--gold); color: var(--navy-dark); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; border: 2px solid var(--gold); cursor: pointer; border-radius: 4px; }
.hero__cta:hover { background: transparent; color: var(--gold); }

/* Section Formatting */
.section-title { text-align: center; margin-bottom: 50px; }
.section-title__heading { font-family: var(--font-heading); font-size: clamp(26px, 3vw, 36px); color: var(--navy); }
.section-title__heading--white { color: var(--white); }
.section-title__line { display: block; width: 50px; height: 3px; background: var(--gold); margin: 12px auto 0; }
.section-title__sub { font-size: 15px; color: var(--gray-medium); max-width: 600px; margin: 12px auto 0; }

/* Company Profile & Milestones */
.profile { padding: var(--section-padding); }
.profile__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.profile__content { background: var(--gray-bg); padding: 50px; border-left: 4px solid var(--gold); }
.profile__heading { font-family: var(--font-heading); font-size: 28px; color: var(--navy); margin-bottom: 12px; }
.profile__line { width: 40px; height: 3px; background: var(--gold); margin-bottom: 20px; }
.profile__text { color: var(--gray-medium); font-size: 15px; line-height: 1.8; margin-bottom: 20px; }
.profile__quote { font-style: italic; font-weight: 700; color: var(--navy); }

.milestones { padding: var(--section-padding); background: var(--gray-bg); }
.milestones__timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.milestones__item { background: var(--white); padding: 24px; border-radius: 6px; border-top: 3px solid var(--gold); box-shadow: var(--shadow-md); }
.milestones__year { font-family: var(--font-heading); font-size: 28px; color: var(--navy); margin-bottom: 8px; }
.milestones__desc { font-size: 13px; color: var(--gray-medium); }

/* Leadership & Services */
.leadership { padding: var(--section-padding); }

/* [BẮT ĐẦU CẬP NHẬT: Sử dụng Flexbox để chia layout ngang] */
.leadership__card { 
  background: var(--navy); 
  color: var(--white); 
  border-radius: 8px; 
  border-left: 6px solid var(--gold);
  display: flex;             /* Bổ sung Flexbox */
  align-items: stretch;      /* Kéo dài hình ảnh bằng với khung chữ */
  overflow: hidden;          /* Giữ bo góc cho thẻ card */
}

.leadership__image {
  flex: 0 0 35%;             /* Cột ảnh chiếm 35% chiều rộng card */
  max-width: 350px;
}

.leadership__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;         /* Đảm bảo ảnh không bị méo */
  display: block;
}

.leadership__info { 
  padding: 40px; 
  flex: 1;                   /* Khung chữ chiếm phần diện tích còn lại */
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* [KẾT THÚC CẬP NHẬT] */

.leadership__name { font-family: var(--font-heading); font-size: 26px; color: var(--gold); margin-bottom: 8px; }
.leadership__role { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; opacity: 0.8; }
.leadership__bio { font-size: 14px; line-height: 1.8; opacity: 0.9; }

.services { padding: var(--section-padding); background: var(--white); }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.services__card { position: relative; height: 360px; overflow: hidden; }
.services__card-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.services__card:hover .services__card-image { transform: scale(1.08); }
.services__card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,29,61,0.95) 0%, rgba(0,60,123,0.4) 100%); }
.services__card-content { position: absolute; bottom: 0; padding: 30px; color: var(--white); z-index: 2; }
.services__card-icon { font-size: 24px; margin-bottom: 10px; }
.services__card-title { font-family: var(--font-heading); font-size: 16px; margin-bottom: 8px; color: var(--gold); }
.services__card-desc { font-size: 13px; opacity: 0.8; line-height: 1.6; }

/* Brands Ecosystem & Development Portfolio */
.brands { padding: var(--section-padding); background: var(--gray-bg); }
.brands__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.brands__card { background: var(--white); padding: 30px 20px; text-align: center; border-radius: 8px; box-shadow: var(--shadow-md); border-bottom: 3px solid transparent; transition: var(--transition-fast); }
.brands__card:hover { border-bottom-color: var(--gold); transform: translateY(-4px); }
.brands__card-icon { font-size: 32px; margin-bottom: 12px; }
.brands__card-name { font-family: var(--font-heading); font-size: 16px; color: var(--navy); margin-bottom: 8px; }
.brands__card-desc { font-size: 13px; color: var(--gray-medium); }

.development { padding: var(--section-padding); }
.dev__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.dev__card { background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-md); }
.dev__image { width: 100%; height: 240px; object-fit: cover; }
.dev__body { padding: 30px; }
.dev__name { font-family: var(--font-heading); font-size: 20px; color: var(--navy); margin-bottom: 10px; }
.dev__desc { font-size: 14px; color: var(--gray-medium); line-height: 1.7; }

/* Media & Press Section */
.news { padding: var(--section-padding); background: var(--navy-deep); color: var(--white); }
.news__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news__card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 24px; backdrop-filter: blur(10px); }
.news__card-date { font-size: 11px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 1px; }
.news__card-title { font-family: var(--font-heading); font-size: 16px; margin: 10px 0; color: var(--white); }
.news__card-excerpt { font-size: 13px; color: rgba(255,255,255,0.6); }

/* Footer & Form */
.footer { background: var(--navy-dark); color: rgba(255,255,255,0.7); padding: 70px 0 30px; }
.footer__grid { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 40px; }
.footer__heading { font-family: var(--font-heading); font-size: 16px; color: var(--white); margin-bottom: 16px; }
.footer__text { font-size: 13px; line-height: 1.8; }
.footer__form { display: flex; flex-direction: column; gap: 10px; }
.footer__form input, .footer__form textarea { width: 100%; padding: 10px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); color: var(--white); border-radius: 4px; font-family: var(--font-body); }
.footer__bottom { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 12px; }
.footer__tagline { display: block; margin-top: 6px; color: var(--gold); }

/* Loader & Floating UI */
.loader { position: fixed; inset: 0; background: var(--navy-dark); display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 9999; transition: opacity 0.5s ease; }
.loader.hidden { opacity: 0; pointer-events: none; }
.loader__logo { width: 70px; margin-bottom: 20px; }
.loader__bar { width: 160px; height: 3px; background: rgba(255,255,255,0.1); }
.loader__progress { height: 100%; width: 100%; background: var(--gold); }

.back-to-top { position: fixed; bottom: 30px; right: 30px; width: 44px; height: 44px; background: var(--gold); color: var(--navy-dark); border: none; border-radius: 50%; font-size: 18px; cursor: pointer; opacity: 0; transition: var(--transition-fast); }
.back-to-top.visible { opacity: 1; }

/* Responsive Rules */
@media (max-width: 1024px) {
  .profile__grid, .dev__grid, .footer__grid { grid-template-columns: 1fr; }
  .milestones__timeline, .brands__grid, .services__grid, .news__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .header__nav { position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; background: var(--navy-dark); flex-direction: column; justify-content: center; padding: 40px; transition: right 0.3s ease; }
  .header__nav.open { right: 0; }
  .header__toggle { display: flex; flex-direction: column; gap: 5px; width: 26px; cursor: pointer; }
  .header__toggle span { width: 100%; height: 2px; background: var(--white); }
  .milestones__timeline, .brands__grid, .services__grid, .news__grid { grid-template-columns: 1fr; }
/* [BẮT ĐẦU CẬP NHẬT: Responsive cho Mobile] */
  .leadership__card {
    flex-direction: column; /* Chuyển bố cục từ ngang (row) sang dọc (column) */
  }
  
  .leadership__image {
    flex: none;
    width: 100%;
    max-width: 100%;
    height: 300px; /* Giới hạn chiều cao ảnh trên mobile */
  }
  
  .leadership__info {
    padding: 30px 20px;
  }
}