/* --- LawliPop DYNAMIC GRID VARIABLES --- */
:root {
    --bg-body: #f3f4f6;
    --bg-card: #ffffff;
    --primary: #1e3a8a;      /* Koyu Hukuk Mavisi */
    --primary-dark: #172554;
    --accent: #d97706;       /* Altın/Bronz */
    --text-main: #1f2937;
    --text-light: #6b7280;
    --border: 1px solid #e5e7eb;
    --radius: 16px;          /* Kart Köşeleri */
    --gap: 20px;
    --font-head: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --max-width: 1200px;
}

/* --- RESET --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 20px;
}

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:wght@600;700&display=swap');

a { text-decoration: none; color: inherit; transition: 0.2s; }
ul { list-style: none; }
img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: var(--radius); }

/* --- HEADER --- */
header {
    max-width: var(--max-width);
    margin: 0 auto 20px auto;
    background: var(--bg-card);
    padding: 15px 30px;
    border-radius: var(--radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.logo {
    font-family: var(--font-head);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links { display: flex; gap: 25px; }

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-main);
}

.nav-links a:hover, .nav-links a.active { color: var(--accent); }

.burger { display: none; cursor: pointer; font-size: 1.5rem; }

/* --- DYNAMIC GRID SYSTEM (BENTO) --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    flex: 1;
}

/* Ana Izgara */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: var(--gap);
}

/* Hücre Stilleri */
.bento-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 30px;
    border: var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
}

.bento-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Span (Boyut) Sınıfları */
.col-span-2 { grid-column: span 2; }
.col-span-3 { grid-column: span 3; }
.col-span-4 { grid-column: span 4; }
.row-span-2 { grid-row: span 2; }

/* Özel Kart Tipleri */
.card-dark {
    background: var(--primary);
    color: white;
}
.card-dark h2, .card-dark p { color: white; }

.card-image {
    padding: 0;
}

.card-accent {
    background: var(--accent);
    color: white;
}

/* Typography in Cards */
h1 { font-family: var(--font-head); font-size: 3rem; line-height: 1.1; margin-bottom: 15px; }
h2 { font-family: var(--font-head); font-size: 1.8rem; margin-bottom: 10px; color: var(--primary); }
h3 { font-family: var(--font-head); font-size: 1.4rem; margin-bottom: 10px; }
p { color: var(--text-light); font-size: 1rem; margin-bottom: 15px; }
.card-dark p, .card-accent p { color: rgba(255,255,255,0.9); }

/* --- COMPONENTS --- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    width: fit-content;
}
.btn:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; border: 2px solid white; color: white; }
.btn-outline:hover { background: white; color: var(--primary); }

.icon-box svg { width: 40px; height: 40px; margin-bottom: 15px; fill: var(--accent); }

/* --- FORMS --- */
.form-group { margin-bottom: 15px; }
label { display: block; margin-bottom: 5px; font-weight: 600; }
input, textarea, select {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    font-family: inherit;
}
input:focus, textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }

/* --- FOOTER --- */
footer {
    max-width: var(--max-width);
    margin: 20px auto 0 auto;
    background: var(--primary-dark);
    color: white;
    border-radius: var(--radius);
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

footer h4 { font-family: var(--font-head); margin-bottom: 15px; color: var(--accent); }
footer a { display: block; margin-bottom: 8px; color: #d1d5db; }
footer a:hover { color: white; }
.tr-phone { font-weight: 700; color: white; font-size: 1.1rem; }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .col-span-3 { grid-column: span 2; }
    .col-span-4 { grid-column: span 2; }
}

@media (max-width: 600px) {
    .nav-links {
        display: none;
        position: absolute; top: 80px; left: 0; width: 100%;
        background: var(--bg-card);
        flex-direction: column; padding: 20px; text-align: center;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        z-index: 100;
    }
    .nav-links.active { display: flex; }
    .burger { display: block; }
    
    .bento-grid { grid-template-columns: 1fr; }
    .col-span-2, .col-span-3, .col-span-4 { grid-column: span 1; }
    .row-span-2 { grid-row: span 1; }
    
    h1 { font-size: 2.2rem; }
}