* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --brand: #0f766e;
    --brand-light: #14b8a6;
    --brand-dark: #115e59;
    --brand-soft: #ecfdf5;
    --accent: #ea580c;
    --accent-hover: #c2410c;
    --ink: #0f172a;
    --ink-soft: #334155;
    --muted: #64748b;
    --line: #e2e8f0;
    --surface: #ffffff;
    --surface-muted: #f8fafc;
    --surface-teal: #f0fdfa;
    --whatsapp: #16a34a;
    --white: #fff;
    --radius: 10px;
    --radius-lg: 16px;
    --shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.1);
    --header-h: 76px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', system-ui, sans-serif;
    line-height: 1.65;
    color: var(--ink-soft);
    background: var(--surface-muted);
    padding-top: var(--site-top-offset, var(--header-h));
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ——— Header ——— */
.site-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 0 rgba(15, 118, 110, 0.06);
}

.header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    min-height: var(--header-h);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--ink);
}

.logo-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(145deg, var(--brand), var(--brand-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.15rem;
    box-shadow: 0 8px 20px rgba(15, 118, 110, 0.25);
}

.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text strong { font-size: 1rem; font-weight: 700; letter-spacing: -0.02em; }
.logo-text small { font-size: 0.72rem; color: var(--brand); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }

.header-contact { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

.phone-link,
.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    transition: 0.25s;
    border: 1px solid transparent;
}

.phone-link {
    background: var(--surface-teal);
    color: var(--brand-dark);
    border-color: rgba(15, 118, 110, 0.15);
}

.phone-link:hover { background: var(--brand); color: var(--white); }

.whatsapp-link {
    background: var(--whatsapp);
    color: var(--white);
}

.whatsapp-link:hover { filter: brightness(1.06); transform: translateY(-1px); }

.mobile-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    font-size: 1.1rem;
    grid-column: 3;
    justify-self: end;
}

.main-nav { justify-self: center; }

.nav-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.nav-menu > li > a {
    display: block;
    padding: 10px 14px;
    color: var(--ink-soft);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: 0.2s;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    color: var(--brand-dark);
    background: var(--surface-teal);
}

.has-dropdown { position: relative; }
.has-dropdown > a i { font-size: 0.65rem; margin-left: 4px; opacity: 0.7; }

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: var(--surface);
    list-style: none;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: 0.2s;
    z-index: 1002;
    overflow: hidden;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 12px 16px;
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--line);
}

.dropdown-menu li:last-child a { border-bottom: none; }
.dropdown-menu a:hover { background: var(--surface-teal); color: var(--brand-dark); padding-left: 20px; }

/* ——— Breadcrumb ——— */
.breadcrumb-nav {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
}

.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; font-size: 0.88rem; }
.breadcrumb li { display: flex; align-items: center; color: var(--muted); }
.breadcrumb li:not(:last-child)::after { content: '›'; margin: 0 10px; color: var(--brand-light); }
.breadcrumb li a { color: var(--brand); text-decoration: none; font-weight: 500; }
.breadcrumb li.active { color: var(--ink); font-weight: 600; }

/* ——— Hero & page header ——— */
.hero-section,
.page-header {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background:
        radial-gradient(circle at 85% 15%, rgba(20, 184, 166, 0.35), transparent 42%),
        radial-gradient(circle at 10% 90%, rgba(234, 88, 12, 0.18), transparent 38%),
        linear-gradient(135deg, #134e4a 0%, #0f172a 55%, #1e293b 100%);
}

.hero-section::before,
.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.hero-section { padding: 72px 0 64px; text-align: center; }
.page-header { padding: 52px 0 44px; text-align: center; }

.hero-section .container,
.page-header .container { position: relative; z-index: 1; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.hero-section h1,
.page-header h1 {
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
    line-height: 1.15;
}

.hero-subtitle,
.page-header p {
    font-size: clamp(1rem, 2vw, 1.12rem);
    opacity: 0.92;
    max-width: 700px;
    margin: 0 auto 26px;
    color: rgba(255, 255, 255, 0.88);
}

.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ——— Buttons ——— */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: 0.25s;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(234, 88, 12, 0.28);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(234, 88, 12, 0.32);
}

.btn-whatsapp { background: var(--whatsapp); color: var(--white); }
.btn-whatsapp:hover { filter: brightness(1.05); transform: translateY(-2px); }

.btn-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.45);
    color: var(--white);
}

.btn-outline:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.7); }

/* ——— Sections ——— */
.section { padding: 68px 0; }
.section-alt { background: var(--surface); }

.section-title {
    text-align: center;
    font-size: clamp(1.45rem, 3vw, 1.95rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 36px;
    color: var(--ink);
    position: relative;
    padding-bottom: 14px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
}

.services-grid,
.mahalle-grid,
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.service-card,
.mahalle-card {
    background: var(--surface);
    color: var(--ink-soft);
    border-radius: var(--radius-lg);
    padding: 26px 22px;
    text-decoration: none;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    transition: 0.25s;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.service-card::before,
.mahalle-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--brand-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s;
}

.service-card:hover,
.mahalle-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(15, 118, 110, 0.25);
    color: var(--ink);
}

.service-card:hover::before,
.mahalle-card:hover::before { transform: scaleX(1); }

.service-card i,
.mahalle-card i {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--surface-teal);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.service-card h3,
.mahalle-card h3 { font-size: 1.05rem; color: var(--ink); font-weight: 700; }
.service-card p,
.mahalle-card p { font-size: 0.9rem; color: var(--muted); }

.feature-item {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 28px 22px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    transition: 0.25s;
}

.feature-item:hover { border-color: rgba(15, 118, 110, 0.2); transform: translateY(-3px); }

.feature-item i {
    width: 54px;
    height: 54px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--brand-soft), var(--surface-teal));
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.feature-item h3 { margin-bottom: 8px; color: var(--ink); font-weight: 700; }

.content-block { max-width: 860px; margin: 0 auto; }
.content-block h2 { color: var(--ink); margin: 32px 0 14px; font-size: 1.35rem; font-weight: 700; }
.content-block h2:first-child { margin-top: 0; }
.content-block p { margin-bottom: 16px; }
.content-block ul { margin: 0 0 20px 20px; }
.content-block li { margin-bottom: 8px; }

.service-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
    margin: 24px 0;
}

.service-list li {
    background: var(--surface);
    padding: 14px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    border-left: 4px solid var(--brand);
    font-weight: 500;
    color: var(--ink-soft);
}

.service-list li i { color: var(--brand); margin-right: 8px; }

.service-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.faq-list { max-width: 860px; margin: 0 auto; }

.faq-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 18px 20px;
    background: var(--surface-muted);
    border: none;
    font-weight: 600;
    font-size: 0.98rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--ink);
    font-family: inherit;
}

.faq-answer { padding: 0 20px; max-height: 0; overflow: hidden; transition: 0.3s; color: var(--muted); }
.faq-item.open .faq-answer { padding: 16px 20px 20px; max-height: 500px; }
.faq-item.open .faq-question { background: var(--surface-teal); color: var(--brand-dark); }
.faq-item.open .faq-question i { transform: rotate(180deg); color: var(--brand); }

.nearby-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.nearby-links a {
    padding: 8px 16px;
    background: var(--surface);
    border-radius: 999px;
    text-decoration: none;
    color: var(--brand-dark);
    font-size: 0.88rem;
    font-weight: 600;
    border: 1px solid rgba(15, 118, 110, 0.2);
    transition: 0.2s;
}

.nearby-links a:hover { background: var(--brand); color: var(--white); border-color: var(--brand); }

.search-box { max-width: 480px; margin: 0 auto 32px; position: relative; }

.search-box input {
    width: 100%;
    padding: 14px 18px 14px 46px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 1rem;
    outline: none;
    background: var(--surface);
    font-family: inherit;
    transition: 0.2s;
}

.search-box input:focus {
    border-color: var(--brand-light);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.search-box i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--brand);
}

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }

.contact-card {
    background: var(--surface);
    padding: 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    border: 1px solid var(--line);
}

.contact-card i {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: var(--surface-teal);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-card a { color: var(--brand-dark); font-weight: 600; text-decoration: none; }
.contact-card a:hover { color: var(--brand); }

.contact-form { max-width: 640px; margin: 0 auto; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; color: var(--ink); }

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    background: var(--surface);
    transition: 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--brand-light);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12);
}

.form-group textarea { min-height: 120px; resize: vertical; }

/* ——— Footer ——— */
.main-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.82);
    padding: 52px 0 0;
    margin-top: 48px;
}

.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-section h3 { margin-bottom: 16px; font-size: 1rem; color: var(--brand-light); font-weight: 700; }
.footer-section ul { list-style: none; }
.footer-section li { margin-bottom: 8px; }
.footer-section a { color: rgba(255, 255, 255, 0.78); text-decoration: none; transition: 0.2s; }
.footer-section a:hover { color: var(--white); }
.footer-mahalle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }

.footer-bottom {
    text-align: center;
    padding: 24px 0;
    margin-top: 36px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
}

.floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.floating-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--white);
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    transition: 0.25s;
    font-size: 0.9rem;
}

.phone-btn { background: var(--accent); }
.whatsapp-btn { background: var(--whatsapp); }
.floating-btn:hover { transform: scale(1.04); }

.error-page { text-align: center; padding: 80px 20px; }
.error-page h1 { font-size: 4rem; color: var(--brand); margin-bottom: 12px; font-weight: 800; }

@media (max-width: 960px) {
    .header-inner {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
    }

    .logo { grid-column: 1; }
    .mobile-menu-toggle { display: flex; align-items: center; justify-content: center; }
    .header-contact { grid-column: 1 / -1; justify-content: center; order: 3; }
    .main-nav { grid-column: 1 / -1; order: 4; justify-self: stretch; }

    .nav-menu {
        display: none;
        flex-direction: column;
        align-items: stretch;
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: var(--radius-lg);
        padding: 8px;
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active { display: flex; }
    .nav-menu > li > a { padding: 12px 14px; }

    .has-dropdown .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        box-shadow: none;
        border: none;
        background: var(--surface-muted);
        margin-top: 4px;
    }

    .has-dropdown.active .dropdown-menu { display: block; }

    .footer-content { grid-template-columns: 1fr; }
    .footer-mahalle-grid { grid-template-columns: 1fr; }
}
