/* ========================================
   BURSA BOYA USTASI - SEO OPTIMIZED STYLES
   Mobile-first, PageSpeed focused
   ======================================== */

/* CSS Variables */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #f97316;
    --secondary-dark: #ea580c;
    --secondary-light: #fb923c;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --bg-alt: #f8fafc;
    --bg-dark: #0f172a;
    --border-color: #e5e7eb;
    --success-color: #22c55e;
    --whatsapp-color: #25d366;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition: all 0.3s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: 70px;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-color);
}

h1 {
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

h3 {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
    color: var(--primary-color);
}

p {
    margin-bottom: 1rem;
}

/* Header */
.header {
    background: var(--bg-color);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-dark);
    flex-shrink: 0;
}

.logo-icon {
    font-size: 1.25rem;
}

.logo-text {
    white-space: nowrap;
}

.nav {
    display: none;
    gap: 16px;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-color);
}

.nav-link:hover {
    color: var(--primary-color);
}

/* CTA Buttons */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    border: none;
    position: relative;
    overflow: hidden;
}

.cta-primary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.5);
    color: white;
}

.cta-secondary {
    background: linear-gradient(135deg, var(--whatsapp-color) 0%, #1ebe5d 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.cta-secondary:hover {
    background: linear-gradient(135deg, #1ebe5d 0%, var(--whatsapp-color) 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.header-cta {
    padding: 10px 18px;
    font-size: 0.875rem;
}

.cta-icon {
    font-size: 1.2rem;
}

/* Hero Section */
.hero {
    position: relative;
    color: white;
    padding: 60px 0 80px;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.9) 0%, rgba(30, 58, 138, 0.95) 100%);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: white;
}

/* Logo Image */
.logo-img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    object-fit: cover;
}

/* Service Images */
.service-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-top: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.feature-icon {
    background: rgba(255, 255, 255, 0.2);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

/* Sections */
.section {
    padding: 60px 0;
}

.section-alt {
    background: var(--bg-alt);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 2rem 0;
}

.service-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 0;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card h3 {
    margin: 1.25rem 1.25rem 0.75rem;
    color: var(--primary-dark);
}

.service-card p {
    padding: 0 1.25rem 1.25rem;
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Price Table */
.price-table {
    overflow-x: auto;
    margin: 2rem 0;
}

.price-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.price-table th,
.price-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.price-table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.price-table tr:last-child td {
    border-bottom: none;
}

.price-table tr:hover td {
    background: var(--bg-alt);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    margin: 2rem 0;
}

.cta-section h3 {
    color: white;
    margin-top: 0;
}

.cta-section p {
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
}

/* Features List */
.features-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 2rem;
}

.feature-block {
    background: white;
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.feature-icon-large {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.feature-block h3 {
    margin-top: 0;
}

/* Reviews */
.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 2rem 0;
}

.review-card {
    background: white;
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--secondary-color);
}

.review-stars {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.review-text {
    font-style: italic;
    margin-bottom: 0.75rem;
}

.review-author {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0;
}

/* FAQ */
.faq-container {
    margin-top: 2rem;
}

.faq-item {
    background: white;
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.faq-question {
    margin: 0 0 0.75rem 0;
    color: var(--primary-dark);
}

.faq-answer {
    margin-bottom: 0;
    color: var(--text-light);
}

/* Contact */
.contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 2rem 0;
}

.contact-card {
    background: white;
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.contact-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
}

.contact-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.contact-card p {
    margin-bottom: 0;
}

.contact-card a {
    font-size: 1.25rem;
    font-weight: 600;
}

/* Map */
.map-container {
    margin: 2rem 0;
}

.map-container h3 {
    margin-bottom: 1rem;
}

.map-container iframe {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: white;
    padding: 60px 0 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 40px;
}

.footer-section {
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo {
    width: 50px;
    height: 50px;
}

.footer-brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.footer-logo-icon {
    font-size: 2.5rem;
}

.footer-desc {
    font-size: 0.9rem;
    opacity: 0.85;
    line-height: 1.7;
    margin-bottom: 16px;
}

.footer-social {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background 0.2s;
}

.social-link.whatsapp {
    background: var(--whatsapp-color);
    color: white;
}

.social-link.phone {
    background: var(--secondary-color);
    color: white;
}

.social-link:hover {
    transform: scale(1.1);
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    margin-top: 0;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 10px;
}

.footer-list a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-list a:hover {
    color: white;
}

.footer-contact-info {
    text-align: center;
}

.contact-item {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    flex-wrap: wrap;
    justify-content: center;
}

.contact-label {
    opacity: 0.7;
}

.contact-item a {
    color: var(--secondary-color);
    font-weight: 500;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 8px;
    font-size: 0.8rem;
    line-height: 1.5;
}

.footer-keywords {
    font-size: 0.7rem !important;
    opacity: 0.5;
    word-wrap: break-word;
}

/* Mobile Footer Improvements */
@media (max-width: 639px) {
    .footer {
        padding: 40px 0 120px;
    }

    .footer-grid {
        gap: 28px;
    }

    .footer-section {
        padding: 0 8px;
    }

    .footer-list {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 16px;
    }

    .footer-list li {
        margin-bottom: 0;
    }

    .footer-title {
        font-size: 1rem;
        margin-bottom: 12px;
    }

    .footer-desc {
        font-size: 0.85rem;
    }

    .footer-bottom p {
        font-size: 0.75rem;
        padding: 0 8px;
    }
}

/* Responsive Footer */
@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-section {
        text-align: left;
    }

    .footer-brand {
        justify-content: flex-start;
    }

    .footer-social {
        justify-content: flex-start;
    }

    .footer-contact-info {
        text-align: left;
    }

    .contact-item {
        justify-content: flex-start;
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }

    .footer {
        padding-bottom: 40px;
    }
}

/* Fixed Mobile CTA */
.fixed-cta-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.fixed-cta {
    flex: 1;
    padding: 14px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    text-decoration: none;
}

.fixed-cta-phone {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
}

.fixed-cta-whatsapp {
    background: linear-gradient(135deg, var(--whatsapp-color), #1ebe5d);
}

.fixed-cta:hover {
    color: white;
    opacity: 0.95;
}

.fixed-cta-icon {
    font-size: 1.25rem;
}

.fixed-cta-text {
    font-size: 0.95rem;
}

@media (min-width: 1024px) {
    .fixed-cta-container {
        display: none;
    }
}

/* WhatsApp Float - Desktop Only */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 20px;
    background: var(--whatsapp-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: transform 0.2s ease;
}

@media (min-width: 1024px) {
    .whatsapp-float {
        display: flex;
    }
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet */
@media (min-width: 640px) {
    .container {
        padding: 0 24px;
    }

    .hero-cta {
        flex-direction: row;
    }

    .cta-buttons {
        flex-direction: row;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-info {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .nav {
        display: flex;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .features-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-info {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr 2fr 1fr;
        align-items: start;
    }

    .fixed-cta {
        display: none;
    }

    .footer {
        padding-bottom: 40px;
    }

    .whatsapp-float {
        bottom: 30px;
    }
}

/* Large Desktop */
@media (min-width: 1280px) {
    .container {
        padding: 0 32px;
    }

    .section {
        padding: 80px 0;
    }

    .hero {
        padding: 80px 0 100px;
    }
}

/* ========================================
   PERFORMANCE OPTIMIZATIONS
   ======================================== */

/* CLS Prevention - Explicit dimensions */
.service-card,
.feature-block,
.review-card,
.contact-card,
.faq-item {
    min-height: auto;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {

    .header,
    .fixed-cta,
    .whatsapp-float,
    .cta-button {
        display: none;
    }

    body {
        font-size: 12pt;
    }
}