/* ===== CLOUDFRUIT WEBSITE STYLES ===== */

/* CSS Variables - Brand Colors */
:root {
  --primary: #2e348d;
  --secondary: #329f81;
  --accent: #b00378;
  --background: #f6f3ef;
  --white: #ffffff;
  --text-dark: #1a1a1a;
  --text-light: #555555;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background);
}

/* Typography */
h1 {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary);
}

h2 {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--primary);
  margin-bottom: 24px;
}

h3 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.3px;
  color: var(--primary);
}

p {
  margin-bottom: 16px;
  color: var(--text-light);
}

a {
  color: var(--secondary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

ul {
  list-style: none;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== NAVIGATION ===== */
.navbar {
  background-color: var(--white);
  padding: 16px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
}

.logo span {
  color: var(--secondary);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links li {
  display: flex;
  align-items: center;
}

.nav-links a {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 15px;
}

.nav-links a:hover {
  color: var(--secondary);
}

.nav-cta {
  padding: 10px 20px !important;
  font-size: 14px !important;
  border-radius: 20px;
}

.nav-cta:hover {
  color: var(--white) !important;
}

/* Dropdown */
.dropdown {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  min-width: 200px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 8px 0 12px;
  margin-top: 0;
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
  display: block;
}

.dropdown-content a {
  display: block;
  padding: 10px 20px;
  color: var(--text-dark);
}

.dropdown-content a:hover {
  background-color: var(--background);
  color: var(--secondary);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--primary);
  margin: 6px 0;
  transition: 0.3s;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 32px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

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

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

.btn-secondary:hover {
  color: var(--white);
}

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

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

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

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

/* ===== HERO SECTION ===== */
.hero {
  padding: 200px 0 180px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(46, 52, 141, 0.7), rgba(46, 52, 141, 0.75)),
    url('CF-background.png');
  background-size: cover;
  background-position: center;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-eyebrow {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--secondary);
  margin-bottom: 16px;
  animation: fadeInUp 0.8s ease-out;
}

.hero h1 {
  font-size: 78px;
  letter-spacing: -3px;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--white);
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero .subhead {
  font-size: 22px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin: 0 auto 40px;
  animation: fadeInUp 0.8s ease-out 0.2s both;
  line-height: 1.7;
}

.hero .btn {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* ===== LOGO SECTION ===== */
.logo-section {
  background-color: var(--white);
  padding: 80px 0;
}

.logo-strip {
  margin-bottom: 60px;
}

.logo-strip:last-child {
  margin-bottom: 0;
}

.logo-strip-label {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-light);
  margin-bottom: 40px;
}

.logo-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.logo-row.three-col {
  grid-template-columns: repeat(3, 1fr);
  max-width: 800px;
}

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
}

.logo-text {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-dark);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.logo-text:hover {
  opacity: 1;
}

.logo-hiibo {
  color: var(--primary);
  font-size: 28px;
}

.logo-onexerp {
  color: var(--secondary);
  font-size: 26px;
}

.logo-numbru {
  color: var(--accent);
  font-size: 26px;
  font-style: italic;
}

.logo-stayneighbor {
  color: var(--primary);
  font-size: 22px;
}

.logo-client {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-light);
}

.logo-img {
  height: 90px;
  max-width: 240px;
  width: auto;
  object-fit: contain;
  transition: all 0.3s ease;
}

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

.logo-img.logo-lg {
  height: 100px;
  max-width: 260px;
}

.logo-img.logo-xl {
  height: 160px;
  max-width: 380px;
}

@media (max-width: 768px) {
  .logo-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .logo-row.three-col {
    grid-template-columns: repeat(2, 1fr);
  }

  .logo-img {
    height: 50px;
  }

  .logo-img.logo-lg {
    height: 60px;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.service-card {
  animation: fadeInUp 0.6s ease-out both;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }

.work-card {
  animation: fadeInUp 0.6s ease-out both;
}

.work-card:nth-child(1) { animation-delay: 0.1s; }
.work-card:nth-child(2) { animation-delay: 0.2s; }
.work-card:nth-child(3) { animation-delay: 0.3s; }

.section-header {
  animation: fadeIn 0.8s ease-out;
}

/* ===== SECTIONS ===== */
section {
  padding: 80px 0;
}

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

.section-header::before {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--secondary);
  margin: 0 auto 20px;
}

.section-header h2 {
  letter-spacing: -0.5px;
  font-size: 48px;
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 18px;
}

/* ===== SERVICES SECTION ===== */
.services-section {
  background: linear-gradient(160deg, var(--primary) 0%, #1e2268 100%);
  padding: 100px 0;
}

.services-section .section-header h2 {
  color: var(--white);
}

.services-section .section-header p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
}

.services-grid-new {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

.service-item {
  display: block;
  text-decoration: none;
  padding: 52px 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
  transition: border-top-color 0.3s ease, background-color 0.3s ease;
}

.service-item:hover {
  border-top-color: var(--secondary);
  background: rgba(255, 255, 255, 0.04);
}

.service-num {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--secondary);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.service-item h3 {
  color: var(--white);
  font-size: 28px;
  margin-bottom: 14px;
}

.service-item p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 0;
}

.service-arrow {
  font-size: 22px;
  color: rgba(255, 255, 255, 0.25);
  transition: transform 0.3s ease, color 0.3s ease;
  display: inline-block;
  margin-top: 20px;
}

.service-item:hover .service-arrow {
  transform: translate(6px, -6px);
  color: var(--secondary);
}

/* Legacy service cards - keeping for other pages */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.service-card {
  background-color: var(--white);
  padding: 40px 32px;
  border-radius: 12px;
  border: 2px solid transparent;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.service-card .icon {
  font-size: 40px;
  margin-bottom: 20px;
}

.service-card h3 {
  margin-bottom: 16px;
}

.service-card p {
  margin-bottom: 20px;
  font-size: 15px;
}

.service-card a {
  font-size: 15px;
}

/* ===== CASE STUDIES SECTION ===== */
.case-studies-section {
  background-color: var(--white);
  padding: 100px 0;
}

.case-study-featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 60px;
}

.case-study-image {
  position: relative;
}

.case-study-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 0.4s ease;
}

.case-study-featured:hover .case-study-img {
  transform: scale(1.02);
}

.case-study-placeholder {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 16px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.4s ease;
}

.case-study-featured:hover .case-study-placeholder {
  transform: scale(1.02);
}

.case-study-placeholder span {
  color: white;
  font-size: 48px;
  font-weight: 800;
  opacity: 0.9;
}

.case-study-content {
  padding: 20px 0;
}

.case-study-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.case-study-content h3 {
  font-size: 36px;
  margin-bottom: 20px;
  color: var(--primary);
}

.case-study-content p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 32px;
}

.case-study-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.case-study-card {
  display: block;
  text-decoration: none;
  background-color: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-study-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.14);
}

.case-study-card-image {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.case-study-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.case-study-card:hover .case-study-card-image img {
  transform: scale(1.05);
}

.case-study-card-image span {
  color: white;
  font-size: 28px;
  font-weight: 800;
}

.case-study-card-content {
  padding: 28px;
}

.case-study-card h4 {
  font-size: 22px;
  letter-spacing: -0.3px;
  color: var(--primary);
  margin-bottom: 8px;
}

.case-study-card p {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.5;
}

.case-study-link {
  color: var(--secondary);
  font-weight: 600;
  font-size: 14px;
  transition: color 0.3s ease;
}

.case-study-card:hover .case-study-link {
  color: var(--accent);
}

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background-color: var(--background);
  color: var(--text-light);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.case-study-tags .tag {
  background-color: rgba(50, 159, 129, 0.1);
  color: var(--secondary);
}

/* Legacy work grid - keeping for work.html page */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
}

.work-card {
  background-color: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.work-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.14);
}

.work-card-image {
  height: 240px;
  background: linear-gradient(135deg, var(--primary) 0%, #1a1f5c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.work-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.work-card:hover .work-card-image img {
  transform: scale(1.05);
}

.work-card-image span {
  color: var(--white);
  font-size: 32px;
  font-weight: 800;
  opacity: 0.4;
}

.work-card-content {
  padding: 28px;
}

.work-card h3 {
  font-size: 22px;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
  color: var(--primary);
}

.work-card p {
  font-size: 15px;
  margin-bottom: 16px;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #1a1f5c 50%, var(--primary) 100%);
  text-align: center;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(50, 159, 129, 0.1) 0%, transparent 50%);
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-eyebrow {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--secondary);
  margin-bottom: 16px;
}

.cta-section h2 {
  color: var(--white);
  font-size: 58px;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.cta-description {
  color: rgba(255, 255, 255, 0.85);
  font-size: 20px;
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-section .btn-secondary {
  background-color: var(--secondary);
}

.cta-section .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.cta-section .btn-outline-light:hover {
  background-color: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

@media (max-width: 768px) {
  .cta-section {
    padding: 80px 0;
  }

  .cta-section h2 {
    font-size: 32px;
  }

  .cta-description {
    font-size: 18px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* ===== PAGE HEADER ===== */
.page-header {
  padding: 160px 0 80px;
  text-align: center;
  background: linear-gradient(135deg, var(--primary) 0%, #1a1f5c 100%);
  position: relative;
  overflow: hidden;
}

.page-header h1 {
  color: var(--white);
  font-size: 68px;
  letter-spacing: -2px;
  font-weight: 800;
  margin-bottom: 24px;
}

.page-header .intro {
  max-width: 700px;
  margin: 0 auto;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
}

/* ===== SERVICE PAGE CONTENT ===== */
.service-content {
  padding: 40px 0 80px;
}

.service-content .container {
  max-width: 800px;
}

.service-list {
  margin: 40px 0;
}

.service-list li {
  padding: 16px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.service-list li strong {
  color: var(--primary);
}

.service-list li:last-child {
  border-bottom: none;
}

.highlight-box {
  background-color: var(--white);
  padding: 32px;
  border-radius: 12px;
  border-left: 4px solid var(--accent);
  margin: 40px 0;
}

.highlight-box h3 {
  margin-bottom: 16px;
}

/* ===== ABOUT PAGE ===== */
.about-content {
  padding: 40px 0 80px;
}

.about-content .container {
  max-width: 800px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

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

.team-card .photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background-color: var(--primary);
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 48px;
  font-weight: 700;
  box-shadow: 0 16px 40px rgba(46, 52, 141, 0.25);
}

.team-card h3 {
  margin-bottom: 8px;
}

.team-card .role {
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 16px;
}

.values-list {
  margin: 40px 0;
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.values-list li {
  padding: 24px 28px;
  background: var(--white);
  border-radius: 12px;
  border-left: 3px solid var(--secondary);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.values-list li strong {
  color: var(--primary);
  display: block;
  font-size: 17px;
  margin-bottom: 8px;
}

/* ===== CONTACT PAGE ===== */
.contact-content {
  padding: 40px 0 80px;
}

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

.contact-form {
  background-color: var(--white);
  padding: 40px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.07);
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  font-family: inherit;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

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

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

.calendly-section h3 {
  margin-bottom: 16px;
}

.calendly-section p {
  margin-bottom: 24px;
}

.calendly-embed {
  background-color: var(--white);
  border-radius: 12px;
  overflow: hidden;
  min-height: 600px;
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--primary);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 16px;
  display: inline-block;
}

.footer-brand .logo span {
  color: var(--secondary);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 300px;
}

.footer h4 {
  font-size: 16px;
  margin-bottom: 20px;
  color: var(--white);
}

.footer-links a {
  display: block;
  color: #ffffff;
  margin-bottom: 12px;
  font-weight: 400;
}

.footer-links a:hover {
  color: var(--secondary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
  font-size: 14px;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0;
}

/* ===== CASE STUDY PAGE ===== */
.case-study-hero {
  padding: 140px 0 60px;
  background-color: var(--background);
}

.back-link {
  display: inline-block;
  color: var(--text-light);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 32px;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: var(--secondary);
}

.case-study-hero-content {
  max-width: 960px;
}

.case-study-hero h1 {
  font-size: 68px;
  letter-spacing: -2px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--primary);
}

.case-study-subtitle {
  font-size: 22px;
  line-height: 1.6;
  color: var(--text-light);
  margin-bottom: 0;
}

.case-study-hero-image {
  padding: 0 0 80px;
  background-color: var(--background);
}

.case-study-hero-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.case-study-section {
  padding: 80px 0;
}

.case-study-image-break {
  padding: 40px 0;
  background-color: var(--background);
}

.case-study-image-break img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.case-study-image-break .image-row {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: center;
}

.case-study-image-break .image-row img {
  width: calc(33.333% - 16px);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .case-study-image-break .image-row {
    flex-direction: column;
    gap: 16px;
  }

  .case-study-image-break .image-row img {
    width: 100%;
  }
}

.case-study-section.bg-white {
  background-color: var(--white);
}

.case-study-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 80px;
  max-width: 1100px;
}

.case-study-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}

.case-study-sidebar .sidebar-image {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.sidebar-item {
  margin-bottom: 32px;
}

.sidebar-item h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.sidebar-item p,
.sidebar-item a {
  font-size: 16px;
  color: var(--text-dark);
  margin-bottom: 0;
}

.sidebar-item a {
  color: var(--secondary);
}

.tech-list {
  list-style: none;
}

.tech-list li {
  font-size: 15px;
  color: var(--text-dark);
  padding: 6px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.tech-list li:last-child {
  border-bottom: none;
}

.case-study-main h2 {
  font-size: 36px;
  margin-bottom: 24px;
}

.case-study-main h3 {
  font-size: 22px;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--primary);
}

.case-study-main p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-light);
}

.feature-list {
  list-style: none;
  margin: 16px 0 0 0;
  padding: 0;
}

.feature-list li {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-light);
  padding: 8px 0 8px 28px;
  position: relative;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 8px;
  height: 8px;
  background-color: var(--secondary);
  border-radius: 50%;
}

/* Client Quotes */
.client-quote {
  border-left: 4px solid var(--secondary);
  padding: 20px 0 20px 28px;
  margin: 24px 0;
  font-style: italic;
}

.client-quote p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 0;
}

/* Scroll animations */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.fade-in-item {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

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

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

.result-item {
  text-align: center;
  padding: 32px;
  background-color: var(--white);
  border-radius: 12px;
}

.result-number {
  display: block;
  font-size: 48px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.result-label {
  font-size: 14px;
  color: var(--text-light);
  font-weight: 600;
}

@media (max-width: 968px) {
  .case-study-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .case-study-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .sidebar-item {
    margin-bottom: 0;
  }

  .case-study-hero h1 {
    font-size: 40px;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .case-study-sidebar {
    grid-template-columns: 1fr;
  }

  .case-study-hero h1 {
    font-size: 32px;
  }

  .case-study-subtitle {
    font-size: 18px;
  }
}

/* ===== SERVICE PAGE V2 ===== */

.service-hero {
  padding: 130px 0 0;
  background: linear-gradient(135deg, var(--primary) 0%, #1a1f5c 100%);
  text-align: left;
  position: relative;
  overflow: hidden;
  min-height: 78vh;
  display: flex;
  align-items: stretch;
}

.service-hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  width: 100%;
}

.service-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: end;
  width: 100%;
}

.service-hero-content {
  padding-top: 40px;
  padding-bottom: 80px;
}

.service-hero-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(50, 159, 129, 0.15);
  color: var(--secondary);
  border: 1px solid rgba(50, 159, 129, 0.35);
  padding: 7px 18px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.service-hero h1 {
  color: var(--white);
  max-width: none;
  margin: 0 0 24px;
  font-size: 68px;
  letter-spacing: -2px;
  animation: fadeInUp 0.8s ease-out both;
  text-align: left;
}

.service-hero .intro {
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
  max-width: 560px;
  line-height: 1.7;
  margin: 0 0 36px;
  animation: fadeInUp 0.8s ease-out 0.2s both;
  text-align: left;
}

.service-hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.35s both;
}

.service-hero-visual {
  align-self: end;
}

.service-hero-img {
  width: 100%;
  border-radius: 16px 16px 0 0;
  object-fit: cover;
  object-position: center top;
  display: block;
  max-height: 520px;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.35);
}

.service-hero-img--contain {
  object-fit: contain;
  object-position: center;
  max-height: 460px;
  width: 100%;
  margin: 0 auto;
  border-radius: 40px;
  box-shadow: none;
  mix-blend-mode: screen;
}

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

.service-hero .hero-cloud:nth-child(1) { animation: cloudFloat 8s ease-in-out infinite; }
.service-hero .hero-cloud:nth-child(2) { animation: cloudFloat 10s ease-in-out infinite -3s; }
.service-hero .hero-cloud:nth-child(3) { animation: cloudFloat 7s ease-in-out infinite -5s; }
.service-hero .hero-cloud:nth-child(4) { animation: cloudFloat 9s ease-in-out infinite -1.5s; }
.service-hero .hero-cloud:nth-child(5) { animation: cloudFloat 11s ease-in-out infinite -4s; }

.sp-step-anim {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}

.sp-step-anim.sp-visible {
  opacity: 1;
  transform: translateX(0);
}

.sp-step-anim:nth-child(2) { transition-delay: 0.15s; }
.sp-step-anim:nth-child(3) { transition-delay: 0.30s; }


.sp-section {
  padding: 80px 0;
}

.sp-section.bg-white {
  background-color: var(--white);
}

.sp-eyebrow {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--secondary);
  margin-bottom: 12px;
  display: block;
}

.sp-eyebrow::before {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--secondary);
  margin-bottom: 12px;
}

.sp-section h2 {
  letter-spacing: -0.5px;
  margin-bottom: 40px;
}

.sp-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.sp-card {
  background: var(--white);
  border-radius: 12px;
  padding: 28px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.sp-card:hover {
  border-color: var(--accent);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.13);
  transform: translateY(-6px);
}

.sp-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.sp-card-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sp-card-icon.blue {
  background: rgba(46, 52, 141, 0.1);
  color: var(--primary);
}

.sp-card-icon.teal {
  background: rgba(50, 159, 129, 0.12);
  color: var(--secondary);
}

.sp-card-icon.pink {
  background: rgba(176, 3, 120, 0.1);
  color: var(--accent);
}

.sp-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--primary);
}

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

.sp-callout {
  background: var(--white);
  border-radius: 16px;
  padding: 28px 32px;
  margin-top: 48px;
}

.sp-callout h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.sp-callout p {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 0;
  line-height: 1.7;
}

.sp-how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.sp-how-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

.sp-how-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 968px) {
  .sp-how-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .sp-how-image {
    max-height: 340px;
  }
}

.sp-process {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
}

.sp-step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 28px;
  position: relative;
  padding-bottom: 48px;
  align-items: start;
}

.sp-step:last-child {
  padding-bottom: 0;
}

.sp-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 25px;
  top: 52px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary) 0%, rgba(46, 52, 141, 0.08) 100%);
}

.sp-step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.sp-step-content {
  padding-top: 12px;
}

.sp-step-content h3 {
  font-size: 19px;
  margin-bottom: 10px;
  color: var(--primary);
}

.sp-step-content p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 0;
}

.sp-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.sp-tool-tag {
  background: var(--white);
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

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

.sp-related-grid.two-col {
  grid-template-columns: repeat(2, 1fr);
  max-width: 840px;
}

.sp-related-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--background);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.sp-related-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.13);
}

.sp-related-img {
  height: 180px;
  overflow: hidden;
}

.sp-related-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.sp-related-card:hover .sp-related-img img {
  transform: scale(1.05);
}

.sp-related-img.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.sp-related-img.placeholder span {
  color: white;
  font-size: 22px;
  font-weight: 800;
}

.sp-related-body {
  padding: 20px 24px 24px;
}

.sp-related-body h4 {
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 6px;
}

.sp-related-body p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 12px;
  line-height: 1.5;
}

.sp-view-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--secondary);
}

.sp-related-card:hover .sp-view-link {
  color: var(--accent);
}

@media (max-width: 968px) {
  .service-hero {
    min-height: auto;
    padding: 120px 0 0;
  }

  .service-hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .service-hero-content {
    padding-bottom: 0;
  }

  .service-hero-visual {
    max-height: 340px;
    overflow: hidden;
  }

  .service-hero-img {
    max-height: 340px;
  }

  .service-hero h1 {
    font-size: 50px;
    letter-spacing: -1.5px;
  }

  .sp-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .sp-process {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .sp-related-grid,
  .sp-related-grid.two-col {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
  }
}

@media (max-width: 580px) {
  .service-hero h1 {
    font-size: 36px;
    letter-spacing: -1px;
  }

  .service-hero-pill {
    font-size: 11px;
  }

  .sp-cards {
    grid-template-columns: 1fr;
  }

  .sp-related-grid,
  .sp-related-grid.two-col {
    grid-template-columns: 1fr;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .case-study-featured {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .case-study-grid {
    grid-template-columns: 1fr;
  }

  .case-study-placeholder {
    height: 300px;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 32px;
  }

  .section-header h2 {
    font-size: 34px;
  }

  .cta-section h2 {
    font-size: 36px;
    letter-spacing: -0.5px;
  }

  .services-grid-new {
    grid-template-columns: 1fr;
  }

  .service-item {
    padding: 40px 32px;
  }

  .page-header h1 {
    font-size: 44px;
    letter-spacing: -1px;
  }

  .case-study-hero h1 {
    font-size: 44px;
    letter-spacing: -1px;
  }

  .values-list {
    grid-template-columns: 1fr;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 48px;
    letter-spacing: -1.5px;
  }

  .hero .subhead {
    font-size: 18px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .dropdown-content {
    position: static;
    box-shadow: none;
    padding-left: 20px;
    display: none;
  }

  .dropdown.active .dropdown-content {
    display: block;
  }

  .mobile-menu-btn {
    display: block;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero h1 {
    font-size: 36px;
    letter-spacing: -1px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 15px;
  }

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

  .services-grid-new {
    grid-template-columns: 1fr;
  }

  .service-item {
    padding: 36px 28px;
  }
}
