/**
 * Responsive Styles
 * Mobile-first breakpoints and utilities
 *
 * @package elegant
 */

/* ========================================
   Base Reset & Box Sizing
   ======================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

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

/* ========================================
   Container Utilities
   ======================================== */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

@media (min-width: 576px) {
    .container {
        padding: 0 20px;
    }
}

@media (min-width: 768px) {
    .container {
        padding: 0 30px;
    }
}

@media (min-width: 1200px) {
    .container {
        padding: 0 40px;
    }
}

/* ========================================
   Spacing Utilities
   ======================================== */
.section-padding {
    padding: 60px 0;
}

@media (min-width: 768px) {
    .section-padding {
        padding: 80px 0;
    }
}

@media (min-width: 1024px) {
    .section-padding {
        padding: 100px 0;
    }
}

/* ========================================
   Typography Responsive
   ======================================== */
html {
    font-size: 14px;
}

@media (min-width: 576px) {
    html {
        font-size: 15px;
    }
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

/* ========================================
   Display Utilities
   ======================================== */
.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

.d-flex {
    display: flex !important;
}

/* Mobile visibility */
@media (max-width: 575.98px) {
    .d-sm-none {
        display: none !important;
    }
    .d-sm-block {
        display: block !important;
    }
}

/* Tablet visibility */
@media (max-width: 767.98px) {
    .d-md-none {
        display: none !important;
    }
    .d-md-block {
        display: block !important;
    }
}

/* Desktop visibility */
@media (max-width: 1023.98px) {
    .d-lg-none {
        display: none !important;
    }
    .d-lg-block {
        display: block !important;
    }
}

/* Show only on specific breakpoints */
@media (min-width: 576px) {
    .d-sm-up-none {
        display: none !important;
    }
    .d-sm-up-block {
        display: block !important;
    }
}

@media (min-width: 768px) {
    .d-md-up-none {
        display: none !important;
    }
    .d-md-up-block {
        display: block !important;
    }
}

@media (min-width: 1024px) {
    .d-lg-up-none {
        display: none !important;
    }
    .d-lg-up-block {
        display: block !important;
    }
}

/* ========================================
   Text Alignment Utilities
   ======================================== */
.text-center {
    text-align: center !important;
}

.text-start {
    text-align: left !important;
}

.text-end {
    text-align: right !important;
}

[dir="rtl"] .text-start {
    text-align: right !important;
}

[dir="rtl"] .text-end {
    text-align: left !important;
}

@media (max-width: 767.98px) {
    .text-md-center {
        text-align: center !important;
    }
}

/* ========================================
   Flexbox Utilities
   ======================================== */
.flex-wrap {
    flex-wrap: wrap !important;
}

.justify-center {
    justify-content: center !important;
}

.justify-between {
    justify-content: space-between !important;
}

.align-center {
    align-items: center !important;
}

.flex-column {
    flex-direction: column !important;
}

@media (max-width: 767.98px) {
    .flex-md-column {
        flex-direction: column !important;
    }
}

/* ========================================
   Gap Utilities
   ======================================== */
.gap-1 {
    gap: 0.5rem !important;
}

.gap-2 {
    gap: 1rem !important;
}

.gap-3 {
    gap: 1.5rem !important;
}

.gap-4 {
    gap: 2rem !important;
}

/* ========================================
   Main Content Area
   ======================================== */
#primary {
    padding-top: var(--header-height, 80px);
}

.home #primary,
.page-template-page-home #primary {
    padding-top: 0;
}

/* ========================================
   Body Lock (for mobile menu)
   ======================================== */
/* Menu slides down from header, no need to lock body scroll */
body.menu-open {
    /* Allow scrolling the page while menu is open */
    /* overflow: hidden; - removed for slide-down menu */
}

/* ========================================
   Image Responsive
   ======================================== */
.img-fluid {
    max-width: 100%;
    height: auto;
}

.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-contain {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ========================================
   Aspect Ratios
   ======================================== */
.aspect-video {
    aspect-ratio: 16 / 9;
}

.aspect-square {
    aspect-ratio: 1 / 1;
}

.aspect-portrait {
    aspect-ratio: 3 / 4;
}

/* ========================================
   Grid System
   ======================================== */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    flex: 1;
    padding: 0 15px;
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 15px;
}

.col-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 15px;
}

.col-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 0 15px;
}

.col-3 {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0 15px;
}

@media (max-width: 991.98px) {
    .col-lg-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .col-lg-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
	div.site{overflow:hidden;}
	.contact-main{overflow:hidden;}
}

@media (max-width: 767.98px) {
    .col-md-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 575.98px) {
    .col-sm-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ========================================
   Button Responsive
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

@media (max-width: 575.98px) {
    .btn {
        padding: 10px 22px;
        font-size: 0.95rem;
    }
}

/* ========================================
   Form Elements Responsive
   ======================================== */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="search"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color, #f5a623);
}

@media (max-width: 575.98px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="url"],
    input[type="password"],
    input[type="search"],
    textarea,
    select {
        padding: 10px 14px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* ========================================
   Touch Device Optimizations
   ======================================== */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    a,
    button,
    input[type="submit"],
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Remove hover effects on touch devices */
    .header-contact-btn:hover,
    .slide-btn:hover {
        transform: none;
        box-shadow: none;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .site-header,
    .hero-slider,
    .slider-section,
    .mobile-navigation,
    .swiper-button-next,
    .swiper-button-prev,
    .swiper-pagination {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    a {
        text-decoration: underline;
    }
    
    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 10pt;
    }
}

/* ========================================
   High Contrast Mode
   ======================================== */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #ff9500;
        --header-text-color: #ffffff;
    }
    
    .site-header {
        background: #000000 !important;
    }
    
    .main-navigation ul li a,
    .header-contact-btn {
        border: 2px solid currentColor;
    }
}

/* ========================================
   Dark Mode Support
   ======================================== */
@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #f1f5f9;
        --bg-color: #0f172a;
    }
}

/* ========================================
   Landscape Mobile Fix
   ======================================== */
@media (max-height: 500px) and (orientation: landscape) {
    .slider-section {
        min-height: 100vh;
    }
    
    .slide-content {
        padding-top: 80px;
    }
    
    .slide-title {
        font-size: 1.8rem;
    }
    
    .slide-description {
        display: none;
    }
}

/* ========================================
   Safe Area Insets (Notch devices)
   ======================================== */
@supports (padding: max(0px)) {
    .site-header {
        padding-left: max(30px, env(safe-area-inset-left));
        padding-right: max(30px, env(safe-area-inset-right));
    }
    
    .slider-section {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

