:root {
  --bg: #f3fafb;
  --bg-alt: #ffffff;
  --primary: #0c7b80;
  --primary-soft: #d6f1f3;
  --accent: #0f555a;
  --text-main: #102a2c;
  --text-soft: #5f7476;
  --border-soft: #c9e1e4;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 12px 35px rgba(12, 123, 128, 0.1);
  --shadow-glow: 0 8px 24px rgba(12, 123, 128, 0.28);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .brand-text {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.02em;
}

.page {
  min-height: 100vh;
  background: radial-gradient(circle at top left, #d6f1f3 0%, #f9fbfc 45%, #f3fafb 100%);
  color: var(--text-main);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-md);
  text-decoration: none;
  z-index: 99;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 250, 251, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201, 225, 228, 0.6);
  transition: all 200ms ease;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.nav {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav a {
  text-decoration: none;
  color: var(--text-soft);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  transition: all 180ms ease;
}

.nav a:hover,
.nav a.router-link-exact-active {
  color: var(--primary);
  background: var(--primary-soft);
  font-weight: 600;
}

.btn-nav {
  background: var(--primary) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  padding: 0.5rem 1.1rem !important;
  box-shadow: 0 4px 14px rgba(12, 123, 128, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-nav:hover {
  background: var(--accent) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow) !important;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 200ms ease;
}

.btn-primary {
  background: linear-gradient(135deg, #0c7b80 0%, #0f555a 100%);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(12, 123, 128, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(12, 123, 128, 0.38);
  color: #ffffff;
}

.btn-secondary {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: #c9e1e4;
}

.btn-secondary:hover {
  background: #ffffff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(12, 123, 128, 0.12);
}

.card:hover,
.hero-visual:hover,
.crm-screenshot:hover,
.edu-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.16);
}

main {
  max-width: 100%;
  margin: 0;
  padding: 0rem;
}

.hero {
  position: relative;
  min-height: clamp(380px, 60vh, 650px);
  padding-block: clamp(2rem, 5vh, 4.5rem);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(1, 22, 39, 0.95), rgba(16, 42, 44, 0.8)),
    radial-gradient(circle at top left, rgba(12, 123, 128, 0.35), transparent 55%),
    image-set(
      url('/img/banner1-hero-mobile.jpg') 1x,
      url('/img/banner1-hero.jpg') 2x
    );
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

@media (min-width: 768px) {
  .hero::before {
    background:
      linear-gradient(120deg, rgba(1, 22, 39, 0.95), rgba(16, 42, 44, 0.8)),
      radial-gradient(circle at top left, rgba(12, 123, 128, 0.35), transparent 55%),
      image-set(
        url('/img/banner1-hero.jpg') 1x,
        url('/img/banner1-hero.jpg') 2x
      );
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  width: 100%;
}

.hero-title,
.hero-content h1 {
  font-size: clamp(1.65rem, 3.8vw + 0.8rem, 3rem);
  line-height: 1.2;
  margin-bottom: 1.2rem;
  color: #ffffff;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  animation: hero-title-in 700ms ease-out 60ms both;
}

.hero-content h1 span {
  color: var(--primary);
}

.hero-description,
.hero-content p {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(0.95rem, 1.2vw + 0.6rem, 1.2rem);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 720px;
  animation: hero-fade-in 720ms ease-out 140ms both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  color: #ffffff;
  font-size: clamp(0.75rem, 0.8vw + 0.5rem, 0.85rem);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.hero-kicker {
  margin: 0;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.2rem 0 0.8rem;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

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

.btn-secondary {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: #b5dde0;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 0;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.hero-badges li { background: var(--primary-soft); padding: 0.35rem 0.9rem 0.35rem 1.4rem; border-radius: 999px; color: var(--accent); position: relative; overflow: hidden; }

.hero-side {
  display: flex;
  justify-content: flex-end;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  align-items: center;
  justify-items: center;
  padding: 1rem 0;
}

.clients-grid img {
  max-width: 200px;
  width: 100%;
  height: auto;
  filter: saturate(0) brightness(0.5);
  transition: filter 180ms ease;
}

.clients-grid img:hover {
  filter: saturate(1) brightness(1);
}

.grid.grid-services {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Service detail layout */
.service-hero {
  position: relative;
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
  color: #f7fbfc;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  isolation: isolate;
  box-shadow: var(--shadow-soft);
}

.service-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(1, 22, 39, 0.88), rgba(12, 123, 128, 0.72));
  z-index: 0;
}

.service-hero > * {
  position: relative;
  z-index: 1;
}

.service-hero h1 {
  margin: 0.4rem 0 0.5rem;
  font-size: 2rem;
  line-height: 1.15;
}

.service-hero p {
  margin: 0;
  max-width: 700px;
  color: rgba(235, 244, 246, 0.92);
}

.service-hero .section-kicker {
  color: #d1f2f5;
}

.service-body {
  max-width: 1120px;
  margin: 2.5rem auto 0;
  padding: 0 1.5rem 2rem;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 0.9fr);
  gap: 2rem;
}

.service-main {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  padding: 1.5rem;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.service-cover {
  border-radius: var(--radius-md);
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 1.2rem;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
}

.service-main h2 {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
}

.service-main p {
  color: var(--text-soft);
  line-height: 1.6;
}

.service-list {
  margin: 0.6rem 0 1rem;
  padding-left: 1rem;
  color: var(--text-soft);
}

.service-highlight-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 1.5rem;
}

.service-highlight {
  background: var(--primary-soft);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  border: 1px solid #b5dde0;
}

.service-highlight h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: var(--accent);
}

.service-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-side {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

.service-related {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

.service-related h3 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
}

.service-related ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.service-related a {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-md);
  color: var(--text-main);
  text-decoration: none;
  border: 1px solid transparent;
  background: var(--bg);
}

.service-related a:hover {
  border-color: var(--border-soft);
  background: #fff;
}

.service-aside .help-card {
  background: linear-gradient(135deg, #0c7b80, #0f555a);
  color: #e9f7f8;
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  box-shadow: 0 14px 30px rgba(12, 123, 128, 0.3);
}

.service-aside .help-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.service-aside .help-card p {
  margin: 0 0 0.8rem;
  color: #ddf5f7;
}

.service-aside .help-card .btn-primary {
  width: 100%;
}

.legal-hero {
  margin-bottom: 0;
}

.legal-body {
  grid-template-columns: minmax(0, 1fr);
}

.legal-content {
  max-width: 860px;
  margin: 0 auto;
}

.legal-content h2 {
  margin-top: 1.5rem;
}

.legal-content a {
  color: var(--primary);
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
}

@media (max-width: 960px) {
  .service-body {
    grid-template-columns: 1fr;
  }
}

.hero-visual {
  max-width: 360px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: #000;
  margin: 0;
  position: relative;
  animation: hero-image-in 820ms ease-out 180ms both;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-visual figcaption {
  padding: 0.6rem 0.9rem;
  font-size: 0.8rem;
  color: rgba(233, 245, 246, 0.85);
  background: rgba(0, 0, 0, 0.45);
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(12, 123, 128, 0.55), rgba(15, 85, 90, 0.35));
  mix-blend-mode: multiply;
  pointer-events: none;
}

.section {
  padding: 2.2rem 0 1.8rem;
}

.section-alt {
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  padding-inline: 1.5rem;
  margin-inline: -1.5rem;
}

.section-header {
  margin-bottom: 1.4rem;
}

.section-header h2 {
  margin: 0 0 0.3rem;
  font-size: 1.5rem;
}

.section-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
}

.section-header p {
  margin: 0;
  color: var(--text-soft);
}

.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.2rem;
  text-decoration: none;
  color: inherit;
}

.card-visual {
  width: calc(100% + 2.4rem);
  margin: -1.1rem -1.2rem 0.8rem;
  max-height: 180px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.card-outline {
  border: 1px solid var(--border-soft);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

.card:hover h2,
.card:focus-visible h2 {
  color: var(--primary);
}

.card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.about-grid {
  align-items: stretch;
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 0.2rem 0 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.about-list li { position: relative; padding-left: 1.4rem; margin-bottom: 0.35rem; }

.about-list li::before { content: ''; position: absolute; left: 0.1rem; top: 0.45rem; width: 7px; height: 7px; border-radius: 999px; background: var(--accent); }


.contact-form {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.5rem;
  border: 1px solid rgba(209, 213, 219, 0.8);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.field {
  margin-bottom: 0.9rem;
}

.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 0.85rem;
  font-family: inherit;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.4);
}

.field-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.75rem;
}

.full-width {
  width: 100%;
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-top: 0.6rem;
}

.form-note a {
  color: var(--primary);
  text-decoration: none;
}

.form-status {
  font-size: 0.85rem;
  margin-top: 0.6rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: #f1f5f9;
  color: var(--text-main);
  border: 1px solid #cbd5e1;
}

.form-status.is-success {
  background: #ecfdf3;
  border-color: #bbf7d0;
  color: #166534;
}

.form-status.is-error {
  background: #fef2f2;
  border-color: #fecdd3;
  color: #b91c1c;
}

.contact-side {
  font-size: 0.9rem;
}

.contact-side h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.contact-side ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--text-soft);
}

.contact-side li { position: relative; padding-left: 1.4rem; margin-bottom: 0.4rem; }

.contact-side li::before { content: ''; position: absolute; left: 0.25rem; top: 0.55rem; width: 6px; height: 6px; border-radius: 999px; background: var(--accent); }

.crm-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr);
  gap: 2rem;
  align-items: flex-start;
}

.crm-copy h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.crm-list { margin: 0 0 0.9rem; padding-left: 0; color: var(--text-soft); font-size: 0.9rem; list-style: none; }

.crm-list li { margin-bottom: 0.3rem; position: relative; padding-left: 1.6rem; }

.crm-benefits {
  font-size: 0.9rem;
  color: var(--text-main);
  font-weight: 500;
  margin-bottom: 0.9rem;
}

.crm-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.btn-link {
  text-decoration: none;
}

.crm-media {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.crm-screenshot {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
  position: relative;
}

.crm-screenshot img {
  display: block;
  width: 100%;
  height: auto;
}

.crm-screenshot::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(12, 123, 128, 0.5), rgba(15, 85, 90, 0.3));
  mix-blend-mode: multiply;
  pointer-events: none;
}

.crm-note {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.future-note {
  margin-top: 1.4rem;
  font-size: 0.85rem;
  color: var(--text-soft);
  text-align: center;
}

.edu-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem;
  margin-top: 1.4rem;
}

.edu-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.edu-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(12, 123, 128, 0.5), rgba(15, 85, 90, 0.3));
  mix-blend-mode: multiply;
  pointer-events: none;
}

.edu-item img {
  width: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
  height: 140px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

@keyframes hero-title-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-image-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.footer {
  border-top: 1px solid rgba(209, 213, 219, 0.6);
  padding: 1rem 1.5rem 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.footer-secondary {
  margin-top: 0.2rem;
}

.footer-links {
  margin-top: 0.6rem;
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  font-size: 0.85rem;
}

.footer-links a {
  color: var(--text-main);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-side {
    justify-content: flex-start;
    margin-top: 1rem;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .crm-layout {
    grid-template-columns: 1fr;
  }
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-soft);
  color: var(--text-main);
  padding: 0.45rem 0.75rem;
  font-size: 1.25rem;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.nav-toggle:hover {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: var(--primary);
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.2rem;
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--border-soft);
    margin-top: 0.5rem;
  }
  .nav.is-open {
    display: flex;
  }
  .nav a {
    width: 100%;
    border-radius: var(--radius-md);
    padding: 0.6rem 1rem;
  }
  .nav-dropdown-menu {
    position: static !important;
    box-shadow: none !important;
    border: none !important;
    background: rgba(12, 123, 128, 0.06) !important;
    margin-top: 0.2rem;
    padding-left: 1rem !important;
  }
  .hero-content h2 {
    font-size: 1.8rem;
  }
  main {
    padding-inline: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
  .btn-primary,
  .btn-secondary,
  .card,
  .hero-visual,
  .crm-screenshot,
  .edu-item {
    transition: none !important;
    animation: none !important;
  }
}
.crm-list li::before { content: ''; position: absolute; left: 0; top: 0.45rem; width: 9px; height: 9px; border-radius: 999px; border: 2px solid var(--primary); }

/* Service Hero Styles */
.service-hero {
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding-block: clamp(2.5rem, 5vh, 5rem) clamp(2rem, 4vh, 4rem);
}

.service-hero-title {
  font-size: clamp(1.6rem, 3.5vw + 0.8rem, 2.5rem);
  margin-top: 0;
  font-weight: 800;
  line-height: 1.25;
}

.service-hero-subtitle {
  max-width: 600px;
  font-size: clamp(0.95rem, 1.2vw + 0.5rem, 1.1rem);
  color: rgba(233, 245, 246, 0.92);
  line-height: 1.55;
}

.section-kicker {
  color: #d6f1f3;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  font-size: clamp(0.75rem, 1vw + 0.5rem, 0.85rem);
}

/* General Mobile Breakpoint Fixes */
@media (max-width: 768px) {
  .hero-carousel .carousel-control-prev,
  .hero-carousel .carousel-control-next {
    width: 10% !important;
  }
  .hero-carousel .carousel-indicators {
    bottom: 0.75rem !important;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* Service Body & Portfolio Responsive Layout */
.service-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 992px) {
  .service-body {
    grid-template-columns: 2.2fr 1fr;
  }
}

.featured-project-card {
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-soft);
}

.project-tag-badge {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.project-highlights-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.8rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.8rem;
}

/* Rich Content Responsive Rules (CMS Content, Tables, iFrames, Code) */
.article-content,
.custom-home-content {
  width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.article-content table,
.custom-home-content table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.article-content table th,
.article-content table td,
.custom-home-content table th,
.custom-home-content table td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-soft);
}

.article-content iframe,
.article-content embed,
.article-content object,
.custom-home-content iframe,
.custom-home-content embed,
.custom-home-content object {
  max-width: 100%;
  border-radius: var(--radius-md);
}

.responsive-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  height: 0;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-md);
}

.responsive-embed iframe,
.responsive-embed embed,
.responsive-embed object {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.article-content pre,
.article-content code,
.custom-home-content pre,
.custom-home-content code {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  background-color: #f1f5f9;
  border-radius: 8px;
  padding: 0.25rem 0.5rem;
}
