/* ==========================================================================
   MUHARREM USTA BOYA VE TADİLAT - DESIGN SYSTEM & STYLESHEET
   Location: C:\Users\ozgurhan.ates\OneDrive - Islamic Relief Worldwide\Desktop\m.usta\css\styles.css
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --primary-dark: #0B132B;
    --primary-navy: #1C2541;
    --primary-blue: #3A506B;
    --accent-gold: #D4A373;
    --accent-gold-hover: #FAEDCD;
    --accent-amber: #E0A96D;
    --accent-whatsapp: #25D366;
    --accent-whatsapp-dark: #128C7E;

    --bg-light: #F8F9FA;
    --bg-card: #FFFFFF;
    --bg-dark-card: #151E3D;

    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;
    --text-white: #FFFFFF;

    --border-light: #E2E8F0;
    --border-gold: rgba(212, 163, 115, 0.3);

    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Shadows & Effects */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(11, 19, 43, 0.1);
    --shadow-lg: 0 20px 35px -10px rgba(11, 19, 43, 0.18);
    --shadow-gold: 0 10px 25px -5px rgba(212, 163, 115, 0.3);
    --shadow-whatsapp: 0 8px 20px rgba(37, 211, 102, 0.35);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--primary-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

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

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 5rem 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 3.5rem 0;
    }
}

/* Badge & Section Headers */
.section-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 3.5rem auto;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(212, 163, 115, 0.12);
    color: var(--primary-navy);
    border: 1px solid var(--border-gold);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.section-title {
    font-size: 2.3rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
    }
    .section-subtitle {
        font-size: 1rem;
    }
}

/* Button Component System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.95rem 1.8rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
    text-align: center;
}

.btn-whatsapp {
    background: linear-gradient(135deg, var(--accent-whatsapp), var(--accent-whatsapp-dark));
    color: var(--text-white);
    box-shadow: var(--shadow-whatsapp);
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(37, 211, 102, 0.5);
}

.btn-primary {
    background: var(--primary-dark);
    color: var(--text-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-navy);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-gold {
    background: linear-gradient(135deg, var(--accent-amber), var(--accent-gold));
    color: var(--primary-dark);
    font-weight: 700;
    box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-dark);
    color: var(--primary-dark);
}

.btn-outline:hover {
    background: var(--primary-dark);
    color: var(--text-white);
}

/* Top Announcement Bar */
.top-announcement {
    background: var(--primary-dark);
    color: var(--text-white);
    padding: 0.5rem 0;
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-announcement .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-contacts {
    display: flex;
    gap: 1.5rem;
}

.top-contacts a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
}

.top-contacts a:hover {
    color: var(--accent-amber);
}

@media (max-width: 640px) {
    .top-announcement .container {
        flex-direction: column;
        gap: 0.4rem;
        text-align: center;
    }
    .top-contacts {
        gap: 1rem;
    }
}

/* Header & Navbar */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition-fast);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.brand-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-navy));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-amber);
    font-size: 1.4rem;
    box-shadow: var(--shadow-sm);
}

.brand-text h1 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -0.02em;
}

.brand-text span {
    font-size: 0.75rem;
    color: var(--accent-amber);
    font-weight: 600;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--accent-amber);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--primary-dark);
    cursor: pointer;
}

@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--bg-card);
        flex-direction: column;
        padding: 2rem;
        gap: 1.2rem;
        border-bottom: 1px solid var(--border-light);
        box-shadow: var(--shadow-lg);
        transform: translateY(-150%);
        transition: var(--transition-smooth);
    }
    .nav-menu.active {
        transform: translateY(0);
    }
    .mobile-toggle {
        display: block;
    }
}

/* HERO SECTION */
.hero {
    position: relative;
    padding: 4.5rem 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-navy) 100%);
    color: var(--text-white);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(224, 169, 109, 0.15) 0%, rgba(11, 19, 43, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.hero-content h2 {
    font-size: 3rem;
    color: var(--text-white);
    margin-bottom: 1.2rem;
    letter-spacing: -0.02em;
}

.hero-content h2 span {
    color: var(--accent-amber);
    background: linear-gradient(135deg, #FFE5B4, var(--accent-amber));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    font-size: 1.2rem;
    color: #CBD5E1;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hero-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: #E2E8F0;
}

.trust-item i {
    color: var(--accent-amber);
    font-size: 1.1rem;
}

/* HERO CRO FORM CARD */
.hero-form-card {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 2.2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 10;
}

.hero-form-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
    color: var(--primary-dark);
}

.hero-form-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--primary-dark);
}

.form-input, .form-select {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-fast);
    background: var(--bg-light);
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--accent-amber);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(224, 169, 109, 0.2);
}

.form-submit-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.05rem;
}

.form-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.8rem;
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .hero-content h2 {
        font-size: 2.2rem;
    }
}

/* BRAND TRUST BAR */
.brand-trust-bar {
    background: var(--bg-card);
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-light);
}

.brand-trust-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.brand-trust-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.brand-logos {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.brand-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--primary-navy);
    opacity: 0.75;
    transition: var(--transition-fast);
}

.brand-badge:hover {
    opacity: 1;
    color: var(--accent-amber);
}

/* DISTRICT SERVICES GRID */
.district-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.8rem;
}

.district-card {
    background: var(--bg-card);
    padding: 2.2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.district-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-amber);
    opacity: 0;
    transition: var(--transition-fast);
}

.district-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.district-card:hover::before {
    opacity: 1;
}

.district-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(28, 37, 65, 0.06);
    color: var(--primary-navy);
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    margin-bottom: 1.2rem;
}

.district-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.8rem;
    color: var(--primary-dark);
}

.district-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
}

.district-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.district-features li {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.district-features li i {
    color: var(--accent-amber);
}

/* BEFORE & AFTER INTERACTIVE SLIDER */
.before-after-section {
    background: var(--primary-dark);
    color: var(--text-white);
}

.before-after-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 500px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .before-after-container {
        height: 350px;
    }
}

.ba-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ba-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    border-right: 3px solid var(--accent-amber);
    box-shadow: 4px 0 15px rgba(0,0,0,0.5);
}

.ba-after img {
    position: absolute;
    top: 0;
    left: 0;
    width: 900px; /* match container max width */
    max-width: none;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .ba-after img {
        width: 100vw;
    }
}

.ba-slider-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 30;
}

.ba-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: var(--accent-amber);
    color: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 0 20px rgba(224, 169, 109, 0.8);
    pointer-events: none;
    z-index: 20;
}

/* BLOG & ARTICLES SECTION */
.blog-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.blog-search {
    position: relative;
    width: 100%;
    max-width: 380px;
}

.blog-search input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.8rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.blog-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.blog-tags {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.blog-tag-btn {
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.blog-tag-btn.active, .blog-tag-btn:hover {
    background: var(--primary-dark);
    color: var(--text-white);
    border-color: var(--primary-dark);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.article-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    padding: 1.8rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-amber);
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.article-category {
    background: rgba(224, 169, 109, 0.15);
    color: var(--primary-navy);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
}

.article-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
    color: var(--primary-dark);
}

.article-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.article-read-btn {
    align-self: flex-start;
    color: var(--primary-navy);
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: none;
    cursor: pointer;
}

.article-read-btn:hover {
    color: var(--accent-amber);
}

/* ARTICLE MODAL READER */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 19, 43, 0.75);
    backdrop-filter: blur(6px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--bg-card);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--bg-light);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: var(--primary-dark);
    color: var(--text-white);
}

.modal-body h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.modal-body .article-meta {
    margin-bottom: 1.8rem;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 1rem;
}

.modal-content-html {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.modal-content-html h3 {
    margin: 1.5rem 0 0.8rem 0;
    font-size: 1.3rem;
}

.modal-content-html p {
    margin-bottom: 1.2rem;
}

.modal-content-html ul, .modal-content-html ol {
    margin: 0 0 1.2rem 1.5rem;
}

/* FAQ ACCORDION */
.faq-grid {
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: var(--transition-fast);
}

.faq-question {
    width: 100%;
    padding: 1.4rem 1.8rem;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question i {
    color: var(--accent-amber);
    transition: var(--transition-fast);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 1.8rem;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 1.8rem 1.4rem 1.8rem;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* FOOTER */
.site-footer {
    background: var(--primary-dark);
    color: var(--text-white);
    padding: 4rem 0 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-about p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 1rem 0 1.5rem 0;
}

.footer-col h4 {
    color: var(--text-white);
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-amber);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.7rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent-amber);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* MOBILE FLOATING WHATSAPP BUTTON */
.floating-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    width: 60px;
    height: 60px;
    background: var(--accent-whatsapp);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-whatsapp);
    transition: var(--transition-smooth);
}

.floating-whatsapp:hover {
    transform: scale(1.1);
}
