/* ============================================
   KALEIDOSCOPE MARKETING PARTNERS
   Main Stylesheet
   ============================================ */

/* --- GOOGLE FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Afacad:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* --- CSS VARIABLES --- */
:root {
  --primary: #005B7F;
  --secondary: #FFBA42;
  --text: #000000;
  --light-text: #FFFFFF;
  --dark-bg: #000000;
  --card-bg: #F0F0F0;
  --max-width: 1280px;
  --section-padding: 70px 30px 0 30px;
}

/* --- RESET & BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Afacad', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75em;
  color: var(--text);
  background-color: #fff;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s;
}

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

p {
  margin-bottom: 1.75em;
}

p:last-child {
  margin-bottom: 0;
}

ul {
  list-style: none;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Afacad', sans-serif;
  line-height: 1.2em;
  color: var(--text);
}

h1 { font-size: 4em; font-weight: 700; }
h2 { font-size: 3em; font-weight: 700; }
h3 { font-size: 2em; font-weight: 700; }
h4 { font-size: 1.75em; font-weight: 700; }
h5 { font-size: 1.5em; font-weight: 700; }
h6 { font-size: 1.25em; font-weight: 700; }

/* --- BRAND GRADIENT TEXT --- */
.brand-gradient-text {
  background: linear-gradient(135deg, var(--primary) 30%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* --- SECTION LABEL --- */
.section-label {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2em;
  color: var(--primary);
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  display: block;
}

/* --- DIVIDER --- */
.brand-divider {
  width: 20%;
  height: 3px;
  border: none;
  border-top: 3px dashed var(--secondary);
  margin: 20px 0;
}

.brand-divider.center {
  margin: 20px auto;
}

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  font-family: 'Afacad', sans-serif;
  font-size: 18px;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.75em;
  padding: 10px 30px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}

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

.btn-primary:hover,
.btn-primary.active {
  background-color: var(--secondary);
  color: var(--primary);
}

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

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--light-text);
}

/* --- CONTAINER UTILITY --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 30px;
  width: 100%;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

/* Top bar */
.header-topbar {
  background-color: var(--secondary);
  padding: 25px 30px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.header-topbar-left,
.header-topbar-right {
  flex: 1;
}

.header-logo-wrap {
  display: flex;
  justify-content: center;
  flex: 1;
}

.header-logo img {
  max-width: 200px;
  width: 100%;
  height: auto;
}

/* Navigation bar */
.header-nav {
  background-color: var(--dark-bg);
  padding: 15px 30px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.nav-menu-wrap {
  flex: 0 0 50%;
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
}

.nav-menu a {
  font-family: 'Afacad', sans-serif;
  font-size: 18px;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--light-text);
  text-decoration: none;
  letter-spacing: 0.02em;
  padding: 0;
  transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--secondary);
}

.nav-cta-wrap {
  flex: 0 0 50%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 30px;
}

.nav-toggle {
  display: none;
  background: var(--primary);
  border: none;
  cursor: pointer;
  padding: 8px 10px;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--light-text);
  transition: all 0.3s;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 580px;
  width: 100%;
}

.hero-content-col {
  flex: 0 0 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 60px 80px 60px;
}

/* On wider screens, center the text content within the 50% column */
@media (min-width: 1280px) {
  .hero-content-col {
    padding-left: calc(50% - 580px);
    padding-right: 60px;
  }
}

.hero-content-col h1 {
  font-size: 4em;
  font-weight: 700;
  line-height: 1.2em;
  margin-bottom: 20px;
}

.hero-content-col h5 {
  font-size: 1.5em;
  font-weight: 700;
  line-height: 1.2em;
  margin-bottom: 20px;
  color: var(--text);
}

.hero-content-col p {
  font-size: 16px;
  line-height: 1.75em;
  margin-bottom: 30px;
}

.hero-image-col {
  flex: 0 0 50%;
  overflow: hidden;
}

.hero-image-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  min-height: 500px;
}

/* ============================================
   SPLIT SECTIONS (50/50 with image)
   ============================================ */
.split-section {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
}

.split-col {
  flex: 0 0 50%;
  width: 50%;
}

.split-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 70px 60px;
}

.split-content.left-pad {
  padding: 70px 60px;
}

.split-image {
  overflow: hidden;
}

.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  min-height: 480px;
  display: block;
}

.split-content h1,
.split-content h4,
.split-content h5 {
  margin-bottom: 16px;
}

.split-content h4 {
  font-size: 1.75em;
  font-weight: 700;
  line-height: 1.2em;
}

.split-content p {
  font-size: 16px;
  line-height: 1.75em;
  margin-bottom: 30px;
}

.split-content .section-label {
  margin-bottom: 12px;
}

.split-content .brand-divider {
  margin-bottom: 24px;
}

/* Sections with top padding (section-level spacing) */
.split-section.padded {
  padding-top: 70px;
}

/* Sections with bottom padding */
.split-section.has-bottom-pad {
  padding-bottom: 70px;
}

/* ============================================
   CENTERED COLUMN SECTIONS
   ============================================ */
.column-section {
  padding: 70px 30px 70px 30px;
}

.column-section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 40px;
}

.section-header.center {
  align-items: center;
  text-align: center;
}

.section-header h4,
.section-header h5 {
  margin-bottom: 16px;
}

.section-intro {
  max-width: 640px;
  text-align: center;
  margin: 0 auto 20px;
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.cards-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.service-card {
  flex: 0 0 calc(30% - 25px);
  min-width: 240px;
  background-color: var(--card-bg);
  padding: 50px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 91, 127, 0.12);
}

.service-card .card-icon {
  font-size: 36px;
  color: var(--primary);
  margin-bottom: 20px;
}

.service-card h6 {
  font-size: 1.25em;
  font-weight: 700;
  line-height: 1.2em;
  margin-bottom: 16px;
  color: var(--text);
}

.service-card p {
  font-size: 16px;
  line-height: 1.75em;
  margin-bottom: 0;
}

/* ============================================
   FLIP CARDS (Careers)
   ============================================ */
.flip-cards-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.flip-card {
  flex: 0 0 calc(25% - 20px);
  min-width: 220px;
  height: 300px;
  perspective: 1000px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s ease;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.flip-card-front {
  overflow: hidden;
}

.flip-card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.flip-card-back {
  background-color: var(--light-text);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  text-align: center;
  border: 2px solid var(--card-bg);
}

.flip-card-back h6 {
  font-size: 1.25em;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.flip-card-back p {
  font-size: 15px;
  line-height: 1.6em;
  color: var(--text);
  margin-bottom: 0;
}

/* ============================================
   STATS / COUNTERS SECTION
   ============================================ */
.stats-section {
  background-color: var(--primary);
  padding: 60px 30px;
}

.stats-row {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.stat-item {
  text-align: center;
  color: var(--light-text);
  flex: 0 0 auto;
  min-width: 180px;
}

.stat-number {
  font-size: 3em;
  font-weight: 700;
  line-height: 1.2em;
  color: var(--secondary);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 8px;
  color: var(--light-text);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  padding: 40px 30px;
  background-color: #f5f5f5;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  background-color: #fff;
  border-radius: 35px;
  padding: 50px 30px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.footer-top {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 35px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.footer-logo {
  flex: 0 0 20%;
  min-width: 160px;
}

.footer-logo img {
  max-width: 300px;
  width: 100%;
}

.footer-tagline {
  flex: 0 0 60%;
  text-align: center;
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.75em;
}

.footer-tagline span {
  display: block;
}

.footer-social {
  flex: 0 0 20%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--light-text);
  font-size: 20px;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}

.social-icon:hover {
  background-color: var(--secondary);
  color: var(--primary);
}

.footer-divider {
  border: none;
  border-top: 2px solid var(--text);
  width: 35%;
  margin: 0 auto 30px;
}

.footer-bottom {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-copyright {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  text-align: center;
}

.footer-copyright a {
  color: var(--primary);
}

.footer-links {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  text-align: center;
}

.footer-links a {
  color: var(--primary);
  text-decoration: none;
  transition: opacity 0.3s;
}

.footer-links a:hover {
  opacity: 0.7;
}

/* ============================================
   CONTACT PAGE SPECIFIC
   ============================================ */
.contact-image {
  overflow: hidden;
}

.contact-image img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 1024px) {
  .contact-image img {
    height: 400px;
  }
}

.contact-info-box {
  background-color: var(--card-bg);
  padding: 50px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 30px;
}

.contact-info-box .info-icon {
  font-size: 36px;
  color: var(--secondary);
  margin-bottom: 12px;
}

.contact-info-box h6 {
  font-size: 1.25em;
  font-weight: 700;
  line-height: 1.2em;
  margin-bottom: 8px;
  color: var(--text);
}

.contact-info-box a {
  color: var(--primary);
  font-size: 15px;
  word-break: break-all;
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-form {
  width: 100%;
}

.form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}

.form-group.full-width {
  flex: 0 0 100%;
  margin-bottom: 15px;
}

.form-group label {
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 6px;
  display: block;
}

.form-group input,
.form-group textarea {
  font-family: 'Afacad', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75em;
  color: var(--text);
  background-color: var(--light-text);
  border: 1px solid var(--primary);
  border-radius: 0;
  padding: 12px 15px;
  width: 100%;
  transition: border-color 0.3s, box-shadow 0.3s;
  text-align: left;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(255, 186, 66, 0.2);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-submit {
  text-align: center;
  margin-top: 10px;
}

.form-submit .btn {
  min-width: 160px;
}

/* ============================================
   PAGE HERO BANNER
   ============================================ */
.page-banner {
  background-color: var(--primary);
  padding: 60px 30px;
  text-align: center;
}

.page-banner h1 {
  color: var(--light-text);
  font-size: 3em;
}

/* ============================================
   RESPONSIVE - TABLET (max 1024px)
   ============================================ */
@media (max-width: 1024px) {
  h1 { font-size: 3em; }
  h2 { font-size: 2.5em; }
  h4 { font-size: 1.5em; }
  h5 { font-size: 1.3em; }

  .hero-content-col {
    padding: 60px 40px;
  }

  .hero-content-col h1 {
    font-size: 3em;
  }

  .split-content,
  .split-content.left-pad {
    padding: 50px 30px;
  }

  .column-section {
    padding: 50px 20px;
  }

  .service-card {
    flex: 0 0 calc(45% - 25px);
  }

  .flip-card {
    flex: 0 0 calc(45% - 20px);
  }

  .footer-logo { flex: 0 0 100%; text-align: center; }
  .footer-logo img { margin: 0 auto; }
  .footer-tagline { flex: 0 0 100%; }
  .footer-social { flex: 0 0 100%; justify-content: center; }
  .footer-top { justify-content: center; gap: 20px; }

  .footer-bottom {
    justify-content: center;
    gap: 10px;
  }
}

/* ============================================
   RESPONSIVE - MOBILE (max 767px)
   ============================================ */
@media (max-width: 767px) {
  body { font-size: 15px; }
  h1 { font-size: 2.5em; }
  h2 { font-size: 2em; }
  h3 { font-size: 1.5em; }
  h4 { font-size: 1.3em; }
  h5 { font-size: 1.2em; }
  h6 { font-size: 1.1em; }

  /* Header */
  .header-topbar {
    padding: 15px 20px;
    justify-content: center;
  }

  .header-topbar-left,
  .header-topbar-right {
    display: none;
  }

  .header-logo img {
    max-width: 160px;
  }

  .header-nav {
    padding: 12px 20px;
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
  }

  .nav-menu-wrap {
    flex: 0 0 auto;
  }

  .nav-cta-wrap {
    flex: 0 0 auto;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--dark-bg);
    padding: 10px 0;
    z-index: 100;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu a {
    display: block;
    padding: 12px 20px;
    font-size: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .nav-menu a:last-child {
    border-bottom: none;
  }

  .nav-menu-wrap {
    order: 2;
  }

  .nav-cta-wrap {
    order: 1;
    flex: 1;
    justify-content: flex-end;
  }

  /* Hero */
  .hero-section {
    flex-direction: column-reverse;
    min-height: auto;
  }

  .hero-content-col {
    flex: 0 0 100%;
    max-width: 100%;
    margin: 0;
    padding: 50px 20px 40px;
  }

  .hero-content-col h1 {
    font-size: 2.5em;
  }

  .hero-image-col {
    flex: 0 0 100%;
  }

  .hero-image-col img {
    min-height: 280px;
    height: 280px;
  }

  /* Split sections */
  .split-section {
    flex-direction: column;
  }

  /* Sections where text comes first in HTML but image should appear on top */
  .split-section.text-first {
    flex-direction: column-reverse;
  }

  .split-col {
    flex: 0 0 100%;
    width: 100%;
  }

  .split-content,
  .split-content.left-pad {
    padding: 40px 20px;
  }

  .split-image img {
    min-height: 260px;
    height: 260px;
  }

  /* Cards */
  .service-card {
    flex: 0 0 100%;
    min-width: auto;
  }

  .flip-card {
    flex: 0 0 calc(50% - 10px);
    min-width: 160px;
    height: 240px;
  }

  /* Stats */
  .stats-row {
    gap: 20px;
  }

  .stat-number {
    font-size: 2.5em;
  }

  /* Footer */
  .site-footer {
    padding: 20px;
  }

  .footer-inner {
    padding: 35px 20px;
    border-radius: 20px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .column-section {
    padding: 40px 20px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .contact-image img {
    height: 260px;
  }
}
