/* ============================================================
   LinguaBridge Tokyo — Main Stylesheet
   Translation & Localization Services
   ============================================================ */

/* --- Custom Properties --- */
:root {
    --primary: #1B4F72;
    --primary-dark: #143D59;
    --primary-light: #D6E9F8;
    --secondary: #1A7A4C;
    --secondary-dark: #14613C;
    --secondary-light: #D4EDDA;
    --accent: #E8A838;
    --accent-dark: #D4922A;
    --text: #2D3748;
    --text-light: #718096;
    --text-white: #FFFFFF;
    --bg: #FFFFFF;
    --bg-alt: #F7F9FC;
    --bg-dark: #0F2B3F;
    --border: #E2E8F0;
    --radius: 4px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
    --font-primary: 'Inter', 'Noto Sans JP', system-ui, sans-serif;
}

/* --- Base Styles --- */
html {
    scroll-behavior: smooth;
}

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

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: var(--primary-dark);
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.375rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

::selection {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

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

/* --- Utility Classes --- */
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-pattern {
    position: relative;
}

.bg-pattern::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(27, 79, 114, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(26, 122, 76, 0.03) 0%, transparent 50%),
        linear-gradient(90deg, transparent 49.5%, var(--border) 49.5%, var(--border) 50.5%, transparent 50.5%),
        linear-gradient(0deg, transparent 49.5%, var(--border) 49.5%, var(--border) 50.5%, transparent 50.5%);
    background-size: 100% 100%, 100% 100%, 80px 80px, 80px 80px;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

.bg-pattern > * {
    position: relative;
    z-index: 1;
}

.section-heading {
    text-align: center;
    margin-bottom: 3rem;
}

.section-heading h2 {
    display: inline-block;
    position: relative;
    padding-bottom: 0.75rem;
}

.section-heading h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.section-heading p {
    color: var(--text-light);
    font-size: 1.125rem;
    max-width: 640px;
    margin: 1rem auto 0;
}

/* --- Section Spacing --- */
.section-padding {
    padding: 80px 0;
}

section.bg-white,
.bg-white {
    background-color: var(--bg);
}

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

section.bg-dark,
.bg-dark {
    background-color: var(--bg-dark);
    color: var(--text-white);
}

section.bg-dark h2,
section.bg-dark h3,
section.bg-dark h4,
.bg-dark h2,
.bg-dark h3,
.bg-dark h4 {
    color: var(--text-white);
}

section.bg-dark .section-heading p,
.bg-dark .section-heading p {
    color: rgba(255, 255, 255, 0.7);
}

section.bg-dark .section-heading h2::after,
.bg-dark .section-heading h2::after {
    background: linear-gradient(90deg, var(--accent), var(--secondary-light));
}

/* --- Button Styles --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    min-height: 44px;
    min-width: 44px;
    text-align: center;
    line-height: 1.5;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-white);
    border-color: var(--primary);
}

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

.btn-accent {
    background-color: var(--accent);
    color: var(--text-white);
    border-color: var(--accent);
}

.btn-accent:hover,
.btn-accent:focus {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
    color: var(--text-white);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--primary);
    color: var(--text-white);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-outline-light {
    background-color: transparent;
    color: var(--text-white);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline-light:hover,
.btn-outline-light:focus {
    background-color: var(--text-white);
    color: var(--primary);
    border-color: var(--text-white);
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.0625rem;
    min-height: 52px;
}

.btn-sm {
    padding: 0.375rem 1rem;
    font-size: 0.8125rem;
    min-height: 36px;
}

/* --- Navbar --- */
#mainNav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background-color: transparent;
    transition: var(--transition);
    padding: 1rem 0;
}

#mainNav.scrolled {
    background-color: var(--bg);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
}

#mainNav .navbar-brand {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

#mainNav.scrolled .navbar-brand {
    color: var(--primary);
}

#mainNav .navbar-brand .brand-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius);
    color: var(--text-white);
    font-size: 1.125rem;
}

#mainNav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
    transition: var(--transition);
}

#mainNav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background-color: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

#mainNav .nav-link:hover::after,
#mainNav .nav-link.active::after {
    transform: scaleX(1);
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
    color: var(--text-white);
}

#mainNav.scrolled .nav-link {
    color: var(--text);
}

#mainNav.scrolled .nav-link:hover,
#mainNav.scrolled .nav-link.active {
    color: var(--primary);
}

#mainNav.scrolled .nav-link::after {
    background-color: var(--primary);
}

#mainNav .btn-nav-cta {
    background-color: var(--accent);
    color: var(--text-white);
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition);
    min-height: 44px;
}

#mainNav .btn-nav-cta:hover {
    background-color: var(--accent-dark);
    transform: translateY(-1px);
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

#mainNav.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2845, 55, 72, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-dark) 50%, var(--primary) 100%);
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(26, 122, 76, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 60%, rgba(232, 168, 56, 0.1) 0%, transparent 60%);
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
    background-size: 60px 60px, 80px 80px, 40px 40px;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 1.25rem;
    line-height: 1.15;
}

.hero-section .lead {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    max-width: 540px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}

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

.hero-stat .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1.2;
}

.hero-stat .stat-label {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Floating Characters Animation */
.floating-characters {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.floating-char {
    position: absolute;
    font-size: 2rem;
    opacity: 0.08;
    color: var(--text-white);
    animation: floatChar 20s infinite linear;
}

.floating-char:nth-child(1) { top: 10%; left: 5%; animation-delay: 0s; animation-duration: 22s; font-size: 2.5rem; }
.floating-char:nth-child(2) { top: 20%; left: 85%; animation-delay: -3s; animation-duration: 18s; font-size: 1.75rem; }
.floating-char:nth-child(3) { top: 50%; left: 15%; animation-delay: -7s; animation-duration: 25s; font-size: 2.25rem; }
.floating-char:nth-child(4) { top: 70%; left: 75%; animation-delay: -10s; animation-duration: 20s; font-size: 2rem; }
.floating-char:nth-child(5) { top: 30%; left: 50%; animation-delay: -5s; animation-duration: 23s; font-size: 1.5rem; }
.floating-char:nth-child(6) { top: 80%; left: 30%; animation-delay: -12s; animation-duration: 19s; font-size: 2rem; }
.floating-char:nth-child(7) { top: 15%; left: 65%; animation-delay: -8s; animation-duration: 21s; font-size: 1.75rem; }
.floating-char:nth-child(8) { top: 60%; left: 90%; animation-delay: -15s; animation-duration: 24s; font-size: 2.25rem; }

@keyframes floatChar {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.08;
    }
    90% {
        opacity: 0.08;
    }
    100% {
        transform: translate(-100px, -200px) rotate(360deg);
        opacity: 0;
    }
}

/* Globe Animation */
.globe-container {
    position: relative;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 1;
    margin: 0 auto;
}

.globe {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(27, 79, 114, 0.6), rgba(15, 43, 63, 0.9));
    box-shadow:
        inset -20px -20px 60px rgba(0, 0, 0, 0.3),
        0 0 80px rgba(27, 79, 114, 0.3);
    position: relative;
    overflow: hidden;
    animation: globeRotate 30s linear infinite;
}

.globe::before {
    content: '';
    position: absolute;
    inset: 10%;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.globe::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 11%,
        rgba(255, 255, 255, 0.03) 11%,
        rgba(255, 255, 255, 0.03) 11.5%
    );
}

.globe-meridian {
    position: absolute;
    inset: 5%;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}

.globe-meridian:nth-child(1) {
    transform: rotateY(0deg);
    border-radius: 50% / 80%;
}

.globe-meridian:nth-child(2) {
    transform: rotateY(45deg);
    border-radius: 50% / 60%;
}

.globe-meridian:nth-child(3) {
    transform: rotateY(90deg);
    border-radius: 50% / 40%;
}

.globe-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent);
}

.globe-dot:nth-child(4) { top: 30%; left: 55%; }
.globe-dot:nth-child(5) { top: 45%; left: 35%; }
.globe-dot:nth-child(6) { top: 55%; left: 65%; }
.globe-dot:nth-child(7) { top: 35%; left: 70%; }
.globe-dot:nth-child(8) { top: 60%; left: 40%; }

.globe-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px;
    border-radius: 50%;
    border: 1px solid var(--accent);
    opacity: 0;
    animation: globePulse 3s ease-out infinite;
}

.globe-dot:nth-child(5)::after { animation-delay: 0.5s; }
.globe-dot:nth-child(6)::after { animation-delay: 1s; }
.globe-dot:nth-child(7)::after { animation-delay: 1.5s; }
.globe-dot:nth-child(8)::after { animation-delay: 2s; }

@keyframes globeRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes globePulse {
    0% {
        transform: scale(0.5);
        opacity: 0.8;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* --- Service Cards --- */
.service-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.service-card .card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.service-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .card-image img {
    transform: scale(1.05);
}

.service-card .card-icon {
    position: absolute;
    bottom: -20px;
    left: 24px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.25rem;
    box-shadow: var(--shadow-md);
    z-index: 2;
}

.service-card .card-body {
    padding: 2rem 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.service-card .card-text {
    color: var(--text-light);
    font-size: 0.9375rem;
    flex: 1;
}

.service-card .card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--primary);
    margin-top: 1rem;
}

.service-card .card-link:hover {
    color: var(--secondary);
    gap: 0.625rem;
}

/* --- Language Pair Selector --- */
.language-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1rem;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9375rem;
    font-weight: 500;
    min-height: 44px;
}

.language-option:hover {
    border-color: var(--primary-light);
    background: var(--bg-alt);
}

.language-option.selected {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary-dark);
}

.language-option .flag {
    font-size: 1.375rem;
    line-height: 1;
}

.language-pair-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    padding: 1rem 0;
}

/* --- Quote Calculator --- */
.quote-calculator {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.quote-step {
    padding: 2rem;
    border-bottom: 1px solid var(--border);
}

.quote-step:last-child {
    border-bottom: none;
}

.quote-step-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.quote-step-number {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
}

.quote-step-title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin: 0;
}

.quote-text-input {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    color: var(--text);
    resize: vertical;
    transition: var(--transition);
}

.quote-text-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(27, 79, 114, 0.1);
}

.word-count-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: var(--text-light);
}

.word-count-display .count {
    font-weight: 700;
    color: var(--primary);
}

/* File Upload Zone */
.file-upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-alt);
}

.file-upload-zone:hover,
.file-upload-zone.drag-over {
    border-color: var(--primary);
    background: var(--primary-light);
}

.file-upload-zone .upload-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.file-upload-zone .upload-text {
    font-size: 0.9375rem;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.file-upload-zone .upload-hint {
    font-size: 0.8125rem;
    color: var(--text-light);
}

.file-upload-zone .upload-browse {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}

.uploaded-file {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--secondary-light);
    border-radius: var(--radius);
    margin-top: 0.75rem;
    font-size: 0.875rem;
}

.uploaded-file .file-icon {
    color: var(--secondary);
    font-size: 1.25rem;
}

.uploaded-file .file-name {
    flex: 1;
    font-weight: 500;
    color: var(--text);
}

.uploaded-file .file-words {
    color: var(--text-light);
    font-size: 0.8125rem;
}

.uploaded-file .file-remove {
    color: var(--text-light);
    cursor: pointer;
    padding: 0.25rem;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    transition: var(--transition);
}

.uploaded-file .file-remove:hover {
    color: #e53e3e;
}

/* Option Cards (Tier & Speed) */
.option-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.option-card {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg);
    min-height: 44px;
}

.option-card:hover {
    border-color: var(--primary-light);
    background: var(--bg-alt);
}

.option-card.selected {
    border-color: var(--primary);
    background: var(--primary-light);
}

.option-card .option-label {
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
}

.option-card .option-multiplier {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 0.375rem;
}

.option-card .option-detail {
    font-size: 0.8125rem;
    color: var(--text-light);
}

.option-card.selected .option-label {
    color: var(--primary);
}

/* Quote Summary */
.quote-summary {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 2rem;
    border-radius: var(--radius);
}

.quote-summary h4 {
    color: var(--text-white);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.quote-line-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.quote-line-item:last-of-type {
    border-bottom: none;
}

.quote-line-item .label {
    color: rgba(255, 255, 255, 0.7);
}

.quote-line-item .value {
    font-weight: 600;
}

.quote-total {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    font-size: 1.25rem;
    font-weight: 700;
}

.quote-total .total-amount {
    color: var(--accent);
}

.quote-delivery-date {
    text-align: center;
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.quote-delivery-date strong {
    color: var(--text-white);
}

/* --- About Page --- */

/* Team Section */
.team-card {
    text-align: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    transition: var(--transition);
    height: 100%;
}

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

.team-card .team-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.25rem;
    border: 3px solid var(--primary-light);
}

.team-card .team-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
}

.team-card .team-role {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.team-card .team-languages {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    justify-content: center;
}

.team-card .lang-badge {
    padding: 0.25rem 0.625rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 600;
}

/* Credentials Grid */
.credential-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    height: 100%;
}

.credential-card:hover {
    box-shadow: var(--shadow-md);
}

.credential-card .cred-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.credential-card .cred-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
}

.credential-card .cred-desc {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

/* QA Process Timeline */
.qa-timeline {
    position: relative;
    padding: 0;
    list-style: none;
}

.qa-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 24px;
    width: 2px;
    background: var(--border);
}

.qa-step {
    position: relative;
    padding: 0 0 2.5rem 64px;
}

.qa-step:last-child {
    padding-bottom: 0;
}

.qa-step-number {
    position: absolute;
    left: 8px;
    top: 0;
    width: 34px;
    height: 34px;
    background: var(--primary);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 700;
    z-index: 1;
}

.qa-step.completed .qa-step-number {
    background: var(--secondary);
}

.qa-step-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
}

.qa-step-desc {
    font-size: 0.9375rem;
    color: var(--text-light);
    margin: 0;
}

/* --- Industries Page --- */
.industry-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 280px;
    cursor: pointer;
    transition: var(--transition);
}

.industry-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.industry-card:hover img {
    transform: scale(1.08);
}

.industry-card .industry-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 43, 63, 0.9) 0%, rgba(15, 43, 63, 0.3) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    transition: var(--transition);
}

.industry-card:hover .industry-overlay {
    background: linear-gradient(to top, rgba(15, 43, 63, 0.95) 0%, rgba(15, 43, 63, 0.6) 100%);
}

.industry-card .industry-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.industry-card .industry-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.25rem;
}

.industry-card .industry-desc {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.industry-card:hover .industry-desc {
    max-height: 100px;
}

/* Terminology Section */
.terminology-card {
    padding: 1.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    height: 100%;
}

.terminology-card:hover {
    box-shadow: var(--shadow-md);
}

.terminology-card .term-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.terminology-card .term-icon {
    font-size: 1.5rem;
}

.terminology-card .term-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-dark);
    margin: 0;
}

.terminology-card .term-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.terminology-card .term-list li {
    padding: 0.25rem 0;
    font-size: 0.875rem;
    color: var(--text-light);
    position: relative;
    padding-left: 1rem;
}

.terminology-card .term-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 5px;
    height: 5px;
    background: var(--secondary);
    border-radius: 50%;
}

/* --- Resources Page --- */
.guide-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.guide-card .guide-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.guide-card .guide-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.guide-card .guide-desc {
    font-size: 0.9375rem;
    color: var(--text-light);
    flex: 1;
    margin-bottom: 1.25rem;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: var(--secondary);
    color: var(--text-white);
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    min-height: 44px;
}

.btn-download:hover {
    background: var(--secondary-dark);
    color: var(--text-white);
    transform: translateY(-1px);
}

/* Cultural Tips Cards */
.cultural-tip-card {
    background: var(--bg);
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 1.5rem;
    transition: var(--transition);
    height: 100%;
}

.cultural-tip-card:hover {
    box-shadow: var(--shadow-md);
}

.cultural-tip-card .tip-emoji {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.cultural-tip-card .tip-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.cultural-tip-card .tip-text {
    font-size: 0.9375rem;
    color: var(--text-light);
    margin: 0;
}

/* --- Contact Page --- */
.contact-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-form-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

.contact-info-card {
    padding: 2.5rem;
}

.contact-info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-info-item .info-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.125rem;
    flex-shrink: 0;
}

.contact-info-item .info-label {
    font-size: 0.8125rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.125rem;
}

.contact-info-item .info-value {
    font-weight: 600;
    color: var(--text);
}

/* Urgency Badge */
.urgency-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.urgency-badge.urgency-low {
    background: var(--secondary-light);
    color: var(--secondary-dark);
}

.urgency-badge.urgency-medium {
    background: #FEF3C7;
    color: #92400E;
}

.urgency-badge.urgency-high {
    background: #FEE2E2;
    color: #991B1B;
}

.urgency-badge .urgency-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

/* Partnership Section */
.partnership-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius);
    padding: 3rem;
    color: var(--text-white);
    text-align: center;
}

.partnership-card h3 {
    color: var(--text-white);
    margin-bottom: 1rem;
}

.partnership-card p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--bg-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 0;
}

.site-footer h5 {
    color: var(--text-white);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.footer-brand {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-desc {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 300px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.625rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.footer-links a:hover {
    color: var(--text-white);
    padding-left: 4px;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.125rem;
    transition: var(--transition);
    min-width: 44px;
    min-height: 44px;
}

.social-link:hover {
    background: var(--primary);
    color: var(--text-white);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    margin-top: 3rem;
    font-size: 0.8125rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8125rem;
}

.footer-bottom-links a:hover {
    color: var(--text-white);
}

/* --- Cookie Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 1.25rem 0;
    z-index: 1060;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(0);
    transition: transform 0.4s ease;
}

.cookie-banner.hidden {
    transform: translateY(100%);
    pointer-events: none;
}

.cookie-banner .cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-banner .cookie-text {
    font-size: 0.875rem;
    flex: 1;
    min-width: 200px;
}

.cookie-banner .cookie-text a {
    color: var(--accent);
    text-decoration: underline;
}

.cookie-banner .cookie-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-banner .btn-cookie-accept {
    background: var(--accent);
    color: var(--text-white);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    min-height: 44px;
}

.cookie-banner .btn-cookie-accept:hover {
    background: var(--accent-dark);
}

.cookie-banner .btn-cookie-settings {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    min-height: 44px;
}

.cookie-banner .btn-cookie-settings:hover {
    border-color: rgba(255, 255, 255, 0.6);
    color: var(--text-white);
}

/* --- Back to Top Button --- */
#backToTop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--text-white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    z-index: 1040;
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#backToTop:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* --- Scroll Animations --- */
.fade-in-up,
.fade-in-left,
.fade-in-right {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up {
    transform: translateY(30px);
}

.fade-in-left {
    transform: translateX(-30px);
}

.fade-in-right {
    transform: translateX(30px);
}

.fade-in-up.visible,
.fade-in-left.visible,
.fade-in-right.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Staggered children */
.fade-in-up.visible .fade-child:nth-child(1) { transition-delay: 0.1s; }
.fade-in-up.visible .fade-child:nth-child(2) { transition-delay: 0.2s; }
.fade-in-up.visible .fade-child:nth-child(3) { transition-delay: 0.3s; }
.fade-in-up.visible .fade-child:nth-child(4) { transition-delay: 0.4s; }

/* --- Stats / Numbers Section --- */
.stat-card {
    text-align: center;
    padding: 2rem 1rem;
}

.stat-card .stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.stat-card .stat-suffix {
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-card .stat-label {
    font-size: 0.9375rem;
    color: var(--text-light);
    font-weight: 500;
}

.bg-dark .stat-card .stat-number {
    color: var(--accent);
}

.bg-dark .stat-card .stat-label {
    color: rgba(255, 255, 255, 0.7);
}

/* --- Testimonials Section --- */
.testimonial-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    position: relative;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
}

.testimonial-card .quote-mark {
    font-size: 3rem;
    color: var(--primary-light);
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: Georgia, serif;
}

.testimonial-card .quote-text {
    font-size: 1rem;
    color: var(--text);
    line-height: 1.7;
    font-style: italic;
    flex: 1;
    margin-bottom: 1.5rem;
}

.testimonial-card .quote-attribution {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-card .quote-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-light);
}

.testimonial-card .quote-author {
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--primary-dark);
}

.testimonial-card .quote-role {
    font-size: 0.8125rem;
    color: var(--text-light);
}

/* --- Pricing Tier Cards --- */
.pricing-card {
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

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

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: scale(1.03);
}

.pricing-card.featured:hover {
    transform: scale(1.03) translateY(-4px);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--text-white);
    padding: 0.25rem 1.25rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.pricing-card .pricing-tier {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.pricing-card .pricing-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
}

.pricing-card .pricing-unit {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.pricing-card .pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    text-align: left;
    flex: 1;
}

.pricing-card .pricing-features li {
    padding: 0.5rem 0;
    font-size: 0.9375rem;
    color: var(--text);
    position: relative;
    padding-left: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.pricing-card .pricing-features li:last-child {
    border-bottom: none;
}

.pricing-card .pricing-features li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: 700;
}

.pricing-card.featured .pricing-price {
    color: var(--primary);
}

/* Tab / Pill Styling for Service Tiers */
.tier-tabs {
    display: flex;
    gap: 0.25rem;
    background: var(--bg-alt);
    padding: 0.25rem;
    border-radius: var(--radius);
    width: fit-content;
    margin: 0 auto 2rem;
}

.tier-tab {
    padding: 0.625rem 1.5rem;
    border: none;
    background: transparent;
    border-radius: var(--radius);
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    min-height: 44px;
}

.tier-tab:hover {
    color: var(--text);
}

.tier-tab.active {
    background: var(--bg);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* --- Form Styles --- */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text);
    margin-bottom: 0.375rem;
}

.form-control {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    color: var(--text);
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    min-height: 44px;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(27, 79, 114, 0.1);
}

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

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

.form-select {
    width: 100%;
    padding: 0.625rem 2.5rem 0.625rem 0.875rem;
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    color: var(--text);
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23718096' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    min-height: 44px;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(27, 79, 114, 0.1);
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    min-height: 44px;
    padding-top: 0.25rem;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin-top: 0.15rem;
    border: 2px solid var(--border);
    border-radius: 3px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: var(--primary);
}

.form-check-label {
    font-size: 0.875rem;
    color: var(--text);
    cursor: pointer;
}

/* Validation States */
.form-control.is-valid,
.form-select.is-valid {
    border-color: var(--secondary);
}

.form-control.is-valid:focus,
.form-select.is-valid:focus {
    box-shadow: 0 0 0 3px rgba(26, 122, 76, 0.1);
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #e53e3e;
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.valid-feedback {
    color: var(--secondary);
    font-size: 0.8125rem;
    margin-top: 0.25rem;
}

.invalid-feedback {
    color: #e53e3e;
    font-size: 0.8125rem;
    margin-top: 0.25rem;
}

.was-validated .form-control:valid,
.was-validated .form-select:valid {
    border-color: var(--secondary);
}

.was-validated .form-control:invalid,
.was-validated .form-select:invalid {
    border-color: #e53e3e;
}

.was-validated .form-control:valid ~ .valid-feedback,
.was-validated .form-select:valid ~ .valid-feedback {
    display: block;
}

.was-validated .form-control:invalid ~ .invalid-feedback,
.was-validated .form-select:invalid ~ .invalid-feedback {
    display: block;
}

/* --- Process Steps (Numbered with Connecting Lines) --- */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    position: relative;
}

.process-step {
    text-align: center;
    padding: 1.5rem;
    position: relative;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 36px;
    right: -0.75rem;
    width: 1.5rem;
    height: 2px;
    background: var(--border);
}

.process-step:last-child::after {
    display: none;
}

.process-step-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 700;
    position: relative;
}

.process-step-icon::before {
    content: attr(data-step);
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    background: var(--accent);
    color: var(--text-white);
    border-radius: 50%;
    font-size: 0.6875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-step h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.375rem;
}

.process-step p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

/* ============================================================
   Responsive Design
   ============================================================ */

/* Large tablets and small desktops */
@media (max-width: 1199.98px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .hero-section h1 {
        font-size: 3rem;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .pricing-card.featured:hover {
        transform: translateY(-4px);
    }
}

/* Tablets */
@media (max-width: 991.98px) {
    .section-padding {
        padding: 60px 0;
    }

    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.875rem; }
    h3 { font-size: 1.5rem; }

    .hero-section {
        min-height: 75vh;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .globe-container {
        max-width: 360px;
    }

    .contact-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    #mainNav .navbar-collapse {
        background: var(--bg);
        border-radius: var(--radius);
        padding: 1rem;
        margin-top: 0.75rem;
        box-shadow: var(--shadow-lg);
    }

    #mainNav .nav-link {
        color: var(--text);
        padding: 0.75rem 1rem;
    }

    #mainNav .nav-link:hover,
    #mainNav .nav-link.active {
        color: var(--primary);
    }

    #mainNav .nav-link::after {
        display: none;
    }

    .option-cards {
        grid-template-columns: 1fr;
    }

    .process-step::after {
        display: none;
    }
}

/* Tablets - portrait */
@media (max-width: 767.98px) {
    .section-padding {
        padding: 48px 0;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.625rem; }
    h3 { font-size: 1.375rem; }

    .hero-section {
        min-height: 60vh;
        text-align: center;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1.0625rem;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .globe-container {
        max-width: 280px;
        margin-top: 2rem;
    }

    .stat-card .stat-number {
        font-size: 2.25rem;
    }

    .pricing-card {
        padding: 2rem 1.5rem;
    }

    .pricing-card .pricing-price {
        font-size: 2rem;
    }

    .language-selector {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
    }

    .industry-card {
        height: 220px;
    }

    .tier-tabs {
        width: 100%;
    }

    .tier-tab {
        flex: 1;
        padding: 0.625rem 0.75rem;
        text-align: center;
    }
}

/* Mobile phones */
@media (max-width: 575.98px) {
    body {
        font-size: 16px;
    }

    .section-padding {
        padding: 40px 0;
    }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.125rem; }

    .hero-section {
        min-height: 60vh;
        padding-top: 80px;
    }

    .hero-section h1 {
        font-size: 1.75rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .hero-stat .stat-number {
        font-size: 1.5rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .btn-lg {
        width: 100%;
    }

    .section-heading {
        margin-bottom: 2rem;
    }

    .service-card .card-image {
        height: 160px;
    }

    .quote-step {
        padding: 1.25rem;
    }

    .option-cards {
        grid-template-columns: 1fr;
    }

    .quote-summary {
        padding: 1.5rem;
    }

    .contact-form-card {
        padding: 1.5rem;
    }

    .contact-info-card {
        padding: 1.5rem;
    }

    .team-card {
        padding: 1.5rem 1rem;
    }

    .guide-card {
        padding: 1.5rem;
    }

    .partnership-card {
        padding: 2rem 1.5rem;
    }

    .site-footer {
        padding: 3rem 0 0;
    }

    .cookie-banner .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-banner .cookie-actions {
        width: 100%;
        justify-content: center;
    }

    #backToTop {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 44px;
        height: 44px;
    }

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

    .testimonial-card {
        padding: 1.5rem;
    }

    .credential-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .floating-char {
        font-size: 1.5rem;
    }
}

/* Small mobile (375px) */
@media (max-width: 389.98px) {
    .hero-section h1 {
        font-size: 1.5rem;
    }

    .language-selector {
        grid-template-columns: 1fr;
    }

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

    .hero-buttons .btn {
        width: 100%;
    }
}

/* Ensure no horizontal overflow at any breakpoint */
html, body {
    max-width: 100%;
}

section, .container, .container-fluid {
    overflow-x: clip;
}

/* Touch target enforcement */
@media (pointer: coarse) {
    a, button, .btn, input, select, textarea, .option-card, .language-option, .tier-tab {
        min-height: 44px;
    }

    .footer-links a {
        padding: 0.375rem 0;
    }
}

/* --- Print Styles --- */
@media print {
    .cookie-banner,
    #backToTop,
    #mainNav,
    .floating-characters {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }

    .hero-section {
        min-height: auto;
        background: #fff;
        color: #000;
    }

    .hero-section h1,
    .hero-section .lead {
        color: #000;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .fade-in-up,
    .fade-in-left,
    .fade-in-right {
        opacity: 1;
        transform: none;
    }

    .floating-char {
        animation: none;
        opacity: 0.08;
    }

    .globe {
        animation: none;
    }
}
