/*
====================================
YENER LOGISTICS - RESPONSIVE CSS
====================================
Referans: Logico Theme
Mobile-First Responsive Design
====================================
*/

/* ====================================
   LARGE DESKTOP (1200px+)
   ==================================== */
@media (min-width: 1200px) {
    .container {
        max-width: 1380px;
    }
}

/* ====================================
   DESKTOP (992px - 1199px)
   ==================================== */
@media (max-width: 1199px) {
    :root {
        --padding-section: 100px;
        --padding-card: 40px 45px;
    }

    h1 {
        font-size: clamp(48px, 7vw, 100px);
    }

    h2 {
        font-size: clamp(38px, 5vw, 70px);
    }

    .hero-slide {
        min-height: 700px;
    }

    .icon-box-icon {
        width: 100px;
        height: 100px;
    }

    .icon-box-icon img,
    .icon-box-icon i {
        font-size: 75px;
    }
}

/* ====================================
   TABLET (768px - 991px)
   ==================================== */
@media (max-width: 991px) {
    :root {
        --padding-section: 80px;
        --padding-card: 35px 40px;
    }

    body {
        font-size: 17px;
    }

    /* Typography */
    h1 {
        font-size: clamp(42px, 6vw, 80px);
    }

    h2 {
        font-size: clamp(36px, 5vw, 60px);
    }

    h3 {
        font-size: clamp(28px, 4vw, 48px);
    }

    h4 {
        font-size: clamp(22px, 3vw, 32px);
    }

    p {
        font-size: 17px;
    }

    /* Header */
    .main-header {
        padding: 20px 0;
    }

    .navbar-brand {
        font-size: 28px;
    }

    .navbar-collapse {
        margin-top: 20px;
        padding: 20px;
        background: #f8f9fa;
        border-radius: var(--border-radius-main);
    }

    .navbar-nav .nav-link {
        padding: 14px 20px !important;
        border-radius: 15px;
        margin-bottom: 5px;
    }

    /* Hero Slider */
    .hero-slide {
        min-height: 600px;
    }

    .hero-content h1 {
        font-size: clamp(42px, 7vw, 75px);
    }

    .hero-content p {
        font-size: clamp(18px, 2vw, 24px);
    }

    .hero-slider-section .owl-nav button {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .hero-slider-section .owl-nav .owl-prev {
        left: 20px;
    }

    .hero-slider-section .owl-nav .owl-next {
        right: 20px;
    }

    /* Buttons */
    .btn {
        font-size: 17px;
        padding: calc(0.6em + 2px) 2.2em;
    }

    .btn-lg {
        font-size: 18px;
        padding: calc(0.75em + 2px) 2.7em;
    }

    /* Section */
    .section-title {
        margin-bottom: 60px;
    }

    .section-title p {
        font-size: 18px;
    }

    /* Icon Box */
    .icon-box-wrapper {
        padding: 40px 35px;
        margin-bottom: 30px;
    }

    .icon-box-icon {
        width: 90px;
        height: 90px;
        margin-bottom: 25px;
    }

    .icon-box-icon i {
        font-size: 70px;
    }

    /* Service Cards */
    .service-card-modern {
        padding: 35px;
        margin-bottom: 25px;
    }

    .service-card-icon {
        min-width: 70px;
        width: 70px;
        height: 70px;
        font-size: 35px;
    }

    /* Stats */
    .stat-number {
        font-size: clamp(48px, 5vw, 80px);
    }

    .stat-label {
        font-size: 18px;
    }

    /* Blog Cards */
    .blog-card-img {
        height: 280px;
    }

    .blog-card-content {
        padding: 35px;
    }

    .blog-card-title {
        font-size: 24px;
    }

    /* Footer */
    .footer {
        padding-top: 80px;
        padding-bottom: 50px;
    }

    .footer h5 {
        font-size: 22px;
        margin-bottom: 30px;
    }

    .footer-bottom {
        margin-top: 60px;
    }

    /* Forms */
    .form-control,
    .form-select {
        padding: 16px 22px;
        font-size: 16px;
    }
}

/* ====================================
   MOBILE LANDSCAPE (768px - 991px) LANDSCAPE
   ==================================== */
@media (min-width: 768px) and (max-width: 991px) and (orientation: landscape) {
    .hero-slide {
        min-height: 500px;
    }

    .section {
        padding: 60px 0;
    }
}

/* ====================================
   MOBILE (576px - 767px)
   ==================================== */
@media (max-width: 767px) {
    :root {
        --padding-section: 60px;
        --padding-card: 30px;
        --border-radius-main: 20px;
    }

    body {
        font-size: 16px;
    }

    /* Typography */
    h1 {
        font-size: clamp(36px, 6vw, 56px);
    }

    h2 {
        font-size: clamp(32px, 5vw, 48px);
    }

    h3 {
        font-size: clamp(26px, 4vw, 38px);
    }

    h4 {
        font-size: clamp(22px, 3vw, 28px);
    }

    h5 {
        font-size: 21px;
    }

    h6 {
        font-size: 18px;
    }

    p {
        font-size: 16px;
        line-height: 1.7;
    }

    /* Top Bar */
    .top-bar {
        font-size: 13px;
        padding: 12px 0;
    }

    .top-bar .row > div {
        text-align: center !important;
        margin-bottom: 8px;
    }

    .top-bar .row > div:last-child {
        margin-bottom: 0;
    }

    /* Header */
    .main-header {
        padding: 15px 0;
    }

    .navbar-brand {
        font-size: 24px;
    }

    .navbar-toggler {
        border: none;
        padding: 8px;
    }

    .navbar-collapse {
        max-height: 70vh;
        overflow-y: auto;
    }

    .navbar-nav .nav-link {
        text-align: center;
    }

    /* Hero Slider */
    .hero-slide {
        min-height: 550px;
        padding: 60px 0;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content h1 {
        font-size: clamp(32px, 7vw, 56px);
        margin-bottom: 25px;
    }

    .hero-content p {
        font-size: clamp(16px, 2vw, 20px);
        margin-bottom: 35px;
    }

    .hero-slider-section .owl-nav button {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .hero-slider-section .owl-nav .owl-prev {
        left: 15px;
    }

    .hero-slider-section .owl-nav .owl-next {
        right: 15px;
    }

    .hero-slider-section .owl-dots {
        bottom: 25px;
    }

    /* Buttons */
    .btn {
        font-size: 15px;
        padding: calc(0.6em + 2px) 2em;
        width: 100%;
        justify-content: center;
    }

    .btn-lg {
        font-size: 17px;
        padding: calc(0.7em + 2px) 2.5em;
    }

    .d-flex.gap-3 {
        flex-direction: column !important;
        gap: 15px !important;
    }

    /* Section */
    .section {
        padding: 60px 0;
    }

    .section-sm {
        padding: 50px 0;
    }

    .section-title {
        margin-bottom: 45px;
    }

    .section-title h2 {
        margin-bottom: 20px;
    }

    .section-title p {
        font-size: 16px;
    }

    /* Icon Box */
    .icon-box-wrapper {
        padding: 35px 25px;
        margin-bottom: 25px;
    }

    .icon-box-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 22px;
    }

    .icon-box-icon i {
        font-size: 60px;
    }

    .icon-box-wrapper h4 {
        font-size: clamp(20px, 3vw, 26px);
    }

    .icon-box-wrapper p {
        font-size: 16px;
    }

    /* Service Cards */
    .service-card-modern {
        padding: 30px 25px;
        margin-bottom: 20px;
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .service-card-icon {
        margin-bottom: 20px;
    }

    .service-card-content h4 {
        font-size: 22px;
    }

    /* Stats */
    .stat-box {
        padding: 40px 20px;
    }

    .stat-number {
        font-size: clamp(42px, 5vw, 68px);
        margin-bottom: 15px;
    }

    .stat-label {
        font-size: 17px;
    }

    /* Cards */
    .card-custom {
        margin-bottom: 25px;
    }

    .card-custom img {
        height: 240px;
    }

    .card-custom-body {
        padding: 30px;
    }

    .card-custom-body h4 {
        font-size: 22px;
    }

    /* Blog Cards */
    .blog-card-item {
        margin-bottom: 30px;
    }

    .blog-card-img {
        height: 240px;
    }

    .blog-card-content {
        padding: 30px;
    }

    .blog-card-meta {
        gap: 18px;
        font-size: 14px;
    }

    .blog-card-title {
        font-size: 22px;
    }

    /* Forms */
    .form-control,
    .form-select {
        padding: 15px 20px;
        font-size: 15px;
        border-radius: 15px;
    }

    textarea.form-control {
        min-height: 150px;
    }

    .form-label {
        font-size: 16px;
    }

    /* Footer */
    .footer {
        padding-top: 60px;
        padding-bottom: 40px;
        text-align: center;
    }

    .footer h5 {
        font-size: 20px;
        margin-bottom: 25px;
        margin-top: 30px;
    }

    .footer h5:first-of-type {
        margin-top: 0;
    }

    .footer p {
        font-size: 16px;
    }

    .footer-links {
        margin-bottom: 30px;
    }

    .footer-links li {
        margin-bottom: 12px;
    }

    .footer-links a {
        font-size: 16px;
    }

    .social-links {
        justify-content: center;
        margin-top: 20px;
    }

    .social-links a {
        width: 46px;
        height: 46px;
        font-size: 18px;
    }

    .footer-bottom {
        margin-top: 50px;
        padding-top: 30px;
        text-align: center;
    }

    .footer-bottom .row > div {
        text-align: center !important;
        margin-bottom: 15px;
    }

    .footer-bottom .row > div:last-child {
        margin-bottom: 0;
    }

    /* Breadcrumb */
    .breadcrumb-section {
        padding: 80px 0;
    }

    .breadcrumb-section h1 {
        font-size: clamp(32px, 6vw, 48px);
    }

    /* WhatsApp & Scroll Buttons */
    .whatsapp-float {
        width: 58px;
        height: 58px;
        bottom: 25px;
        right: 25px;
        font-size: 30px;
    }

    .scroll-to-top {
        width: 50px;
        height: 50px;
        bottom: 25px;
        left: 25px;
        font-size: 20px;
    }

    /* Spacing */
    .row.g-4 {
        --bs-gutter-y: 1.5rem;
    }

    .mb-5, .my-5 {
        margin-bottom: 2.5rem !important;
    }

    .mt-5, .my-5 {
        margin-top: 2.5rem !important;
    }
}

/* ====================================
   SMALL MOBILE (320px - 575px)
   ==================================== */
@media (max-width: 575px) {
    :root {
        --padding-section: 50px;
        --padding-card: 25px;
    }

    /* Typography */
    h1 {
        font-size: clamp(30px, 6vw, 48px);
    }

    h2 {
        font-size: clamp(28px, 5vw, 40px);
    }

    h3 {
        font-size: clamp(24px, 4vw, 32px);
    }

    /* Hero */
    .hero-slide {
        min-height: 480px;
    }

    .hero-content h1 {
        font-size: clamp(28px, 7vw, 46px);
    }

    .hero-content p {
        font-size: clamp(15px, 2vw, 18px);
    }

    /* Buttons */
    .btn {
        font-size: 14px;
        padding: calc(0.55em + 2px) 1.8em;
    }

    .btn-lg {
        font-size: 16px;
        padding: calc(0.65em + 2px) 2.2em;
    }

    /* Section */
    .section {
        padding: 50px 0;
    }

    .section-title {
        margin-bottom: 40px;
    }

    /* Icon Box */
    .icon-box-wrapper {
        padding: 28px 20px;
    }

    .icon-box-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }

    .icon-box-icon i {
        font-size: 55px;
    }

    /* Service Cards */
    .service-card-modern {
        padding: 25px 20px;
    }

    .service-card-icon {
        min-width: 65px;
        width: 65px;
        height: 65px;
        font-size: 32px;
    }

    /* Stats */
    .stat-box {
        padding: 30px 15px;
    }

    .stat-number {
        font-size: clamp(38px, 5vw, 58px);
    }

    .stat-label {
        font-size: 16px;
    }

    /* Blog */
    .blog-card-img {
        height: 200px;
    }

    .blog-card-content {
        padding: 25px;
    }

    /* Footer */
    .footer {
        padding-top: 50px;
        padding-bottom: 35px;
    }

    .footer h5 {
        font-size: 19px;
        margin-bottom: 22px;
    }

    /* Breadcrumb */
    .breadcrumb-section {
        padding: 60px 0;
    }

    /* Container */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* ====================================
   EXTRA SMALL (< 400px)
   ==================================== */
@media (max-width: 399px) {
    .hero-slide {
        min-height: 450px;
    }

    .hero-slider-section .owl-nav button {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .hero-slider-section .owl-nav .owl-prev {
        left: 10px;
    }

    .hero-slider-section .owl-nav .owl-next {
        right: 10px;
    }

    .icon-box-wrapper {
        padding: 25px 15px;
    }

    .service-card-modern {
        padding: 22px 18px;
    }

    .whatsapp-float {
        width: 54px;
        height: 54px;
        font-size: 28px;
    }

    .scroll-to-top {
        width: 46px;
        height: 46px;
        font-size: 18px;
    }
}

/* ====================================
   TOUCH DEVICE OPTIMIZATIONS
   ==================================== */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .btn {
        min-height: 48px;
    }

    .nav-link {
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    .social-links a {
        min-width: 48px;
        min-height: 48px;
    }

    /* Disable hover transforms on touch */
    .card-custom:hover,
    .icon-box-wrapper:hover,
    .service-card-modern:hover,
    .blog-card-item:hover {
        transform: none;
    }

    /* Simplify transitions */
    * {
        transition-duration: 0.2s !important;
    }
}

/* ====================================
   RETINA DISPLAYS
   ==================================== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* ====================================
   UTILITY RESPONSIVE CLASSES
   ==================================== */

/* Hide on mobile */
@media (max-width: 767px) {
    .hide-mobile {
        display: none !important;
    }

    .text-md-start,
    .text-md-end {
        text-align: center !important;
    }

    .justify-content-md-start,
    .justify-content-md-end {
        justify-content: center !important;
    }
}

/* Hide on desktop */
@media (min-width: 768px) {
    .hide-desktop {
        display: none !important;
    }
}

/* Full width on mobile */
@media (max-width: 767px) {
    .w-100-mobile {
        width: 100% !important;
    }
}

/* ====================================
   PRINT STYLES
   ==================================== */
@media print {
    .no-print,
    .whatsapp-float,
    .scroll-to-top,
    .top-bar,
    .main-header,
    .footer,
    .hero-slider-section .owl-nav,
    .hero-slider-section .owl-dots {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    .container {
        max-width: 100%;
    }

    .section {
        padding: 20pt 0;
    }

    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        color: #666;
    }
}

/* ====================================
   ACCESSIBILITY - LARGE TEXT MODE
   ==================================== */
@media screen and (min-width: 1920px) {
    body {
        font-size: 19px;
    }

    h1 {
        font-size: clamp(60px, 8vw, 130px);
    }

    h2 {
        font-size: clamp(46px, 6vw, 90px);
    }
}

/* ====================================
   DARK MODE SUPPORT (Future)
   ==================================== */
@media (prefers-color-scheme: dark) {
    /* Uncomment when dark mode is implemented
    :root {
        --white: #1a1a1a;
        --secondary-color: #ffffff;
        --gray-light: #cccccc;
    }
    */
}
