/* =========================================
   NATTIRA TRANSLATIONS - MASTER STYLESHEET
   ========================================= */

/* =========================================
   1. CSS VARIABLES
   ========================================= */

:root {
  /* Primary Colors (from logo) */
  --navy: #0F2B5B;
  --teal: #3BB8A8;
  --gray: #7A8B9A;

  /* Navy variants */
  --navy-dark: #091D3E;
  --navy-light: #1A3D7C;
  --navy-10: #E8EDF4;

  /* Teal variants */
  --teal-dark: #2A9A8C;
  --teal-light: #5FD4C4;
  --teal-10: #E8F8F5;
  --teal-5: #F3FBFA;

  /* Gray variants */
  --gray-dark: #5A6B7A;
  --gray-light: #A0ADB8;
  --gray-bg: #F4F6F8;

  /* Neutrals */
  --white: #FFFFFF;
  --off-white: #FAFBFC;
  --dark: #0A1929;

  /* Typography */
  --font-display: 'DM Serif Display', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 100px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 16px;
  --radius-2xl: 20px;

  /* Shadows */
  --shadow-sm: 0 2px 12px rgba(15, 43, 91, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 43, 91, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 43, 91, 0.08);
  --shadow-xl: 0 20px 60px rgba(15, 43, 91, 0.08);
  --shadow-teal: 0 8px 24px rgba(59, 184, 168, 0.25);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.4s ease;
}

/* =========================================
   2. RESET / BASE
   ========================================= */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--gray-dark);
  background-color: var(--white);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

input, button, textarea, select {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* =========================================
   3. TYPOGRAPHY
   ========================================= */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: var(--space-lg);
}

h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: var(--space-md);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.15; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.25rem; }

p {
  margin-bottom: var(--space-lg);
  color: var(--gray-dark);
  line-height: 1.65;
}

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

strong {
  font-weight: 700;
  color: var(--navy);
}

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

/* =========================================
   4. LAYOUT UTILITIES
   ========================================= */

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-4xl) 0;
}

.section-gray { background-color: var(--gray-bg); }
.section-teal { background-color: var(--teal-10); }

/* Skip to content */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--navy);
  color: var(--white);
  padding: var(--space-md) var(--space-lg);
  z-index: 10000;
  transition: top var(--transition-base);
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}

.skip-to-content:focus {
  top: 0;
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

/* Fade-in scroll animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Screen reader only */
.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;
}

/* Section label / eyebrow */
.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-md);
}

/* =========================================
   5. BREADCRUMB
   ========================================= */

.breadcrumb {
  padding-top: calc(60px + var(--space-lg));
  background: linear-gradient(135deg, rgba(15, 43, 91, 0.02) 0%, rgba(59, 184, 168, 0.03) 100%);
}

.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
  color: var(--gray);
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  color: var(--gray-light);
  margin-left: var(--space-xs);
}

.breadcrumb a {
  color: var(--teal);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
  color: var(--navy);
  font-weight: 500;
}

/* =========================================
   6. PAGE HEADER (shared inner pages)
   ========================================= */

.breadcrumb + .page-header {
  padding-top: var(--space-xl);
}

.page-header {
  padding: calc(var(--space-4xl) + 60px) 0 var(--space-2xl);
  text-align: center;
  background: linear-gradient(135deg, rgba(15, 43, 91, 0.02) 0%, rgba(59, 184, 168, 0.03) 100%);
}

.page-header .section-label {
  margin-bottom: var(--space-sm);
}

.page-header h1 {
  margin-bottom: var(--space-md);
}

.page-intro {
  font-size: 1.1rem;
  color: var(--gray-dark);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* =========================================
   6. NAVIGATION
   ========================================= */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15, 43, 91, 0.06);
  z-index: 1000;
  transition: box-shadow var(--transition-base);
}

.site-nav.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  max-width: 1140px;
  margin: 0 auto;
}

.nav-logo {
  flex-shrink: 0;
}

.nav-logo img {
  width: 180px;
  height: auto;
  display: block;
}

/* Desktop nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
  margin: 0;
  padding: 0;
  margin-right: 120px; /* Reserve space for Weglot widget */
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
  position: relative;
  padding: var(--space-sm) 0;
  transition: color var(--transition-base);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--teal);
  transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-link:focus::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover { color: var(--teal-dark); }

/* Nav CTA button */
.nav-cta {
  background-color: var(--navy);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}

.nav-cta:hover {
  background-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-teal);
}

.nav-cta::after { display: none !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
}

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

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

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

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

/* =========================================
   7. FOOTER
   ========================================= */

.site-footer {
  background-color: var(--navy-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand .footer-logo {
  margin-bottom: 0;
}

.footer-brand .footer-logo img {
  height: 120px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-brand > p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
}

.footer-col h4 {
  color: var(--teal-light);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-lg);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-col ul li {
  font-size: 0.9rem;
}

.footer-payment {
  font-size: 0.85rem;
  line-height: 1.5;
  opacity: 0.85;
}

.footer-col ul a {
  font-size: 0.9rem;
  transition: color var(--transition-base), padding-left var(--transition-base);
  display: inline-block;
}

.footer-col ul a:hover,
.footer-col ul a:focus {
  color: var(--white);
  padding-left: 4px;
}

.footer-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: var(--space-lg);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom p { color: rgba(255, 255, 255, 0.5); }
.footer-bottom a { color: rgba(255, 255, 255, 0.6); text-decoration: none; }
.footer-bottom a:hover { color: rgba(255, 255, 255, 0.9); text-decoration: underline; }

/* =========================================
   8. BUTTONS
   ========================================= */

.btn-primary {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  background-color: var(--navy);
  color: var(--white);
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  line-height: 1.4;
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
}

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

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

.btn-secondary {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  background-color: transparent;
  color: var(--navy);
  padding: 12px 30px;
  border: 2px solid rgba(15, 43, 91, 0.15);
  border-radius: var(--radius-sm);
  line-height: 1.4;
  transition: all var(--transition-base);
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: var(--teal);
  color: var(--teal);
  background-color: var(--teal-5);
}

.btn-secondary:focus {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

.btn-full-width {
  width: 100%;
}

/* =========================================
   9. CARDS
   ========================================= */

/* Service cards (homepage) */
.service-card {
  background-color: var(--white);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--teal));
  opacity: 0;
  transition: opacity var(--transition-base);
}

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

.service-card:hover::before {
  opacity: 1;
}

.service-card .service-icon {
  width: 56px;
  height: 56px;
  background-color: var(--teal-10);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  color: var(--teal);
}

.service-card h3 {
  margin-bottom: var(--space-sm);
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: var(--space-lg);
}

.service-card-link {
  color: var(--teal);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color var(--transition-base);
}

.service-card-link:hover {
  color: var(--teal-dark);
}

/* Stat cards (about page) */
.stat-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base);
}

.stat-card:hover {
  transform: translateY(-2px);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
  margin-bottom: var(--space-sm);
  font-family: var(--font-display);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--gray-dark);
  font-weight: 500;
}

/* Contact cards (contact page sidebar) */
.contact-card {
  background-color: var(--gray-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.contact-card .contact-icon {
  width: 48px;
  height: 48px;
  background-color: var(--teal-10);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  flex-shrink: 0;
}

.contact-card h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray);
  margin-bottom: var(--space-xs);
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-card a {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color var(--transition-base);
}

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

/* =========================================
   10. FORMS
   ========================================= */

.form-wrapper {
  background-color: var(--white);
  padding: var(--space-2xl);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
}

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

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.01em;
}

label .required {
  color: #E53E3E;
  margin-left: 2px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="url"],
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(15, 43, 91, 0.12);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--dark);
  background-color: var(--white);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(59, 184, 168, 0.1);
}

input::placeholder,
textarea::placeholder {
  color: #B0BEC5;
}

textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--font-body);
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230F2B5B' d='M1.41 0L6 4.59L10.59 0L12 1.41l-6 6l-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* Form rows (side-by-side fields) */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

/* Error states */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: #E53E3E;
}

.error-msg {
  display: block;
  color: #E53E3E;
  font-size: 0.8rem;
  margin-top: var(--space-xs);
  font-weight: 500;
  min-height: 0;
}

/* Conditional fields */
.conditional-fields {
  overflow: hidden;
}

.radio-group {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-top: var(--space-xs);
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--navy);
}

.radio-label input[type="radio"] {
  accent-color: var(--teal);
  width: 1rem;
  height: 1rem;
  margin: 0;
}

.mailing-note {
  font-size: 0.9rem;
  color: var(--navy);
  opacity: 0.75;
  margin-bottom: var(--space-md);
}

/* Form success message */
.form-success {
  text-align: center;
  padding: var(--space-2xl);
}

.form-success .success-icon {
  color: var(--teal);
  margin: 0 auto var(--space-lg);
}

.form-success h2 {
  color: var(--teal-dark);
  margin-bottom: var(--space-md);
}

.form-success p {
  color: var(--gray-dark);
  margin-bottom: var(--space-xl);
}

/* =========================================
   11. FAQ ACCORDION
   ========================================= */

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid rgba(15, 43, 91, 0.08);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
  overflow: hidden;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.faq-item.active {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(59, 184, 168, 0.08);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: var(--space-lg) var(--space-xl);
  background-color: var(--white);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-lg);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  border: none;
  transition: background-color var(--transition-base);
}

.faq-question:hover {
  background-color: var(--teal-5);
}

.faq-question:focus {
  outline: 2px solid var(--teal);
  outline-offset: -2px;
}

.faq-chevron {
  width: 24px;
  height: 24px;
  color: var(--teal);
  transition: transform var(--transition-base);
  flex-shrink: 0;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.faq-answer-content {
  padding: 0 var(--space-xl) var(--space-lg);
  color: var(--gray-dark);
  line-height: 1.7;
}

.faq-answer-content p {
  font-size: 0.95rem;
}

/* FAQ subsections for long answers */
.faq-subsection {
  margin-top: var(--space-lg);
}

.faq-subsection:first-child {
  margin-top: 0;
}

.faq-subsection h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--space-sm);
}

/* =========================================
   12. SCROLL-TO-TOP BUTTON
   ========================================= */

.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background-color: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base), background-color var(--transition-base), transform var(--transition-base);
  z-index: 999;
  border: none;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-top:hover {
  background-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-teal);
}

.scroll-top:focus {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

/* =========================================
   13. HOMEPAGE
   ========================================= */

/* Hero */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: calc(var(--space-4xl) + 60px) 0 var(--space-4xl);
  background: linear-gradient(135deg, rgba(15, 43, 91, 0.02) 0%, rgba(59, 184, 168, 0.03) 100%);
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.hero-text h1 {
  margin-bottom: var(--space-lg);
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  color: var(--gray-dark);
}

.hero-cta {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(15, 43, 91, 0.15);
  object-fit: cover;
}

/* Services overview (homepage cards) */
.services-preview {
  padding: var(--space-4xl) 0;
}

.services-preview .section-label,
.services-preview h2 {
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

/* Languages strip */
.languages-strip {
  background-color: var(--off-white);
  padding: var(--space-2xl) 0;
  border-top: 1px solid rgba(15, 43, 91, 0.06);
  border-bottom: 1px solid rgba(15, 43, 91, 0.06);
  text-align: center;
}

.languages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  text-align: center;
}

.language-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.language-card .language-icon {
  width: 56px;
  height: 56px;
  background-color: var(--teal-10);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--teal);
}

.language-card h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--navy);
}

.language-card p {
  font-size: 0.82rem;
  color: var(--gray);
  margin: 0;
}

/* Contact banner */
.contact-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: var(--space-2xl) 0;
  color: var(--white);
}

.contact-banner h2 {
  text-align: center;
  color: var(--white);
  margin-bottom: var(--space-2xl);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.contact-item {
  text-align: center;
  padding: var(--space-lg);
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  transition: background var(--transition-base);
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.12);
}

.contact-item .contact-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  color: var(--teal-light);
}

.contact-item h3 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-item a {
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color var(--transition-base);
}

.contact-item a:hover {
  color: var(--teal-light);
}

/* CTA section */
.cta-section {
  padding: var(--space-4xl) 0;
  text-align: center;
  background-color: var(--teal-10);
}

.cta-section h2 {
  margin-bottom: var(--space-md);
}

.cta-section p {
  font-size: 1.1rem;
  margin-bottom: var(--space-xl);
}

/* =========================================
   14. SERVICES PAGE
   ========================================= */

.service-detail {
  padding: var(--space-4xl) 0;
}

.service-detail-content {
  max-width: 720px;
  margin: 0 auto;
}

.service-detail .service-icon {
  width: 64px;
  height: 64px;
  background-color: var(--teal-10);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  color: var(--teal);
}

.service-detail h2 {
  margin-bottom: var(--space-lg);
}

.service-description {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

.service-languages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  font-size: 0.95rem;
  color: var(--gray-dark);
}

.service-languages .dot {
  width: 5px;
  height: 5px;
  background-color: var(--teal);
  border-radius: 50%;
  display: inline-block;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.tag {
  background-color: var(--teal-10);
  color: var(--teal-dark);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
}

.service-cta {
  color: var(--teal);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color var(--transition-base);
  display: inline-block;
}

.service-cta:hover {
  color: var(--teal-dark);
}

/* =========================================
   15. ABOUT PAGE
   ========================================= */

.about-content {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.mission-section {
  padding: var(--space-2xl) 0;
  background-color: var(--gray-bg);
}

.mission-box {
  background-color: var(--teal-10);
  border-left: 4px solid var(--teal);
  padding: var(--space-xl);
  border-radius: var(--radius-md);
  max-width: 720px;
  margin: 0 auto;
}

.mission-box p {
  font-size: 1.1rem;
  line-height: 1.7;
  font-style: italic;
  margin: 0;
}

.goal-section {
  padding: var(--space-2xl) 0;
  text-align: center;
}

/* =========================================
   16. CONTACT PAGE
   ========================================= */

.contact-content {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: var(--space-2xl);
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* =========================================
   17. LEGAL PAGES (Privacy, Terms)
   ========================================= */

.legal-content {
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.8;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--navy);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.legal-content p,
.legal-content ul {
  margin-bottom: var(--space-md);
  color: var(--gray-dark);
}

.legal-content ul {
  padding-left: var(--space-lg);
}

.legal-content li {
  margin-bottom: var(--space-xs);
}

.legal-content a {
  color: var(--teal);
}

.legal-content .legal-updated {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: var(--space-xl);
}

/* =========================================
   18. 404 PAGE
   ========================================= */

.error-page {
  text-align: center;
  padding: calc(var(--space-4xl) + 80px) 0 var(--space-4xl);
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.error-code {
  display: block;
  font-size: clamp(6rem, 15vw, 10rem);
  font-family: var(--font-display);
  color: var(--gray-light);
  line-height: 1;
  margin-bottom: var(--space-lg);
}

.error-page h1 {
  margin-bottom: var(--space-md);
}

.error-page p {
  font-size: 1.1rem;
  max-width: 480px;
  margin: 0 auto var(--space-2xl);
}

.error-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
}

.error-link-card {
  display: block;
  padding: var(--space-xl) var(--space-lg);
  background-color: var(--gray-bg);
  border-radius: var(--radius-lg);
  transition: background-color var(--transition-base), transform var(--transition-base);
}

.error-link-card:hover {
  background-color: var(--teal-10);
  transform: translateY(-4px);
}

.error-link-card .error-icon {
  color: var(--teal);
  margin: 0 auto var(--space-md);
}

.error-link-card h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--space-xs);
}

.error-link-card p {
  font-size: 0.85rem;
  color: var(--gray);
  margin: 0;
}

/* =========================================
   18. RESPONSIVE BREAKPOINTS
   ========================================= */

/* Tablet Landscape */
@media (max-width: 1024px) {
  .hero {
    min-height: 75vh;
  }

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

/* Tablet Portrait */
@media (max-width: 900px) {
  .section,
  .service-detail {
    padding: 60px 0;
  }

  .page-header {
    padding: calc(60px + 60px) 0 var(--space-xl);
  }

  /* Navigation: hide desktop links, show hamburger */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100vh - 60px);
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-right: 0;
    padding: var(--space-sm) 0;
    overflow-y: auto;
  }

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

  .nav-links li {
    width: 100%;
  }

  .nav-links .nav-link {
    display: flex;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    min-height: 48px;
    border-bottom: 1px solid rgba(15, 43, 91, 0.04);
    width: 100%;
  }

  .nav-links .nav-link:hover {
    background-color: var(--teal-10);
  }

  .nav-links .nav-link.active {
    border-left: 3px solid var(--teal);
    background-color: var(--teal-5);
    color: var(--teal-dark);
  }

  .nav-links .nav-link::after {
    display: none;
  }

  .nav-links .nav-cta {
    margin: var(--space-md) 0 0 0;
    padding: var(--space-md) var(--space-lg);
    text-align: center;
    justify-content: center;
    width: 100%;
  }

  .nav-links .nav-cta.active {
    background-color: var(--navy);
    color: var(--white) !important;
    border-left: 3px solid var(--teal);
  }

  .hamburger {
    display: flex;
  }

  /* Grid collapses */
  .hero-content,
  .services-grid,
  .about-content,
  .contact-content,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--space-2xl) + 60px) 0 var(--space-2xl);
  }

  .hero-text { text-align: center; }
  .hero-cta { justify-content: center; }
  .hero-image { order: -1; }
  .hero-image img { max-width: 100%; }

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

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

  .error-links {
    grid-template-columns: 1fr;
    max-width: 300px;
  }

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

  .footer-grid {
    gap: var(--space-xl);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .section,
  .service-detail {
    padding: 48px 0;
  }

  .page-header {
    padding: calc(48px + 60px) 0 var(--space-lg);
  }

  .container {
    padding: 0 var(--space-md);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-wrapper {
    padding: var(--space-xl);
  }

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

  .languages-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

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

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

  .hero-cta {
    flex-direction: column;
  }

  .hero-image img {
    max-width: 100%;
  }

  .service-card,
  .contact-card {
    padding: var(--space-xl);
  }

  .faq-question {
    padding: var(--space-md) var(--space-lg);
    font-size: 1rem;
  }

  .faq-answer-content {
    padding: 0 var(--space-lg) var(--space-lg);
  }

  .scroll-top {
    width: 44px;
    height: 44px;
    bottom: 16px;
    right: 16px;
  }

  .breadcrumb {
    padding-top: calc(48px + var(--space-md));
  }

  .breadcrumb ol {
    font-size: 0.8rem;
  }

  .nav-logo img {
    width: 140px;
  }

  .footer-brand .footer-logo img {
    height: 100px;
  }
}

@media (max-width: 400px) {
  .languages-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   19. PRINT
   ========================================= */

@media print {
  .site-nav,
  .site-footer,
  .scroll-top,
  .hamburger,
  .hero-cta,
  .cta-section {
    display: none !important;
  }

  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }

  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
}

/* =========================================
   20. ACCESSIBILITY
   ========================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-contrast: high) {
  .btn-secondary {
    border-width: 3px;
  }

  input, select, textarea {
    border-width: 2px;
  }

  .faq-item {
    border-width: 2px;
  }
}

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