/* ============================================================
   ECROWN TECH — Design System
   Fresh build. Not derived from old stylesheet.
   ============================================================ */

/* ---------- 1. Design Tokens ---------- */
:root {
  /* Brand colors */
  --ec-navy:       #10183F;
  --ec-navy-light: #243B8A;
  --ec-teal:       #00BFA5;
  --ec-teal-dark:  #009E8A;
  --ec-white:      #FFFFFF;

  /* Neutral palette */
  --ec-bg:         #F5F7FB;
  --ec-bg-alt:     #EDF1F8;
  --ec-surface:    #FFFFFF;
  --ec-border:     #E2E8F0;
  --ec-border-light: #EEF1F7;

  /* Text */
  --ec-text:       #202943;
  --ec-text-secondary: #68738A;
  --ec-text-muted:  #94A3B8;
  --ec-text-inverse: #FFFFFF;

  /* Typography */
  --ec-font-body: 'Inter', 'Open Sans', system-ui, -apple-system, sans-serif;
  --ec-font-heading: 'Plus Jakarta Sans', 'Catamaran', 'Inter', system-ui, sans-serif;

  /* Type scale */
  --ec-text-xs:   0.75rem;   /* 12px */
  --ec-text-sm:   0.875rem;  /* 14px */
  --ec-text-base: 1rem;      /* 16px */
  --ec-text-lg:   1.125rem;  /* 18px */
  --ec-text-xl:   1.25rem;   /* 20px */
  --ec-text-2xl:  1.5rem;    /* 24px */
  --ec-text-3xl:  1.875rem;  /* 30px */
  --ec-text-4xl:  2.25rem;   /* 36px */
  --ec-text-5xl:  3rem;      /* 48px */

  /* Line heights */
  --ec-leading-tight: 1.2;
  --ec-leading-snug:  1.35;
  --ec-leading-normal: 1.6;
  --ec-leading-relaxed: 1.75;

  /* Spacing (4px base) */
 --ec-s1:  0.25rem;  /* 4px */
  --ec-s2:  0.5rem;   /* 8px */
  --ec-s3:  0.75rem;  /* 12px */
  --ec-s4:  1rem;     /* 16px */
  --ec-s5:  1.25rem;  /* 20px */
  --ec-s6:  1.5rem;   /* 24px */
  --ec-s8:  2rem;     /* 32px */
  --ec-s10: 2.5rem;   /* 40px */
  --ec-s12: 3rem;     /* 48px */
  --ec-s16: 4rem;     /* 64px */
  --ec-s20: 5rem;     /* 80px */
  --ec-s24: 6rem;     /* 96px */

  /* Radius */
  --ec-r-sm:  6px;
  --ec-r-md:  10px;
  --ec-r-lg:  16px;
  --ec-r-xl:  24px;
  --ec-r-full: 9999px;

  /* Shadows */
  --ec-sh-sm:  0 1px 3px rgba(16,24,63,0.06), 0 1px 2px rgba(16,24,63,0.04);
  --ec-sh-md:  0 4px 16px rgba(16,24,63,0.08), 0 2px 4px rgba(16,24,63,0.04);
  --ec-sh-lg:  0 12px 32px rgba(16,24,63,0.10), 0 4px 8px rgba(16,24,63,0.04);
  --ec-sh-xl:  0 20px 48px rgba(16,24,63,0.12);

  /* Section padding */
  --ec-section-y: 80px;

  /* Transitions */
  --ec-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ec-dur: 200ms;

  /* Container */
  --ec-container: 1200px;
  --ec-container-narrow: 960px;
}

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

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

body {
  font-family: var(--ec-font-body);
  font-size: var(--ec-text-base);
  line-height: var(--ec-leading-normal);
  color: var(--ec-text);
  background: var(--ec-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--ec-teal);
  text-decoration: none;
  transition: color var(--ec-dur) var(--ec-ease);
}
a:hover { color: var(--ec-teal-dark); }

ul, ol { list-style: none; }

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ec-font-heading);
  font-weight: 700;
  line-height: var(--ec-leading-tight);
  color: var(--ec-navy);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); }
h4 { font-size: var(--ec-text-xl); }

p { line-height: var(--ec-leading-relaxed); color: var(--ec-text-secondary); }

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

/* ---------- 4. Layout ---------- */
.ec-container {
  width: 100%;
  max-width: var(--ec-container);
  margin: 0 auto;
  padding: 0 var(--ec-s6);
}

.ec-container--narrow {
  max-width: var(--ec-container-narrow);
}

.ec-section {
  padding: var(--ec-section-y) 0;
}

.ec-section--tight {
  padding: var(--ec-s16) 0;
}

.ec-section--dark {
  background: var(--ec-navy);
  color: var(--ec-text-inverse);
}

.ec-section--dark h1,
.ec-section--dark h2,
.ec-section--dark h3 {
  color: var(--ec-white);
}

.ec-section--dark p {
  color: rgba(255,255,255,0.75);
}

.ec-section--alt {
  background: var(--ec-bg);
}

/* Grid */
.ec-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 calc(-1 * var(--ec-s4));
}

.ec-row > [class*="ec-col"] {
  padding: 0 var(--ec-s4);
}

.ec-col-12 { width: 100%; }
.ec-col-6  { width: 50%; }
.ec-col-4  { width: 33.333%; }
.ec-col-3  { width: 25%; }

@media (max-width: 991px) {
  .ec-col-md-6  { width: 50%; }
  .ec-col-md-12 { width: 100%; }
}

@media (max-width: 767px) {
  .ec-col-sm-12 { width: 100%; }
  .ec-section { padding: var(--ec-s16) 0; }
}

/* ---------- 5. Header / Navigation ---------- */
.ec-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--ec-white);
  box-shadow: var(--ec-sh-sm);
  transition: box-shadow var(--ec-dur) var(--ec-ease);
}

.ec-header__top {
  background: var(--ec-navy);
  color: rgba(255,255,255,0.85);
  font-size: var(--ec-text-sm);
  padding: var(--ec-s2) 0;
}

.ec-header__top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--ec-s2);
}

.ec-header__contact {
  display: flex;
  gap: var(--ec-s5);
  align-items: center;
}

.ec-header__contact a {
  color: rgba(255,255,255,0.85);
  display: inline-flex;
  align-items: center;
  gap: var(--ec-s1);
}

.ec-header__contact a:hover { color: var(--ec-teal); }

.ec-header__main {
  padding: var(--ec-s4) 0;
}

.ec-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ec-s6);
}

.ec-logo img {
  height: 44px;
  width: auto;
}

.ec-nav {
  display: flex;
  align-items: center;
  gap: var(--ec-s1);
}

.ec-nav a {
  font-family: var(--ec-font-heading);
  font-weight: 600;
  font-size: var(--ec-text-sm);
  color: var(--ec-navy);
  padding: var(--ec-s3) var(--ec-s4);
  border-radius: var(--ec-r-sm);
  transition: all var(--ec-dur) var(--ec-ease);
}

.ec-nav a:hover,
.ec-nav a.ec-active {
  color: var(--ec-teal);
  background: rgba(0,191,165,0.06);
}

.ec-nav-cta {
  margin-left: var(--ec-s3);
}

/* Mobile toggle */
.ec-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--ec-s2);
  flex-direction: column;
  gap: 5px;
}

.ec-nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ec-navy);
  border-radius: 2px;
  transition: all var(--ec-dur) var(--ec-ease);
}

@media (max-width: 991px) {
  .ec-nav-toggle { display: flex; }
  .ec-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ec-white);
    flex-direction: column;
    padding: var(--ec-s4);
    box-shadow: var(--ec-sh-md);
    border-top: 1px solid var(--ec-border);
  }
  .ec-nav.ec-nav--open { display: flex; }
  .ec-nav a { width: 100%; padding: var(--ec-s3) var(--ec-s4); }
  .ec-nav-cta { margin-left: 0; margin-top: var(--ec-s2); }
  .ec-header__top { display: none; }
}

/* ---------- 6. Buttons ---------- */
.ec-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ec-s2);
  font-family: var(--ec-font-heading);
  font-weight: 600;
  font-size: var(--ec-text-sm);
  padding: var(--ec-s3) var(--ec-s6);
  border-radius: var(--ec-r-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--ec-dur) var(--ec-ease);
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
}

.ec-btn--primary {
  background: var(--ec-teal);
  color: var(--ec-white);
  border-color: var(--ec-teal);
}
.ec-btn--primary:hover {
  background: var(--ec-teal-dark);
  border-color: var(--ec-teal-dark);
  color: var(--ec-white);
  transform: translateY(-1px);
  box-shadow: var(--ec-sh-md);
}

.ec-btn--outline {
  background: transparent;
  color: var(--ec-white);
  border-color: rgba(255,255,255,0.5);
}
.ec-btn--outline:hover {
  background: var(--ec-white);
  color: var(--ec-navy);
  border-color: var(--ec-white);
}

.ec-btn--white {
  background: var(--ec-white);
  color: var(--ec-navy);
  border-color: var(--ec-white);
}
.ec-btn--white:hover {
  background: rgba(255,255,255,0.9);
  color: var(--ec-navy);
  border-color: rgba(255,255,255,0.9);
  transform: translateY(-1px);
  box-shadow: var(--ec-sh-md);
}

.ec-btn--navy {
  background: var(--ec-navy);
  color: var(--ec-white);
  border-color: var(--ec-navy);
}
.ec-btn--navy:hover {
  background: var(--ec-navy-light);
  border-color: var(--ec-navy-light);
  color: var(--ec-white);
}

.ec-btn--lg {
  padding: var(--ec-s4) var(--ec-s8);
  font-size: var(--ec-text-base);
}

.ec-btn--sm {
  padding: var(--ec-s2) var(--ec-s4);
  font-size: var(--ec-text-xs);
}

/* ---------- 7. Hero ---------- */
.ec-hero {
  background: var(--ec-navy);
  color: var(--ec-white);
  padding: var(--ec-s20) 0;
  position: relative;
  overflow: hidden;
}

.ec-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(0,191,165,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.ec-hero__inner {
  display: flex;
  align-items: center;
  gap: var(--ec-s12);
  position: relative;
  z-index: 1;
}

.ec-hero__content { flex: 1; }
.ec-hero__image  { flex: 1; }

.ec-hero__content h1 {
  color: var(--ec-white);
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  line-height: var(--ec-leading-tight);
  margin-bottom: var(--ec-s6);
}

.ec-hero__content h1 span {
  color: var(--ec-teal);
}

.ec-hero__content p {
  color: rgba(255,255,255,0.78);
  font-size: var(--ec-text-lg);
  line-height: var(--ec-leading-relaxed);
  margin-bottom: var(--ec-s8);
  max-width: 540px;
}

.ec-hero__actions {
  display: flex;
  gap: var(--ec-s4);
  flex-wrap: wrap;
}

.ec-hero__image img {
  border-radius: var(--ec-r-lg);
  box-shadow: var(--ec-sh-xl);
}

@media (max-width: 991px) {
  .ec-hero__inner { flex-direction: column; text-align: center; }
  .ec-hero__content p { max-width: 100%; }
  .ec-hero__actions { justify-content: center; }
  .ec-hero__image { order: -1; }
  .ec-hero__image img { max-width: 80%; margin: 0 auto; }
}

@media (max-width: 767px) {
  .ec-hero { padding: var(--ec-s16) 0; }
}

/* ---------- 8. Section Header ---------- */
.ec-section-header {
  text-align: center;
  margin-bottom: var(--ec-s12);
}

.ec-section-header__label {
  display: inline-block;
  font-family: var(--ec-font-heading);
  font-weight: 600;
  font-size: var(--ec-text-sm);
  color: var(--ec-teal);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--ec-s3);
}

.ec-section-header h2 {
  margin-bottom: var(--ec-s4);
}

.ec-section-header p {
  font-size: var(--ec-text-lg);
  max-width: 640px;
  margin: 0 auto;
}

.ec-section-header--left {
  text-align: left;
}

/* ---------- 9. Cards ---------- */
.ec-card {
  background: var(--ec-surface);
  border: 1px solid var(--ec-border-light);
  border-radius: var(--ec-r-lg);
  padding: var(--ec-s6);
  transition: all var(--ec-dur) var(--ec-ease);
  height: 100%;
}

.ec-card:hover {
  box-shadow: var(--ec-sh-md);
  border-color: var(--ec-border);
  transform: translateY(-2px);
}

.ec-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--ec-r-md);
  background: rgba(0,191,165,0.1);
  color: var(--ec-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--ec-text-2xl);
  margin-bottom: var(--ec-s5);
}

.ec-card h3 {
  font-size: var(--ec-text-xl);
  margin-bottom: var(--ec-s3);
}

.ec-card p {
  font-size: var(--ec-text-sm);
  line-height: var(--ec-leading-relaxed);
}

/* Service grid */
.ec-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--ec-s6);
}

@media (max-width: 991px) {
  .ec-services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .ec-services-grid { grid-template-columns: 1fr; }
}

/* Product cards */
.ec-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--ec-s6);
}

@media (max-width: 767px) {
  .ec-products-grid { grid-template-columns: 1fr; }
}

.ec-product-card {
  background: var(--ec-surface);
  border: 1px solid var(--ec-border-light);
  border-radius: var(--ec-r-lg);
  overflow: hidden;
  transition: all var(--ec-dur) var(--ec-ease);
  height: 100%;
}

.ec-product-card:hover {
  box-shadow: var(--ec-sh-lg);
  transform: translateY(-3px);
}

.ec-product-card__image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.ec-product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms var(--ec-ease);
}

.ec-product-card:hover .ec-product-card__image img {
  transform: scale(1.04);
}

.ec-product-card__body {
  padding: var(--ec-s6);
}

.ec-product-card__body h3 {
  font-size: var(--ec-text-xl);
  margin-bottom: var(--ec-s3);
}

.ec-product-card__body p {
  font-size: var(--ec-text-sm);
  margin-bottom: var(--ec-s5);
}

.ec-product-card__link {
  font-family: var(--ec-font-heading);
  font-weight: 600;
  font-size: var(--ec-text-sm);
  color: var(--ec-teal);
  display: inline-flex;
  align-items: center;
  gap: var(--ec-s1);
}

/* ---------- 10. About / Intro ---------- */
.ec-intro {
  display: flex;
  align-items: center;
  gap: var(--ec-s16);
}

.ec-intro__image { flex: 1; }
.ec-intro__content { flex: 1; }

.ec-intro__image img {
  border-radius: var(--ec-r-lg);
  box-shadow: var(--ec-sh-lg);
}

.ec-intro__content h2 {
  margin-bottom: var(--ec-s5);
}

.ec-intro__content p {
  margin-bottom: var(--ec-s4);
  font-size: var(--ec-text-base);
}

.ec-intro__stats {
  display: flex;
  gap: var(--ec-s8);
  margin-top: var(--ec-s8);
}

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

.ec-stat__number {
  font-family: var(--ec-font-heading);
  font-weight: 800;
  font-size: var(--ec-text-3xl);
  color: var(--ec-teal);
  display: block;
}

.ec-stat__label {
  font-size: var(--ec-text-sm);
  color: var(--ec-text-secondary);
}

@media (max-width: 991px) {
  .ec-intro { flex-direction: column; }
  .ec-intro__image img { max-width: 80%; margin: 0 auto; }
}

/* ---------- 11. Why Choose / Features ---------- */
.ec-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--ec-s6);
}

@media (max-width: 991px) {
  .ec-features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .ec-features { grid-template-columns: 1fr; }
}

.ec-feature {
  text-align: center;
  padding: var(--ec-s6);
}

.ec-feature__icon {
  width: 64px;
  height: 64px;
  border-radius: var(--ec-r-full);
  background: var(--ec-navy);
  color: var(--ec-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--ec-text-2xl);
  margin: 0 auto var(--ec-s5);
}

.ec-feature h3 {
  font-size: var(--ec-text-lg);
  margin-bottom: var(--ec-s2);
}

.ec-feature p {
  font-size: var(--ec-text-sm);
}

/* ---------- 12. Clients ---------- */
.ec-clients {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--ec-s6);
}

.ec-client {
  font-family: var(--ec-font-heading);
  font-weight: 600;
  font-size: var(--ec-text-sm);
  color: var(--ec-text-muted);
  padding: var(--ec-s3) var(--ec-s5);
  border: 1px solid var(--ec-border-light);
  border-radius: var(--ec-r-md);
  background: var(--ec-surface);
  white-space: nowrap;
  transition: all var(--ec-dur) var(--ec-ease);
}

.ec-client:hover {
  color: var(--ec-navy);
  border-color: var(--ec-teal);
  box-shadow: var(--ec-sh-sm);
}

/* ---------- 13. CTA Banner ---------- */
.ec-cta {
  background: linear-gradient(135deg, var(--ec-navy) 0%, var(--ec-navy-light) 100%);
  color: var(--ec-white);
  padding: var(--ec-s16) var(--ec-s12);
  border-radius: var(--ec-r-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ec-cta::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 40%;
  height: 160%;
  background: radial-gradient(ellipse, rgba(0,191,165,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.ec-cta h2 {
  color: var(--ec-white);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: var(--ec-s4);
}

.ec-cta p {
  color: rgba(255,255,255,0.8);
  font-size: var(--ec-text-lg);
  margin-bottom: var(--ec-s8);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.ec-cta__actions {
  display: flex;
  justify-content: center;
  gap: var(--ec-s4);
  flex-wrap: wrap;
}

/* ---------- 14. Footer ---------- */
.ec-footer {
  background: var(--ec-navy);
  color: rgba(255,255,255,0.7);
  padding: var(--ec-s16) 0 var(--ec-s8);
}

.ec-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--ec-s8);
  margin-bottom: var(--ec-s12);
}

.ec-footer h4 {
  color: var(--ec-white);
  font-size: var(--ec-text-base);
  margin-bottom: var(--ec-s5);
}

.ec-footer p,
.ec-footer li {
  font-size: var(--ec-text-sm);
  line-height: var(--ec-leading-relaxed);
}

.ec-footer a {
  color: rgba(255,255,255,0.7);
}

.ec-footer a:hover {
  color: var(--ec-teal);
}

.ec-footer__brand img {
  height: 40px;
  margin-bottom: var(--ec-s4);
}

.ec-footer__brand p {
  margin-bottom: var(--ec-s5);
}

.ec-footer__contact-item {
  display: flex;
  align-items: center;
  gap: var(--ec-s2);
  margin-bottom: var(--ec-s2);
}

.ec-footer__social {
  display: flex;
  gap: var(--ec-s3);
  margin-top: var(--ec-s5);
}

.ec-footer__social a {
  width: 36px;
  height: 36px;
  border-radius: var(--ec-r-full);
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.8);
  font-size: var(--ec-text-sm);
  transition: all var(--ec-dur) var(--ec-ease);
}

.ec-footer__social a:hover {
  background: var(--ec-teal);
  color: var(--ec-white);
}

.ec-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--ec-s6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--ec-s4);
}

.ec-footer__links {
  display: flex;
  gap: var(--ec-s5);
}

@media (max-width: 991px) {
  .ec-footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .ec-footer__grid { grid-template-columns: 1fr; }
  .ec-footer__bottom { flex-direction: column; text-align: center; }
}

/* ---------- 15. Forms ---------- */
.ec-form-group {
  margin-bottom: var(--ec-s5);
}

.ec-form-group label {
  display: block;
  font-weight: 600;
  font-size: var(--ec-text-sm);
  color: var(--ec-text);
  margin-bottom: var(--ec-s2);
}

.ec-form-control {
  width: 100%;
  padding: var(--ec-s3) var(--ec-s4);
  border: 1.5px solid var(--ec-border);
  border-radius: var(--ec-r-md);
  font-family: var(--ec-font-body);
  font-size: var(--ec-text-base);
  color: var(--ec-text);
  background: var(--ec-white);
  transition: border-color var(--ec-dur) var(--ec-ease), box-shadow var(--ec-dur) var(--ec-ease);
}

.ec-form-control:focus {
  outline: none;
  border-color: var(--ec-teal);
  box-shadow: 0 0 0 3px rgba(0,191,165,0.15);
}

.ec-form-control::placeholder {
  color: var(--ec-text-muted);
}

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

.ec-form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--ec-s5);
}

@media (max-width: 767px) {
  .ec-form-row { grid-template-columns: 1fr; }
}

/* Form status messages */
.ec-form-message {
  padding: 0.875rem 1.125rem;
  border-radius: var(--ec-r-md);
  margin-bottom: var(--ec-s5);
  font-size: var(--ec-text-sm);
  font-weight: 500;
}
.ec-form-message--error {
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
}
.ec-form-message--success {
  color: #065f46;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.ec-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--ec-s12);
  align-items: start;
}

.ec-contact-info {
  background: var(--ec-navy);
  color: var(--ec-white);
  padding: var(--ec-s8);
  border-radius: var(--ec-r-lg);
}

.ec-contact-info h3 {
  color: var(--ec-white);
  font-size: var(--ec-text-xl);
  margin-bottom: var(--ec-s3);
}

.ec-contact-info p {
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--ec-s6);
}

.ec-contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: var(--ec-s3);
  margin-bottom: var(--ec-s5);
}

.ec-contact-info__item i {
  color: var(--ec-teal);
  font-size: var(--ec-text-lg);
  margin-top: 2px;
}

.ec-contact-info__item a {
  color: rgba(255,255,255,0.85);
}

.ec-contact-info__item a:hover {
  color: var(--ec-teal);
}

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

/* ---------- 16. Page Header (inner pages) ---------- */
.ec-page-header {
  background: var(--ec-navy);
  color: var(--ec-white);
  padding: var(--ec-s16) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ec-page-header::before {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 50%;
  height: 140%;
  background: radial-gradient(ellipse, rgba(0,191,165,0.10) 0%, transparent 70%);
  pointer-events: none;
}

.ec-page-header h1 {
  color: var(--ec-white);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: var(--ec-s3);
}

.ec-page-header p {
  color: rgba(255,255,255,0.7);
  font-size: var(--ec-text-lg);
  max-width: 600px;
  margin: 0 auto;
}

.ec-breadcrumb {
  display: flex;
  justify-content: center;
  gap: var(--ec-s2);
  font-size: var(--ec-text-sm);
  color: rgba(255,255,255,0.5);
}

.ec-breadcrumb a {
  color: rgba(255,255,255,0.6);
}

.ec-breadcrumb a:hover {
  color: var(--ec-teal);
}

/* ---------- 17. Product Detail ---------- */
.ec-product-detail {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--ec-s12);
  align-items: center;
}

.ec-product-detail__image img {
  border-radius: var(--ec-r-lg);
  box-shadow: var(--ec-sh-lg);
  width: 100%;
}

.ec-product-detail__content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: var(--ec-s5);
}

.ec-product-detail__content p {
  font-size: var(--ec-text-base);
  margin-bottom: var(--ec-s4);
}

.ec-product-detail__features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--ec-s3);
  margin: var(--ec-s6) 0;
}

.ec-product-detail__feature {
  display: flex;
  align-items: center;
  gap: var(--ec-s2);
  font-size: var(--ec-text-sm);
  color: var(--ec-text-secondary);
}

.ec-product-detail__feature i {
  color: var(--ec-teal);
  font-size: var(--ec-text-base);
}

@media (max-width: 991px) {
  .ec-product-detail { grid-template-columns: 1fr; }
  .ec-product-detail__image { order: -1; }
}

/* ---------- 18. Utilities ---------- */
.ec-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.ec-mt-4 { margin-top: var(--ec-s4); }
.ec-mt-8 { margin-top: var(--ec-s8); }
.ec-mb-4 { margin-bottom: var(--ec-s4); }
.ec-mb-8 { margin-bottom: var(--ec-s8); }

.ec-flex { display: flex; }
.ec-items-center { align-items: center; }
.ec-gap-4 { gap: var(--ec-s4); }

/* Animation */
@keyframes ec-fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ec-animate {
  animation: ec-fadeUp 0.5s var(--ec-ease) both;
}

.ec-animate--delay-1 { animation-delay: 0.1s; }
.ec-animate--delay-2 { animation-delay: 0.2s; }
.ec-animate--delay-3 { animation-delay: 0.3s; }
/* ============================================================
   19. Premium Hero Slider
   Two-column layout: text left, visual right.
   Navy-to-blue gradient background with teal accents.
   ============================================================ */

.ec-hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--ec-navy) 0%, var(--ec-navy-light) 100%);
}

.ec-hero-slider__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ec-hero-slider__track::-webkit-scrollbar {
    display: none;
}

.ec-hero-slide {
    flex: 0 0 100%;
    min-width: 100%;
    position: relative;
    scroll-snap-align: start;
}

.ec-hero-slide__inner {
    display: flex;
    align-items: center;
    gap: var(--ec-s10);
    min-height: 520px;
    padding: var(--ec-s12) 0;
}

/* Text column */
.ec-hero-slide__content {
    flex: 0 0 50%;
    max-width: 50%;
    padding-left: var(--ec-s6);
    z-index: 2;
}

.ec-hero-slide__eyebrow {
    display: inline-block;
    font-family: var(--ec-font-heading);
    font-weight: 600;
    font-size: var(--ec-text-sm);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ec-teal);
    margin-bottom: var(--ec-s4);
}

.ec-hero-slide__heading {
    font-family: var(--ec-font-heading);
    font-weight: 700;
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    line-height: var(--ec-leading-tight);
    color: var(--ec-white);
    margin-bottom: var(--ec-s5);
}

.ec-hero-slide__description {
    font-size: var(--ec-text-lg);
    line-height: var(--ec-leading-relaxed);
    color: rgba(255, 255, 255, 0.80);
    margin-bottom: var(--ec-s8);
    max-width: 480px;
}

.ec-hero-slide__actions {
    display: flex;
    gap: var(--ec-s4);
    flex-wrap: wrap;
}

/* Image / visual column */
.ec-hero-slide__visual {
    flex: 0 0 50%;
    max-width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: var(--ec-s6);
    z-index: 2;
}

.ec-hero-slide__image-wrap {
    width: 100%;
    max-width: 520px;
    aspect-ratio: 16 / 12;
    border-radius: var(--ec-r-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ec-hero-slide__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ec-hero-slide__image-wrap--fallback {
    background: linear-gradient(135deg, rgba(0, 191, 165, 0.15) 0%, rgba(36, 59, 138, 0.3) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navigation arrows */
.ec-hero-slider__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: var(--ec-r-full);
    background: rgba(255, 255, 255, 0.12);
    color: var(--ec-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--ec-text-lg);
    transition: all var(--ec-dur) var(--ec-ease);
    backdrop-filter: blur(4px);
}

.ec-hero-slider__nav:hover {
    background: var(--ec-teal);
    border-color: var(--ec-teal);
    box-shadow: var(--ec-sh-md);
}

.ec-hero-slider__nav:focus-visible {
    outline: 2px solid var(--ec-teal);
    outline-offset: 2px;
}

.ec-hero-slider__nav--prev {
    left: var(--ec-s6);
}

.ec-hero-slider__nav--next {
    right: var(--ec-s6);
}

/* Pagination dots */
.ec-hero-slider__dots {
    position: absolute;
    bottom: var(--ec-s6);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: var(--ec-s3);
    align-items: center;
}

.ec-hero-slider__dot {
    width: 12px;
    height: 12px;
    border-radius: var(--ec-r-full);
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all var(--ec-dur) var(--ec-ease);
}

.ec-hero-slider__dot:hover {
    border-color: var(--ec-white);
    background: rgba(255, 255, 255, 0.3);
}

.ec-hero-slider__dot--active {
    background: var(--ec-teal);
    border-color: var(--ec-teal);
    width: 32px;
    border-radius: 6px;
}

.ec-hero-slider__dot:focus-visible {
    outline: 2px solid var(--ec-teal);
    outline-offset: 2px;
}

/* Responsive hero slider */
@media (max-width: 991px) {
    .ec-hero-slide__inner {
        flex-direction: column;
        text-align: center;
        min-height: auto;
        padding: var(--ec-s10) 0;
        gap: var(--ec-s8);
    }
    .ec-hero-slide__content {
        flex: 1 1 auto;
        max-width: 100%;
        padding-left: 0;
        order: 2;
    }
    .ec-hero-slide__visual {
        flex: 1 1 auto;
        max-width: 100%;
        padding-right: 0;
        order: 1;
    }
    .ec-hero-slide__description { max-width: 100%; }
    .ec-hero-slide__actions { justify-content: center; }
    .ec-hero-slide__heading { font-size: clamp(1.5rem, 5vw, 2rem); }
    .ec-hero-slider__nav { width: 40px; height: 40px; font-size: var(--ec-text-base); }
}

@media (max-width: 767px) {
    .ec-hero-slide__inner { padding: var(--ec-s8) 0; }
    .ec-hero-slide__image-wrap { max-width: 100%; aspect-ratio: 16 / 10; }
    .ec-hero-slider__nav { width: 36px; height: 36px; font-size: var(--ec-text-sm); }
    .ec-hero-slider__nav--prev { left: var(--ec-s3); }
    .ec-hero-slider__nav--next { right: var(--ec-s3); }
    .ec-hero-slider__dots { bottom: var(--ec-s4); }
}


/* ============================================================
   20. Trusted Clients — Carousel, Grid and Count
   ============================================================ */

/* Section base */
.ec-clients { background: var(--ec-bg-alt); }
.ec-clients .ec-section-header { margin-bottom: var(--ec-s10); }
.ec-clients .ec-section-header p {
    color: var(--ec-text-secondary);
    font-size: var(--ec-text-lg);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* Client card (shared) */
.ec-client-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--ec-s6) var(--ec-s5);
    background: var(--ec-surface);
    border: 1px solid var(--ec-border-light);
    border-radius: var(--ec-r-md);
    min-height: 100px;
    transition: all var(--ec-dur) var(--ec-ease);
    text-align: center;
}

.ec-client-card:hover {
    border-color: var(--ec-teal);
    box-shadow: var(--ec-sh-sm);
    transform: translateY(-2px);
}

.ec-client-card__logo {
    width: 100%;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--ec-s3);
}

.ec-client-card__logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ec-client-card__logo--empty {
    background: linear-gradient(135deg, var(--ec-bg-alt) 0%, var(--ec-border-light) 100%);
    border-radius: var(--ec-r-sm);
    width: 56px;
    height: 56px;
}

.ec-client-card__name {
    font-family: var(--ec-font-heading);
    font-weight: 600;
    font-size: var(--ec-text-sm);
    color: var(--ec-text);
    line-height: var(--ec-leading-snug);
}

.ec-client-card__link {
    margin-top: var(--ec-s2);
    color: var(--ec-teal);
    font-size: var(--ec-text-sm);
}

/* Grid mode */
.ec-clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--ec-s5);
}
@media (min-width: 1200px) { .ec-clients-grid { grid-template-columns: repeat(5, 1fr); } }

/* Carousel mode */
.ec-carousel { position: relative; padding: 0 var(--ec-s12); }
.ec-carousel__viewport { overflow: hidden; }
.ec-carousel__track {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: 100%;
    gap: var(--ec-s5);
    transition: transform 0.4s var(--ec-ease);
    will-change: transform;
}
.ec-carousel__slide { flex: 0 0 auto; width: calc((100% - (var(--ec-s5) * 4)) / 5); }
.ec-carousel__slide .ec-client-card--carousel { min-height: 120px; }

.ec-carousel__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: var(--ec-r-full);
    background: var(--ec-white);
    color: var(--ec-navy);
    border: 1px solid var(--ec-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--ec-text-base);
    transition: all var(--ec-dur) var(--ec-ease);
    box-shadow: var(--ec-sh-sm);
}

.ec-carousel__nav:hover {
    background: var(--ec-teal);
    color: var(--ec-white);
    border-color: var(--ec-teal);
    box-shadow: var(--ec-sh-md);
}

.ec-carousel__nav:focus-visible { outline: 2px solid var(--ec-teal); outline-offset: 2px; }
.ec-carousel__nav--prev { left: 0; }
.ec-carousel__nav--next { right: 0; }
.ec-carousel__nav:disabled { opacity: 0.35; cursor: not-allowed; }

/* Carousel dots */
.ec-carousel__dots { display: flex; justify-content: center; gap: var(--ec-s2); margin-top: var(--ec-s8); }
.ec-carousel__dot {
    width: 8px; height: 8px;
    border-radius: var(--ec-r-full);
    background: var(--ec-border);
    border: none; cursor: pointer; padding: 0;
    transition: all var(--ec-dur) var(--ec-ease);
}
.ec-carousel__dot--active { background: var(--ec-teal); width: 24px; border-radius: 4px; }
.ec-carousel__dot:focus-visible { outline: 2px solid var(--ec-teal); outline-offset: 2px; }

/* Responsive carousel */
@media (max-width: 1199px) { .ec-carousel__slide { width: calc((100% - (var(--ec-s5) * 3)) / 4); } }
@media (max-width: 991px) {
    .ec-carousel { padding: 0 var(--ec-s10); }
    .ec-carousel__slide { width: calc((100% - var(--ec-s5)) / 3); }
}
@media (max-width: 767px) {
    .ec-carousel { padding: 0 var(--ec-s10); }
    .ec-carousel__slide { width: calc((100% - var(--ec-s5)) / 2); }
    .ec-carousel__nav { width: 36px; height: 36px; font-size: var(--ec-text-sm); }
}
@media (max-width: 479px) { .ec-carousel__slide { width: 100%; } }

/* Count mode */
.ec-clients-count { text-align: center; padding: var(--ec-s12) 0; }
.ec-clients-count__number {
    font-family: var(--ec-font-heading);
    font-weight: 800;
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--ec-teal);
    display: block;
    line-height: 1;
}
.ec-clients-count__label {
    font-family: var(--ec-font-heading);
    font-weight: 600;
    font-size: var(--ec-text-lg);
    color: var(--ec-navy);
    margin-top: var(--ec-s3);
    display: block;
}
