/* =========================================
   VARIABLES & RESET
   ========================================= */
:root {
  --primary: #051a3a; /* Deep Navy Blue */
  --accent: #f4ba16; /* Warm Yellow/Gold */
  --bg-light: #f7f9fc; /* Very Light Grey */
  --bg-blue-light: #ebf3fa; /* Partnership Card BG */
  --text-dark: #222222;
  --text-muted: #555555;
  --white: #ffffff;
  --border-radius: 12px;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --max-width: 1180px;
}

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

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--white);
  scroll-behavior: smooth;
}

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

ul {
  list-style: none;
}

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

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

/* =========================================
   TYPOGRAPHY & UTILITIES
   ========================================= */
h1,
h2,
h3,
h4 {
  color: var(--primary);
  line-height: 1.2;
  font-weight: 700;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.heading-underline {
  width: 60px;
  height: 3px;
  background-color: var(--accent);
  margin: 0 auto;
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
}

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

.btn-primary:hover {
  background-color: #dfa812;
  transform: translateY(-2px);
}

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

.btn-navy:hover {
  background-color: #031127;
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
}

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

.full-width {
  width: 100%;
}

/* =========================================
   1. HEADER / NAVBAR
   ========================================= */
.site-header {
  position: sticky;
  top: 0;
  background-color: var(--white);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 16px 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.logo-icon {
  width: 32px;
  height: 32px;
}

.main-nav ul {
  display: flex;
  gap: 24px;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
}

/* =========================================
   2. HERO SECTION
   ========================================= */
.hero {
  position: relative;
  background-image: url("assets/Instantpool_b_01.webp");
  background-size: cover;
  background-position: center;
  padding: 120px 0;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(5, 26, 58, 0.85) 0%,
    rgba(5, 26, 58, 0.4) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 950px;
}

.hero h1 {
  color: var(--white);
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

/* =========================================
   3. ABOUT SECTION
   ========================================= */
.about {
  padding: 80px 0;
  background-color: var(--white);
}

.about-container {
  display: flex;
  align-items: center;
  gap: 64px;
}

.about-text,
.about-image {
  flex: 1;
}

.badge-label {
  display: inline-block;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.about h2 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}

.about p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.about-image img {
  border-radius: var(--border-radius);
  object-fit: cover;
  box-shadow: var(--shadow-soft);
  width: 100%;
  height: 350px;
}

/* =========================================
   4, 5, 6. SERVICES / CARDS
   ========================================= */
.services {
  padding: 80px 0;
  background-color: var(--bg-light);
}

.service-card {
  display: flex;
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-hover);
}

.featured-card {
  background-color: var(--bg-blue-light);
}

.card-image {
  flex: 0 0 45%;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 350px;
}

.card-content {
  flex: 1;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.badge-featured {
  background-color: var(--accent);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.card-content h3 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.card-content p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.feature-list {
  margin-bottom: 32px;
}

.feature-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--text-dark);
  font-weight: 500;
}

.feature-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--accent);
  font-size: 1.1rem;
}

/* =========================================
   7. HOW IT WORKS
   ========================================= */
.how-it-works {
  padding: 80px 0;
  background-color: var(--white);
}

.steps-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  text-align: center;
}

.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-icon {
  position: relative; /* <--- ADD THIS LINE */
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  background-color: var(--white);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.step-tag {
  position: absolute;
  top: -5px;
  right: -10px;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 12px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

.tag-us {
  background-color: var(--primary);
  color: var(--white);
}

.tag-you {
  background-color: var(--accent);
  color: var(--primary);
}

.step-icon svg {
  width: 32px;
  height: 32px;
}

.step h4 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.step p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.step-arrow {
  color: #4db8ff;
  font-size: 1.5rem;
  margin-top: 25px;
}

/* =========================================
   8. FAQS
   ========================================= */
.faq {
  padding: 80px 0;
  background-color: var(--bg-light);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

details {
  background: var(--white);
  border-radius: 8px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

summary {
  padding: 24px;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--primary);
  cursor: pointer;
  position: relative;
  list-style: none; /* Firefox */
}

summary::-webkit-details-marker {
  display: none; /* Chrome/Safari */
}

summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--text-muted);
}

details[open] summary::after {
  content: "−";
}

.faq-content {
  padding: 0 24px 24px;
  color: var(--text-muted);
  border-top: 1px solid var(--bg-light);
  margin-top: -8px;
  padding-top: 16px;
}

/* =========================================
   9. CONTACT / FOOTER FORM
   ========================================= */
.contact-section {
  background-color: var(--primary);
  padding: 80px 0;
  color: var(--white);
}

.contact-container {
  display: flex;
  align-items: center;
  gap: 64px;
}

.contact-text {
  flex: 1;
}

.contact-text h2 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 24px;
}

.contact-text p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.contact-info .info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.contact-info a {
  color: inherit;
}

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

.info-item .icon {
  color: var(--accent);
}

.contact-form-card {
  flex: 1;
  background: var(--white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  color: var(--text-dark);
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-group {
  margin-bottom: 24px;
  flex: 1;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

/* =========================================
   THANK YOU PAGE
   ========================================= */
.thank-you-section {
  padding: 180px 0;
  text-align: center;
  background-color: var(--bg-light);
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.thank-you-section h1 {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.thank-you-section p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================
   10. FOOTER NAVIGATION
   ========================================= */
.site-footer {
  background-color: #031127; /* Darker Navy */
  padding: 32px 0;
  color: rgba(255, 255, 255, 0.6);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-nav ul {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.9rem;
}

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

.copyright {
  font-size: 0.85rem;
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 3rem;
  }
  .card-content {
    padding: 32px;
  }
}

@media (max-width: 860px) {
  .main-nav {
    display: none;
  } /* Stacked gracefully via collapse */
  .about-container {
    flex-direction: column;
    text-align: center;
  }
  .contact-container {
    flex-direction: column;
  }
  .contact-form-card {
    width: 100%;
  }
  .hero h1 {
    font-size: 2.5rem;
  }

  .service-card {
    flex-direction: column;
  }
  .card-image img {
    min-height: 250px;
  }
  .card-content {
    align-items: center;
    text-align: center;
  }
  .feature-list {
    text-align: left;
  }
}

@media (max-width: 600px) {
  .hero-buttons {
    flex-direction: column;
  }
  .steps-container {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }
  .step-arrow {
    display: none;
  }
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  .footer-container {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
  .footer-nav ul {
    justify-content: center;
  }
}

/* =========================================
   NEW: PROJECTS SECTION
   ========================================= */
.projects {
  padding: 80px 0;
  background-color: var(--white);
}

.project-showcase {
  display: flex;
  gap: 48px;
  align-items: center;
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08); /* Slightly stronger shadow to stand out */
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.project-info {
  flex: 1;
}

.project-info h3 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.project-client {
  margin-bottom: 24px;
  font-size: 1.1rem;
  color: var(--text-dark);
}

.project-client a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
}

.project-client a:hover {
  color: var(--accent);
}

.project-info p {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

/* Custom outline button for light backgrounds */
.btn-outline-navy {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline-navy:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* 3-Image Grid Layout */
.project-gallery {
  flex: 1.2;
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 200px 200px;
  gap: 16px;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
}

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

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-main {
  grid-row: 1 / 3;
  grid-column: 1 / 2;
}

/* =========================================
   PROJECTS RESPONSIVE QUERIES
   (Add to existing @media blocks or place at bottom)
   ========================================= */
@media (max-width: 992px) {
  .project-showcase {
    flex-direction: column;
    padding: 32px;
  }
  .project-gallery {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .project-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .gallery-main {
    grid-row: auto;
    grid-column: auto;
  }
  .gallery-item img {
    height: 220px;
  }
  .project-showcase {
    padding: 24px;
  }
}

/* =========================================
   ABOUT PAGE SPECIFIC STYLES
   ========================================= */

/* Internal Page Hero */
.internal-hero {
  background-color: var(--primary);
  background-image:
    linear-gradient(to right, rgba(5, 26, 58, 0.95), rgba(5, 26, 58, 0.8)),
    url("assets/hero-pool.jpg");
  background-size: cover;
  background-position: center;
  padding: 100px 0 80px;
  text-align: center;
  color: var(--white);
}

.internal-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.internal-hero h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 24px;
}

.internal-hero p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
}

/* About Story Section */
.about-story {
  padding: 80px 0;
  background-color: var(--white);
}

.story-container {
  display: flex;
  gap: 64px;
  align-items: center;
}

.story-content {
  flex: 1.2;
}

.story-content h2 {
  font-size: 2.2rem;
  margin-bottom: 24px;
}

.story-content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.story-content strong {
  color: var(--primary);
}

.quick-facts {
  margin-top: 40px;
  background: var(--bg-light);
  padding: 32px;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--accent);
}

.quick-facts h3 {
  margin-bottom: 16px;
  font-size: 1.4rem;
}

.quick-facts ul li {
  margin-bottom: 12px;
  color: var(--text-dark);
  position: relative;
  padding-left: 24px;
}

.quick-facts ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.story-image {
  flex: 1;
}

.story-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-hover);
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Core Values Grid */
.core-values {
  padding: 80px 0;
  background-color: var(--bg-light);
}

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

.value-card {
  background: var(--white);
  padding: 40px 32px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.value-icon {
  font-size: 3rem;
  margin-bottom: 24px;
}

.value-card h4 {
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.value-card p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* About Page Responsive */
@media (max-width: 992px) {
  .story-container {
    flex-direction: column;
  }
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .internal-hero h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
  .internal-hero {
    padding: 80px 0 60px;
  }
}

/* =========================================
   ABOUT PAGE IMAGE ENHANCEMENTS
   ========================================= */

/* Overriding the story image container for the new grid */
.story-image-grid {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.story-image-grid img {
  border-radius: var(--border-radius);
  object-fit: cover;
  box-shadow: var(--shadow-soft);
  width: 100%;
}

.story-image-grid .img-large {
  height: 340px;
}

.story-image-grid .img-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.story-image-grid .img-row img {
  height: 240px;
  width: 100%;
}

/* Full width image banner */
.about-banner {
  padding: 0 0 80px 0;
  background-color: var(--white);
}

.banner-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
}

@media (max-width: 992px) {
  .story-image-grid .img-large {
    height: 300px;
  }
  .story-image-grid .img-row img {
    height: 200px;
  }
  .banner-image {
    height: 250px;
  }
}

@media (max-width: 600px) {
  .story-image-grid .img-row {
    grid-template-columns: 1fr;
  }
  .story-image-grid .img-row img {
    height: 250px;
  }
}

/* =========================================
   SERVICES PAGE STYLES
   ========================================= */
.detailed-services {
  padding: 80px 0;
  background-color: var(--white);
}

.service-row {
  display: flex;
  align-items: center;
  gap: 64px;
  margin-bottom: 80px;
}

.service-row:last-child {
  margin-bottom: 0;
}

/* Reverses the layout for alternating rows */
.service-row.reversed {
  flex-direction: row-reverse;
}

.service-row-text {
  flex: 1;
}

.service-row-text h2 {
  font-size: 2.2rem;
  margin-bottom: 24px;
}

.service-row-text p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.service-row-text .feature-list li {
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.service-row-text .feature-list strong {
  color: var(--primary);
}

.service-row-image {
  flex: 1;
}

.service-row-image img {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-hover);
  object-fit: cover;
  height: 400px;
}

/* Responsive adjustments for the Services Page */
@media (max-width: 992px) {
  .service-row,
  .service-row.reversed {
    flex-direction: column;
    gap: 32px;
    margin-bottom: 64px;
  }

  .service-row-image img {
    height: auto;
    max-height: 350px;
  }
}

/* =========================================
   PARTNERSHIP PAGE STYLES
   ========================================= */

/* Intro Section */
.partnership-intro {
  padding: 80px 0;
  background-color: var(--white);
}

.partnership-intro p {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

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

.intro-paragraph {
  max-width: 800px;
  margin: 24px auto 0;
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* The Split: You vs Us */
.responsibility-split {
  padding: 40px 0 80px;
  background-color: var(--white);
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.split-card {
  padding: 48px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.split-card p {
  font-size: 1.1rem;
  margin-bottom: 24px;
  color: var(--text-muted);
}

.card-you {
  background-color: var(--white);
  border-top: 6px solid var(--accent);
}

.card-us {
  background-color: var(--bg-blue-light);
  border-top: 6px solid var(--primary);
}

.split-header h3 {
  font-size: 2rem;
  margin-bottom: 16px;
}

/* =========================================
   PROCESS GRID (2-COLUMN TIMELINE)
   ========================================= */
.partnership-process {
  padding: 80px 0;
  background-color: var(--bg-light);
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.process-card {
  background: var(--white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  border-top: 4px solid var(--accent);
  transition: var(--transition);
}

.process-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.process-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.process-number {
  width: 48px;
  height: 48px;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
}

.process-card h4 {
  font-size: 1.4rem;
  margin: 0;
  color: var(--primary);
}

.process-card p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

/* Make the 5th card span full width and center it nicely */
.process-card.step-five {
  grid-column: 1 / -1;
  max-width: 60%;
  justify-self: center;
}

/* Responsive Grid Adjustments */
@media (max-width: 992px) {
  .process-card.step-five {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
  .process-card.step-five {
    grid-column: auto;
  }
  .process-card {
    padding: 32px;
  }
}

/* Responsive Partnership Page */
@media (max-width: 992px) {
  .split-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .split-card {
    padding: 32px;
  }
  .timeline-step {
    gap: 16px;
  }
  .timeline-container::before {
    left: 20px;
  }
  .timeline-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* =========================================
   FULL CONTACT PAGE STYLES
   ========================================= */
.hero.contact-hero {
  min-height: 400px;
  padding: 100px 0;
}

.hero.contact-hero .hero-content {
  margin: 0 auto;
}

.hero.contact-hero p {
  margin: 0 auto;
  max-width: 600px;
}

.form-alert {
  padding: 14px 16px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 0.95rem;
  font-weight: 500;
}

.form-alert--error {
  background-color: #fdecea;
  color: #9b1c1c;
  border: 1px solid #f5c2c0;
}

.form-wrapper .btn-primary {
  font-size: 1.1rem;
  padding: 16px;
}

form[action="/contact.php"] {
  position: relative;
}

.hp-field {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.hp-field label,
.hp-field input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
}

.full-contact-page {
  padding: 80px 0;
  background-color: var(--bg-light);
}

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

/* Left Column */
.contact-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 48px;
}

.method-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  padding: 24px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
}

.method-icon {
  font-size: 2rem;
}

.method-card h5 {
  margin: 0 0 4px 0;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.method-card p {
  margin: 0;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--primary);
}

.method-card a:hover {
  color: var(--accent);
}

/* Locations */
.locations-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-top: 1px solid #d1d9e6;
  padding-top: 40px;
}

.location-block h5 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--primary);
}

.location-block p {
  color: var(--text-muted);
  margin-bottom: 8px;
}

.city-tag {
  display: inline-block;
  background-color: var(--primary);
  color: var(--white) !important;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Right Column: Dedicated Form */
.form-wrapper {
  background: var(--white);
  padding: 48px;
  border-radius: var(--border-radius);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  border-top: 6px solid var(--accent);
}

.form-wrapper h3 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.form-wrapper > p {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.dedicated-form select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition);
  background-color: var(--white);
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23051A3A%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 16px top 50%;
  background-size: 12px auto;
}

.dedicated-form select:focus {
  outline: none;
  border-color: var(--accent);
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .form-wrapper {
    padding: 32px;
  }
}

.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition);
  background-color: var(--white);
  appearance: none;
  /* Custom SVG Arrow for Dropdown */
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23051A3A%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 16px top 50%;
  background-size: 12px auto;
}

.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}

/* =========================================
   CUSTOM LOGO IMAGE
   ========================================= */
.logo-image {
  max-height: 100px; /* Adjust this value to make the logo larger or smaller */
  width: auto;
  display: block;
}

.contact-logo {
  max-height: 200px; /* Slightly larger than the header logo for impact */
  width: auto;
  display: block;
  margin-bottom: 24px;
}

/* =========================================
   MOBILE HEADER NAVIGATION
   ========================================= */

/* Hide the hamburger button on Desktop */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

/* Flex layout for desktop */
.nav-wrapper {
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Mobile Layout Breakpoint */
@media (max-width: 860px) {
  .header-container {
    position: relative;
  }

  /* Show the hamburger menu icon */
  .mobile-menu-btn {
    display: block;
  }

  .main-nav {
    display: block !important;
    width: 100%;
  }

  /* Hide the nav wrapper by default and style it as a dropdown */
  .nav-wrapper {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    flex-direction: column;
    padding: 24px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-top: 1px solid var(--bg-light);
    gap: 16px;

    /* Hidden by default on mobile */
    display: none;

    /* Forces the menu to sit on top of everything else */
    z-index: 9999;
  }

  /* When the .nav-open class is added via Javascript, show the menu */
  .nav-wrapper.nav-open {
    display: flex;
  }

  /* Stack the links vertically */
  .main-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
  }

  .main-nav a {
    display: block;
    padding: 8px 0;
    font-size: 1.1rem;
  }

  /* Make the button full width inside the mobile menu */
  .nav-wrapper .btn {
    width: 100%;
    margin-top: 16px;
  }
}

/* =========================================
   CENTER NAVIGATION FIX (DESKTOP)
   ========================================= */
@media (min-width: 861px) {
  .header-container {
    position: relative;
  }

  /* Make the wrapper take up the remaining space and push the button to the right */
  .nav-wrapper {
    flex: 1;
    justify-content: flex-end;
  }

  /* Mathematically center the navigation links in the middle of the screen */
  .main-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}
