/* ============================================
   Av. Fatma Biçer - Premium Law Firm Website
   Design: Luxury & Serious (Gold + Dark Grey)
   ============================================ */

/* === CSS Variables === */
:root {
    --gold: #D4AF37;
    --gold-dark: #B8941F;
    --gold-light: #E8D698;
    --charcoal: #1a1a1a;
    --grey-dark: #2C3E50;
    --grey-medium: #4a5568;
    --grey-light: #e2e8f0;
    --white: #ffffff;
    --font-serif: 'Georgia', 'Times New Roman', serif;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--grey-dark);
    line-height: 1.6;
    background: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--gold);
}

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

/* === Container === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.2;
    color: var(--charcoal);
}

h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--gold);
    margin: 1rem auto 0;
}

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background: var(--gold);
    color: var(--charcoal);
    border-color: var(--gold);
}

.btn-primary:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    color: var(--charcoal);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--grey-dark);
    border-color: var(--grey-dark);
}

.btn-secondary:hover {
    background: var(--grey-dark);
    color: var(--white);
}

.btn-contact {
    background: var(--gold);
    color: var(--charcoal);
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 600;
}

.btn-contact:hover {
    background: var(--gold-dark);
    color: var(--charcoal);
}

/* === Header === */
.header {
    background: var(--charcoal);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h2 {
    color: var(--gold);
    font-size: 1.75rem;
    margin: 0;
}

.logo p {
    color: var(--grey-light);
    font-size: 0.875rem;
    margin: 0;
}

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

.nav a {
    color: var(--white);
    font-weight: 500;
    font-size: 1rem;
}

.nav a:hover {
    color: var(--gold);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--gold);
    transition: all 0.3s ease;
}

/* === Hero Section === */
.hero {
    background: linear-gradient(135deg, var(--charcoal) 0%, var(--grey-dark) 100%);
    color: var(--white);
    padding: 6rem 0;
    text-align: center;
}

.hero h1 {
    color: var(--gold);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    color: var(--grey-light);
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.phone-icon {
    margin-right: 8px;
}

/* === Services Section === */
.services {
    padding: 5rem 0;
    background: var(--grey-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.2);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--charcoal);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--grey-medium);
    font-size: 0.95rem;
}

/* === Popular Searches === */
.popular-searches {
    padding: 4rem 0;
    background: var(--white);
}

.tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.tag {
    background: var(--grey-light);
    color: var(--grey-dark);
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.tag:hover {
    background: var(--gold);
    color: var(--charcoal);
    border-color: var(--gold-dark);
    transform: scale(1.05);
}

/* === About Section === */
.about {
    padding: 5rem 0;
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--grey-medium);
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-text strong {
    color: var(--gold);
}

.about-image {
    display: flex;
    justify-content: center;
}

.lawyer-photo {
    border-radius: 20px;
    border: 4px solid var(--gold);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.lawyer-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.5);
    border-color: var(--gold-dark);
}

.placeholder-image {
    width: 300px;
    height: 300px;
    background: var(--grey-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    border: 4px solid var(--gold);
}

/* === Coverage Section === */
.coverage {
    padding: 4rem 0;
    background: var(--grey-light);
}

.locations-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.location-badge {
    background: var(--white);
    color: var(--grey-dark);
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
    border: 2px solid var(--gold);
    transition: all 0.3s ease;
}

.location-badge:hover {
    background: var(--gold);
    color: var(--charcoal);
    transform: translateY(-2px);
}

.coverage-note {
    text-align: center;
    color: var(--grey-medium);
    margin-top: 2rem;
}

.coverage-note a {
    color: var(--gold);
    font-weight: 600;
}

/* === Contact Section === */
.contact {
    padding: 5rem 0;
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    font-size: 2rem;
    color: var(--gold);
}

.contact-item h3 {
    color: var(--charcoal);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.contact-item p,
.contact-item a {
    color: var(--grey-medium);
    font-size: 1rem;
}

.contact-form-wrapper {
    background: var(--grey-light);
    padding: 2.5rem;
    border-radius: 8px;
}

.contact-form h3 {
    margin-bottom: 1.5rem;
    color: var(--charcoal);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 1rem;
    border: 2px solid var(--grey-medium);
    border-radius: 4px;
    font-size: 1rem;
    font-family: var(--font-sans);
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.contact-form button {
    width: 100%;
}

#formStatus {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    display: none;
    font-size: 15px;
}

#formStatus.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

#formStatus.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.loading {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #1a1a1a;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === Footer === */
.footer {
    background: var(--charcoal);
    color: var(--grey-light);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: var(--gold);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid var(--grey-medium);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

/* === Responsive === */
@media (max-width: 968px) {
    .nav ul {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        flex-direction: column;
        background: var(--charcoal);
        padding: 2rem;
        transition: left 0.3s ease;
        gap: 1.5rem;
    }
    
    .nav ul.active {
        left: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .hero h1 {
        font-size: 2.75rem;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* === Service Detail Pages === */
.service-detail {
    padding: 4rem 0;
    background: white;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
}

.main-content {
    min-width: 0;
}

.content-block {
    margin-bottom: 2rem;
}

.content-block h2 {
    color: var(--charcoal);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--gold);
}

.content-block h3 {
    color: var(--grey-dark);
    margin: 1.5rem 0 1rem;
}

.content-block p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.content-block ul, .content-block ol {
    margin: 1rem 0 1rem 2rem;
    line-height: 1.8;
}

.content-block li {
    margin-bottom: 0.5rem;
}

.content-block strong {
    color: var(--charcoal);
    font-weight: 600;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.sidebar-card {
    background: white;
    border: 1px solid var(--grey-light);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.sidebar-card h3 {
    font-size: 1.1rem;
    color: var(--charcoal);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gold);
}

.contact-card {
    background: linear-gradient(135deg, var(--charcoal) 0%, var(--grey-dark) 100%);
    color: white;
    border: none;
}

.contact-card h3 {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.contact-card .phone {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 1rem 0;
}

.contact-card .phone a {
    color: var(--gold);
}

.contact-card .email a {
    color: var(--gold-light);
    font-size: 0.9rem;
}

.service-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-links li {
    margin-bottom: 0.75rem;
}

.service-links a {
    display: block;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s;
}

.service-links a:hover {
    background: var(--grey-light);
    padding-left: 1rem;
}

/* Responsive for service pages */
@media (max-width: 968px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
}
