/* ===========================================================
   Pearl Vietnam Ltd. — Stylesheet
   =========================================================== */

:root {
  --navy: #0a2540;
  --navy-deep: #0e2f52;
  --navy-darker: #081c30;
  --blue-pale: #e9f5fb;
  --blue-pale-2: #f4f9fc;
  --grey-blue: #5c7488;
  --white: #ffffff;
  --border-soft: rgba(10, 37, 64, 0.12);
  --border-soft-light: rgba(255, 255, 255, 0.35);

  --font-serif: "Playfair Display", "Georgia", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container-width: 1240px;
  --transition-base: 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--navy);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

section {
  position: relative;
}

/* ===========================================================
   Reveal animation utility
   =========================================================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================================================
   Header / Navigation
   =========================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 26px 0;
  transition: padding var(--transition-base), background var(--transition-base),
    box-shadow var(--transition-base), border-color var(--transition-base);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--white);
  transition: color var(--transition-base);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 44px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  position: relative;
  padding: 4px 0;
  transition: color var(--transition-base);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.35s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 13px 26px;
  border-radius: 999px;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-outline {
  border: 1px solid var(--border-soft-light);
  color: var(--white);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-solid {
  background: var(--navy-deep);
  color: var(--white);
}

.btn-solid:hover {
  background: var(--navy-darker);
  transform: translateY(-2px);
}

.btn-solid.on-light {
  background: var(--navy-deep);
  color: var(--white);
}

/* Header state: scrolled (solid) */
.site-header.is-scrolled {
  padding: 16px 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 30px rgba(10, 37, 64, 0.08);
  border-bottom: 1px solid var(--border-soft);
}

.site-header.is-scrolled .brand,
.site-header.is-scrolled .nav-links a {
  color: var(--navy);
}

.site-header.is-scrolled .btn-outline {
  border-color: var(--border-soft);
  color: var(--navy);
}

.site-header.is-scrolled .btn-outline:hover {
  background: rgba(10, 37, 64, 0.06);
  border-color: var(--navy);
}

/* Header variant: used on pages without a dark hero (Contact) */
.site-header.header-on-light .brand,
.site-header.header-on-light .nav-links a {
  color: var(--navy);
}

.site-header.header-on-light .btn-outline {
  border-color: var(--border-soft);
  color: var(--navy);
}

.site-header.header-on-light .btn-outline:hover {
  background: rgba(10, 37, 64, 0.06);
  border-color: var(--navy);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  z-index: 1100;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: all var(--transition-base);
}

.site-header.is-scrolled .menu-toggle span,
.site-header.header-on-light .menu-toggle span {
  background: var(--navy);
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}
.menu-toggle.is-open span {
  background: var(--navy) !important;
}

/* Mobile nav panel */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 34px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.45s;
}

.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-nav a {
  font-family: var(--font-serif);
  font-size: 30px;
  color: var(--navy);
}

.mobile-nav .btn {
  margin-top: 10px;
}

/* ===========================================================
   Hero
   =========================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-darker);
}

.hero-media {
  position: absolute;
  inset: -8% -8%;
  z-index: 0;
  will-change: transform;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    100deg,
    rgba(6, 21, 38, 0.8) 0%,
    rgba(6, 21, 38, 0.55) 40%,
    rgba(6, 21, 38, 0.32) 65%,
    rgba(6, 21, 38, 0.18) 100%
  ),
    linear-gradient(0deg, rgba(6, 21, 38, 0.45) 0%, rgba(6, 21, 38, 0) 26%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 60px;
}

.hero-brand {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 14px;
  max-width: 780px;
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(17px, 2vw, 22px);
  color: var(--white);
  margin-bottom: 22px;
  max-width: 780px;
}

.hero-text {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.86);
  max-width: 480px;
  margin-bottom: 34px;
}

.hero-cta {
  transition-delay: 0.5s;
}

/* ===========================================================
   Glance section
   =========================================================== */

.glance {
  position: relative;
  padding: 96px 0;
  background: var(--blue-pale);
  overflow: hidden;
}

.glance-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.4;
}

.glance-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.glance-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(233, 245, 251, 0.55) 0%,
    rgba(233, 245, 251, 0.86) 100%
  );
}

.glance .container {
  position: relative;
  z-index: 1;
}

.glance-heading {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 34px);
  color: var(--navy);
  margin-bottom: 52px;
}

.glance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.glance-item {
  padding: 0 28px;
  border-left: 1px solid rgba(10, 37, 64, 0.18);
}

.glance-item:first-child {
  border-left: none;
  padding-left: 0;
}

.glance-number {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(26px, 2.6vw, 36px);
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 8px;
}

.glance-item:nth-child(4) .glance-number {
  font-size: clamp(20px, 1.8vw, 26px);
}

.glance-label {
  font-size: 14px;
  color: var(--grey-blue);
  font-weight: 500;
}

/* ===========================================================
   What We Do
   =========================================================== */

.what-we-do {
  padding: 120px 0 110px;
  background: var(--white);
}

.section-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey-blue);
  margin-bottom: 18px;
}

.section-heading {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 46px);
  color: var(--navy);
  max-width: 640px;
  margin-bottom: 20px;
  line-height: 1.16;
}

.section-text {
  font-size: 16px;
  color: var(--grey-blue);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 64px;
}

.cards-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.card:nth-child(even) {
  transform: translateY(34px);
}

.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 20px;
  background: var(--blue-pale-2);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.card:hover .card-media img {
  transform: scale(1.12);
}

.card-number {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  background: rgba(10, 37, 64, 0.55);
  backdrop-filter: blur(6px);
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.card-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 19px;
  color: var(--navy);
  margin-bottom: 8px;
}

.card-text {
  font-size: 14px;
  color: var(--grey-blue);
  line-height: 1.6;
}

/* ===========================================================
   Final CTA
   =========================================================== */

.final-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--blue-pale);
  overflow: hidden;
}

.final-cta-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 80px 100px max(40px, calc((100vw - 1240px) / 2 + 40px));
}

.final-cta-heading {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.14;
  color: var(--navy);
  margin-bottom: 22px;
}

.final-cta-text > p.final-cta-body {
  font-size: 16px;
  color: var(--grey-blue);
  margin-bottom: 30px;
  max-width: 420px;
  line-height: 1.7;
}

.final-cta-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 34px;
  width: fit-content;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--border-soft);
  transition: color var(--transition-base), border-color var(--transition-base);
}

.final-cta-email:hover {
  color: var(--navy-deep);
  border-color: var(--navy);
}

.final-cta-media {
  position: relative;
  min-height: 460px;
  overflow: hidden;
}

.final-cta-media img {
  position: absolute;
  inset: -6% -6%;
  width: 112%;
  height: 112%;
  object-fit: cover;
  will-change: transform;
}

/* ===========================================================
   Footer
   =========================================================== */

.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 46px 0 30px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 26px;
  margin-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
}

.footer-nav {
  display: flex;
  gap: 28px;
  list-style: none;
}

.footer-nav a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--white);
}

.footer-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.3s ease;
}

.footer-email:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

/* ===========================================================
   Contact Page
   =========================================================== */

.contact-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(
    180deg,
    #dcf0f8 0%,
    #eef7fb 32%,
    #ffffff 62%
  );
}

.contact-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 46%;
  background: radial-gradient(
    120% 100% at 30% 0%,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(255, 255, 255, 0) 60%
  );
  pointer-events: none;
}

.contact-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 160px 24px 100px;
}

.contact-main-inner {
  max-width: 640px;
}

.contact-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey-blue);
  margin-bottom: 22px;
}

.contact-heading {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(34px, 5vw, 54px);
  color: var(--navy);
  line-height: 1.14;
  margin-bottom: 22px;
}

.contact-body {
  font-size: 17px;
  color: var(--grey-blue);
  margin-bottom: 40px;
}

.contact-email {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 600;
  color: var(--navy);
  border-bottom: 1px solid var(--navy);
  padding-bottom: 6px;
  margin-bottom: 40px;
  transition: color var(--transition-base), border-color var(--transition-base),
    letter-spacing var(--transition-base);
}

.contact-email:hover {
  color: var(--navy-deep);
  letter-spacing: 0.01em;
}

.contact-cta {
  display: inline-flex;
}

/* ===========================================================
   Responsive
   =========================================================== */

@media (max-width: 1024px) {
  .container {
    padding: 0 28px;
  }

  .glance-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 40px;
  }

  .glance-item:nth-child(3) {
    border-left: none;
    padding-left: 0;
  }

  .cards-row {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 44px;
  }

  .card:nth-child(4),
  .card:nth-child(5) {
    transform: none;
  }

  .card:nth-child(2) {
    transform: translateY(28px);
  }

  .final-cta {
    grid-template-columns: 1fr;
  }

  .final-cta-media {
    min-height: 360px;
    order: -1;
  }

  .final-cta-text {
    padding: 72px 40px;
  }
}

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-content .container {
    max-width: 100%;
  }

  .glance {
    padding: 72px 0;
  }

  .glance-grid {
    grid-template-columns: 1fr;
    row-gap: 32px;
  }

  .glance-item {
    border-left: none;
    padding-left: 0;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(10, 37, 64, 0.14);
  }

  .glance-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .what-we-do {
    padding: 84px 0 78px;
  }

  .section-text {
    margin-bottom: 44px;
  }

  .cards-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .card:nth-child(even) {
    transform: none;
  }

  .card-media {
    aspect-ratio: 4 / 3;
  }

  .final-cta-text {
    padding: 56px 24px;
  }

  .final-cta-media {
    min-height: 280px;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .footer-nav {
    order: 3;
  }

  .contact-main {
    padding: 140px 20px 80px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 20px;
  }

  .hero-text {
    font-size: 15px;
  }

  .contact-heading {
    font-size: clamp(20px, 6.2vw, 26px);
  }
}
