/* ========================================
   Ekin Havalandirma - Main Stylesheet
   Design based on karsac.com.tr layout
   ======================================== */

/* === RESET & BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #29B5DF;
    --primary-dark: #1E9AC0;
    --dark: #1a1a1a;
    --text: #333333;
    --text-light: #666666;
    --light-gray: #f5f5f5;
    --border-gray: #d1d2d7;
    --white: #ffffff;
    --font-primary: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === TOP BAR === */
.top-bar {
    background: var(--dark);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-left a {
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar-left a:hover {
    color: var(--primary);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-links a {
    color: var(--white);
    font-size: 1rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary);
}

.lang-switch {
    display: flex;
    gap: 8px;
    margin-left: 15px;
    padding-left: 15px;
    border-left: 1px solid rgba(255,255,255,0.3);
}

.lang-switch a {
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
    font-weight: 600;
}

.lang-switch a.active {
    color: var(--white);
}

/* === HEADER / NAVBAR === */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s;
}

.header.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
}

.logo img {
    height: 55px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    padding: 20px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--dark);
    letter-spacing: 0.5px;
    transition: color 0.3s, background 0.3s;
}

.nav-menu > li > a:hover,
.nav-menu > li.active > a {
    color: var(--primary);
}

/* Dropdown */
.nav-menu li .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: var(--white);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border-top: 3px solid var(--primary);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.nav-menu li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li a {
    display: block;
    padding: 12px 20px;
    font-size: 0.85rem;
    color: var(--text);
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
}

.dropdown li a:hover {
    background: var(--light-gray);
    color: var(--primary);
    padding-left: 25px;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* === HERO SLIDER === */
.hero-slider {
    position: relative;
    width: 100%;
    height: 75vh;
    min-height: 500px;
    max-height: 750px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.5);
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 20px;
}

.slide-content h2 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    opacity: 0.9;
    font-weight: 400;
}

.slide-content h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.slide-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.7;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(41, 181, 223, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--dark);
}

/* Slider Controls */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.slider-dots .dot.active {
    background: var(--primary);
    border-color: var(--white);
    transform: scale(1.2);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(0,0,0,0.3);
    color: var(--white);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: background 0.3s;
    border: none;
}

.slider-arrow:hover {
    background: var(--primary);
}

.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }

/* === SECTION COMMON === */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
}

.section-header p {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 650px;
    margin: 20px auto 0;
    line-height: 1.7;
}

.section-alt {
    background: var(--light-gray);
}

/* === PRODUCTS SECTION === */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.product-card {
    background: var(--white);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.product-card-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.product-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(transparent, rgba(0,0,0,0.5));
}

.product-card-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/logo.webp');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 50% auto;
    opacity: 0.2;
    pointer-events: none;
    z-index: 2;
}

.product-card-body {
    padding: 25px 20px;
}

.product-card-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-card-body p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

.product-card-body .card-link {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.product-card-body .card-link:hover {
    gap: 10px;
}

/* === ABOUT SECTION === */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.about-image .experience-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--primary);
    color: var(--white);
    padding: 20px 25px;
    border-radius: 5px;
}

.experience-badge .number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-content h2 {
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 20px;
    line-height: 1.3;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-gray);
}

.stat-item {
    text-align: center;
}

.stat-item .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-item .stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 5px;
}

/* === SERVICES SECTION === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
    transition: all 0.4s;
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-bottom-color: var(--primary);
}

.service-card .icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: rgba(41, 181, 223, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
}

.service-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
    padding-left: 0;
    border-left: none;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* === PROJECTS SECTION === */
.projects-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.projects-categories .cat-btn {
    padding: 10px 22px;
    border: 1px solid var(--border-gray);
    background: var(--white);
    color: var(--text);
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.3s;
}

.projects-categories .cat-btn:hover,
.projects-categories .cat-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.project-card {
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    height: 280px;
    cursor: pointer;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-card .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 30px 20px 20px;
    color: var(--white);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s;
}

.project-card:hover .overlay {
    transform: translateY(0);
    opacity: 1;
}

.project-card .overlay h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.project-card .overlay span {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* === REFERENCES / CLIENTS === */
.references-slider {
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.references-track {
    display: flex;
    animation: scrollRefs 30s linear infinite;
    gap: 40px;
    align-items: center;
}

@keyframes scrollRefs {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.references-track:hover {
    animation-play-state: paused;
}

.ref-logo {
    flex-shrink: 0;
    width: 150px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s;
}

.ref-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.ref-logo img {
    max-width: 120px;
    max-height: 60px;
    object-fit: contain;
}

/* === CERTIFICATES === */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.certificate-card {
    background: var(--white);
    padding: 30px;
    text-align: center;
    border-radius: 5px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
    transition: all 0.3s;
}

.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.certificate-card .cert-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.certificate-card h4 {
    font-size: 0.95rem;
    color: var(--dark);
    font-weight: 600;
}

/* === CTA SECTION === */
.cta-section {
    background: #0E5A7D;
    padding: 80px 0;
    text-align: center;
    color: var(--white);
}

.cta-section h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--white);
}

.cta-section p {
    font-size: 0.98rem;
    opacity: 0.95;
    line-height: 1.75;
    margin: 0 auto 30px;
    max-width: 780px;
}
.cta-section .btn {
    font-size: 0.8rem;
    padding: 12px 28px;
    border-radius: 10px;
}

/* === FOOTER === */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 15px;
}

.footer-col .footer-logo {
    height: 45px;
    margin-bottom: 15px;
    filter: brightness(0) invert(1);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 0.9rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.footer-contact li .icon {
    color: var(--primary);
    font-size: 1rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.footer-bottom a {
    color: rgba(255,255,255,0.5);
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: var(--primary);
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

/* === INNER PAGE HEADER === */
.page-header {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
                url('../images/slider/slide1.jpg') center/cover;
    padding: 100px 0 60px;
    text-align: center;
    color: var(--white);
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.breadcrumb a:hover {
    color: var(--primary);
}

/* === CONTACT PAGE === */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 30px;
}

.contact-info-card .icon {
    width: 50px;
    height: 50px;
    background: rgba(41, 181, 223, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-info-card h4 {
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 5px;
}

.contact-info-card p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--dark);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-gray);
    border-radius: 3px;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    transition: border-color 0.3s;
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.contact-map {
    margin-top: 50px;
    border-radius: 5px;
    overflow: hidden;
}

.contact-map iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* === CONTENT PAGE === */
.content-section {
    padding: 60px 0;
}

.content-section h2 {
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 20px;
}

.content-section p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

/* === SCROLL TO TOP === */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    border: none;
    font-size: 1.2rem;
    z-index: 999;
    box-shadow: 0 3px 15px rgba(41, 181, 223, 0.3);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* === ANIMATIONS === */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .certificates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .top-bar { display: none; }

    .menu-toggle { display: flex; }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 20px 20px;
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        transition: right 0.4s ease;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu > li > a {
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-menu li .dropdown {
        position: static;
        box-shadow: none;
        border-top: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        background: var(--light-gray);
    }

    .nav-menu li .dropdown.open {
        display: block;
    }

    .hero-slider {
        height: 50vh;
        min-height: 350px;
    }

    .slide-content h1 {
        font-size: 1.8rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .section {
        padding: 50px 0;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .slider-arrow { display: none; }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .certificates-grid {
        grid-template-columns: 1fr;
    }
}

/* === INLINE SEARCH PILL (topbar) === */
.tm-toolbar > .uk-container {
    justify-content: space-between !important;
}
.tm-search-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 300px;
    max-width: 100%;
    height: 30px;
    background: #fff;
    border: 1px solid #d8dce0;
    border-radius: 999px;
    padding: 0 3px 0 14px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.tm-search-wrap:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(41,181,223,0.15);
}
.tm-search-wrap input.tm-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 12.5px;
    color: #222;
    height: 100%;
    min-width: 0;
    padding: 0;
}
.tm-search-wrap input.tm-search-input::placeholder {
    color: #9aa0a6;
}
.tm-search-btn {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background 0.2s;
    padding: 0;
}
.tm-search-btn:hover { background: var(--primary-dark); }
.tm-search-btn svg { width: 13px; height: 13px; }
.tm-search-suggestions {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: 320px;
    overflow-y: auto;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    display: none;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 1000;
}
.tm-search-wrap.has-results .tm-search-suggestions { display: block; }
.tm-search-suggestions li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 16px;
    font-size: 13px;
    color: #333;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.tm-search-suggestions .tm-search-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tm-search-suggestions .tm-search-cat {
    flex: 0 0 auto;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #888;
    background: #f3f3f3;
    padding: 2px 8px;
    border-radius: 10px;
}
.tm-search-suggestions li a:hover,
.tm-search-suggestions li a:hover .tm-search-cat,
.tm-search-suggestions li a.active {
    background: var(--primary);
    color: #fff;
}
.tm-search-suggestions li a:hover .tm-search-cat {
    background: rgba(255,255,255,0.25);
    color: #fff;
}
.tm-search-suggestions li.tm-search-empty {
    padding: 12px 16px;
    font-size: 13px;
    color: #888;
    text-align: center;
}
@media (max-width: 1100px) {
    .tm-search-wrap { width: 240px; }
}

/* Mobile offcanvas variant — full width, larger touch target */
.tm-search-wrap.tm-search-wrap--mobile {
    width: 100%;
    height: 40px;
    padding: 0 4px 0 16px;
    margin: 8px 0 18px;
}
.tm-search-wrap.tm-search-wrap--mobile input.tm-search-input {
    font-size: 14px;
}
.tm-search-wrap.tm-search-wrap--mobile .tm-search-btn {
    width: 32px;
    height: 32px;
}
.tm-search-wrap.tm-search-wrap--mobile .tm-search-btn svg {
    width: 16px;
    height: 16px;
}
