/* ==========================================================================
   HOMEPAGE STYLES (front-page.php)
   ========================================================================== */

/* Hero Section */
.hero-section {
  background: linear-gradient(to bottom, #0a1436, #153521);
  color: #fff;
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}

.hero-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1.2;
  margin: 0 0 20px;
  font-weight: 700;
}

.hero-subheading {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  margin: 0 0 30px;
  color: #e0e0e0;
  line-height: 1.5;
}

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

.hero-section .btn-primary,
.hero-section .btn-secondary {
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 0.95rem;
  min-width: 120px;
  text-align: center;
}

.hero-section .btn-primary {
  background: #a2d45e;
  color: #0a1436;
}

@media (hover: hover) {
.hero-section .btn-primary:hover {
  background: #8cc94b;
}
}

.hero-section .btn-secondary {
  border: 1px solid #fff;
  color: #fff;
}

@media (hover: hover) {
.hero-section .btn-secondary:hover {
  background: #fff;
  color: #0a1436;
}
}

.hero-image {
  flex: 1;
  text-align: right;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Intro Section */
.intro {
  padding: 80px 0;
  background: #fff;
}

.intro-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.intro-image img {
  max-width: 420px;
  width: 100%;
  height: auto;
  display: block;
}

.intro-content {
  flex: 1;
}

.intro-content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
}

.intro-text {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

.intro-text strong,
.intro-text em,
.intro-text span.highlight {
  color: #2ca24c;
  font-weight: 600;
}

/* Services Section */
.services-section {
  padding: 60px 20px;
  text-align: center;
  background: #fff;
  overflow: hidden;
}

.services-section .section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}

.services-section .section-title {
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 700;
  margin-bottom: 12px;
  color: #222;
}

.services-section .section-subtitle {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 15px;
  gap: 20px;
}

.service-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(31, 181, 122, 0.06);
  flex-shrink: 0;
}

.service-icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  display: block;
}

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

.service-text h3 {
  margin: 0 0 12px;
  font-size: clamp(1rem, 2vw, 1.1rem);
  font-weight: 700;
  color: #222;
  line-height: 1.3;
}

.service-text p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: clamp(0.85rem, 2vw, 0.95rem);
}

/* Mission Section */
.mission {
  padding: 80px 0;
  background: #f9fafb;
}

.mission-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 50px;
}

.mission-left {
  flex: 1;
}

.mission-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 15px;
  color: #222;
}

.mission-subtitle {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
}

.mission-right {
  flex: 2;
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 40px;
}

.mission-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.mission-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mission-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}

.mission-text {
  flex: 1;
  min-width: 0;
}

.mission-text h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 6px;
  color: #333;
}

.mission-text p {
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
  color: #666;
}

/* Portfolio Section */
.portfolio-section {
  padding: 60px 0;
  background: #f8f9fa;
  overflow: hidden;
}

.portfolio-header {
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.portfolio-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 15px;
  color: #333;
}

.portfolio-subheading {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.portfolio-slider-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
}

.portfolio-slide {
  display: flex !important;
  gap: 20px;
  padding: 0 10px;
}

.portfolio-item {
  flex: 1;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-width: 0;
}

@media (hover: hover) {
.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}
}

.portfolio-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  width: 100%;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

@media (hover: hover) {
.portfolio-item:hover .portfolio-image img {
  transform: scale(1.05);
}
}

.portfolio-title {
  padding: 15px 20px;
  margin: 0;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 600;
  color: #333;
  text-align: center;
  line-height: 1.3;
}

.portfolio-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 10;
  padding: 0 15px;
}

.portfolio-prev,
.portfolio-next {
  background: #fff;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  pointer-events: all;
  color: #333;
  font-size: 14px;
}

@media (hover: hover) {
.portfolio-prev:hover,
.portfolio-next:hover {
  background: var(--accent);
  color: #fff;
  transform: scale(1.1);
}
}

.portfolio-slider {
  overflow: hidden;
}

.portfolio-slider .slick-track {
  display: flex;
  align-items: stretch;
}

.portfolio-slider .slick-dots {
  bottom: -50px;
  display: flex !important;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 8px;
}

.portfolio-slider .slick-dots li {
  width: auto;
  height: auto;
  margin: 0;
}

.portfolio-slider .slick-dots li button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ddd;
  border: none;
  font-size: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.portfolio-slider .slick-dots li.slick-active button {
  background: var(--accent);
  transform: scale(1.3);
}

.portfolio-slider .slick-prev,
.portfolio-slider .slick-next {
  display: none !important;
}

/* Contact Section */
.contact-section {
  padding: 80px 0;
  background: #f3f6f8;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
}

.contact-form {
  background: #fff;
  padding: 36px;
  border-radius: 6px;
  box-shadow: var(--card-shadow);
}

.contact-form h2 {
  margin: 0 0 18px;
  font-size: 1.6rem;
  font-weight: 700;
  color: #222;
}

.consultation-box {
  background: var(--navy);
  color: #fff;
  padding: 28px;
  border-radius: 6px;
  min-height: 180px;
  box-shadow: 0 8px 30px rgba(11, 43, 71, 0.06);
}

.consultation-box h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  color: #fff;
}

.consultation-box .consultation-content {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  font-size: 0.95rem;
}

.contact-info {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-info li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.95rem;
}

.contact-info li img {
  width: 18px;
  height: 18px;
  display: block;
  padding: 8px;
  border-radius: 6px;
  background: #fff;
  box-sizing: content-box;
  filter: none;
}

.consultation-column {
  position: sticky;
  top: 100px;
}

/* ==========================================================================
   RESPONSIVE - HOMEPAGE
   ========================================================================== */

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

  .consultation-box,
  .consultation-column {
    width: 100%;
    order: 2;
  }

  .contact-form {
    order: 1;
  }

  .portfolio-slider-wrapper {
    padding: 0 50px;
  }

  .portfolio-nav {
    padding: 0 10px;
  }
}

@media (max-width: 768px) {
  .intro-container {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .intro-image img {
    margin-bottom: 20px;
    max-width: 300px;
  }

  .intro,
  .mission {
    padding: 50px 0;
  }

  .hero-section {
    padding: 60px 15px;
  }

  .hero-wrapper {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .mission-container {
    flex-direction: column;
    gap: 30px;
  }

  .mission-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .services-section {
    padding: 50px 15px;
  }

  .services-grid {
    gap: 30px;
    grid-template-columns: 1fr;
  }

  .service-item {
    padding: 15px 10px;
    gap: 15px;
  }

  .service-icon {
    width: 55px;
    height: 55px;
  }

  .service-icon img {
    width: 45px;
    height: 45px;
  }

  .portfolio-section {
    padding: 50px 0;
  }

  .portfolio-header {
    margin-bottom: 30px;
    padding: 0 15px;
  }

  .portfolio-slider-wrapper {
    padding: 0 40px;
  }

  .portfolio-slide {
    flex-direction: column;
    gap: 15px;
    padding: 0 5px;
  }

  .portfolio-prev,
  .portfolio-next {
    width: 35px;
    height: 35px;
    font-size: 12px;
  }

  .portfolio-nav {
    padding: 0 8px;
  }

  .contact-section {
    padding: 40px 10px;
  }

  .contact-form,
  .consultation-box {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 40px 10px;
  }

  .hero-content h1 {
    font-size: clamp(2rem, 5vw, 2.5rem);
  }

  .hero-subheading {
    font-size: 0.95rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .hero-section .btn-primary,
  .hero-section .btn-secondary {
    width: 100%;
    max-width: 200px;
    padding: 12px 16px;
  }

  .portfolio-slider-wrapper {
    padding: 0 30px;
  }

  .portfolio-slide {
    padding: 0;
  }

  .portfolio-nav {
    padding: 0 5px;
  }

  .services-section {
    padding: 40px 10px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
  }

  .service-item {
    padding: 25px 15px;
  }

  .mission-grid {
    gap: 25px 30px;
  }

  .portfolio-slide {
    gap: 25px;
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
  }
}

@media print {
  .hero-image,
  .portfolio-item img,
  .intro-image {
    page-break-inside: avoid;
  }

  .portfolio-nav,
  .portfolio-slider .slick-dots {
    display: none;
  }
}

/* ==========================================================================
   AI REPOSITIONING — Phase 1 homepage sections
   ========================================================================== */

/* Hero outcome cards */
.hero-outcomes {
  padding: 56px 20px 24px;
  background: #fff;
}

.hero-outcomes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-outcome-card {
  background: #fff;
  border: 1px solid #e6e9ee;
  border-top: 3px solid #39a63d;
  border-radius: 14px;
  padding: 28px 26px;
  box-shadow: 0 10px 30px rgba(10, 20, 54, 0.05);
}

.hero-outcome-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: #0a1436;
}

.hero-outcome-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.98rem;
}

/* "Also offering" line under the services grid */
.also-offering {
  text-align: center;
  max-width: 900px;
  margin: 44px auto 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.also-offering a {
  color: #0a1436;
  font-weight: 600;
  text-decoration: none;
}

@media (hover: hover) {
  .also-offering a:hover {
    color: #39a63d;
  }
}

/* How We Help — process steps */
.how-we-help {
  padding: 60px 20px;
  background: #f7f9fa;
  text-align: center;
}

.how-we-help .section-header {
  max-width: 720px;
  margin: 0 auto 44px;
}

.how-we-help .section-title {
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 700;
  color: #222;
  margin: 0;
}

.how-we-help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.how-step {
  background: #fff;
  border: 1px solid #e6e9ee;
  border-radius: 14px;
  padding: 32px 24px;
  text-align: center;
}

.how-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0a1436;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.how-step h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: #0a1436;
}

.how-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.98rem;
}

/* ==========================================================================
   AI REPOSITIONING — Phase 3: hero flow graphic + service card icons
   ========================================================================== */

/* Hero flow graphic (Business systems -> Data -> Automation / AI -> Action) */
.hero-flow {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 360px;
  margin-left: auto;
  text-align: left;
}

.flow-node {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}

.flow-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(10, 20, 54, 0.06);
  color: #0a1436;
  font-size: 1.2rem;
}

.flow-node--accent .flow-icon {
  background: rgba(57, 166, 61, 0.14);
  color: #39a63d;
}

.flow-label {
  font-weight: 700;
  color: #0a1436;
  font-size: 1.05rem;
}

.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #39a63d;
  font-size: 0.95rem;
  padding: 9px 0;
}

/* System/flow icons on the "What We Offer" service cards */
.service-icon i {
  font-size: 1.6rem;
  color: #39a63d;
  line-height: 1;
}

@media (max-width: 768px) {
  .hero-flow {
    margin: 0 auto;
    max-width: 340px;
  }
}
