/*
Theme Name: TranslatorPartner
Theme URI: https://translatorpartner.id
Author: TranslatorPartner Studio
Author URI: https://translatorpartner.id
Description: Professional legal document translation theme for TranslatorPartner - a premium, fully customizable WordPress theme designed for translation and legal services companies. Features dynamic Customizer controls, responsive design, and pixel-perfect implementation.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: translatorpartner
Tags: translation, legal, services, professional, responsive, customizer
*/

/* ============================================================
   DESIGN SYSTEM — CSS CUSTOM PROPERTIES (TOKENS)
   ============================================================ */

:root {
  /* === COLOR TOKENS (Tailwind-based) === */
  --slate-950:             #020617;
  --slate-900:             #0F172A;
  --slate-800:             #1E293B;
  --slate-700:             #334155;
  --slate-500:             #64748B;
  --indigo-200:            #CBD5F5;
  --slate-200:             #E2E8F0;
  --slate-100:             #F1F5F9;
  --slate-50:              #F8FAFC;
  --cyan-500:              #06B6D4;
  --cyan-400:              #22D3EE;
  --cyan-300:              #67E8F9;
  --indigo-500:            #6366F1;
  --green-500:             #22C55E;
  --amber-500:             #F59E0B;
  --red-500:               #EF4444;

  /* === SEMANTIC TOKENS === */
  --color-primary:         var(--slate-900);
  --color-primary-dark:    var(--slate-950);
  --color-primary-light:   var(--slate-800);
  --color-secondary:       var(--slate-800);
  --color-secondary-dark:  var(--slate-900);
  --color-accent:          #06B6D4;
  --color-accent-hover:    #22D3EE;
  --color-accent-soft:     rgba(6, 182, 212, 0.1);
  --color-accent-glow:     rgba(6, 182, 212, 0.4);

  --color-bg:              var(--slate-50);
  --color-bg-white:        #FFFFFF;
  --color-bg-dark:         var(--slate-950);
  --color-bg-section:      var(--slate-100);

  --color-text:            var(--slate-800);
  --color-text-muted:      var(--slate-500);
  --color-text-light:      var(--slate-700);
  --color-heading:         var(--slate-900);

  --color-link:            var(--cyan-500);
  --color-link-hover:      var(--cyan-400);

  --color-border:          var(--slate-200);
  --color-border-light:    var(--slate-100);

  --color-success:         var(--green-500);
  --color-error:           var(--red-500);
  --color-warning:         var(--amber-500);
  --color-info:            var(--indigo-500);

  /* === BUTTON TOKENS === */
  --btn-primary-bg:        var(--cyan-500);
  --btn-primary-color:     #FFFFFF;
  --btn-primary-hover-bg:  var(--cyan-400);
  --btn-secondary-bg:      transparent;
  --btn-secondary-color:   var(--slate-900);
  --btn-secondary-border:  var(--slate-900);

  /* === NAVBAR TOKENS === */
  --navbar-bg:             rgba(255, 255, 255, 0.9);
  --navbar-text:           var(--slate-900);
  --navbar-link-color:     var(--slate-900);
  --navbar-link-hover:     var(--cyan-500);
  --navbar-height:         80px;
  --navbar-sticky-bg:      rgba(255, 255, 255, 0.95);

  /* === FOOTER TOKENS === */
  --footer-bg:             var(--slate-950);
  --footer-text:           var(--slate-500);
  --footer-heading:        #FFFFFF;
  --footer-link:           var(--slate-500);
  --footer-link-hover:     var(--cyan-500);
  --footer-border:         var(--slate-900);

  /* === TYPOGRAPHY TOKENS === */
  --font-primary:          'Plus Jakarta Sans', sans-serif;
  --font-heading:          'Plus Jakarta Sans', sans-serif;
  --font-mono:             'JetBrains Mono', monospace;

  --text-xs:     0.75rem;    /* 12px */
  --text-sm:     0.875rem;   /* 14px */
  --text-base:   1rem;       /* 16px */
  --text-lg:     1.125rem;   /* 18px */
  --text-xl:     1.25rem;    /* 20px */
  --text-2xl:    1.5rem;     /* 24px */
  --text-3xl:    1.875rem;   /* 30px */
  --text-4xl:    2.25rem;    /* 36px */
  --text-5xl:    3rem;       /* 48px */
  --text-6xl:    3.75rem;    /* 60px */
  --text-7xl:    4.5rem;     /* 72px */

  --font-regular:   400;
  --font-medium:    500;
  --font-semibold:  600;
  --font-bold:      700;
  --font-extrabold: 800;

  /* Body base is rendered at medium weight for strength */
  --body-weight:    500;

  --leading-tight:  1.2;
  --leading-snug:   1.375;
  --leading-normal: 1.6;
  --leading-relaxed:1.75;

  --tracking-tight:  -0.025em;
  --tracking-normal:  0em;
  --tracking-wide:    0.05em;
  --tracking-wider:   0.1em;

  /* === SPACING TOKENS === */
  --space-1:   0.25rem;   /* 4px  */
  --space-2:   0.5rem;    /* 8px  */
  --space-3:   0.75rem;   /* 12px */
  --space-4:   1rem;      /* 16px */
  --space-5:   1.25rem;   /* 20px */
  --space-6:   1.5rem;    /* 24px */
  --space-8:   2rem;      /* 32px */
  --space-10:  2.5rem;    /* 40px */
  --space-12:  3rem;      /* 48px */
  --space-16:  4rem;      /* 64px */
  --space-20:  5rem;      /* 80px */
  --space-24:  6rem;      /* 96px */
  --space-32:  8rem;      /* 128px */

  /* === LAYOUT TOKENS === */
  --container-max:     1200px;
  --container-wide:    1400px;
  --container-narrow:  900px;
  --container-px:      clamp(1rem, 5vw, 2rem);

  --section-py:        clamp(3rem, 8vw, 6rem);
  --section-py-lg:     clamp(5rem, 10vw, 8rem);
  --section-py-sm:     clamp(2rem, 5vw, 4rem);

  /* === BORDER RADIUS TOKENS === */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-2xl:  32px;
  --radius-full: 9999px;

  /* === SHADOW TOKENS === */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg:   0 10px 40px rgba(0,0,0,0.12);
  --shadow-xl:   0 20px 60px rgba(0,0,0,0.16);
  --shadow-primary: 0 8px 32px rgba(6, 182, 212,0.32);

  /* === TRANSITION TOKENS === */
  --transition-fast:   0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base:   0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:   0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);

  /* === GLASSMORPHISM === */
  --glass-bg:          rgba(255, 255, 255, 0.7);
  --glass-border:      rgba(255, 255, 255, 0.4);
  --glass-blur:        blur(12px);

  /* === Z-INDEX TOKENS === */
  --z-dropdown:  100;
  --z-sticky:    200;
  --z-overlay:   300;
  --z-modal:     400;
  --z-toast:     500;
}

/* ============================================================
   TAILWIND-INSPIRED UTILITIES
   ============================================================ */
.text-primary   { color: var(--color-primary); }
.text-accent    { color: var(--color-accent); }
.text-muted     { color: var(--color-text-muted); }
.text-white     { color: #ffffff; }
.text-slate-900 { color: var(--slate-900); }
.text-slate-800 { color: var(--slate-800); }
.text-slate-500 { color: var(--slate-500); }

.bg-primary     { background-color: var(--color-primary); }
.bg-accent      { background-color: var(--color-accent); }
.bg-slate-950   { background-color: var(--slate-950); }
.bg-slate-900   { background-color: var(--slate-900); }
.bg-slate-50    { background-color: var(--slate-50); }
.bg-white       { background-color: #ffffff; }

.border-primary { border-color: var(--color-primary); }
.border-accent  { border-color: var(--color-accent); }
.border-slate-200 { border-color: var(--slate-200); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-cyan { box-shadow: 0 10px 15px -3px rgba(6, 182, 212, 0.3); }

.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

/* Glassmorphism Utilities */
.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
}

.glass-dark {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animation Utilities */
[data-animate] {
  opacity: 0;
  transition: all var(--transition-slow);
}

[data-animate="fade-up"] { transform: translateY(30px); }
[data-animate="fade-down"] { transform: translateY(-30px); }
[data-animate="fade-left"] { transform: translateX(30px); }
[data-animate="fade-right"] { transform: translateX(-30px); }

[data-animate].is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

.w-full { width: 100%; }
.h-full { height: 100%; }
.flex-1 { flex: 1 1 0%; }

/* Spacing */
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }
.m-0 { margin: 0; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

/* ============================================================
   CSS RESET & BASE
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg-white);
  line-height: var(--leading-normal);
  font-weight: var(--body-weight);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover { color: var(--color-link-hover); }

ul, ol { list-style: none; }

button {
  font-family: var(--font-primary);
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  outline: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  line-height: var(--leading-tight);
  font-weight: var(--font-extrabold);
  letter-spacing: var(--tracking-tight);
}

h1 { font-size: clamp(2.25rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); font-weight: var(--font-bold); }
h4 { font-size: var(--text-lg); font-weight: var(--font-bold); }
h5 { font-size: var(--text-base); font-weight: var(--font-bold); }
h6 { font-size: var(--text-sm); font-weight: var(--font-bold); }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

.container--wide    { max-width: var(--container-wide); }
.container--narrow  { max-width: var(--container-narrow); }

.section {
  padding-block: var(--section-py);
}
.section--lg { padding-block: var(--section-py-lg); }
.section--sm { padding-block: var(--section-py-sm); }
.section--bg { background-color: var(--color-bg-section); }
.section--dark {
  background-color: var(--color-bg-dark);
  color: #fff;
}
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: #fff;
}

/* Grid */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-8); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }

/* Flex */
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col     { display: flex; flex-direction: column; }
.flex-gap-4   { gap: var(--space-4); }
.flex-gap-6   { gap: var(--space-6); }
.flex-gap-8   { gap: var(--space-8); }

/* Text alignment */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

/* ============================================================
   TYPOGRAPHY COMPONENTS
   ============================================================ */

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: var(--font-extrabold);
  color: var(--color-heading);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

.section-title .highlight {
  color: var(--color-primary);
}

.section-subtitle {
  font-size: var(--text-lg);
  font-weight: var(--font-medium);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  max-width: 600px;
}

.section-header {
  margin-bottom: var(--space-16);
}

.section-header--center {
  text-align: center;
}

.section-header--center .section-subtitle {
  margin-inline: auto;
}

.section-header--center .section-label {
  justify-content: center;
}

/* ============================================================
   BUTTON COMPONENTS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.75rem 1.5rem;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  letter-spacing: 0.01em;
}

.btn--primary {
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-color);
  border-color: var(--btn-primary-bg);
}

.btn--primary:hover {
  background-color: var(--btn-primary-hover-bg);
  border-color: var(--btn-primary-hover-bg);
  color: var(--btn-primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-heading);
  border-color: var(--color-border);
}

.btn--secondary:hover {
  background-color: var(--color-heading);
  color: #fff;
  border-color: var(--color-heading);
  transform: translateY(-2px);
}

.btn--outline-white {
  background-color: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}

.btn--outline-white:hover {
  background-color: #fff;
  color: var(--color-heading);
}

.btn--dark {
  background-color: var(--color-secondary);
  color: #fff;
  border-color: var(--color-secondary);
}

.btn--dark:hover {
  background-color: #000;
  border-color: #000;
  color: #fff;
  transform: translateY(-2px);
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: var(--text-base);
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: var(--text-xs);
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ============================================================
   CARD COMPONENTS
   ============================================================ */

.card {
  background: var(--color-bg-white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

.card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card--dark {
  background: var(--color-secondary);
  color: #fff;
  border-color: transparent;
}

.card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(6, 182, 212,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  flex-shrink: 0;
}

.card__icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
}

.card__title {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-3);
  color: var(--color-heading);
}

.card--dark .card__title { color: #fff; }

.card__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

.card--dark .card__text { color: rgba(255,255,255,0.65); }

/* ============================================================
   BADGE
   ============================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge--primary {
  background: var(--color-primary);
  color: var(--color-heading);
}

.badge--dark {
  background: var(--color-secondary);
  color: #fff;
}

.badge--outline {
  background: transparent;
  border: 1.5px solid var(--color-border);
  color: var(--color-text-muted);
}

/* ============================================================
   BREADCRUMB
   ============================================================ */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}

.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb__sep { opacity: 0.4; }
.breadcrumb__current { color: var(--color-heading); font-weight: var(--font-medium); }

/* ============================================================
   CTA DARK BLOCK
   ============================================================ */

.cta-block {
  background: var(--color-secondary-dark);
  border-radius: var(--radius-2xl);
  padding: clamp(2.5rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  position: relative;
  overflow: hidden;
}

.cta-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(6, 182, 212,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-block__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
  background: rgba(6, 182, 212,0.12);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.cta-block__title {
  font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
  font-weight: var(--font-extrabold);
  color: #fff;
  line-height: var(--leading-snug);
  margin-bottom: var(--space-4);
}

.cta-block__text {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.65);
  line-height: var(--leading-relaxed);
  max-width: 500px;
}

.cta-block__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-3);
  flex-shrink: 0;
}

.cta-block__note {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
  text-align: right;
}

/* ============================================================
   STAT CARD
   ============================================================ */

.stat-item {
  text-align: center;
}

.stat-item__number {
  font-size: clamp(var(--text-3xl), 3vw, var(--text-5xl));
  font-weight: var(--font-extrabold);
  color: var(--color-heading);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-item__label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ============================================================
   ICON BOX
   ============================================================ */

.icon-box {
  display: flex;
  gap: var(--space-5);
  padding: var(--space-6);
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

.icon-box:hover {
  border-color: rgba(6, 182, 212,0.3);
  box-shadow: var(--shadow-md);
}

.icon-box__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(6, 182, 212,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-box__icon svg {
  width: 22px;
  height: 22px;
  color: var(--color-primary);
}

.icon-box__title {
  font-size: var(--text-base);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-1);
  color: var(--color-heading);
}

.icon-box__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

/* ============================================================
   PROCESS STEPS
   ============================================================ */

.process-step {
  text-align: center;
  position: relative;
}

.process-step__num {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(6, 182, 212,0.1);
  border: 2px solid rgba(6, 182, 212,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  margin-bottom: var(--space-5);
}

.process-step__num svg {
  width: 26px;
  height: 26px;
  color: var(--color-primary);
}

.process-step__title {
  font-size: var(--text-base);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-2);
}

.process-step__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-3);
  transition: all var(--transition-base);
}

.faq-item.is-open {
  border-color: rgba(6, 182, 212,0.3);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  cursor: pointer;
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--color-heading);
  background: var(--color-bg-white);
  user-select: none;
  transition: background var(--transition-fast);
}

.faq-question:hover { background: var(--color-bg-section); }

.faq-question__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(6, 182, 212,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-base);
}

.faq-item.is-open .faq-question__icon {
  background: var(--color-primary);
  transform: rotate(45deg);
}

.faq-question__icon svg {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
  transition: color var(--transition-fast);
}

.faq-item.is-open .faq-question__icon svg { color: #fff; }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1);
}

.faq-item.is-open .faq-answer { max-height: 400px; }

.faq-answer__inner {
  padding: 0 var(--space-6) var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

/* ============================================================
   BLOG CARD
   ============================================================ */

.blog-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.blog-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.blog-card:hover .blog-card__image img {
  transform: scale(1.05);
}

.blog-card__badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
}

.blog-card__body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.blog-card__meta svg {
  width: 14px;
  height: 14px;
  color: var(--color-primary);
}

.blog-card__title {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--color-heading);
  line-height: var(--leading-snug);
  transition: color var(--transition-fast);
}

.blog-card__title:hover { color: var(--color-primary); }

.blog-card__excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-primary);
  margin-top: auto;
  transition: gap var(--transition-fast);
}

.blog-card__link:hover { gap: var(--space-3); }

.blog-card__link svg { width: 14px; height: 14px; }

/* ============================================================
   PAGE HERO
   ============================================================ */

.page-hero {
  background-color: var(--color-bg-section);
  padding-block: clamp(3rem, 6vw, 5rem) clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}

.page-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-12);
}

.page-hero__label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.page-hero__title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-6xl));
  font-weight: var(--font-extrabold);
  color: var(--color-heading);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-6);
}

.page-hero__text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  max-width: 480px;
}

.page-hero__image {
  position: relative;
}

.page-hero__image img {
  width: 100%;
  border-radius: var(--radius-2xl);
  object-fit: cover;
}

.page-hero__image-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-xl);
  background: var(--color-primary);
  z-index: -1;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */

.testimonial-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
  position: relative;
}

.testimonial-card:hover {
  border-color: rgba(6, 182, 212,0.2);
  box-shadow: var(--shadow-lg);
}

.testimonial-card__stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-4);
  color: var(--color-primary);
}

.testimonial-card__stars svg {
  width: 16px;
  height: 16px;
  fill: var(--color-primary);
}

.testimonial-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
  font-style: italic;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-bold);
  font-size: var(--text-sm);
  color: var(--color-primary);
  flex-shrink: 0;
}

.testimonial-card__name {
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  color: var(--color-heading);
}

.testimonial-card__role {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-heading);
}

.form-input {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text);
  background: var(--color-bg-white);
  transition: border-color var(--transition-fast);
  width: 100%;
}

.form-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(6, 182, 212,0.15);
}

.form-input::placeholder { color: var(--color-text-light); }

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

/* Dark form variant */
.form--dark .form-input {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
  color: #fff;
}

.form--dark .form-input::placeholder { color: rgba(255,255,255,0.4); }
.form--dark .form-input:focus {
  border-color: var(--color-primary);
  background: rgba(255,255,255,0.1);
}

.form--dark .form-label { color: rgba(255,255,255,0.8); }

/* ============================================================
   SERVICE CARD
   ============================================================ */

.service-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.service-card:hover {
  border-color: rgba(6, 182, 212,0.25);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(6, 182, 212,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card__icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-primary);
}

.service-card__title {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--color-heading);
}

.service-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  flex: 1;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-primary);
  transition: gap var(--transition-fast);
}

.service-card__link:hover { gap: var(--space-3); }
.service-card__link svg { width: 14px; height: 14px; }

/* Client logos are now rendered as a 2-row grid — see components.css .clients-grid */

/* ============================================================
   LANGUAGE BADGES — see components.css .lang-badge-card
   Full redesign with SVG flags and dark section background.
   ============================================================ */

/* ============================================================
   BACK TO TOP
   ============================================================ */

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: var(--z-sticky);
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-primary);
  border: none;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
}

.back-to-top svg { width: 18px; height: 18px; }

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */

.whatsapp-float {
  position: fixed;
  bottom: 5rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-sticky);
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: all var(--transition-base);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.5);
  color: #fff;
}

.whatsapp-float svg { width: 26px; height: 26px; }

/* ============================================================
   UTILITY — MISC
   ============================================================ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin-block: var(--space-8);
}

.text-primary { color: var(--color-primary); }
.text-muted   { color: var(--color-text-muted); }
.text-white   { color: #fff; }
.fw-bold      { font-weight: var(--font-bold); }
.fw-semibold  { font-weight: var(--font-semibold); }

.mt-auto { margin-top: auto; }
.mb-4    { margin-bottom: var(--space-4); }
.mb-6    { margin-bottom: var(--space-6); }
.mb-8    { margin-bottom: var(--space-8); }

/* ============================================================
   RESPONSIVE — TABLET & MOBILE
   ============================================================ */

@media (max-width: 1024px) {
  :root {
    --container-px: 1.5rem;
  }
  .grid-4  { grid-template-columns: repeat(2, 1fr); }
  .page-hero__inner { gap: var(--space-8); }
}

@media (max-width: 768px) {
  :root {
    --container-px: 1.25rem;
  }
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .page-hero__inner {
    grid-template-columns: 1fr;
  }
  .page-hero__image { display: none; }
  .cta-block {
    flex-direction: column;
    align-items: flex-start;
  }
  .cta-block__actions { align-items: flex-start; }
  .section-title { font-size: var(--text-3xl); }
}

@media (max-width: 480px) {
  :root {
    --container-px: 1rem;
  }
  .btn--lg { padding: 0.875rem 1.5rem; }
  .section-title { font-size: var(--text-2xl); }
}

/* ============================================================
   ENHANCED MICRO-INTERACTIONS & UI POLISH v1.1.0
   ============================================================ */

/* Button enhanced hover states */
.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn--primary:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 8px 28px rgba(6, 182, 212,0.4);
}

.btn--secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.btn--dark:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* Service card — accent left border on hover */
.service-card {
  border-left: 3px solid transparent;
  transition: border-color var(--transition-base),
              box-shadow var(--transition-base),
              transform var(--transition-base);
}
.service-card:hover {
  border-left-color: var(--color-primary);
}

/* Feature card — icon scale on hover */
.features-card .card__icon {
  transition: transform var(--transition-spring), background var(--transition-base);
}
.features-card:hover .card__icon {
  transform: scale(1.12) rotate(-4deg);
  background: rgba(6, 182, 212,0.2);
}

/* Blog card link arrow nudge */
.blog-card__link {
  position: relative;
  overflow: hidden;
}
.blog-card__link span { display: inline-block; transition: transform var(--transition-base); }
.blog-card:hover .blog-card__link span { transform: translateX(4px); }

/* Hero float cards pulse ring on hover */
.hero-float-card {
  cursor: default;
  transition: box-shadow var(--transition-base), transform var(--transition-fast);
}
.hero-float-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  transform: translateY(-6px) !important;
}

/* Testimonial card hover lift */
.testimonial-card {
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

/* Process step icon spin on hover */
.process-step__num {
  transition: transform var(--transition-spring), background var(--transition-base);
}
.process-step:hover .process-step__num {
  transform: rotate(12deg) scale(1.1);
  background: rgba(6, 182, 212,0.2);
}

/* Icon box border glow on hover */
.icon-box {
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}
.icon-box:hover {
  transform: translateY(-2px);
}

/* FAQ item smooth colour transition */
.faq-item {
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

/* Header CTA button pulse on page load */
@keyframes ctaPulse {
  0%   { box-shadow: 0 0 0 0 rgba(6, 182, 212,0.4); }
  70%  { box-shadow: 0 0 0 10px rgba(6, 182, 212,0); }
  100% { box-shadow: 0 0 0 0 rgba(6, 182, 212,0); }
}
.header-cta {
  animation: ctaPulse 2.5s ease-out 1.5s 2;
}

/* WhatsApp float breathe animation */
@keyframes waBreathe {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50%     { box-shadow: 0 6px 32px rgba(37,211,102,0.65); }
}
.whatsapp-float {
  animation: waBreathe 3s ease-in-out infinite;
}

/* Back-to-top button spin icon on hover */
.back-to-top svg {
  transition: transform var(--transition-spring);
}
.back-to-top:hover svg {
  transform: translateY(-3px);
}

/* Social link bounce */
.social-link {
  transition: all var(--transition-spring);
}
.social-link:hover {
  transform: translateY(-4px) scale(1.12);
}

/* Footer links subtle slide */
.footer-links a {
  position: relative;
  padding-left: 0;
  transition: color var(--transition-fast), padding-left var(--transition-base);
}
.footer-links a:hover {
  padding-left: var(--space-2);
}

/* Section label line grow on reveal */
.section-label::before {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(.4,0,.2,1) 0.2s;
}
[data-animate].is-visible .section-label::before,
.section-label {
  transform-origin: left;
}
/* Always show the line (since labels aren't always inside animated containers) */
.section-label::before { transform: scaleX(1); }

/* Smooth image load fade */
img {
  opacity: 0;
  transition: opacity 0.4s ease;
}
img.loaded,
img[loading="eager"] {
  opacity: 1;
}

/* Range input (calculator) styling */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 5px;
  border-radius: 3px;
  background: var(--color-border);
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(6, 182, 212,0.4);
}

/* ============================================================
   CORE WEB VITALS — CLS, LCP, FID/INP OPTIMISATIONS
   ============================================================ */

/* Prevent CLS: reserve space for images before they load */
img {
  aspect-ratio: attr(width) / attr(height);
}

/* Skeleton loading state for images */
img:not(.loaded) {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
}

@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Prevent layout shift from web fonts — system fallback sized correctly */
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* font-display: swap declared inline in resource hints (performance.php) */

/* Prevent CLS from hero float cards */
.hero-float-card {
  contain: layout style;
}

/* Prevent CLS from sticky header */
.site-header {
  contain: layout style;
}

/* content-visibility: auto — defer off-screen rendering for INP/LCP */
.features-section,
.testimonials-section,
.faq-section,
.related-posts,
.values-section,
.map-section {
  content-visibility: auto;
  contain-intrinsic-size: 0 500px;
}

/* Prevent CLS from nav items loading in */
.nav-menu .menu-item {
  min-width: 0;
}

/* Force hardware-accelerated layers for animated elements */
.hero-float-card,
.back-to-top,
.whatsapp-float,
.mobile-nav,
.site-header {
  transform: translateZ(0);
  will-change: transform;
}

/* Ensure interaction is smooth — touch-action for scrollable areas */
.clients-grid,
.lang-grid,
.blog-grid,
.services-main-grid,
.features-grid {
  touch-action: pan-y;
}

/* Remove will-change after animation completes (memory optimisation) */
.is-visible {
  will-change: auto;
}

/* ============================================================
   ACCESSIBILITY — Focus styles, skip links, ARIA
   ============================================================ */

/* Skip to content link */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  z-index: 9999;
  padding: var(--space-3) var(--space-6);
  background: var(--color-primary);
  color: var(--color-secondary);
  font-weight: var(--font-bold);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-to-content:focus {
  top: var(--space-4);
}

/* Visible focus rings for keyboard navigation */
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Remove focus ring for mouse users */
:focus:not(:focus-visible) {
  outline: none;
}

/* Ensure links have sufficient colour contrast */
a:not(.btn):focus-visible {
  background: rgba(6, 182, 212,0.15);
  outline: 2px solid var(--color-primary);
  border-radius: 2px;
}

/* Button focus */
.btn:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 4px;
}

/* Form input focus */
.form-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(6, 182, 212,0.2);
  outline: none;
}

/* ============================================================
   PRINT STYLES
   ============================================================ */

@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  .site-header,
  .site-footer,
  .back-to-top,
  .whatsapp-float,
  .mobile-nav,
  .mobile-nav-backdrop,
  .hero-float-card,
  .cta-section,
  [data-animate]:not(.is-visible) {
    display: none !important;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.75em;
    color: #555;
  }

  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  p, h2, h3 {
    orphans: 3;
    widows: 3;
    page-break-after: avoid;
  }

  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }
}
