/*
Theme Name: Rare Languages Translation
Author: Rare Languages Translation
Description: A modern enterprise theme for a rare-language translation and localization company. Includes a homepage, six service pages, a filterable language directory, industries page, about page, resources grid, contact page, and a three-step quote funnel.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rare-languages-translation
Tags: custom-colors, custom-menu, translation, business, one-column, two-columns

This is the main stylesheet, enqueued via functions.php.
*/

/* ============================================================
   Rare Languages Translation — Design System
   Palette:  --green-50/500/600/700  --forest-900 (deep accent)
   Type:     Plus Jakarta Sans (display) / Inter (body + UI)
   Signature: "Script Weave" — ambient texture built from real
   language names set in their own scripts, used behind the hero
   and section dividers to make the rare-language premise visible
   rather than just claimed.
   ============================================================ */

:root {
  --green-50: #f0fdf4;
  --green-100: #dcfce7;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-700: #15803d;
  --forest-900: #0d2818;
  --forest-800: #123521;
  --ink: #0f172a;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --white: #ffffff;

  --font-display: "Plus Jakarta Sans", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(13, 40, 24, 0.08);
  --shadow-lg: 0 24px 60px rgba(13, 40, 24, 0.14);
  --container: 1180px;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 4.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; color: var(--slate-600); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-700);
  background: var(--green-50);
  border: 1px solid var(--green-100);
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green-500);
  flex: none;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--green-50); }

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--green-600); color: var(--white); box-shadow: 0 6px 18px rgba(22,163,74,0.28); }
.btn-primary:hover { background: var(--green-700); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(22,163,74,0.34); }
.btn-secondary { background: var(--white); color: var(--ink); border-color: var(--slate-200); }
.btn-secondary:hover { border-color: var(--green-500); color: var(--green-700); }
.btn-ghost-invert { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.35); }
.btn-ghost-invert:hover { background: rgba(255,255,255,0.12); }
.btn-block { width: 100%; justify-content: center; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--green-600);
  outline-offset: 2px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--slate-200);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; max-width: var(--container); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--ink); }
.brand-has-logo { min-height: 40px; }
.brand-has-logo .custom-logo-link { display: flex; align-items: center; }
.brand-has-logo img.custom-logo { max-height: 40px; width: auto; display: block; }
.brand-mark {
  width: 30px; height: 30px; flex: none;
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  border-radius: 8px;
  transform: rotate(45deg);
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute; inset: 7px;
  background: var(--white);
  border-radius: 3px;
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 0.92rem; font-weight: 500; color: var(--slate-600); transition: color 0.15s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--green-700); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--slate-200);
    background: var(--white);
  }
  .nav-actions .btn-secondary-mobile-hide { display: none; }
}

/* ---------- Hero + Script Weave signature ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--forest-900);
  color: var(--white);
  padding: 110px 0 130px;
}
.script-weave {
  position: absolute; inset: 0;
  display: flex; flex-wrap: wrap;
  align-content: center; justify-content: center;
  gap: 22px 34px;
  padding: 40px;
  opacity: 0.16;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 78%);
}
.script-weave span {
  font-family: var(--font-display);
  color: var(--green-500);
  white-space: nowrap;
  line-height: 1;
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; text-align: center; }
.hero .eyebrow { background: rgba(34,197,94,0.14); border-color: rgba(34,197,94,0.3); color: var(--green-100); }
.hero .eyebrow::before { background: var(--green-500); }
.hero h1 { color: var(--white); margin-top: 18px; }
.hero p.lead { color: rgba(255,255,255,0.72); font-size: 1.12rem; max-width: 600px; margin: 0 auto 32px; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 44px; }
.trust-bar { color: rgba(255,255,255,0.5); font-size: 0.85rem; letter-spacing: 0.03em; }

.page-hero {
  background: var(--forest-900);
  color: var(--white);
  padding: 76px 0 68px;
  position: relative;
  overflow: hidden;
}
.page-hero .container { position: relative; z-index: 1; max-width: 780px; }
.page-hero h1 { color: var(--white); }
.page-hero p.lead { color: rgba(255,255,255,0.72); font-size: 1.05rem; max-width: 620px; margin: 0; }
.page-hero .eyebrow { background: rgba(34,197,94,0.14); border-color: rgba(34,197,94,0.3); color: var(--green-100); margin-bottom: 16px; }

.breadcrumb { font-size: 0.82rem; color: rgba(255,255,255,0.5); margin-bottom: 18px; }
.breadcrumb a { color: rgba(255,255,255,0.75); }
.breadcrumb a:hover { color: var(--green-500); }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 30px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--green-100); }
.card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--green-50);
  color: var(--green-600);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  flex: none;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 0; font-size: 0.95rem; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 600; font-size: 0.9rem; color: var(--green-700); }
.card-link svg { width: 16px; height: 16px; transition: transform 0.15s ease; }
.card:hover .card-link svg { transform: translateX(3px); }

/* Pain point card variant */
.pain-card { display: flex; gap: 18px; align-items: flex-start; padding: 26px; border: 1px solid var(--slate-200); border-radius: var(--radius-md); background: var(--white); }
.pain-num { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--green-500); opacity: 0.85; flex: none; width: 46px; }
.pain-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.pain-card p { font-size: 0.92rem; margin: 0; }

/* ---------- Section header helper ---------- */
.section-head { max-width: 660px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin: 0 0 48px; text-align: left; }
.section-head p.lead { font-size: 1.05rem; }

/* ---------- Solution / split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-visual {
  background: var(--forest-900);
  border-radius: var(--radius-lg);
  padding: 40px;
  min-height: 340px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.split-visual .script-weave { opacity: 0.22; }
.workflow-steps { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 0; width: 100%; }
.workflow-step { display: flex; align-items: center; gap: 16px; padding: 16px 0; color: var(--white); }
.workflow-step + .workflow-step { border-top: 1px solid rgba(255,255,255,0.12); }
.workflow-dot { width: 34px; height: 34px; border-radius: 50%; background: var(--green-500); color: var(--forest-900); font-weight: 800; font-family: var(--font-display); display: flex; align-items: center; justify-content: center; flex: none; font-size: 0.9rem; }
.workflow-step strong { display: block; font-family: var(--font-display); font-size: 0.98rem; }
.workflow-step span { color: rgba(255,255,255,0.6); font-size: 0.85rem; }

/* ---------- Language directory ---------- */
.lang-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.lang-tab {
  font-size: 0.85rem; font-weight: 600; padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--slate-200); background: var(--white); color: var(--slate-600);
  cursor: pointer; transition: all 0.15s ease;
}
.lang-tab.is-active, .lang-tab:hover { background: var(--green-600); color: var(--white); border-color: var(--green-600); }
.lang-group { margin-bottom: 40px; }
.lang-group-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 18px; }
.lang-group-head h3 { margin: 0; }
.lang-group-head span { color: var(--slate-500); font-size: 0.85rem; }
.lang-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.lang-pill {
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 18px; border-radius: var(--radius-sm);
  background: var(--green-50); border: 1px solid var(--green-100);
  font-weight: 600; font-size: 0.92rem; color: var(--ink);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.lang-pill:hover { background: var(--green-100); border-color: var(--green-500); }
.lang-pill small { font-weight: 500; color: var(--slate-500); font-size: 0.76rem; }

.scout-banner {
  margin-top: 8px;
  background: var(--forest-900);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.scout-banner .script-weave { opacity: 0.14; }
.scout-banner-text { position: relative; z-index: 1; max-width: 560px; }
.scout-banner-text h3 { color: var(--white); margin-bottom: 8px; }
.scout-banner-text p { color: rgba(255,255,255,0.68); margin: 0; }
.scout-banner .btn { position: relative; z-index: 1; }

/* ---------- Industries ---------- */
.industry-row {
  display: grid; grid-template-columns: 260px 1fr; gap: 40px;
  padding: 40px 0; border-top: 1px solid var(--slate-200);
  align-items: start;
}
.industry-row:last-child { border-bottom: 1px solid var(--slate-200); }
.industry-tag { font-family: var(--font-display); font-weight: 700; color: var(--green-700); font-size: 1.05rem; }
.industry-row p { margin: 0; font-size: 1rem; }

/* ---------- Stats ---------- */
.stat { text-align: center; }
.stat strong { display: block; font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; color: var(--green-700); }
.stat span { font-size: 0.85rem; color: var(--slate-500); }

/* ---------- Testimonial / quote strip ---------- */
.quote-strip { background: var(--green-50); border-radius: var(--radius-lg); padding: 46px; }
.quote-strip p { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--ink); line-height: 1.4; }
.quote-strip footer { font-size: 0.85rem; color: var(--slate-500); margin-top: 14px; }

/* ---------- Bottom CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--forest-900), var(--forest-800));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
  position: relative; overflow: hidden;
  margin: 0 24px;
}
.cta-banner .script-weave { opacity: 0.14; }
.cta-banner-inner { position: relative; z-index: 1; }
.cta-banner h2 { color: var(--white); margin-bottom: 10px; }
.cta-banner p { color: rgba(255,255,255,0.7); margin-bottom: 26px; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white); border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg); padding: 40px;
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.field .hint { font-size: 0.78rem; color: var(--slate-500); margin-top: 6px; }
input, select, textarea {
  width: 100%; font-family: var(--font-body); font-size: 0.95rem;
  padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--slate-200);
  background: var(--white); color: var(--ink); transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, select:focus, textarea:focus { border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(34,197,94,0.15); outline: none; }
textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.phone-row { display: grid; grid-template-columns: 110px 1fr; gap: 10px; }

.quote-steps { display: flex; gap: 10px; margin-bottom: 34px; }
.quote-step { flex: 1; }
.quote-step .num { width: 30px; height: 30px; border-radius: 50%; background: var(--slate-100); color: var(--slate-500); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; font-family: var(--font-display); margin-bottom: 8px; }
.quote-step.is-active .num { background: var(--green-600); color: var(--white); }
.quote-step .bar { height: 4px; border-radius: 2px; background: var(--slate-200); margin-bottom: 10px; }
.quote-step.is-active .bar, .quote-step.is-done .bar { background: var(--green-500); }
.quote-step .label { font-size: 0.82rem; font-weight: 600; color: var(--slate-500); }
.quote-step.is-active .label { color: var(--ink); }

.upload-box {
  border: 2px dashed var(--slate-300); border-radius: var(--radius-md);
  padding: 40px; text-align: center; color: var(--slate-500);
  background: var(--slate-100);
}
.upload-box strong { color: var(--ink); display: block; margin-bottom: 6px; }

.success-card { text-align: center; padding: 60px 40px; }
.success-icon {
  width: 68px; height: 68px; border-radius: 50%; background: var(--green-100); color: var(--green-700);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
}

/* ---------- Blog / resources ---------- */
.post-card { display: flex; flex-direction: column; gap: 10px; }
.post-tag { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--green-700); }
.post-meta { font-size: 0.8rem; color: var(--slate-500); }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-900); color: rgba(255,255,255,0.7); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-grid h4 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px; font-family: var(--font-display); }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid ul li a { font-size: 0.9rem; color: rgba(255,255,255,0.65); transition: color 0.15s ease; }
.footer-grid ul li a:hover { color: var(--green-500); }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; color: var(--white); margin-bottom: 14px; }
.footer-brand .footer-logo { display: inline-flex; align-items: center; justify-content: center; background: var(--white); border-radius: 8px; padding: 5px 8px; line-height: 0; }
.footer-brand .footer-logo img.custom-logo { max-height: 24px; width: auto; display: block; }
.footer-brand .brand-mark { width: 26px; height: 26px; }
.footer-desc { font-size: 0.88rem; max-width: 300px; color: rgba(255,255,255,0.55); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px; font-size: 0.82rem; color: rgba(255,255,255,0.45); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .industry-row { grid-template-columns: 1fr; gap: 10px; }
  .field-row { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  .cta-banner { margin: 0 16px; padding: 40px 24px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 80px 0 90px; }
  .scout-banner { padding: 30px 24px; }
}

/* ---------- WordPress editable page content ---------- */
.rlt-editor-content {
  max-width: 900px;
}
.rlt-editor-content > *:last-child {
  margin-bottom: 0;
}
.rlt-editor-content img {
  height: auto;
}
.rlt-editor-content .wp-block-button__link {
  display: inline-flex;
  align-items: center;
}
.rlt-editor-content .wp-block-image {
  margin-left: 0;
  margin-right: 0;
}
