/*
Theme Name: Demir Vidanjör
Description: Demir Vidanjör için hazırlanmış, Site Düzenleyici (blok) ile tamamen düzenlenebilir; blog, hizmet sayfaları, menü, footer ve sabit arama/WhatsApp çubuğu içeren WordPress teması.
Version: 1.0.1
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: demir-vidanjor
*/

:root{--navy:#0B2036;--navy-2:#123253;--orange:#F2531D;--orange-d:#C93F12;--cream:#F6F2EA;--muted:#5B6B7A;--line:rgba(11,32,54,.12);--wa:#1E7A46}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{-webkit-font-smoothing:antialiased;overflow-x:hidden}
h1,h2,h3,h4,p{margin-top:0;margin-bottom:0}
.wp-site-blocks>*{margin-block-start:0}
.dv-wrap{max-width:1120px;margin-left:auto;margin-right:auto;padding-left:24px;padding-right:24px}
.dv-section{padding:64px 0}
.dv-eyebrow{color:var(--orange);font-weight:700;font-size:13px;margin-bottom:10px}
.dv-h2{font-size:clamp(24px,4vw,34px);font-weight:800;max-width:22ch}
.dv-sub{margin-top:12px;color:var(--muted);font-size:15.5px;max-width:56ch;line-height:1.6}

/* Buttons */
.wp-block-buttons{gap:12px;flex-wrap:wrap}
.wp-block-button__link{display:inline-flex;align-items:center;justify-content:center;gap:.5em;text-decoration:none}
.btn-call .wp-block-button__link{background:var(--orange);color:#fff}
.btn-call .wp-block-button__link:hover{background:var(--orange-d)}
.btn-wa .wp-block-button__link{background:var(--wa);color:#fff}
.btn-wa .wp-block-button__link:hover{background:#175c35}
.btn-ghost .wp-block-button__link{background:rgba(255,255,255,.12);color:#fff}
.btn-navy .wp-block-button__link{background:var(--navy);color:#fff}
.btn-call .wp-block-button__link::before,.btn-wa .wp-block-button__link::before{content:"";width:1.15em;height:1.15em;background:currentColor;flex-shrink:0;-webkit-mask:var(--ic) center/contain no-repeat;mask:var(--ic) center/contain no-repeat}
.btn-ghost .wp-block-button__link::before{content:"";width:1.15em;height:1.15em;background:currentColor;flex-shrink:0;-webkit-mask:var(--ic) center/contain no-repeat;mask:var(--ic) center/contain no-repeat}
.btn-call{--ic:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6.6 10.8c1.4 2.7 3.9 5.2 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.5.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.6 21 3 13.4 3 4c0-.6.4-1 1-1h3.4c.6 0 1 .4 1 1 0 1.2.2 2.4.6 3.5.1.4 0 .8-.2 1L6.6 10.8z'/></svg>")}
.btn-wa,.btn-ghost{--ic:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2a10 10 0 0 0-8.6 15L2 22l5.2-1.4A10 10 0 1 0 12 2zm0 18a8 8 0 0 1-4.1-1.1l-.3-.2-3 .8.8-2.9-.2-.3A8 8 0 1 1 12 20zm4.4-5.9c-.2-.1-1.4-.7-1.6-.8-.2-.1-.4-.1-.5.1-.2.2-.6.8-.8 1-.1.2-.3.2-.5.1-1.4-.7-2.3-1.3-3.2-2.9-.2-.3.2-.3.6-1 .1-.1.1-.3 0-.4-.1-.1-.5-1.2-.7-1.7-.2-.4-.4-.4-.5-.4h-.5c-.2 0-.4.1-.6.3-.2.2-.8.8-.8 2s.9 2.3 1 2.4c.1.2 1.7 2.7 4.2 3.7.6.2 1 .4 1.4.5.6.2 1.1.1 1.5.1.5-.1 1.4-.6 1.6-1.1.2-.5.2-1 .1-1.1-.1-.1-.2-.2-.4-.3z'/></svg>")}

/* Header */
.dv-topbar{position:sticky;top:0;z-index:50}
.admin-bar .dv-topbar{top:32px}
@media(max-width:782px){.admin-bar .dv-topbar{top:46px}}
.dv-topbar-bar{background:var(--navy);border-bottom:1px solid rgba(255,255,255,.08)}
.dv-topbar-inner{max-width:1120px;margin:0 auto;padding:12px 24px;display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:nowrap}
.dv-brand{display:flex;align-items:center;gap:10px;flex-wrap:nowrap;flex-shrink:0}
.dv-brand-mark{width:38px;height:38px;border-radius:9px;background:var(--orange);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.dv-brand-mark svg{width:20px;height:20px}
.dv-brand-name,.dv-brand-name a{font-family:'Archivo',sans-serif;font-weight:800;font-size:17px;color:#fff!important;line-height:1.1;margin:0}
.dv-brand-sub{font-size:11px;color:#9FB2C2!important;font-weight:600;margin:0}
.dv-topbar-inner .wp-block-navigation{flex:1 1 auto;justify-content:center;color:#fff}
.dv-topbar-inner .wp-block-navigation a,
.dv-topbar-inner .wp-block-navigation .wp-block-navigation-item__content{color:#fff!important;font-weight:600;font-size:14.5px;text-decoration:none}
.dv-topbar-inner .wp-block-navigation a:hover{color:#FF8A5C!important}
.dv-topbar-inner .wp-block-navigation__container{gap:28px;flex-wrap:nowrap}
.dv-top-actions{display:flex;gap:10px;flex-wrap:nowrap;flex-shrink:0}
.dv-top-actions .wp-block-button__link{padding:10px 16px;font-size:14px;white-space:nowrap}

/* Desktop: menü her zaman açık görünür */
@media(min-width:1025px){
  .dv-topbar-inner .wp-block-navigation__responsive-container{display:block!important;position:static;width:auto;background:transparent!important;color:#fff!important}
  .dv-topbar-inner .wp-block-navigation__responsive-container-open{display:none!important}
  .dv-topbar-inner .wp-block-navigation__responsive-container-close{display:none!important}
  .dv-topbar-inner .wp-block-navigation__responsive-container-content{display:flex;padding:0;justify-content:center}
  .dv-topbar-inner .wp-block-navigation__container{display:flex;flex-direction:row;align-items:center}
}

/* Tablet ve mobil: hamburger menü */
@media(max-width:1024px){
  .dv-topbar-inner .dv-top-actions{order:2;margin-left:auto}
  .dv-topbar-inner .wp-block-navigation{order:3;flex:0 0 auto}
  .dv-topbar-inner .wp-block-navigation__responsive-container-open{display:flex!important;align-items:center;justify-content:center;width:42px;height:42px;padding:0;color:#fff}
  .dv-topbar-inner .wp-block-navigation__responsive-container-open svg{width:28px;height:28px}
  .dv-topbar-inner .wp-block-navigation__responsive-container:not(.is-menu-open){display:none!important}
  .dv-topbar-inner .wp-block-navigation__responsive-container.is-menu-open{background:var(--navy)!important;color:#fff!important;padding:20px 24px}
  .dv-topbar-inner .wp-block-navigation__responsive-container-close{color:#fff;top:14px;right:16px}
  .dv-topbar-inner .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content{padding-top:56px;align-items:flex-start}
  .dv-topbar-inner .is-menu-open .wp-block-navigation__container{flex-direction:column;align-items:flex-start;gap:0;width:100%}
  .dv-topbar-inner .is-menu-open .wp-block-navigation-item{width:100%;border-bottom:1px solid rgba(255,255,255,.12)}
  .dv-topbar-inner .is-menu-open .wp-block-navigation-item a{display:block;width:100%;font-size:19px;padding:15px 0}
}

/* Mobil: WhatsApp ve Ara alt alta */
@media(max-width:640px){
  .dv-topbar-inner{padding:10px 14px;gap:10px}
  .dv-brand-sub{display:none}
  .dv-brand-mark{width:34px;height:34px}
  .dv-brand-name,.dv-brand-name a{font-size:16px}
  .dv-topbar-inner .dv-top-actions{flex-direction:column!important;flex-wrap:nowrap!important;gap:6px!important;align-items:stretch}
  .dv-top-actions .wp-block-button__link{padding:7px 12px;font-size:12.5px;width:100%;border-radius:7px}
}
@media(max-width:400px){.dv-brand-mark{display:none}}

/* Hero */
.dv-hero{background:radial-gradient(1100px 500px at 85% -10%,rgba(242,83,29,.28),transparent 60%),linear-gradient(180deg,var(--navy) 0%,var(--navy-2) 100%);color:#fff;padding:56px 0 64px}
.dv-hero h1,.dv-hero p{color:#fff}
.dv-badge{display:inline-flex;align-items:center;gap:8px;background:rgba(242,83,29,.16);border:1px solid rgba(242,83,29,.5);color:#FF8A5C!important;padding:7px 14px;border-radius:100px;font-weight:700;font-size:13px;margin-bottom:22px}
.dv-badge::before{content:"";width:7px;height:7px;border-radius:50%;background:#FF8A5C;box-shadow:0 0 0 4px rgba(255,138,92,.25)}
.dv-hero-title{font-size:clamp(32px,6vw,52px);font-weight:900;max-width:16ch}
.dv-hero-title em{font-style:normal;color:var(--orange)}
.dv-lead{margin-top:18px;font-size:17px;color:#C4D2DE!important;max-width:46ch;line-height:1.55}
.dv-hero .wp-block-buttons{margin-top:30px}
.dv-hero .wp-block-button__link{padding:15px 24px;font-size:15.5px;border-radius:10px}
.dv-hero-note{margin-top:16px;font-size:13px;color:#7E93A5!important}
.dv-stats{margin-top:44px;border-top:1px solid rgba(255,255,255,.12);padding-top:26px;max-width:560px;gap:0!important}
.dv-stat-num{font-family:'Archivo',sans-serif;font-size:26px;font-weight:800}
.dv-stat-lbl{font-size:12.5px;color:#8FA3B4!important;font-weight:600}

/* Trust strip */
.dv-trust{background:#fff;border-bottom:1px solid var(--line)}
.dv-trust-grid{display:grid;grid-template-columns:repeat(4,1fr)}
.dv-trust-item{padding:20px 18px;border-right:1px solid var(--line)}
.dv-trust-item:last-child{border-right:none}
.dv-trust-t{font-size:14px;font-weight:700}
.dv-trust-t::before{content:"✓";color:var(--orange);margin-right:8px;font-weight:800}
.dv-trust-s{font-size:12px;color:var(--muted)}

/* Services */
.dv-services{background:#fff}
.dv-service-query{margin-top:36px}
.dv-services .wp-block-post-template,.dv-service-query .wp-block-post-template{display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:14px;list-style:none;margin:0;padding:0}
.dv-service-card{border:1px solid var(--line);border-radius:12px;padding:22px 20px;background:var(--cream);height:100%}
.dv-service-card::before{content:"";display:block;width:40px;height:40px;border-radius:9px;margin-bottom:16px;background:var(--navy) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F2531D' stroke-width='2' stroke-linecap='round'><path d='M12 2v6M12 2c-3 2-5 5-5 9a5 5 0 0 0 10 0c0-4-2-7-5-9z'/></svg>") center/20px no-repeat}
.dv-service-card h3{font-size:15.5px;font-weight:700}
.dv-service-card h3 a{color:var(--navy)}
.dv-service-card .wp-block-post-excerpt{margin-top:6px}
.dv-service-card .wp-block-post-excerpt__excerpt{font-size:13.5px;color:var(--muted);line-height:1.5;margin:0}
.dv-service-card .wp-block-read-more{display:inline-block;margin-top:12px;font-size:13px;font-weight:700}
.dv-services .wp-block-buttons{margin-top:28px}

/* CTA band */
.dv-cta-wrap{padding:32px 24px 64px}
.dv-cta{max-width:1072px;margin:0 auto;background:var(--navy);color:#fff;border-radius:16px;padding:40px 34px;display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}
.dv-cta h3{font-size:24px;font-weight:800;max-width:22ch;color:#fff}
.dv-cta p{margin-top:8px;color:#AEC0CE;font-size:14.5px}
.dv-cta .wp-block-button__link{padding:15px 24px}

/* Contact */
.dv-contact{background:#fff}
.dv-contact .wp-block-columns{margin-top:36px;gap:40px}
.dv-info{padding:16px 0 16px 16px;border-left:3px solid var(--orange);margin-bottom:14px;background:var(--cream);border-radius:0 8px 8px 0}
.dv-info strong{display:block;font-size:14px;margin-bottom:2px}
.dv-info a{color:var(--navy);font-size:15px}
.dv-map iframe{width:100%;min-height:300px;border:0;border-radius:14px;display:block}

/* Page hero */
.dv-pagehero{background:linear-gradient(180deg,var(--navy) 0%,var(--navy-2) 100%);color:#fff;padding:44px 0}
.dv-pagehero h1,.dv-pagehero .wp-block-post-title{font-size:clamp(28px,5vw,42px);font-weight:900;color:#fff}
.dv-pagehero p,.dv-pagehero .wp-block-post-date,.dv-pagehero .wp-block-post-excerpt{color:#AEC0CE;margin-top:10px}
.dv-pagehero .wp-block-buttons{margin-top:22px}

/* Content */
.dv-main{padding:48px 24px 64px}
.dv-prose>*+*{margin-top:1.1em}
.dv-prose h2{margin-top:1.8em;font-size:26px}
.dv-prose h3{margin-top:1.6em;font-size:20px}
.dv-prose a{text-decoration:underline}
.dv-prose ul,.dv-prose ol{padding-left:1.3em}
.dv-prose details{border:1px solid var(--line);border-radius:10px;padding:14px 16px;background:#fff}
.dv-prose summary{font-weight:700;cursor:pointer}
.dv-prose details p{margin-top:10px;color:var(--muted)}
.dv-prose .wp-block-buttons{margin-top:1.6em}
.dv-prose iframe{width:100%;min-height:320px;border:0;border-radius:12px}
.dv-single-img{max-width:1120px;margin:0 auto 32px}
.dv-single-img img{border-radius:12px;width:100%;height:auto}

/* Blog */
.dv-blog .wp-block-post-template{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:20px;list-style:none;margin:0;padding:0}
.dv-card{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden;height:100%}
.dv-card .wp-block-post-featured-image{margin:0}
.dv-card .wp-block-post-featured-image img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
.dv-card-body{padding:18px 20px 22px}
.dv-card .wp-block-post-date{font-size:12.5px;color:var(--muted)}
.dv-card h3{font-size:18px;margin-top:6px}
.dv-card h3 a{color:var(--navy)}
.dv-card .wp-block-post-excerpt__excerpt{font-size:14px;color:var(--muted);margin-top:8px}
.dv-pagination{margin-top:36px;gap:14px;display:flex;justify-content:center;flex-wrap:wrap;font-weight:600}
.dv-404{text-align:center;padding:80px 24px}
.dv-404 .wp-block-buttons{justify-content:center;margin-top:24px}

/* Footer */
.dv-footer{background:var(--navy);color:#8FA3B4;padding:48px 0 0}
.dv-footer a{color:inherit}
.dv-footer a:hover{color:#fff}
.dv-footer h4{color:#fff;font-size:15px;margin-bottom:14px}
.dv-footer .wp-block-columns{gap:36px}
.dv-footer-brand{color:#fff;font-family:'Archivo',sans-serif;font-weight:800;font-size:18px;margin-bottom:10px}
.dv-footer p{font-size:14px;line-height:1.7}
.dv-footer .wp-block-post-template{list-style:none;margin:0;padding:0}
.dv-footer .wp-block-post-title{font-size:14px;font-weight:500;font-family:'Inter',sans-serif;margin-bottom:6px}
.dv-footer-bottom{border-top:1px solid rgba(255,255,255,.1);margin-top:36px;padding:20px 0;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:13px}

/* Mobile sticky bar */
.dv-mobilebar{display:none;position:fixed;left:0;right:0;bottom:0;z-index:60;padding:10px 14px;background:#fff;border-top:1px solid var(--line);box-shadow:0 -6px 20px rgba(11,32,54,.1)}
.dv-mobilebar .wp-block-buttons{flex-wrap:nowrap;width:100%;gap:10px}
.dv-mobilebar .wp-block-button{flex:1}
.dv-mobilebar .wp-block-button__link{width:100%;padding:14px 10px}

@media(max-width:880px){
  .dv-hero{padding:40px 0 44px}
  .dv-stats{max-width:100%}
  .dv-stat-num{font-size:21px}
  .dv-trust-grid{grid-template-columns:repeat(2,1fr)}
  .dv-trust-item{border-bottom:1px solid var(--line)}
  .dv-trust-item:nth-child(2n){border-right:none}
  .dv-services .wp-block-post-template,.dv-service-query .wp-block-post-template{grid-template-columns:repeat(2,1fr)!important}
  .dv-blog .wp-block-post-template{grid-template-columns:repeat(2,1fr)!important}
  .dv-cta{flex-direction:column;align-items:flex-start;padding:30px 24px}
  .dv-mobilebar{display:block;padding-bottom:calc(10px + env(safe-area-inset-bottom,0px))}
  body{padding-bottom:calc(76px + env(safe-area-inset-bottom,0px))}
  .dv-section{padding:48px 0}
}
@media(max-width:560px){
  .dv-blog .wp-block-post-template{grid-template-columns:1fr!important}
  .dv-wrap{padding-left:18px;padding-right:18px}
}

/* Nasıl çalışıyoruz */
.dv-how{background:var(--cream)}
.dv-center{text-align:center}
.dv-center .dv-h2,.dv-center .dv-sub{margin-left:auto;margin-right:auto}
.dv-center .dv-h2::after{content:"";display:block;width:60px;height:3px;background:var(--orange);margin:16px auto 0;border-radius:2px}
.dv-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin-top:44px}
.dv-step{background:#fff;border:1px solid var(--line);border-radius:12px;padding:26px 20px;text-align:center}
.dv-step-label{font-size:12px;font-weight:800;color:var(--orange);letter-spacing:.05em}
.dv-step-label::before{content:"";display:block;width:56px;height:56px;border-radius:50%;margin:0 auto 14px;background-color:var(--orange);background-repeat:no-repeat;background-position:center;background-size:26px}
.dv-ic-1::before{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2z'/></svg>")}
.dv-ic-2::before{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/></svg>")}
.dv-ic-3::before{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M1 3h15v13H1zM16 8h4l3 3v5h-7z'/><circle cx='5.5' cy='18.5' r='2.5'/><circle cx='18.5' cy='18.5' r='2.5'/></svg>")}
.dv-ic-4::before{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M22 11.1V12a10 10 0 1 1-5.9-9.1M22 4 12 14l-3-3'/></svg>")}
.dv-step h3{font-size:17px;font-weight:800;margin-top:6px}
.dv-step-text{margin-top:8px;font-size:14px;color:var(--muted);line-height:1.55}

/* SSS (ana sayfa) */
.dv-faq{background:#fff}
.dv-faq-list{max-width:820px;margin:36px auto 0}
.dv-faq details{border:1px solid var(--line);border-radius:10px;padding:16px 18px;background:var(--cream);margin-bottom:12px}
.dv-faq summary{font-weight:700;cursor:pointer;font-size:16px}
.dv-faq details p{margin-top:10px;color:var(--muted);line-height:1.6}
.dv-faq .wp-block-buttons{justify-content:center;margin-top:28px}

@media(max-width:1024px){.dv-steps{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.dv-steps{grid-template-columns:1fr}.dv-step{padding:22px 18px}}
.dv-faq-list{text-align:left}
