/* ========================================================================
   P2 Page Templates - CSS
   Brand Colors:
   - Primary: #274B7A
   - Dark: #182F4D
   - Dark 2: #1F3D63
   - Medium: #3F6696
   - Light: #6E8FB8
   - Accent: #FFBE00
   - Green: #3D6B5F
   - Background: #fafafa
   ======================================================================== */

/* ========== CSS Variables ========== */
:root {
  --p2-primary: #274B7A;
  --p2-dark: #182F4D;
  --p2-dark2: #1F3D63;
  --p2-medium: #3F6696;
  --p2-light: #6E8FB8;
  --p2-accent: #FFBE00;
  --p2-green: #3D6B5F;
  --p2-bg: #fafafa;
  --p2-white: #ffffff;
  --p2-border: rgba(39, 75, 122, 0.12);
  --p2-shadow: rgba(24, 47, 77, 0.08);
  --p2-shadow-lg: rgba(24, 47, 77, 0.12);
  --p2-radius: 12px;
  --p2-radius-lg: 20px;
  --p2-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== Base Reset ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Mersad', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--p2-dark);
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--p2-transition);
}

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

/* ========== Typography ========== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--p2-dark);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
  margin-bottom: 1rem;
}

/* ========== Container ========== */
.p2-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
}

/* ========== Header ========== */
.p2-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: transform var(--p2-transition), box-shadow var(--p2-transition);
}

.p2-header.is-scrolled {
  box-shadow: 0 4px 30px var(--p2-shadow);
}

.p2-header.is-hidden {
  transform: translateY(-100%);
}

.p2-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0 24px;
  max-width: 1400px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .p2-header__inner { padding: 0 40px; }
}

.p2-header__logo img {
  height: 48px;
  width: auto;
}

.p2-header__nav {
  display: none;
  gap: 8px;
}

@media (min-width: 1024px) {
  .p2-header__nav {
    display: flex;
  }
}

.p2-header__nav-link {
  padding: 10px 18px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--p2-medium);
  border-radius: 8px;
  transition: all var(--p2-transition);
}

.p2-header__nav-link:hover {
  color: var(--p2-primary);
  background: rgba(39, 75, 122, 0.05);
}

.p2-header__nav-link.is-active {
  color: var(--p2-primary);
  background: rgba(39, 75, 122, 0.08);
  font-weight: 600;
}

.p2-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.p2-header__phone {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--p2-primary);
  color: var(--p2-white);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 8px;
  transition: background var(--p2-transition);
}

.p2-header__phone:hover {
  background: var(--p2-dark2);
}

.p2-header__phone svg {
  width: 16px;
  height: 16px;
}

@media (min-width: 768px) {
  .p2-header__phone { display: flex; }
}

.p2-header__lang {
  display: flex;
  gap: 2px;
  background: rgba(39, 75, 122, 0.04);
  padding: 3px;
  border-radius: 6px;
}

.p2-header__lang a {
  padding: 6px 10px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--p2-light);
  border-radius: 4px;
  letter-spacing: 0.5px;
  transition: all var(--p2-transition);
}

.p2-header__lang a:hover {
  color: var(--p2-primary);
}

.p2-header__lang a.is-active {
  background: var(--p2-white);
  color: var(--p2-primary);
  box-shadow: 0 1px 3px var(--p2-shadow);
}

/* Mobile Menu Button */
.p2-header__menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 4px;
}

.p2-header__menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--p2-dark);
  border-radius: 2px;
  transition: all var(--p2-transition);
}

.p2-header__menu-btn.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.p2-header__menu-btn.is-open span:nth-child(2) {
  opacity: 0;
}

.p2-header__menu-btn.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 1024px) {
  .p2-header__menu-btn { display: none; }
}

/* Mobile Menu */
.p2-header__mobile {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--p2-white);
  padding: 24px;
  transform: translateX(100%);
  transition: transform var(--p2-transition);
  overflow-y: auto;
}

.p2-header__mobile.is-open {
  transform: translateX(0);
}

.p2-header__mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.p2-header__mobile-nav a {
  padding: 16px 20px;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--p2-dark);
  border-radius: var(--p2-radius);
  transition: all var(--p2-transition);
}

.p2-header__mobile-nav a:hover,
.p2-header__mobile-nav a.is-active {
  background: rgba(39, 75, 122, 0.05);
  color: var(--p2-primary);
}

.p2-header__mobile-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  padding: 16px 24px;
  background: var(--p2-primary);
  color: var(--p2-white);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--p2-radius);
}

.p2-header__mobile-phone svg {
  width: 20px;
  height: 20px;
}

@media (min-width: 1024px) {
  .p2-header__mobile { display: none; }
}

/* ========== Footer ========== */
.p2-footer {
  background: var(--p2-dark);
  color: var(--p2-white);
  margin-top: auto;
}

.p2-footer__main {
  display: grid;
  gap: 48px;
  padding: 60px 24px;
  max-width: 1400px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .p2-footer__main {
    grid-template-columns: 1fr 2fr;
    padding: 80px 40px;
  }
}

@media (min-width: 1024px) {
  .p2-footer__main {
    padding: 80px 60px;
  }
}

.p2-footer__brand {
  max-width: 280px;
}

.p2-footer__logo {
  height: 50px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 20px;
}

.p2-footer__tagline {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
}

.p2-footer__social {
  display: flex;
  gap: 12px;
}

.p2-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--p2-white);
  transition: all var(--p2-transition);
}

.p2-footer__social a:hover {
  background: var(--p2-accent);
  color: var(--p2-dark);
}

.p2-footer__social svg {
  width: 18px;
  height: 18px;
}

.p2-footer__links {
  display: grid;
  gap: 40px;
}

@media (min-width: 640px) {
  .p2-footer__links {
    grid-template-columns: repeat(3, 1fr);
  }
}

.p2-footer__col h4 {
  color: var(--p2-white);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.p2-footer__col nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.p2-footer__col nav a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--p2-transition);
}

.p2-footer__col nav a:hover {
  color: var(--p2-accent);
}

.p2-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.p2-footer__contact a,
.p2-footer__contact address {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  font-style: normal;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--p2-transition);
}

.p2-footer__contact a:hover {
  color: var(--p2-accent);
}

.p2-footer__contact svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.p2-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  padding: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 1400px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .p2-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    padding: 24px 40px;
  }
}

.p2-footer__bottom p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.p2-footer__bottom nav {
  display: flex;
  gap: 24px;
}

.p2-footer__bottom nav a {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--p2-transition);
}

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

/* ========== Hero Section ========== */
.p2-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--p2-dark);
}

.p2-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.p2-hero__bg img,
.p2-hero__bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p2-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24, 47, 77, 0.4) 0%, rgba(24, 47, 77, 0.7) 100%);
  z-index: 2;
}

.p2-hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 120px 24px 80px;
  max-width: 900px;
}

.p2-hero__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--p2-white);
  margin-bottom: 24px;
}

.p2-hero__title {
  color: var(--p2-white);
  margin-bottom: 20px;
}

.p2-hero__title span {
  color: var(--p2-accent);
}

.p2-hero__subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.p2-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.p2-hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  animation: bounce 2s infinite;
}

.p2-hero__scroll svg {
  width: 24px;
  height: 24px;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ========== Buttons ========== */
.p2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 10px;
  transition: all var(--p2-transition);
  white-space: nowrap;
}

.p2-btn--primary {
  background: var(--p2-primary);
  color: var(--p2-white);
}

.p2-btn--primary:hover {
  background: var(--p2-dark2);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(39, 75, 122, 0.3);
}

.p2-btn--accent {
  background: var(--p2-accent);
  color: var(--p2-dark);
}

.p2-btn--accent:hover {
  background: #e5ab00;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 190, 0, 0.3);
}

.p2-btn--outline {
  background: transparent;
  color: var(--p2-white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.p2-btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.p2-btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: var(--p2-white);
  backdrop-filter: blur(10px);
}

.p2-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

.p2-btn svg {
  width: 18px;
  height: 18px;
}

.p2-btn--lg {
  padding: 18px 36px;
  font-size: 1rem;
  border-radius: 12px;
}

/* ========== Sections ========== */
.p2-section {
  padding: 80px 0;
}

@media (min-width: 768px) {
  .p2-section { padding: 120px 0; }
}

.p2-section--dark {
  background: var(--p2-dark);
  color: var(--p2-white);
}

.p2-section--dark h2,
.p2-section--dark h3,
.p2-section--dark h4 {
  color: var(--p2-white);
}

.p2-section--gray {
  background: var(--p2-bg);
}

.p2-section__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.p2-section__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(39, 75, 122, 0.08);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--p2-primary);
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.p2-section--dark .p2-section__label {
  background: rgba(255, 255, 255, 0.1);
  color: var(--p2-accent);
}

.p2-section__title {
  margin-bottom: 16px;
}

.p2-section__subtitle {
  font-size: 1.125rem;
  color: var(--p2-medium);
  line-height: 1.7;
}

.p2-section--dark .p2-section__subtitle {
  color: rgba(255, 255, 255, 0.7);
}

/* ========== Stats Grid ========== */
.p2-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (min-width: 768px) {
  .p2-stats { grid-template-columns: repeat(4, 1fr); }
}

.p2-stat {
  text-align: center;
  padding: 30px 20px;
  background: var(--p2-white);
  border-radius: var(--p2-radius-lg);
  box-shadow: 0 4px 20px var(--p2-shadow);
}

.p2-section--dark .p2-stat {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.p2-stat__number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--p2-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.p2-section--dark .p2-stat__number {
  color: var(--p2-accent);
}

.p2-stat__label {
  font-size: 0.875rem;
  color: var(--p2-medium);
}

.p2-section--dark .p2-stat__label {
  color: rgba(255, 255, 255, 0.7);
}

/* ========== Features Grid ========== */
.p2-features {
  display: grid;
  gap: 24px;
}

@media (min-width: 640px) {
  .p2-features { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .p2-features { grid-template-columns: repeat(3, 1fr); }
}

.p2-feature {
  padding: 32px;
  background: var(--p2-white);
  border-radius: var(--p2-radius-lg);
  box-shadow: 0 4px 20px var(--p2-shadow);
  transition: all var(--p2-transition);
}

.p2-feature:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px var(--p2-shadow-lg);
}

.p2-section--dark .p2-feature {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.p2-feature__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: rgba(39, 75, 122, 0.08);
  border-radius: 16px;
  margin-bottom: 20px;
}

.p2-section--dark .p2-feature__icon {
  background: rgba(255, 190, 0, 0.15);
}

.p2-feature__icon svg {
  width: 28px;
  height: 28px;
  color: var(--p2-primary);
}

.p2-section--dark .p2-feature__icon svg {
  color: var(--p2-accent);
}

.p2-feature__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.p2-feature__text {
  font-size: 0.875rem;
  color: var(--p2-medium);
  line-height: 1.7;
  margin: 0;
}

.p2-section--dark .p2-feature__text {
  color: rgba(255, 255, 255, 0.7);
}

/* ========== Benefits Grid ========== */
.p2-benefits {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .p2-benefits { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .p2-benefits { grid-template-columns: repeat(4, 1fr); }
}

.p2-benefit {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: var(--p2-white);
  border-radius: var(--p2-radius);
  box-shadow: 0 2px 12px var(--p2-shadow);
  transition: all var(--p2-transition);
}

.p2-benefit:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--p2-shadow-lg);
}

.p2-benefit__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(39, 75, 122, 0.08);
  border-radius: 12px;
  flex-shrink: 0;
}

.p2-benefit__icon svg {
  width: 24px;
  height: 24px;
  color: var(--p2-primary);
}

.p2-benefit__text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--p2-dark);
}

/* ========== Gallery Grid ========== */
.p2-gallery {
  display: grid;
  gap: 16px;
}

@media (min-width: 768px) {
  .p2-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
  .p2-gallery__item:first-child {
    grid-column: span 2;
    grid-row: span 2;
  }
}

.p2-gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--p2-radius-lg);
  aspect-ratio: 4/3;
}

.p2-gallery__item:first-child {
  aspect-ratio: auto;
}

.p2-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.p2-gallery__item:hover img {
  transform: scale(1.05);
}

/* ========== Timeline ========== */
.p2-timeline {
  position: relative;
  padding-left: 40px;
}

.p2-timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--p2-border);
}

.p2-timeline__item {
  position: relative;
  padding-bottom: 40px;
}

.p2-timeline__item:last-child {
  padding-bottom: 0;
}

.p2-timeline__dot {
  position: absolute;
  left: -40px;
  top: 0;
  width: 26px;
  height: 26px;
  background: var(--p2-primary);
  border: 4px solid var(--p2-bg);
  border-radius: 50%;
}

.p2-timeline__year {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(39, 75, 122, 0.08);
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--p2-primary);
  margin-bottom: 12px;
}

.p2-timeline__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.p2-timeline__text {
  font-size: 0.875rem;
  color: var(--p2-medium);
  line-height: 1.7;
  margin: 0;
}

/* ========== Team Grid ========== */
.p2-team {
  display: grid;
  gap: 24px;
}

@media (min-width: 640px) {
  .p2-team { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .p2-team { grid-template-columns: repeat(4, 1fr); }
}

.p2-team__member {
  text-align: center;
}

.p2-team__photo {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--p2-radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
}

.p2-team__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p2-team__name {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.p2-team__role {
  font-size: 0.875rem;
  color: var(--p2-medium);
  margin: 0;
}

/* ========== Contact Form ========== */
.p2-contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
  background: var(--p2-white);
  border-radius: var(--p2-radius-lg);
  box-shadow: 0 8px 40px var(--p2-shadow);
}

.p2-contact-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--p2-dark);
  margin-bottom: 8px;
}

.p2-contact-form input,
.p2-contact-form textarea,
.p2-contact-form select {
  width: 100%;
  padding: 14px 18px;
  background: var(--p2-bg);
  border: 2px solid transparent;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--p2-dark);
  transition: all var(--p2-transition);
  margin-bottom: 20px;
}

.p2-contact-form input:focus,
.p2-contact-form textarea:focus,
.p2-contact-form select:focus {
  outline: none;
  border-color: var(--p2-primary);
  background: var(--p2-white);
}

.p2-contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.p2-contact-form button[type="submit"] {
  width: 100%;
  padding: 16px 24px;
  background: var(--p2-primary);
  color: var(--p2-white);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--p2-transition);
}

.p2-contact-form button[type="submit"]:hover {
  background: var(--p2-dark2);
}

/* ========== Contact Info ========== */
.p2-contact-info {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .p2-contact-info { grid-template-columns: repeat(3, 1fr); }
}

.p2-contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px;
  background: var(--p2-white);
  border-radius: var(--p2-radius-lg);
  box-shadow: 0 4px 20px var(--p2-shadow);
}

.p2-contact-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: rgba(39, 75, 122, 0.08);
  border-radius: 16px;
  margin-bottom: 20px;
}

.p2-contact-card__icon svg {
  width: 28px;
  height: 28px;
  color: var(--p2-primary);
}

.p2-contact-card__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--p2-medium);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.p2-contact-card__value {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--p2-dark);
}

.p2-contact-card__value a {
  color: var(--p2-primary);
}

.p2-contact-card__value a:hover {
  color: var(--p2-accent);
}

/* ========== Map ========== */
.p2-map {
  height: 400px;
  border-radius: var(--p2-radius-lg);
  overflow: hidden;
}

.p2-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ========== Projects Grid ========== */
.p2-projects {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .p2-projects { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .p2-projects { grid-template-columns: repeat(3, 1fr); }
}

.p2-project-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--p2-radius-lg);
  background: var(--p2-white);
  box-shadow: 0 4px 20px var(--p2-shadow);
  transition: all var(--p2-transition);
}

.p2-project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 50px var(--p2-shadow-lg);
}

.p2-project-card__image {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.p2-project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.p2-project-card:hover .p2-project-card__image img {
  transform: scale(1.05);
}

.p2-project-card__content {
  padding: 24px;
}

.p2-project-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.p2-project-card__location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--p2-medium);
  margin-bottom: 16px;
}

.p2-project-card__location svg {
  width: 16px;
  height: 16px;
}

.p2-project-card__stats {
  display: flex;
  gap: 20px;
}

.p2-project-card__stat {
  font-size: 0.8125rem;
  color: var(--p2-medium);
}

.p2-project-card__stat strong {
  color: var(--p2-primary);
  font-weight: 600;
}

/* ========== Modal ========== */
.p2-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--p2-transition);
}

.p2-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.p2-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(24, 47, 77, 0.8);
  backdrop-filter: blur(8px);
}

.p2-modal__content {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--p2-white);
  border-radius: var(--p2-radius-lg);
  padding: 40px;
  transform: scale(0.9);
  transition: transform var(--p2-transition);
}

.p2-modal.is-open .p2-modal__content {
  transform: scale(1);
}

.p2-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--p2-bg);
  border-radius: 10px;
  color: var(--p2-medium);
  transition: all var(--p2-transition);
}

.p2-modal__close:hover {
  background: var(--p2-primary);
  color: var(--p2-white);
}

.p2-modal__close svg {
  width: 20px;
  height: 20px;
}

.p2-modal h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}


/* ========== Two Column Layout ========== */
.p2-split {
  display: grid;
  gap: 60px;
  align-items: center;
}

@media (min-width: 1024px) {
  .p2-split {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}

.p2-split--reverse .p2-split__content {
  order: 2;
}

@media (min-width: 1024px) {
  .p2-split--reverse .p2-split__content {
    order: 1;
  }
  .p2-split--reverse .p2-split__media {
    order: 2;
  }
}

.p2-split__media {
  position: relative;
  border-radius: var(--p2-radius-lg);
  overflow: hidden;
}

.p2-split__media img {
  width: 100%;
  height: auto;
}

.p2-split__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(39, 75, 122, 0.08);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--p2-primary);
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.p2-split__title {
  margin-bottom: 20px;
}

.p2-split__text {
  font-size: 1rem;
  color: var(--p2-medium);
  line-height: 1.8;
  margin-bottom: 30px;
}

.p2-split__list {
  list-style: none;
  margin-bottom: 30px;
}

.p2-split__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--p2-border);
}

.p2-split__list li:last-child {
  border-bottom: none;
}

.p2-split__list svg {
  width: 20px;
  height: 20px;
  color: var(--p2-green);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ========== Animation Classes ========== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-children.is-visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.is-visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.is-visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.is-visible > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children.is-visible > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-children.is-visible > *:nth-child(6) { transition-delay: 0.6s; }

.stagger-children.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ========== Utilities ========== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mb-60 { margin-bottom: 60px; }

.mt-auto { margin-top: auto; }

.hidden { display: none !important; }

@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
}

@media (min-width: 768px) {
  .hide-desktop { display: none !important; }
}

/* ========== Project Map (Interactive SVG) ========== */
.p2-project-map {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: var(--p2-radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 40px var(--p2-shadow-lg);
}

.p2-project-map .imaps-wrap {
  position: relative;
  background: var(--p2-white);
}

.p2-project-map .imaps-stage {
  position: relative;
}

.p2-project-map .imaps-stage img {
  display: block;
  width: 100%;
  height: auto;
}

.p2-project-map .imaps-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.p2-project-map .imaps-legend {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 10;
}

.p2-project-map .imaps-tooltip {
  background: var(--p2-dark);
  color: var(--p2-white);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.875rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.2s ease;
  pointer-events: none;
  min-width: 150px;
}

.p2-project-map .imaps-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.p2-project-map .t-title {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.p2-project-map .t-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}

.p2-project-map .t-fill {
  display: block;
  height: 100%;
  background: var(--p2-accent);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.p2-project-map .t-pct {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ========================================================================
   NEWS PAGE
   ======================================================================== */

/* Hero Small Variant */
.p2-hero--small {
  min-height: 40vh !important;
}

/* News Grid */
.p2-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 1024px) {
  .p2-news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .p2-news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* News Card */
.p2-news-card {
  background: var(--p2-white);
  border-radius: var(--p2-radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--p2-shadow);
  transition: transform var(--p2-transition), box-shadow var(--p2-transition);
}

.p2-news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px var(--p2-shadow-lg);
}

.p2-news-card__link {
  display: block;
}

.p2-news-card__image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.p2-news-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--p2-transition);
}

.p2-news-card:hover .p2-news-card__image img {
  transform: scale(1.05);
}

.p2-news-card__category {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--p2-primary);
  color: var(--p2-white);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.p2-news-card__content {
  padding: 24px;
}

.p2-news-card__date {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--p2-medium);
  margin-bottom: 12px;
}

.p2-news-card__date svg {
  width: 16px;
  height: 16px;
}

.p2-news-card__title {
  font-size: 1.25rem;
  margin-bottom: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.p2-news-card__excerpt {
  font-size: 0.875rem;
  color: var(--p2-medium);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.p2-news-card__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--p2-primary);
  font-weight: 600;
  font-size: 0.875rem;
  transition: gap var(--p2-transition);
}

.p2-news-card__more svg {
  width: 18px;
  height: 18px;
  transition: transform var(--p2-transition);
}

.p2-news-card:hover .p2-news-card__more {
  gap: 12px;
}

.p2-news-card:hover .p2-news-card__more svg {
  transform: translateX(4px);
}

/* Pagination */
.p2-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 60px;
}

.p2-pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 16px;
  background: var(--p2-white);
  border: 2px solid var(--p2-border);
  border-radius: 8px;
  font-weight: 600;
  color: var(--p2-dark);
  transition: all var(--p2-transition);
}

.p2-pagination .page-numbers:hover {
  border-color: var(--p2-primary);
  color: var(--p2-primary);
}

.p2-pagination .page-numbers.current {
  background: var(--p2-primary);
  border-color: var(--p2-primary);
  color: var(--p2-white);
}

.p2-pagination .page-numbers svg {
  width: 20px;
  height: 20px;
}

.p2-pagination .page-numbers.prev,
.p2-pagination .page-numbers.next {
  padding: 0;
}

/* Empty State */
.p2-empty {
  text-align: center;
  padding: 80px 24px;
  background: var(--p2-white);
  border-radius: var(--p2-radius-lg);
}

.p2-empty svg {
  width: 64px;
  height: 64px;
  color: var(--p2-light);
  margin-bottom: 24px;
}

.p2-empty h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.p2-empty p {
  color: var(--p2-medium);
  margin: 0;
}

/* ========================================================================
   PROJECTS PAGE
   ======================================================================== */

/* Stats Bar */
.p2-stats-bar {
  background: var(--p2-primary);
  padding: 32px 0;
  margin-top: -1px;
}

.p2-stats-bar__grid {
  display: flex;
  justify-content: center;
  gap: 80px;
}

.p2-stats-bar__item {
  text-align: center;
  color: var(--p2-white);
}

.p2-stats-bar__number {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}

.p2-stats-bar__label {
  font-size: 0.875rem;
  opacity: 0.8;
  letter-spacing: 1px;
}

@media (max-width: 640px) {
  .p2-stats-bar__grid {
    gap: 40px;
  }
  .p2-stats-bar__number {
    font-size: 2rem;
  }
}

/* Projects Grid */
.p2-projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

@media (max-width: 900px) {
  .p2-projects-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Project Card Large */
.p2-project-card-lg {
  display: block;
  background: var(--p2-white);
  border-radius: var(--p2-radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--p2-shadow);
  transition: transform var(--p2-transition), box-shadow var(--p2-transition);
}

.p2-project-card-lg:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px var(--p2-shadow-lg);
}

.p2-project-card-lg--sold {
  opacity: 0.7;
}

.p2-project-card-lg__image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.p2-project-card-lg__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--p2-transition);
}

.p2-project-card-lg:hover .p2-project-card-lg__image img {
  transform: scale(1.05);
}

.p2-project-card-lg__badge {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.p2-project-card-lg__badge--sold {
  background: rgba(0, 0, 0, 0.7);
  color: var(--p2-white);
}

.p2-project-card-lg__badge--complete {
  background: var(--p2-green);
  color: var(--p2-white);
}

.p2-project-card-lg__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(24, 47, 77, 0.8) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity var(--p2-transition);
}

.p2-project-card-lg:hover .p2-project-card-lg__overlay {
  opacity: 1;
}

.p2-project-card-lg__cta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--p2-white);
  font-weight: 600;
}

.p2-project-card-lg__cta svg {
  width: 20px;
  height: 20px;
}

.p2-project-card-lg__content {
  padding: 28px;
}

.p2-project-card-lg__title {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.p2-project-card-lg__location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--p2-medium);
  margin-bottom: 20px;
}

.p2-project-card-lg__location svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.p2-project-card-lg__meta {
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--p2-border);
}

.p2-project-card-lg__stat {
  display: flex;
  flex-direction: column;
}

.p2-project-card-lg__stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--p2-dark);
  line-height: 1;
}

.p2-project-card-lg__stat-label {
  font-size: 0.75rem;
  color: var(--p2-medium);
  margin-top: 4px;
}

.p2-project-card-lg__stat--highlight .p2-project-card-lg__stat-value {
  color: var(--p2-green);
}

.p2-project-card-lg__progress {
  margin-top: auto;
}

.p2-project-card-lg__progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  margin-bottom: 8px;
}

.p2-project-card-lg__progress-header span {
  color: var(--p2-medium);
}

.p2-project-card-lg__progress-header strong {
  color: var(--p2-primary);
}

.p2-project-card-lg__progress-bar {
  height: 8px;
  background: rgba(39, 75, 122, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.p2-project-card-lg__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--p2-primary), var(--p2-medium));
  border-radius: 4px;
  transition: width 0.5s ease;
}

/* ========================================================================
   GENERAL PAGE
   ======================================================================== */

/* Page Header */
.p2-page-header {
  background: var(--p2-primary);
  padding: 60px 0 40px;
  margin-top: 80px;
}

.p2-page-header__title {
  color: var(--p2-white);
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 12px;
}

.p2-page-header__breadcrumb {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.p2-page-header__breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--p2-transition);
}

.p2-page-header__breadcrumb a:hover {
  color: var(--p2-white);
}

.p2-page-header__breadcrumb .breadcrumb_last {
  color: var(--p2-white);
}

/* Content Area */
.p2-content-area {
  min-height: 50vh;
}

.p2-content {
  background: var(--p2-white);
  border-radius: var(--p2-radius-lg);
  padding: 48px;
  box-shadow: 0 4px 20px var(--p2-shadow);
}

.p2-content h1,
.p2-content h2,
.p2-content h3,
.p2-content h4 {
  margin-top: 1.5em;
  margin-bottom: 0.75em;
}

.p2-content h1:first-child,
.p2-content h2:first-child,
.p2-content h3:first-child {
  margin-top: 0;
}

.p2-content p {
  margin-bottom: 1.25em;
  line-height: 1.8;
}

.p2-content ul,
.p2-content ol {
  margin-bottom: 1.25em;
  padding-left: 1.5em;
}

.p2-content li {
  margin-bottom: 0.5em;
}

.p2-content a {
  color: var(--p2-primary);
  text-decoration: underline;
}

.p2-content a:hover {
  color: var(--p2-dark);
}

@media (max-width: 768px) {
  .p2-content {
    padding: 24px;
  }
}
