/* ============================================================
   IDEX × TOPRAK — Layout
   ============================================================ */

/* ---- Container ---- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.container-narrow { max-width: 800px; }
.container-wide { max-width: 1400px; }

/* ---- Sections ---- */
.section {
    padding: 100px 0;
    position: relative;
}
.section-sm { padding: 60px 0; }
.section-lg { padding: 140px 0; }

/* Section backgrounds */
.bg-paper { background: var(--paper); }
.bg-white { background: var(--white); }
.bg-cream { background: var(--cream); }
.bg-mist { background: var(--mist); }
.bg-charcoal { background: var(--charcoal); color: #fff; }
.bg-void { background: var(--void); color: #fff; }
.bg-dark-2 { background: var(--dark-2); color: #fff; }
.bg-dark-3 { background: var(--dark-3); color: #fff; }
.bg-teal { background: var(--teal); color: #fff; }
.bg-orange { background: var(--orange); color: #fff; }

/* Dark section text overrides */
.bg-charcoal .text-muted,
.bg-void .text-muted,
.bg-dark-2 .text-muted,
.bg-dark-3 .text-muted {
    color: rgba(255, 255, 255, 0.5);
}

.bg-charcoal .section-label,
.bg-void .section-label {
    color: rgba(255, 255, 255, 0.4);
}

/* ---- Grid ---- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---- Flex ---- */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-center { align-items: center; justify-content: center; }
.flex-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.gap-48 { gap: 48px; }

/* ---- Spacing ---- */
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

/* ---- Navbar ---- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    transition: all 0.3s var(--ease);
}
.site-header.scrolled {
    background: rgba(250, 250, 247, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.site-logo img {
    height: 28px;
    transition: opacity 0.2s;
}
.site-logo img:hover { opacity: 0.8; }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}
.nav-menu a {
    font-size: 14px;
    font-weight: 500;
    color: var(--txt);
    transition: color 0.2s var(--ease);
    text-decoration: none;
}
.nav-menu a:hover,
.nav-menu .current-menu-item a {
    color: var(--teal);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Hamburger */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    position: relative;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--txt);
    margin: 5px auto;
    transition: all 0.3s var(--ease);
}

/* ---- Footer ---- */
.site-footer {
    background: var(--void);
    color: #fff;
    padding: 80px 0 32px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 60px;
}
.footer-brand img {
    height: 32px;
    margin-bottom: 20px;
}
.footer-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.8;
    max-width: 320px;
}
.footer-heading {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 20px;
}
html[dir="rtl"] .footer-heading {
    letter-spacing: 0;
}
.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 12px;
}
.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s;
}
.footer-links a:hover {
    color: var(--teal);
}
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.25);
}

/* ---- WhatsApp FAB ---- */
.whatsapp-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    transition: all 0.3s var(--ease);
    cursor: pointer;
    text-decoration: none;
}
.whatsapp-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}
.whatsapp-fab svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}
html[dir="rtl"] .whatsapp-fab {
    right: auto;
    left: 24px;
}

/* ---- Mobile Navigation ---- */
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    background: var(--paper);
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s var(--ease);
    padding: 80px 24px 24px;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}
.mobile-nav.open {
    transform: translateX(0);
}
.mobile-nav-inner {
    display: flex;
    flex-direction: column;
}
.mobile-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mobile-menu a {
    display: block;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 500;
    color: var(--txt);
    border-radius: var(--radius-sm);
    transition: background 0.2s var(--ease);
}
.mobile-menu a:hover,
.mobile-menu .current-menu-item a {
    background: rgba(8, 145, 178, 0.08);
    color: var(--teal);
}

/* Hamburger active state */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Body lock when menu open */
body.menu-open {
    overflow: hidden;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .nav-menu { display: none; }
    .menu-toggle { display: block; }
    .site-header { padding: 0 24px; }
}

@media (max-width: 768px) {
    .section { padding: 60px 0; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .container { padding: 0 16px; }
    .btn { padding: 12px 24px; font-size: 13px; }
}
