/* =============================================
   Generic Page Sections
   Uses CSS variables from shared.css :root
   ============================================= */

/* ===== COMMON ===== */
.gp-hero,
.gp-text-image,
.gp-features,
.gp-stats,
.gp-cta,
.gp-gallery,
.gp-rich-text,
.gp-video,
.gp-contact-info,
.gp-cards {
  overflow: hidden;
}

/* Section headings */
.gp-hero h1,
.gp-text-image h2,
.gp-features h2,
.gp-stats h2,
.gp-cta h2,
.gp-gallery h2,
.gp-rich-text h2,
.gp-video h2,
.gp-contact-info h2,
.gp-cards h2 {
  font-family: var(--font-heading);
  color: var(--primary);
  text-align: center;
}

.gp-subtitle {
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto 40px;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.7;
}


/* ===== HERO (.gp-hero) ===== */
.gp-hero {
  position: relative;
  width: 100%;
  padding: 140px 4% 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light, #005a8c) 100%);
  background-size: cover;
  background-position: center;
}

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

.gp-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 59, 92, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 59, 92, 0.6) 100%);
  z-index: 1;
}

.gp-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 24px;
}

.gp-hero-content h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}

.gp-hero-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.7;
  margin-bottom: 32px;
}

.gp-hero-content .gp-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
  padding: 14px 36px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 166, 214, 0.3);
}

.gp-hero-content .gp-btn:hover {
  background: var(--accent-light);
  box-shadow: 0 12px 32px rgba(0, 166, 214, 0.4);
  transform: translateY(-2px);
}


/* ===== TEXT + IMAGE (.gp-text-image) ===== */
.gp-text-image {
  padding: 80px 4%;
}

.gp-text-image-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

/* Column ratio variants  —  grid order is [image] [text] */
.gp-text-image--60-40 .gp-text-image-inner { grid-template-columns: 2fr 3fr } /* text 60%, image 40% */
.gp-text-image--40-60 .gp-text-image-inner { grid-template-columns: 3fr 2fr } /* text 40%, image 60% */
.gp-text-image--70-30 .gp-text-image-inner { grid-template-columns: 3fr 7fr } /* text 70%, image 30% */
.gp-text-image--30-70 .gp-text-image-inner { grid-template-columns: 7fr 3fr } /* text 30%, image 70% */

.gp-text-image--reverse .gp-text-image-inner {
  direction: rtl;
}

.gp-text-image--reverse .gp-text-image-inner > * {
  direction: ltr;
}

.gp-text-image-text h2 {
  text-align: left;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 16px;
}

.gp-text-image-text p {
  color: var(--gray-600);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 12px;
}

.gp-text-image-text .gp-btn {
  display: inline-block;
  margin-top: 16px;
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.gp-text-image-text .gp-btn:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

.gp-text-image-visual img {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  object-fit: cover;
}

@media (max-width: 768px) {
  .gp-hero {
    padding: 120px 4% 60px;
  }
  .gp-text-image-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .gp-text-image--reverse .gp-text-image-inner {
    direction: ltr;
  }
  .gp-text-image-text h2 {
    text-align: center;
  }
}


/* ===== FEATURES (.gp-features) ===== */
.gp-features {
  padding: 80px 4%;
  background: var(--off-white);
}

.gp-features-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.gp-features h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 12px;
}

.gp-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.gp-feature-card {
  background: var(--white);
  padding: 32px;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gp-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.gp-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--white);
  font-size: 1.2rem;
}

.gp-feature-card h3 {
  font-family: var(--font-heading);
  color: var(--primary);
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.gp-feature-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.7;
}

@media (max-width: 968px) {
  .gp-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .gp-features-grid {
    grid-template-columns: 1fr;
  }
}


/* ===== STATS (.gp-stats) ===== */
.gp-stats {
  padding: 60px 4%;
  background: var(--gradient-hero);
}

.gp-stats-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.gp-stats h2 {
  color: var(--white);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 40px;
}

.gp-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.gp-stat-item h3 {
  color: var(--white);
  font-size: 3rem;
  font-weight: 700;
  font-family: var(--font-heading);
  line-height: 1.1;
  margin-bottom: 4px;
}

.gp-stat-item p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 640px) {
  .gp-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .gp-stat-item h3 {
    font-size: 2.4rem;
  }
}


/* ===== CTA (.gp-cta) ===== */
.gp-cta {
  position: relative;
  width: 100%;
  min-height: 300px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gp-cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 38, 64, 0.75);
  z-index: 1;
}

.gp-cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  padding: 60px 24px;
}

.gp-cta-content h2 {
  color: var(--white);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 16px;
}

.gp-cta-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

.gp-cta-content .gp-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
  padding: 14px 36px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 166, 214, 0.3);
}

.gp-cta-content .gp-btn:hover {
  background: var(--accent-light);
  box-shadow: 0 12px 32px rgba(0, 166, 214, 0.4);
  transform: translateY(-2px);
}


/* ===== GALLERY (.gp-gallery) ===== */
.gp-gallery {
  padding: 80px 4%;
}

.gp-gallery-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.gp-gallery h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 12px;
}

.gp-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.gp-gallery-item {
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
}

.gp-gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gp-gallery-item:hover img {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 968px) {
  .gp-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .gp-gallery-grid {
    grid-template-columns: 1fr;
  }
}


/* ===== RICH TEXT (.gp-rich-text) ===== */
.gp-rich-text {
  padding: 60px 4%;
}

.gp-rich-text-inner {
  max-width: 800px;
  margin: 0 auto;
}

.gp-rich-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 24px;
}

.gp-rich-text h3 {
  font-family: var(--font-heading);
  color: var(--primary);
  font-size: 1.4rem;
  margin: 32px 0 12px;
}

.gp-rich-text h4 {
  font-family: var(--font-heading);
  color: var(--primary);
  font-size: 1.2rem;
  margin: 24px 0 10px;
}

.gp-rich-text h5,
.gp-rich-text h6 {
  font-family: var(--font-heading);
  color: var(--primary);
  font-size: 1.05rem;
  margin: 20px 0 8px;
}

.gp-rich-text p {
  color: var(--gray-800);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.gp-rich-text ul,
.gp-rich-text ol {
  color: var(--gray-800);
  padding-left: 24px;
  margin-bottom: 16px;
  line-height: 1.8;
}

.gp-rich-text ul li,
.gp-rich-text ol li {
  margin-bottom: 6px;
}

.gp-rich-text ul {
  list-style: disc;
}

.gp-rich-text ol {
  list-style: decimal;
}

.gp-rich-text blockquote {
  border-left: 4px solid var(--accent);
  margin: 24px 0;
  padding: 16px 24px;
  background: var(--off-white);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--gray-600);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.7;
}

.gp-rich-text img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 16px 0;
}

.gp-rich-text a {
  color: var(--accent);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.gp-rich-text a:hover {
  color: var(--primary);
}


/* ===== VIDEO (.gp-video) ===== */
.gp-video {
  padding: 80px 4%;
}

.gp-video-inner {
  max-width: 900px;
  margin: 0 auto;
}

.gp-video h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 12px;
}

.gp-video-wrapper {
  margin-top: 40px;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.gp-video-wrapper video {
  width: 100%;
  display: block;
  border-radius: 16px;
}

.gp-video-wrapper iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 16px;
  display: block;
}


/* ===== CONTACT INFO (.gp-contact-info) ===== */
.gp-contact-info {
  padding: 80px 4%;
  background: var(--off-white);
}

.gp-contact-info-inner {
  max-width: 900px;
  margin: 0 auto;
}

.gp-contact-info h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 12px;
}

.gp-contact-details {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}

.gp-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gp-contact-row:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.gp-contact-row-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.gp-contact-row-text {
  color: var(--gray-800);
  font-size: 0.95rem;
  line-height: 1.7;
}

.gp-contact-row-text strong {
  display: block;
  color: var(--primary);
  margin-bottom: 2px;
  font-size: 1rem;
}

.gp-contact-row-text a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

.gp-contact-row-text a:hover {
  color: var(--primary);
}

@media (max-width: 640px) {
  .gp-contact-row {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}


/* ===== CARDS (.gp-cards) ===== */
.gp-cards {
  padding: 80px 4%;
}

.gp-cards-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.gp-cards h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 12px;
}

.gp-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.gp-card {
  background: var(--white);
  padding: 24px;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gp-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.gp-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--white);
  font-size: 1.2rem;
}

.gp-card h3 {
  font-family: var(--font-heading);
  color: var(--primary);
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.gp-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.7;
}

.gp-card img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 16px;
  object-fit: cover;
}

@media (max-width: 968px) {
  .gp-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .gp-cards-grid {
    grid-template-columns: 1fr;
  }
}
