/* ════════════════════════════════════════════════
   Adana Makine - Design System & Global Styles
   Based on Technical Style Guide mockup
   ════════════════════════════════════════════════ */

/* ─── CSS Variables ─── */
:root {
    --primary: #0064A8;
    --primary-hover: #003875;
    --primary-light: rgba(0, 100, 168, 0.08);
    --secondary: #4A4A4A;
    --neutral-dark: #212528;
    --neutral-700: #333;
    --neutral-600: #495057;
    --neutral-500: #6c757d;
    --neutral-400: #adb5bd;
    --neutral-300: #dee2e6;
    --neutral-200: #e9ecef;
    --neutral-100: #f4f4fa;
    --white: #ffffff;
    --error: #DC3545;
    --success: #25A524;
    --warning: #ffc107;
    --bg-light: #F4F4FA;
    --bg-dark: #1a1d23;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --container-max: 1200px;
    --gutter: 24px;
    --radius: 8px;
    --radius-lg: 16px;
    --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 24px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
    --header-height: 72px;
}

/* ─── Reset & Base ─── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    color: var(--neutral-dark);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

ul,
ol {
    list-style: none;
}

/* ─── Typography ─── */
h1,
.h1 {
    font-size: 3.125rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

h2,
.h2 {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
}

h3,
.h3 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
}

h4,
.h4 {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
}

p {
    margin-bottom: 1rem;
    color: var(--neutral-600);
}

@media (max-width: 768px) {

    h1,
    .h1 {
        font-size: 2rem;
    }

    h2,
    .h2 {
        font-size: 1.75rem;
    }

    h3,
    .h3 {
        font-size: 1.25rem;
    }
}

/* ─── Layout ─── */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.section {
    padding: 80px 0;
}

.section--gray {
    background: var(--bg-light);
}

.section--dark {
    background: var(--neutral-dark);
    color: var(--white);
}

.section--dark p {
    color: var(--neutral-400);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 12px;
}

.section-header p {
    max-width: 600px;
    margin: 12px auto 0;
    color: var(--neutral-500);
}

/* ─── Grid System ─── */
.grid {
    display: grid;
    gap: var(--gutter);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 992px) {

    .grid-4,
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {

    .grid-2,
    .grid-3,
    .grid-4,
    .grid-5 {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 60px 0;
    }
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.4;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--neutral-dark);
    border-color: var(--neutral-300);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--primary);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1rem;
}

.btn-cta {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    padding: 14px 32px;
    border-radius: 50px;
}

.btn-cta:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(0, 100, 168, 0.35);
    transform: translateY(-2px);
}

/* ─── Cards ─── */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--neutral-200);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card-body {
    padding: 24px;
}

.card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: var(--primary-light);
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 16px;
    transition: var(--transition);
}

.card:hover .card-icon {
    background: var(--primary);
    color: var(--white);
}

.card-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--neutral-dark);
}

.card-text {
    font-size: 0.875rem;
    color: var(--neutral-500);
    line-height: 1.6;
}

/* ─── Service Cards ─── */
.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--neutral-200);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.service-card:hover::after {
    transform: scaleX(1);
}

.service-card .card-icon {
    margin: 0 auto 16px;
}

/* ─── Blog Cards ─── */
.blog-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--neutral-200);
    transition: var(--transition);
}

.blog-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.blog-card__image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card__image img {
    transform: scale(1.05);
}

.blog-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--white);
    background: var(--primary);
}

.blog-card__body {
    padding: 20px;
}

.blog-card__title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--neutral-dark);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card__excerpt {
    font-size: 0.8125rem;
    color: var(--neutral-500);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--neutral-400);
}

.blog-card__link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.8125rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ─── Hero ─── */
.hero {
    position: relative;
    min-height: 540px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    color: var(--white);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 640px;
}

.hero__title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
    font-size: 1.0625rem;
    line-height: 1.6;
    margin-bottom: 32px;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

.hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero {
        min-height: 420px;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__subtitle {
        font-size: 0.9375rem;
    }
}

/* ─── Page Hero (Inner pages) ─── */
.page-hero {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    color: var(--white);
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 30, 60, 0.85), rgba(0, 100, 168, 0.7));
    z-index: 1;
}

.page-hero__content {
    position: relative;
    z-index: 2;
}

.page-hero__badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.page-hero__title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.page-hero__subtitle {
    font-size: 1rem;
    opacity: 0.85;
    max-width: 560px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .page-hero {
        min-height: 240px;
    }

    .page-hero__title {
        font-size: 1.75rem;
    }
}

/* ─── Breadcrumb ─── */
.breadcrumb {
    padding: 16px 0;
    font-size: 0.8125rem;
}

.breadcrumb ol {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--neutral-500);
}

.breadcrumb li:not(:last-child)::after {
    content: '›';
    color: var(--neutral-400);
}

.breadcrumb a {
    color: var(--neutral-500);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb li:last-child {
    color: var(--primary);
    font-weight: 500;
}

/* ─── Header ─── */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--neutral-200);
    transition: box-shadow 0.3s ease;
}

/* When mobile menu is open, remove backdrop-filter so position:fixed works */
.header.menu-open {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--white);
}

.header.scrolled {
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--neutral-dark);
    text-decoration: none;
}

.header__logo:hover {
    color: var(--neutral-dark);
}

.header__logo img {
    height: 40px;
    width: auto;
}

.header__logo svg {
    width: 32px;
    height: 32px;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.header__nav a {
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--neutral-600);
    border-radius: 6px;
    transition: var(--transition);
}

.header__nav a:hover,
.header__nav a.active {
    color: var(--primary);
    background: var(--primary-light);
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header__cta {
    padding: 10px 24px;
    background: var(--primary);
    color: var(--white) !important;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
}

.header__cta:hover {
    background: var(--primary-hover);
    color: var(--white) !important;
}

/* Mobile menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--neutral-dark);
    transition: var(--transition);
    border-radius: 2px;
}

.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);
}

@media (max-width: 992px) {
    .hamburger {
        display: flex;
    }

    .header__nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 24px;
        gap: 4px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        z-index: 9999;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
    }

    .header__nav.open {
        transform: translateX(0);
    }

    .header__nav a {
        padding: 14px 16px;
        font-size: 1rem;
        width: 100%;
        border-bottom: 1px solid var(--neutral-100);
    }

    .header__cta {
        display: none;
    }
}

/* ─── Footer ─── */
.footer {
    background: var(--neutral-dark);
    color: var(--neutral-400);
    padding-top: 64px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer__brand p {
    font-size: 0.8125rem;
    color: var(--neutral-400);
    margin-top: 12px;
    line-height: 1.7;
}

.footer__social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.footer__social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--neutral-400);
    font-size: 0.875rem;
    transition: var(--transition);
}

.footer__social a:hover {
    background: var(--primary);
    color: var(--white);
}

.footer__col h4 {
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer__col ul li {
    margin-bottom: 10px;
}

.footer__col ul a {
    color: var(--neutral-400);
    font-size: 0.8125rem;
    transition: var(--transition);
}

.footer__col ul a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer__newsletter .newsletter-form {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.footer__newsletter .newsletter-form input {
    flex: 1;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: var(--white);
    font-size: 0.8125rem;
    font-family: inherit;
}

.footer__newsletter .newsletter-form input::placeholder {
    color: var(--neutral-500);
}

.footer__newsletter .newsletter-form button {
    padding: 10px 20px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8125rem;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.footer__newsletter .newsletter-form button:hover {
    background: var(--primary-hover);
}

.footer__newsletter p {
    font-size: 0.75rem;
    color: var(--neutral-500);
    margin-top: 8px;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    flex-wrap: wrap;
    gap: 12px;
}

.footer__bottom-links {
    display: flex;
    gap: 24px;
}

.footer__bottom-links a {
    color: var(--neutral-400);
    font-size: 0.75rem;
}

.footer__bottom-links a:hover {
    color: var(--white);
}

@media (max-width: 992px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ─── Forms ─── */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--neutral-600);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.875rem;
    font-family: inherit;
    border: 1.5px solid var(--neutral-300);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--neutral-dark);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 100, 168, 0.12);
}

.form-control.error {
    border-color: var(--error);
}

.form-control::placeholder {
    color: var(--neutral-400);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236c757d' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

/* Dark form context */
.form--dark .form-group label {
    color: rgba(255, 255, 255, 0.8);
}

.form--dark .form-control {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.form--dark .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form--dark .form-control:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}

/* ─── CTA Section ─── */
.cta-section {
    background: linear-gradient(135deg, #0064A8 0%, #003875 100%);
    color: var(--white);
    padding: 64px 0;
    text-align: center;
    border-radius: var(--radius-lg);
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 16px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.85);
    max-width: 560px;
    margin: 0 auto 32px;
}

.cta-section .cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── Contact Section (Dark) ─── */
.contact-section {
    background: var(--neutral-dark);
    padding: 80px 0;
    color: var(--white);
}

.contact-section__grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 64px;
    align-items: start;
}

.contact-info h2 {
    color: var(--white);
    margin-bottom: 16px;
}

.contact-info p {
    color: var(--neutral-400);
    margin-bottom: 32px;
}

.contact-info__item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.875rem;
    color: var(--neutral-400);
}

.contact-info__item i {
    color: var(--primary);
    width: 20px;
    text-align: center;
}

@media (max-width: 768px) {
    .contact-section__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ─── Feature List ─── */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.feature-item__icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-size: 0.625rem;
}

.feature-item__content h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.feature-item__content p {
    font-size: 0.8125rem;
    color: var(--neutral-500);
    margin-bottom: 0;
}

/* ─── Stats Row ─── */
.stats-row {
    display: flex;
    gap: 48px;
    margin-top: 32px;
}

.stat-item {
    text-align: left;
}

.stat-item .stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-item .stat-label {
    font-size: 0.8125rem;
    color: var(--neutral-500);
    margin-top: 4px;
}

/* ─── Sidebar ─── */
.sidebar-cta {
    background: linear-gradient(135deg, #0064A8, #003875);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
    margin-bottom: 24px;
}

.sidebar-cta h3 {
    color: var(--white);
    font-size: 1.125rem;
    margin-bottom: 12px;
}

.sidebar-cta p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8125rem;
    margin-bottom: 20px;
}

.sidebar-widget {
    background: var(--white);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.sidebar-widget h3 {
    font-size: 1rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--neutral-100);
}

/* ─── Tags ─── */
.tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--neutral-100);
    color: var(--neutral-600);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: var(--transition);
}

.tag:hover {
    background: var(--primary);
    color: var(--white);
}

/* ─── Category Tabs ─── */
.category-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.category-tab {
    padding: 8px 20px;
    border-radius: 50px;
    border: 1.5px solid var(--neutral-300);
    background: var(--white);
    color: var(--neutral-600);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-family: inherit;
}

.category-tab:hover,
.category-tab.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ─── Pagination ─── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 48px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--neutral-300);
    color: var(--neutral-600);
    transition: var(--transition);
}

.pagination a:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.pagination .active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.pagination .dots {
    border: none;
    color: var(--neutral-400);
}

/* ─── Spec Table ─── */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}

.spec-table th {
    background: var(--neutral-dark);
    color: var(--white);
    padding: 12px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
}

.spec-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--neutral-200);
    font-size: 0.875rem;
    color: var(--neutral-600);
}

.spec-table tr:hover td {
    background: var(--primary-light);
}

.spec-table .badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.6875rem;
    font-weight: 600;
    background: var(--primary-light);
    color: var(--primary);
}

/* ─── Alert / Flash Messages ─── */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius);
    font-size: 0.875rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.alert-error {
    background: #fff3f3;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.alert-warning {
    background: #fff8e1;
    color: #f57f17;
    border: 1px solid #ffe082;
}

/* ─── WhatsApp FloatingButton ─── */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
    color: var(--white);
}

/* ─── Animations ─── */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Two Column Layout ─── */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.two-col--reverse {
    direction: rtl;
}

.two-col--reverse>* {
    direction: ltr;
}

@media (max-width: 768px) {

    .two-col,
    .two-col--reverse {
        grid-template-columns: 1fr;
        gap: 32px;
        direction: ltr;
    }
}

/* ─── Image with overlay ─── */
.image-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: var(--white);
    font-size: 0.8125rem;
}

/* ─── Page Content ─── */
.page-content {
    padding: 48px 0 80px;
}

.page-content h2 {
    margin: 32px 0 16px;
    color: var(--neutral-dark);
}

.page-content h3 {
    margin: 24px 0 12px;
}

.page-content p {
    margin-bottom: 16px;
    line-height: 1.8;
}

.page-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--primary-light);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--neutral-600);
}

.page-content ul,
.page-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.page-content ul {
    list-style: disc;
}

.page-content ol {
    list-style: decimal;
}

.page-content li {
    margin-bottom: 8px;
    color: var(--neutral-600);
}

/* ─── Utility Classes ─── */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary) !important;
}

.text-white {
    color: var(--white) !important;
}

.text-muted {
    color: var(--neutral-500) !important;
}

.text-sm {
    font-size: 0.8125rem;
}

.text-xs {
    font-size: 0.75rem;
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

.mt-4 {
    margin-top: 32px;
}

.mt-5 {
    margin-top: 48px;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

.mb-4 {
    margin-bottom: 32px;
}

.d-flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.gap-1 {
    gap: 8px;
}

.gap-2 {
    gap: 16px;
}

.gap-3 {
    gap: 24px;
}

.rounded {
    border-radius: var(--radius-lg);
}

.shadow {
    box-shadow: var(--shadow-md);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Honeypot */
.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* ─── Dark Section ─── */
.section--dark {
    background: var(--bg-dark);
    color: #fff;
}

/* ─── Service Card Images ─── */
.service-card__img {
    height: 160px;
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
    margin: -24px -24px 16px -24px;
}

.service-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-card:hover .service-card__img img {
    transform: scale(1.08);
}

/* ─── Video Cards ─── */
.video-card {
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.video-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.video-card__wrapper {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    cursor: pointer;
}

.video-card__wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(0, 100, 168, 0.9);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.125rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    z-index: 2;
}

.video-card__play:hover {
    background: var(--primary);
    transform: translate(-50%, -50%) scale(1.12);
}

.video-card__wrapper.playing .video-card__play {
    opacity: 0;
    pointer-events: none;
}

.video-card__wrapper.playing:hover .video-card__play {
    opacity: 1;
    pointer-events: auto;
}

.video-card__wrapper.playing .video-card__play i::before {
    content: "\f04c";
}

.video-card h4 {
    padding: 16px 20px 4px;
    color: #fff;
    font-size: 1rem;
}

.video-card p {
    padding: 0 20px 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8125rem;
    line-height: 1.5;
}

/* Light context video cards (outside dark section) */
.section:not(.section--dark) .video-card h4 {
    color: var(--neutral-dark);
}

.section:not(.section--dark) .video-card p {
    color: var(--neutral-500);
}

.section:not(.section--dark) .video-card__play {
    background: rgba(0, 100, 168, 0.85);
}

/* ─── WhatsApp Button ─── */
.btn-whatsapp {
    background: #25D366;
    color: #fff !important;
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: var(--transition);
}

.btn-whatsapp:hover {
    background: #1da851;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* ─── Two-Col Reverse (RTL trick) ─── */
.two-col[style*="direction:rtl"]>div {
    direction: ltr;
}

@media (max-width: 768px) {
    .video-card__play {
        width: 44px;
        height: 44px;
        font-size: 0.9rem;
    }

    .service-card__img {
        height: 140px;
    }
}