/**
 * Mobile-First Base Styles
 * Base styles for mobile devices, enhanced for desktop via min-width media queries
 * Part of: İzmir Tenteci Mobile Optimization Project
 */

/* ========================================
   CSS VARIABLES & RESET
   ======================================== */
:root {
    /* Colors */
    --primary: #D4AF37;
    --primary-dark: #B8962E;
    --primary-light: #E8C869;
    --secondary: #1A1A1A;
    --text-dark: #1A1A1A;
    --text-light: #F5F5F5;
    --text-gray: #6B7280;
    --bg-dark: #0F0F0F;
    --bg-card: #1E1E1E;
    --bg-light: #FAFAFA;
    --white: #FFFFFF;
    --black: #000000;

    /* Spacing - Net ve Belirgin */
    --space-xs: 0.5rem;
    /* 8px */
    --space-sm: 1rem;
    /* 16px */
    --space-md: 1.5rem;
    /* 24px - Standart boşluk */
    --space-lg: 2rem;
    /* 32px */
    --space-xl: 3rem;
    /* 48px */
    --space-2xl: 4rem;
    /* 64px */

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);

    /* Z-Index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* Reset & Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(0.875rem, 2vw, 1rem);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Dark mode base */
@media (prefers-color-scheme: dark) {
    body {
        color: var(--text-light);
        background-color: var(--bg-dark);
    }
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

h1 {
    font-size: clamp(1.75rem, 5vw, 3rem);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
}

h5 {
    font-size: clamp(1rem, 2vw, 1.25rem);
}

h6 {
    font-size: clamp(0.875rem, 1.5vw, 1rem);
}

p {
    margin-bottom: var(--space-md);
}

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

a:hover,
a:focus {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Images */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Forms */
input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    background: none;
    border: none;
}

/* Lists */
ul,
ol {
    list-style: none;
}

/* Tables */
table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only:focus {
    position: static;
    width: auto;
    height: auto;
    padding: inherit;
    margin: inherit;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* Focus Visible */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Selection */
::selection {
    background-color: var(--primary);
    color: var(--black);
}

/* ========================================
   MOBILE LAYOUT
   ======================================== */

/* Container */
.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Grid System (Mobile First) */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 calc(var(--space-md) * -0.5);
}

.col {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 calc(var(--space-md) * 0.5);
}

/* Sections */
.section {
    padding: var(--space-xl) 0;
}

.section-light {
    padding: var(--space-xl) 0;
    background-color: var(--bg-light);
}

.section-dark {
    padding: var(--space-xl) 0;
    background-color: var(--bg-dark);
    color: var(--text-light);
}

/* ========================================
   HERO SECTION (Cinema Style)
   ======================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
    /* Header payı */
}

/* Background Wrapper */
.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    /* Taşmayı engelle */
}

/* Blobs Removed for Sharper Look */
.hero-bg-animation {
    display: none;
}

/* Cinematic Zoom Effect */
.hero-video-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: cinemaZoom 20s ease-out infinite alternate;
    /* Yavaş ve şık hareket */
    transform-origin: center center;
}

@keyframes cinemaZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.15);
    }

    /* Hafif yakınlaşma */
}

/* Professional Overlay - Net Okunabilirlik */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.4) 0%,
            /* Üst kısım hafif karanlık */
            rgba(0, 0, 0, 0.6) 50%,
            /* Orta kısım okunaklı */
            rgba(0, 0, 0, 0.8) 100%
            /* Alt kısım zeminle birleşsin */
        );
    z-index: 2;
    backdrop-filter: blur(1px);
    /* Çok hafif bulanıklık metni öne çıkarır */
}

.hero .container {
    padding: 0 var(--space-lg);
    /* Kenarlardan daha fazla boşluk */
    text-align: center;
}

.hero h1 {
    color: var(--white);
    margin-bottom: var(--space-sm);
    /* Daha güvenli clamp değerleri - Uzun kelimeler sığsın */
    font-size: clamp(1.8rem, 6vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.01em;
    text-align: center;
    width: 100%;
}

.hero h1 span {
    color: var(--primary);
    display: block;
    /* Alt satıra geçsin */
    font-size: 0.9em;
    /* Ana başlıktan bir tık küçük olabilir */
}

.hero p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-lg);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--space-xs);
    /* Metin kenarlara yapışmasın */
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    width: 100%;
    max-width: 320px;
    /* Butonlar çok genişlemesin */
    margin: 0 auto;
}

/* ========================================
   BUTTONS (MOBILE FIRST)
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    min-width: 48px;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: var(--radius-sm);
    /* Daha keskin köşe */
    border: 1px solid transparent;
    /* Border tanımlı */
    cursor: pointer;
    transition: all 0.2s ease;
    touch-action: manipulation;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    /* Okunabilirlik */
    text-transform: uppercase;
    /* Kurumsal duruş */
    font-size: 0.9rem;
    /* Mobilde ideal boyut */
}

.btn-primary {
    background-color: var(--primary);
    color: var(--black);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-dark);
    color: var(--black);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-outline:hover,
.btn-outline:focus {
    background-color: var(--primary);
    color: var(--black);
    text-decoration: none;
    transform: translateY(-2px);
}

.btn-sm {
    min-height: 40px;
    padding: 10px 20px;
    font-size: 0.875rem;
}

.btn-lg {
    min-height: 56px;
    padding: 18px 32px;
    font-size: 1.125rem;
}

/* ========================================
   CARD COMPONENTS (MOBILE - SHARP & CORPORATE)
   ======================================== */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    /* 1rem boşluk - Net ayrım */
    padding: 0 var(--space-xs);
    /* Kenarlardan hafif boşluk */
}

/* Base Card Style - Keskin ve Net */
.bento-card,
.stat-card,
.service-grid-card,
.mega-service-card {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    /* İnce sınır çizgisi */
    border-radius: var(--radius-md);
    /* Daha az yuvarlak, daha ciddi */
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    /* Çok hafif gölge */
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

/* Active/Hover State */
.bento-card:active,
.stat-card:active,
.service-grid-card:active {
    transform: scale(0.98);
    /* Dokunma hissi */
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
}

.bento-card img {
    width: 100%;
    height: 220px;
    /* Sabit, net yükseklik */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    /* Resim-metin ayrımı */
}

.bento-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-md);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
    color: var(--white);
}

.bento-overlay h3,
.bento-overlay h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
    /* Kurumsal okunabilirlik */
}

/* ========================================
   NAVIGATION (MOBILE)
   ======================================== */
.site-header {
    position: sticky;
    top: 0;
    height: 60px;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    z-index: var(--z-sticky);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.site-header.scrolled {
    height: 50px;
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 var(--space-md);
}

.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: var(--z-fixed);
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-nav {
    position: fixed;
    top: 60px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 60px);
    background: var(--bg-dark);
    transition: left 0.3s ease;
    overflow-y: auto;
    z-index: var(--z-dropdown);
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav a {
    display: block;
    padding: var(--space-md) var(--space-lg);
    color: var(--text-light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav a:hover,
.mobile-nav a:focus {
    background: rgba(212, 175, 55, 0.1);
    text-decoration: none;
}

/* ========================================
   FOOTER (MOBILE)
   ======================================== */
.site-footer {
    background: var(--bg-dark);
    color: var(--text-gray);
    padding: var(--space-2xl) 0 var(--space-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-heading {
    color: var(--white);
    font-size: 1.125rem;
    margin-bottom: var(--space-md);
}

.footer-links a {
    display: block;
    color: var(--text-gray);
    padding: var(--space-xs) 0;
    transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-md);
    text-align: center;
    font-size: 0.875rem;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.font-medium {
    font-weight: 500;
}

.text-primary {
    color: var(--primary);
}

.text-gray {
    color: var(--text-gray);
}

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

.bg-primary {
    background-color: var(--primary);
}

.bg-dark {
    background-color: var(--bg-dark);
}

.mt-1 {
    margin-top: var(--space-xs);
}

.mt-2 {
    margin-top: var(--space-sm);
}

.mt-3 {
    margin-top: var(--space-md);
}

.mt-4 {
    margin-top: var(--space-lg);
}

.mt-5 {
    margin-top: var(--space-xl);
}

.mb-1 {
    margin-bottom: var(--space-xs);
}

.mb-2 {
    margin-bottom: var(--space-sm);
}

.mb-3 {
    margin-bottom: var(--space-md);
}

.mb-4 {
    margin-bottom: var(--space-lg);
}

.mb-5 {
    margin-bottom: var(--space-xl);
}

.p-1 {
    padding: var(--space-xs);
}

.p-2 {
    padding: var(--space-sm);
}

.p-3 {
    padding: var(--space-md);
}

.p-4 {
    padding: var(--space-lg);
}

.p-5 {
    padding: var(--space-xl);
}

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

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

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

/* ========================================
   REDUCED MOTION SUPPORT
   ======================================== */
@media (prefers-reduced-motion: reduce) {

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

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {

    .site-header,
    .site-footer,
    .btn,
    .mobile-nav {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
}