/* ============================================================
   LEDGERFLOW SOLUTIONS — Custom Design System
   Premium bookkeeping website — warm, human, hand-crafted feel
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Colors */
  --dark: #0F2B3C;
  --dark-deep: #0A1F2E;
  --green: #1A6B5A;
  --green-hover: #145A4A;
  --copper: #C8956C;
  --copper-light: #D4A87C;
  --warm-white: #FEFCF9;
  --beige: #F4F0EB;
  --cream: #FDF8F0;
  --white: #FFFFFF;
  --text-primary: #1A1A1A;
  --text-body: #4A4A4A;
  --text-muted: #7A7A7A;
  --text-light: #A0AEB8;
  --border: #E8E2D9;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --shadow-nav: 0 2px 20px rgba(0,0,0,0.06);

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --section-py: 100px;
  --container-max: 1200px;
  --container-px: 24px;

  /* Transitions */
  --transition: 0.3s ease;
  --transition-slow: 0.6s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-body);
  background-color: var(--warm-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

ul, ol { list-style: none; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--text-primary);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: 56px; }
h2 { font-size: 42px; margin-bottom: 24px; }
h3 { font-size: 28px; font-family: var(--font-sans); font-weight: 600; }
h4 { font-size: 22px; font-family: var(--font-sans); font-weight: 600; }

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

/* ---------- Utility Classes ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}

.section { padding: var(--section-py) 0; }
.section--dark { background-color: var(--dark); color: var(--white); }
.section--beige { background-color: var(--beige); }
.section--cream { background-color: var(--cream); }
.section--white { background-color: var(--warm-white); }

.copper-label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 16px;
  display: block;
}

.section--dark .copper-label { color: var(--copper-light); }

.green-text { color: var(--green); }
.copper-text { color: var(--copper); }

.text-center { text-align: center; }
.text-white { color: var(--white); }
.text-muted { color: var(--text-muted); }
.text-light { color: var(--text-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn--primary {
  background-color: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn--primary:hover {
  background-color: var(--green-hover);
  border-color: var(--green-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn--outline:hover {
  background-color: var(--green);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--white {
  background-color: var(--white);
  color: var(--green);
  border-color: var(--white);
}
.btn--white:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn--large {
  padding: 18px 40px;
  font-size: 16px;
}

.btn svg { width: 18px; height: 18px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-weight: 500;
  font-size: 15px;
  transition: all var(--transition);
}
.text-link:hover {
  gap: 10px;
  color: var(--green-hover);
}
.text-link svg { width: 16px; height: 16px; transition: transform var(--transition); }
.text-link:hover svg { transform: translateX(4px); }

/* ---------- Top Bar ---------- */
.top-bar {
  background-color: var(--dark);
  padding: 10px 0;
  font-size: 13px;
  color: var(--text-light);
}

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

.top-bar__left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.top-bar__left a,
.top-bar__right a {
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
}

.top-bar__left a:hover,
.top-bar__right a:hover {
  color: var(--white);
}

.top-bar__left svg,
.top-bar__right svg {
  width: 14px;
  height: 14px;
}

.top-bar__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ---------- Navigation ---------- */
.navbar {
  background-color: var(--white);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow var(--transition), padding var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-nav);
  padding: 10px 0;
}

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

.navbar__logo {
  display: flex;
  align-items: center;
}

.navbar__logo img {
  height: 52px;
  width: auto;
}

.navbar__logo span {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--dark);
}

.navbar__logo sub,
.navbar__logo .logo-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-weight: 400;
  bottom: 0;
  margin-left: 2px;
  vertical-align: baseline;
}

/* Footer logo */
.footer__brand .navbar__logo img {
  height: 48px;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.navbar__links a {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 15px;
  position: relative;
  padding-bottom: 4px;
}

.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--green);
  transition: all var(--transition);
  transform: translateX(-50%);
}

.navbar__links a:hover,
.navbar__links a.active {
  color: var(--green);
}

.navbar__links a:hover::after,
.navbar__links a.active::after {
  width: 100%;
}

.navbar__cta {
  margin-left: 12px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  transition: all var(--transition);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  height: 100dvh;
  background-color: var(--white);
  box-shadow: -4px 0 30px rgba(0,0,0,0.15);
  z-index: 1050;
  padding: 80px 32px 40px;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu.open { right: 0; }

.mobile-menu a {
  display: block;
  padding: 14px 0;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition), padding-left var(--transition);
}
.mobile-menu a:hover { color: var(--green); padding-left: 8px; }

.mobile-menu .btn { margin-top: 20px; text-align: center; justify-content: center; }

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}
.mobile-overlay.active { opacity: 1; visibility: visible; }

/* ---------- Hero (Homepage) ---------- */
.hero {
  display: grid;
  grid-template-columns: 55% 45%;
  min-height: 600px;
  overflow: hidden;
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 60px 60px 0;
  padding-left: calc((100vw - var(--container-max)) / 2 + var(--container-px));
}

.hero__content h1 {
  margin-bottom: 20px;
}

.hero__content h1 .green-text {
  display: block;
}

.hero__text {
  font-size: 18px;
  color: var(--text-body);
  margin-bottom: 32px;
  max-width: 520px;
  line-height: 1.8;
}

.hero__buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.hero__trust span { display: flex; align-items: center; gap: 6px; }
.hero__trust svg { width: 16px; height: 16px; color: var(--green); }

.hero__image {
  position: relative;
  overflow: hidden;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 0 0 40px;
}

/* ---------- Inner Page Hero ---------- */
.page-hero {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

/* Dark overlay + white text when page-hero uses inline background-image */
.page-hero[style*="background-image"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,43,60,0.85), rgba(15,43,60,0.6));
  z-index: 0;
}

.page-hero[style*="background-image"] .container {
  position: relative;
  z-index: 1;
  color: var(--white);
}

.page-hero[style*="background-image"] h1 {
  color: var(--white);
}

.page-hero[style*="background-image"] p {
  color: var(--text-light);
}

.page-hero[style*="background-image"] .copper-label {
  color: var(--copper-light);
}

.page-hero[style*="background-image"] .breadcrumb {
  color: var(--text-light);
}

.page-hero[style*="background-image"] .breadcrumb a {
  color: var(--copper-light);
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,43,60,0.85), rgba(15,43,60,0.6));
}

.page-hero__content {
  position: relative;
  z-index: 1;
  color: var(--white);
}

.page-hero__content .copper-label { color: var(--copper-light); }

.page-hero__content h1 {
  color: var(--white);
  font-size: 48px;
  margin-bottom: 12px;
}

.page-hero__content p {
  font-size: 18px;
  color: var(--text-light);
  max-width: 560px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--text-light);
}

.breadcrumb a { color: var(--copper-light); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb svg { width: 14px; height: 14px; }

/* ---------- Credibility Bar ---------- */
.credibility-bar {
  background-color: var(--beige);
  padding: 36px 0;
  overflow: hidden;
}

.credibility-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.credibility-bar__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.credibility-bar__logos {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
  justify-content: center;
}

.credibility-bar__logos img {
  height: 36px;
  opacity: 0.6;
  transition: opacity var(--transition);
  filter: grayscale(100%);
}

.credibility-bar__logos img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* ---------- About Preview ---------- */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-preview__image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.about-preview__image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 16px;
}

.about-preview__image::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100px;
  height: 100px;
  border: 3px solid var(--copper);
  border-radius: 16px 0 0 0;
  z-index: -1;
}

/* ---------- Service Cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--green);
  transition: width var(--transition);
}

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

.service-card:hover::before { width: 100%; }

.service-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--beige);
  border-radius: 10px;
  margin-bottom: 20px;
  color: var(--green);
}

.service-card__icon svg { width: 24px; height: 24px; }

.service-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.service-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.service-card .text-link { font-size: 14px; }

/* ---------- Process / How It Works ---------- */
.process {
  text-align: center;
}

.process__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
  position: relative;
}

.process__steps::before {
  content: '';
  position: absolute;
  top: 50px;
  left: 20%;
  right: 20%;
  height: 2px;
  border-top: 2px dashed rgba(255,255,255,0.2);
}

.process__step {
  text-align: center;
  position: relative;
}

.process__number {
  font-family: var(--font-serif);
  font-size: 72px;
  font-weight: 700;
  color: var(--copper);
  opacity: 0.8;
  line-height: 1;
  margin-bottom: 20px;
}

.process__step h3 {
  color: var(--white);
  margin-bottom: 12px;
  font-size: 22px;
}

.process__step p {
  color: var(--text-light);
  font-size: 15px;
  max-width: 300px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---------- Bento Grid (Why Choose Us) ---------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
}

.bento-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: all var(--transition);
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.bento-card--large {
  grid-column: span 2;
  border-left: 4px solid var(--green);
}

.bento-card--medium { grid-column: span 2; }

.bento-card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  border-radius: 10px;
  margin-bottom: 16px;
  color: var(--copper);
}

.bento-card__icon svg { width: 22px; height: 22px; }

.bento-card h3 { font-size: 20px; margin-bottom: 10px; }
.bento-card p { font-size: 15px; color: var(--text-muted); line-height: 1.7; }

/* ---------- Industries Carousel ---------- */
.carousel-wrapper {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: grab;
}

.carousel-track:active { cursor: grabbing; }

.carousel-track::before,
.carousel-track::after {
  display: none; /* gradients handled differently */
}

.industry-card {
  min-width: 280px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  flex-shrink: 0;
  transition: all var(--transition);
}

.industry-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--green);
}

.industry-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--beige);
  border-radius: 14px;
  margin: 0 auto 16px;
  color: var(--green);
  font-size: 24px;
}

.industry-card h4 { font-size: 18px; margin-bottom: 6px; }
.industry-card p { font-size: 14px; color: var(--text-muted); }

.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  background: var(--white);
  color: var(--text-primary);
}

.carousel-btn:hover {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.carousel-btn svg { width: 18px; height: 18px; }

/* ---------- Testimonials Slider ---------- */
.testimonials-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonial-slides {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-slide {
  min-width: 100%;
  padding: 0 20px;
}

.testimonial-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 48px 40px;
  text-align: center;
}

.testimonial-card__quote-mark {
  font-family: var(--font-serif);
  font-size: 72px;
  color: var(--copper);
  line-height: 1;
  margin-bottom: -10px;
  opacity: 0.6;
}

.testimonial-card blockquote {
  font-size: 20px;
  font-style: italic;
  color: var(--white);
  line-height: 1.7;
  margin-bottom: 28px;
}

.testimonial-card__author {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
}

.testimonial-card__role {
  font-size: 14px;
  color: var(--text-light);
  margin-top: 4px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}

.slider-dot.active {
  background: var(--copper);
  transform: scale(1.2);
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--green), var(--green-hover));
  padding: 80px 0;
  text-align: center;
  position: relative;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--dark);
  clip-path: polygon(0 0, 100% 0, 100% 40%, 0 100%);
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: 40px;
}

.cta-banner p {
  color: rgba(255,255,255,0.85);
  font-size: 18px;
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner__small {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-top: 16px;
}

/* ---------- Footer ---------- */
.footer {
  background-color: var(--dark-deep);
  color: var(--text-light);
  padding: 80px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer__brand p {
  font-size: 14px;
  line-height: 1.7;
  margin-top: 16px;
  color: var(--text-light);
  max-width: 280px;
}

.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: all var(--transition);
}

.footer__social a:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.footer__social svg { width: 18px; height: 18px; }

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

.footer__links a {
  display: block;
  color: var(--text-light);
  font-size: 14px;
  padding: 6px 0;
  transition: all var(--transition);
}

.footer__links a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
}

.footer__contact-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--copper);
}

.footer__bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 999;
  cursor: pointer;
  border: none;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--green-hover);
  transform: translateY(-3px);
}

.back-to-top svg { width: 20px; height: 20px; }

/* ---------- Alternating Sections (Services Page) ---------- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.service-detail:nth-child(even) .service-detail__content { order: 2; }
.service-detail:nth-child(even) .service-detail__visual { order: 1; }

.service-detail__visual {
  background: var(--beige);
  border-radius: 20px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.service-detail__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.service-detail__visual .service-icon-large {
  width: 80px;
  height: 80px;
  color: var(--green);
  opacity: 0.3;
}

.service-detail__content h3 { margin-bottom: 16px; }
.service-detail__content p { margin-bottom: 20px; color: var(--text-body); line-height: 1.8; }

.service-divider {
  height: 1px;
  background: var(--border);
  margin: 60px 0;
}

/* ---------- Industry Cards (Industries Page) ---------- */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.industry-card-full {
  position: relative;
  height: 280px;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
}

.industry-card-full img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.industry-card-full:hover img { transform: scale(1.08); }

.industry-card-full__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,43,60,0.9) 0%, rgba(15,43,60,0.3) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  transition: background var(--transition);
}

.industry-card-full:hover .industry-card-full__overlay {
  background: linear-gradient(to top, rgba(26,107,90,0.9) 0%, rgba(26,107,90,0.3) 100%);
}

.industry-card-full h3 {
  color: var(--white);
  font-size: 22px;
  margin-bottom: 4px;
}

.industry-card-full p {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}

/* ---------- Contact Form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

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

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 0;
  border: none;
  border-bottom: 2px solid var(--border);
  background: transparent;
  color: var(--text-primary);
  font-size: 16px;
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-bottom-color: var(--green);
}

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

.contact-info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  transition: all var(--transition);
}

.contact-info-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.contact-info-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--green);
}

.contact-info-card__icon svg { width: 20px; height: 20px; }

.contact-info-card h4 { font-size: 16px; margin-bottom: 4px; }
.contact-info-card p { font-size: 14px; color: var(--text-muted); margin: 0; }

/* ---------- Stats Counter ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

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

.stat-number {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}

.stat-number .suffix { font-size: 36px; }

.stat-label {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 8px;
}

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

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

.stagger-children .fade-up:nth-child(1) { transition-delay: 0ms; }
.stagger-children .fade-up:nth-child(2) { transition-delay: 80ms; }
.stagger-children .fade-up:nth-child(3) { transition-delay: 160ms; }
.stagger-children .fade-up:nth-child(4) { transition-delay: 240ms; }
.stagger-children .fade-up:nth-child(5) { transition-delay: 320ms; }
.stagger-children .fade-up:nth-child(6) { transition-delay: 400ms; }

/* Hero stagger */
.hero-stagger > *:nth-child(1) { transition-delay: 0ms; }
.hero-stagger > *:nth-child(2) { transition-delay: 150ms; }
.hero-stagger > *:nth-child(3) { transition-delay: 300ms; }
.hero-stagger > *:nth-child(4) { transition-delay: 450ms; }
.hero-stagger > *:nth-child(5) { transition-delay: 600ms; }

/* ---------- About Page Specific ---------- */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.expertise-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 20px;
  text-align: center;
  transition: all var(--transition);
}

.expertise-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.expertise-card img {
  height: 40px;
  margin: 0 auto 16px;
}

.expertise-card h4 { font-size: 16px; margin-bottom: 6px; }
.expertise-card p { font-size: 13px; color: var(--text-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  h1 { font-size: 42px; }
  h2 { font-size: 34px; }
  :root { --section-py: 80px; }

  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero__content { padding: 60px var(--container-px); }
  .hero__image { height: 400px; }
  .hero__image img { border-radius: 0; }

  .about-preview { grid-template-columns: 1fr; gap: 40px; }

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

  .process__steps { grid-template-columns: 1fr; gap: 48px; }
  .process__steps::before { display: none; }

  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-card--large { grid-column: span 2; }
  .bento-card--medium { grid-column: span 1; }

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

  .service-detail { grid-template-columns: 1fr; }
  .service-detail:nth-child(even) .service-detail__content { order: 1; }
  .service-detail:nth-child(even) .service-detail__visual { order: 2; }

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

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

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

  .expertise-grid { grid-template-columns: repeat(3, 1fr); }

  .page-hero { height: 320px; }
  .page-hero__content h1 { font-size: 36px; }
}

@media (max-width: 768px) {
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  :root { --section-py: 60px; --container-px: 20px; }

  .navbar__links,
  .navbar__cta { display: none; }
  .hamburger { display: flex; }

  .top-bar__left { gap: 12px; }
  .top-bar__left span.hide-mobile { display: none; }

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

  .bento-grid { grid-template-columns: 1fr; }
  .bento-card--large { grid-column: span 1; }

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

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

  .cta-banner h2 { font-size: 30px; }

  .hero__trust { flex-direction: column; align-items: flex-start; }

  .stat-number { font-size: 36px; }

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

  .testimonial-card { padding: 32px 24px; }
  .testimonial-card blockquote { font-size: 17px; }
}

@media (max-width: 480px) {
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }

  .hero__buttons { flex-direction: column; }
  .hero__buttons .btn { width: 100%; justify-content: center; }

  .page-hero { height: 260px; }
  .page-hero__content h1 { font-size: 28px; }

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

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

/* ---------- Focus Visible (Accessibility) ---------- */
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.btn:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(26, 107, 90, 0.2);
}

.navbar__links a:focus-visible { outline-offset: 4px; }
.footer__links a:focus-visible,
.footer__social a:focus-visible,
.top-bar__left a:focus-visible,
.top-bar__right a:focus-visible { outline-color: var(--copper-light); }

.slider-dot:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
}

.carousel-btn:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.form-group input:focus-visible,
.form-group textarea:focus-visible,
.form-group select:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -2px;
}

/* ---------- Print Stylesheet ---------- */
@media print {
  .top-bar,
  .navbar,
  .mobile-menu,
  .mobile-overlay,
  .back-to-top,
  .cookie-banner,
  .hamburger,
  .cta-banner,
  .hero__buttons { display: none !important; }

  body { color: #000; background: #fff; font-size: 12pt; }
  a { color: #000; text-decoration: underline; }
  .section--dark { background: #f5f5f5 !important; color: #000 !important; }
  .section--dark h2, .section--dark h3, .section--dark p { color: #000 !important; }
  .footer { background: #f5f5f5 !important; }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .fade-up { opacity: 1; transform: none; }
}
