/*
Theme Name:        TapuVision Theme
Theme URI:         https://tapuvision.com
Author:            TapuVision
Author URI:        https://tapuvision.com
Description:       AI destekli emlak medya hizmetleri için özel WordPress teması. TapuVision Studio eklentisi ile birlikte çalışır.
Version:           1.0.0
Requires at least: 6.0
Tested up to:      6.7
Requires PHP:      8.0
License:           GPL v2 or later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       tapuvision-theme
Tags:              real-estate, ai, portfolio, business, one-column, two-columns, custom-menu, featured-images, full-width-template, translation-ready
*/

/* -----------------------------------------------------------------------
   CSS Değişkenleri
   --------------------------------------------------------------------- */
:root {
    --tv-green-dark:   #085041;
    --tv-green:        #0F6E56;
    --tv-green-mid:    #1D9E75;
    --tv-green-light:  #5DCAA5;
    --tv-green-pale:   #9FE1CB;
    --tv-green-bg:     #E1F5EE;

    --tv-white:        #ffffff;
    --tv-bg:           #F6F5F2;
    --tv-bg-2:         #EFEDE8;
    --tv-border:       #E5E3DA;
    --tv-text:         #1A1A18;
    --tv-text-2:       #444441;
    --tv-text-3:       #888780;

    --tv-amber:        #EF9F27;
    --tv-amber-bg:     #FAEEDA;
    --tv-blue-bg:      #E6F1FB;
    --tv-red-bg:       #FCEBEB;

    --tv-radius-sm:    6px;
    --tv-radius:       10px;
    --tv-radius-lg:    16px;
    --tv-radius-xl:    24px;

    --tv-shadow-sm:    0 1px 4px rgba(0,0,0,.06);
    --tv-shadow:       0 4px 20px rgba(0,0,0,.08);
    --tv-shadow-lg:    0 8px 40px rgba(0,0,0,.12);

    --tv-font:         -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --tv-font-heading: "Outfit", var(--tv-font);

    --tv-container:    1160px;
    --tv-section-gap: 80px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--tv-font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--tv-text);
    background: var(--tv-white);
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--tv-green); text-decoration: none; transition: color .2s; }
a:hover { color: var(--tv-green-mid); }

h1,h2,h3,h4,h5,h6 {
    font-family: var(--tv-font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--tv-text);
}

ul, ol { list-style: none; }

button, input, select, textarea {
    font-family: var(--tv-font);
    font-size: inherit;
}

/* -----------------------------------------------------------------------
   Layout
   --------------------------------------------------------------------- */
.tv-container {
    max-width: var(--tv-container);
    margin: 0 auto;
    padding: 0 24px;
}

.tv-section {
    padding: var(--tv-section-gap) 0;
}

.tv-section--gray { background: var(--tv-bg); }
.tv-section--dark { background: var(--tv-green-dark); color: var(--tv-white); }

/* -----------------------------------------------------------------------
   Header / Navbar
   --------------------------------------------------------------------- */
.tv-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--tv-border);
}

.tv-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 24px;
}

.tv-logo {
    font-family: var(--tv-font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--tv-green-dark);
    letter-spacing: -.03em;
    text-decoration: none;
}

.tv-logo span { color: var(--tv-green-mid); }

.tv-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.tv-nav a {
    padding: 6px 12px;
    border-radius: var(--tv-radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--tv-text-2);
    transition: background .15s, color .15s;
}

.tv-nav a:hover {
    background: var(--tv-bg);
    color: var(--tv-green-dark);
}

.tv-nav-cta {
    background: var(--tv-green-dark) !important;
    color: var(--tv-green-pale) !important;
    padding: 8px 18px !important;
    border-radius: var(--tv-radius) !important;
}

.tv-nav-cta:hover { background: var(--tv-green) !important; }

/* Mobile hamburger */
.tv-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.tv-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--tv-text);
    border-radius: 2px;
    transition: transform .2s;
}

/* -----------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------- */
.tv-hero {
    padding: 100px 0 80px;
    background: linear-gradient(160deg, var(--tv-green-dark) 0%, #0F6E56 60%, #1D9E75 100%);
    color: var(--tv-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tv-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='1' fill='rgba(255,255,255,.06)'/%3E%3C/svg%3E");
    opacity: .5;
}

.tv-hero__content { position: relative; z-index: 1; }

.tv-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    color: var(--tv-green-pale);
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 24px;
}

.tv-hero__title {
    font-size: clamp(32px, 5vw, 58px);
    font-weight: 800;
    color: var(--tv-white);
    margin-bottom: 20px;
    letter-spacing: -.03em;
}

.tv-hero__title span { color: var(--tv-green-pale); }

.tv-hero__desc {
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(255,255,255,.8);
    max-width: 640px;
    margin: 0 auto 36px;
    line-height: 1.6;
}

.tv-hero__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* -----------------------------------------------------------------------
   Butonlar
   --------------------------------------------------------------------- */
.tv-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--tv-radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all .2s;
    text-decoration: none;
}

.tv-btn--primary {
    background: var(--tv-green-mid);
    color: var(--tv-white);
    border-color: var(--tv-green-mid);
}

.tv-btn--primary:hover {
    background: var(--tv-green);
    border-color: var(--tv-green);
    color: var(--tv-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(29,158,117,.3);
}

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

.tv-btn--outline:hover {
    background: rgba(255,255,255,.1);
    border-color: var(--tv-white);
    color: var(--tv-white);
}

.tv-btn--dark {
    background: var(--tv-green-dark);
    color: var(--tv-green-pale);
    border-color: var(--tv-green-dark);
}

.tv-btn--dark:hover {
    background: var(--tv-green);
    color: var(--tv-white);
}

.tv-btn--lg { padding: 14px 32px; font-size: 16px; }
.tv-btn--sm { padding: 8px 16px; font-size: 13px; }

/* -----------------------------------------------------------------------
   Hizmetler grid
   --------------------------------------------------------------------- */
.tv-section__heading {
    text-align: center;
    margin-bottom: 48px;
}

.tv-section__heading h2 {
    font-size: clamp(26px, 3.5vw, 40px);
    margin-bottom: 12px;
    letter-spacing: -.02em;
}

.tv-section__heading p {
    font-size: 17px;
    color: var(--tv-text-3);
    max-width: 560px;
    margin: 0 auto;
}

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

.tv-service-card {
    background: var(--tv-white);
    border: 1px solid var(--tv-border);
    border-radius: var(--tv-radius-lg);
    padding: 24px;
    transition: border-color .2s, box-shadow .2s, transform .2s;
    cursor: pointer;
}

.tv-service-card:hover {
    border-color: var(--tv-green-light);
    box-shadow: var(--tv-shadow);
    transform: translateY(-3px);
}

.tv-service-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--tv-green-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 14px;
}

.tv-service-card__title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
}

.tv-service-card__desc {
    font-size: 13px;
    color: var(--tv-text-3);
    line-height: 1.55;
}

/* -----------------------------------------------------------------------
   Paketler
   --------------------------------------------------------------------- */
.tv-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    align-items: start;
}

.tv-package-card {
    background: var(--tv-white);
    border: 1px solid var(--tv-border);
    border-radius: var(--tv-radius-lg);
    padding: 28px;
    position: relative;
    transition: box-shadow .2s;
}

.tv-package-card:hover { box-shadow: var(--tv-shadow); }

.tv-package-card--featured {
    border-color: var(--tv-green-mid);
    border-width: 2px;
}

.tv-package-card__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--tv-green-mid);
    color: var(--tv-white);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.tv-package-card__name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.tv-package-card__desc {
    font-size: 13px;
    color: var(--tv-text-3);
    margin-bottom: 16px;
}

.tv-package-card__price {
    font-size: 32px;
    font-weight: 800;
    color: var(--tv-green-dark);
    margin-bottom: 4px;
    letter-spacing: -.03em;
}

.tv-package-card__price span {
    font-size: 16px;
    font-weight: 500;
    color: var(--tv-text-3);
}

.tv-package-card__features {
    margin: 16px 0 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tv-package-card__feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--tv-text-2);
}

.tv-package-card__feature::before {
    content: '✓';
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--tv-green-bg);
    color: var(--tv-green-dark);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* -----------------------------------------------------------------------
   Nasıl Çalışır
   --------------------------------------------------------------------- */
.tv-how-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
    counter-reset: steps;
}

.tv-how-card {
    text-align: center;
    padding: 24px 16px;
    position: relative;
    counter-increment: steps;
}

.tv-how-card::before {
    content: counter(steps);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--tv-green-dark);
    color: var(--tv-green-pale);
    font-size: 16px;
    font-weight: 700;
    margin: 0 auto 14px;
}

.tv-how-card h3 { font-size: 15px; margin-bottom: 8px; }
.tv-how-card p  { font-size: 13px; color: var(--tv-text-3); }

/* -----------------------------------------------------------------------
   SSS / Accordion
   --------------------------------------------------------------------- */
.tv-faq { max-width: 760px; margin: 0 auto; }

.tv-faq__item {
    border-bottom: 1px solid var(--tv-border);
}

.tv-faq__q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    gap: 12px;
}

.tv-faq__q::after {
    content: '+';
    font-size: 20px;
    font-weight: 400;
    color: var(--tv-green-mid);
    flex-shrink: 0;
    transition: transform .2s;
}

.tv-faq__item.open .tv-faq__q::after {
    transform: rotate(45deg);
}

.tv-faq__a {
    display: none;
    padding: 0 0 18px;
    font-size: 14px;
    color: var(--tv-text-3);
    line-height: 1.7;
}

.tv-faq__item.open .tv-faq__a { display: block; }

/* -----------------------------------------------------------------------
   CTA Banner
   --------------------------------------------------------------------- */
.tv-cta {
    background: var(--tv-green-dark);
    color: var(--tv-white);
    padding: 60px 0;
    text-align: center;
}

.tv-cta h2 {
    font-size: clamp(24px, 3vw, 36px);
    color: var(--tv-white);
    margin-bottom: 12px;
}

.tv-cta p {
    color: rgba(255,255,255,.75);
    font-size: 17px;
    margin-bottom: 28px;
}

/* -----------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.tv-footer {
    background: #051F18;
    color: rgba(255,255,255,.6);
    padding: 48px 0 28px;
}

.tv-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.tv-footer__logo {
    font-family: var(--tv-font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--tv-white);
    letter-spacing: -.03em;
    margin-bottom: 10px;
}

.tv-footer__logo span { color: var(--tv-green-pale); }

.tv-footer__desc {
    font-size: 13px;
    line-height: 1.7;
    max-width: 260px;
}

.tv-footer__col h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--tv-white);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 14px;
}

.tv-footer__col ul { display: flex; flex-direction: column; gap: 8px; }

.tv-footer__col ul li a {
    font-size: 13px;
    color: rgba(255,255,255,.55);
    transition: color .15s;
}

.tv-footer__col ul li a:hover { color: var(--tv-green-pale); }

.tv-footer__bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

/* -----------------------------------------------------------------------
   WhatsApp butonu
   --------------------------------------------------------------------- */
.tv-whatsapp-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37,211,102,.4);
    transition: transform .2s, box-shadow .2s;
    text-decoration: none;
}

.tv-whatsapp-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(37,211,102,.5);
}

.tv-whatsapp-btn svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}

/* -----------------------------------------------------------------------
   WordPress blokları ve widget uyumu
   --------------------------------------------------------------------- */
.entry-content { max-width: 760px; margin: 0 auto; }

.wp-block-image { margin: 24px 0; }

/* -----------------------------------------------------------------------
   Mobil
   --------------------------------------------------------------------- */
@media (max-width: 768px) {
    :root { --tv-section-gap: 56px; }

    .tv-nav { display: none; }
    .tv-nav.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--tv-white); border-bottom: 1px solid var(--tv-border); padding: 12px 16px; z-index: 99; }
    .tv-hamburger { display: flex; }

    .tv-hero { padding: 72px 0 56px; }

    .tv-services-grid  { grid-template-columns: 1fr 1fr; }
    .tv-packages-grid  { grid-template-columns: 1fr; }
    .tv-how-grid       { grid-template-columns: 1fr 1fr; }

    .tv-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .tv-services-grid { grid-template-columns: 1fr; }
    .tv-how-grid      { grid-template-columns: 1fr; }
    .tv-footer__grid  { grid-template-columns: 1fr; }
    .tv-hero__actions { flex-direction: column; align-items: center; }
}
