/* =========================================================
   ASLAN FRONTEND V3 — UX polish layer
   SEO v2 semantics/content preserved; visual hierarchy restored.
   ========================================================= */
:root{
  --fx-brand:#9e1f63;
  --fx-brand-dark:#74164a;
  --fx-indigo:#2c3990;
  --fx-ink:#17182d;
  --fx-text:#50576a;
  --fx-muted:#70778a;
  --fx-line:#e9e6ef;
  --fx-soft:#faf8fc;
  --fx-card:#fff;
  --fx-shadow:0 18px 52px rgba(25,27,58,.08);
}

/* ---------- Homepage: keep SEO H1 semantic, restore the original hero feel ---------- */
.home-page .seo-v2-home-h1{
  display:inline-flex;
  align-items:center;
  width:auto;
  max-width:none;
  margin:0 0 18px;
  padding:8px 12px;
  border:1px solid rgba(158,31,99,.13);
  border-radius:999px;
  color:#7c1b51;
  background:rgba(255,255,255,.72);
  box-shadow:0 7px 22px rgba(45,32,62,.045);
  font-size:12.5px;
  line-height:1;
  font-weight:850;
  letter-spacing:.075em;
  text-transform:uppercase;
}
.home-page .seo-v2-home-h1::before{
  content:"";
  width:7px;height:7px;margin-right:8px;border-radius:50%;
  background:linear-gradient(135deg,var(--fx-brand),var(--fx-indigo));
  box-shadow:0 0 0 5px rgba(158,31,99,.09);
}
.home-page .home-brand-statement{
  max-width:690px;
  margin:0 0 22px;
  color:#15162a;
  font-size:clamp(44px,5vw,72px);
  line-height:1.005;
  letter-spacing:-.057em;
  font-weight:900;
  text-wrap:balance;
}
.home-page .home-brand-statement span{white-space:normal;text-wrap:balance}
.home-page .home-process-grid{gap:18px}
.home-page .home-process-card{min-height:285px;padding:28px}
.home-page .home-process-card h3{font-size:22px}
.home-page .home-process-card p{font-size:14.5px;line-height:1.72}
.home-page .home-process-card li{font-size:13px;line-height:1.45}

/* Local/internal-link block: useful, but visually secondary instead of a link farm. */
.home-page .seo-local-links,
.blog-index-page .seo-local-links{
  margin-top:24px;
  padding:22px;
  border:1px solid #ece6eb;
  border-radius:20px;
  background:linear-gradient(145deg,rgba(255,255,255,.92),rgba(251,247,250,.92));
  box-shadow:none;
}
.home-page .seo-local-links h2,
.blog-index-page .seo-local-links h2{font-size:18px;line-height:1.3;letter-spacing:-.02em}
.home-page .seo-local-links p,
.blog-index-page .seo-local-links p{font-size:13.5px;line-height:1.65;color:#74798b}
.home-page .seo-local-links-grid,
.blog-index-page .seo-local-links-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.home-page .seo-local-links-grid a,
.blog-index-page .seo-local-links-grid a{
  min-height:44px;
  display:flex;align-items:center;
  padding:10px 12px;
  border-color:#eee7ec;
  border-radius:12px;
  background:#fff;
  color:#6f1a4c;
  font-size:13px;
  font-weight:750;
  text-decoration:none;
}
.home-page .seo-local-links-grid a:hover,
.blog-index-page .seo-local-links-grid a:hover{border-color:rgba(158,31,99,.24);transform:translateY(-1px)}

/* ---------- Service pages: SEO content integrated into V9 hero ---------- */
.service-v9-page .hizmet-header .seo-service-lead.service-v9-lead{
  max-width:760px;
  margin:20px 0 0 !important;
  padding:0 !important;
  color:#e1e3ed !important;
  font-size:17px !important;
  line-height:1.72 !important;
  text-align:left !important;
}
.service-v9-page .hizmet-header .seo-service-actions.service-v9-hero-actions{
  justify-content:flex-start !important;
  margin:26px 0 0 !important;
}
.service-v9-page .hizmet-header .seo-service-actions .seo-btn{
  width:auto;
  min-height:48px;
  padding:0 18px;
  border-radius:12px;
}
.service-v9-page .hizmet-header .seo-service-actions .seo-btn--primary{
  color:#fff !important;
  background:linear-gradient(135deg,#b52875,#7e2465 55%,#2c3990) !important;
  box-shadow:0 13px 30px rgba(158,31,99,.24) !important;
}
.service-v9-page .hizmet-header .seo-service-actions .seo-btn--secondary{
  color:#fff !important;
  border:1px solid rgba(255,255,255,.2) !important;
  background:rgba(255,255,255,.08) !important;
  box-shadow:none !important;
}
.service-v9-page .hizmet-header .seo-service-actions .seo-btn--secondary:hover{background:rgba(255,255,255,.14) !important}

/* SEO sections should read like editorial sections, not cards inside cards. */
.service-v9-page article .seo-v2-section{
  margin:38px 0 0;
  padding:38px 0 0;
  border:0;
  border-top:1px solid #eceaf1;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.service-v9-page article .seo-v2-section h2{margin-top:0 !important}
.service-v9-page .seo-process-grid{gap:10px}
.service-v9-page .seo-process-card{
  padding:16px;
  border:1px solid #ebe7ef;
  border-radius:15px;
  background:linear-gradient(145deg,#fff,#fcfafc);
}
.service-v9-page .seo-process-card span{width:32px;height:32px;margin-bottom:11px}
.service-v9-page .seo-process-card b{font-size:14px;line-height:1.35;color:#24263f}
.service-v9-page .seo-process-card p{font-size:13.5px !important;line-height:1.58 !important;color:#717689 !important}
.service-v9-page .seo-method-list{gap:9px}
.service-v9-page .seo-method-list li{
  min-height:54px;
  display:flex;align-items:center;
  padding:12px 14px 12px 42px !important;
  border:1px solid #ece9f0 !important;
  border-radius:13px !important;
  background:#fbfbfd !important;
  font-size:14.5px !important;
}
.service-v9-page .seo-faq-item{
  margin:0;
  padding:18px 0;
  border-top:1px solid #eceaf1;
}
.service-v9-page .seo-faq-item h3{margin:0 0 7px !important;font-size:18px !important}
.service-v9-page .seo-faq-item p{margin:0 !important;font-size:15.5px !important;line-height:1.72 !important}
.service-v9-page .seo-v2-cta{
  margin:42px 0 8px;
  padding:30px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:22px;
  background:
    radial-gradient(420px 220px at 92% -20%,rgba(182,57,120,.28),transparent 65%),
    linear-gradient(132deg,#191a31,#292a55 58%,#59224e);
  box-shadow:0 20px 48px rgba(24,25,52,.14);
}
.service-v9-page .seo-v2-cta h2{margin:0 0 8px !important;color:#fff !important;font-size:26px !important}
.service-v9-page .seo-v2-cta p{max-width:680px;color:#d8dae6 !important;font-size:15.5px !important}
.service-v9-page .seo-v2-cta .seo-btn{width:auto;min-height:46px;padding:0 17px;border-radius:12px}

/* ---------- Expert pages ---------- */
.seo-expert-authority{
  margin-top:0;
  padding:0;
  border:0;
  background:transparent;
}
.seo-expert-authority-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.seo-expert-authority-card{
  position:relative;
  min-height:220px;
  padding:25px 24px 23px;
  overflow:hidden;
  border:1px solid var(--fx-line);
  border-radius:20px;
  background:linear-gradient(150deg,#fff,#fdfbfc);
  box-shadow:0 12px 34px rgba(25,27,58,.055);
}
.seo-expert-authority-card::before{
  content:"";position:absolute;left:0;top:0;width:100%;height:4px;
  background:linear-gradient(90deg,var(--fx-brand),var(--fx-indigo));
  opacity:.85;
}
.seo-expert-authority-card h3{margin:0 0 14px;color:#22243e;font-size:17px;line-height:1.3}
.seo-expert-authority-card p,
.seo-expert-authority-card li{color:#5e6578;font-size:15px;line-height:1.68}
.seo-expert-authority-card p{margin:0}
.seo-expert-authority-card ul{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.seo-expert-authority-card li{position:relative;padding-left:20px}
.seo-expert-authority-card li::before{content:"•";position:absolute;left:2px;color:var(--fx-brand);font-weight:900}
.seo-expert-authority-card a{color:#7b1b50;text-decoration:none}
.seo-expert-authority-card a:hover{text-decoration:underline;text-underline-offset:3px}

/* ---------- Local landing pages: visually align with premium service heroes ---------- */
.seo-local-page{background:#fbfafd !important}
.seo-local-page .seo-local-hero{
  width:min(1180px,calc(100% - 40px));
  margin:28px auto 34px;
  padding:0;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.08);
  border-radius:34px;
  background:
    radial-gradient(circle at 88% 15%,rgba(255,255,255,.18),transparent 22%),
    linear-gradient(122deg,#17182d 0%,#29284c 55%,#4a2252 100%);
  box-shadow:0 28px 80px rgba(24,25,52,.16);
}
.seo-local-page .seo-local-hero .seo-local-container{width:100%;padding:64px clamp(28px,6vw,78px)}
.seo-local-page .seo-local-hero .breadcrumb{color:#c4c7d6;font-size:13px}
.seo-local-page .seo-local-hero .breadcrumb a{color:#e3e4eb}
.seo-local-page .seo-local-hero h1{max-width:850px;color:#fff;font-size:clamp(40px,5vw,66px);line-height:1.02;text-wrap:balance}
.seo-local-page .seo-local-hero p{max-width:780px;color:#d4d6e1;font-size:17px;line-height:1.72}
.seo-local-page .seo-local-hero .seo-service-actions{justify-content:flex-start;margin-top:26px}
.seo-local-page .seo-local-hero .seo-btn--primary{background:linear-gradient(135deg,#b52875,#2c3990);box-shadow:0 13px 30px rgba(158,31,99,.25)}
.seo-local-page .seo-local-hero .seo-btn--secondary{color:#fff;border-color:rgba(255,255,255,.2);background:rgba(255,255,255,.08)}
.seo-local-page .seo-local-main{padding:0 0 82px}
.seo-local-page .seo-local-grid{gap:26px}
.seo-local-page .seo-local-card{
  padding:clamp(24px,3vw,34px);
  border:1px solid var(--fx-line);
  border-radius:24px;
  background:#fff;
  box-shadow:0 14px 38px rgba(25,27,58,.055);
}
.seo-local-page .seo-local-card+.seo-local-card{margin-top:18px}
.seo-local-page .seo-local-card h2{font-size:clamp(24px,2.4vw,32px);line-height:1.2}
.seo-local-page .seo-local-card p,
.seo-local-page .seo-local-card li{font-size:16px;line-height:1.75}
.seo-local-page .seo-local-card li+li{margin-top:7px}
.seo-local-page .seo-local-aside{top:104px}
.seo-local-page .seo-local-nap{background:linear-gradient(145deg,#fff,#fbf8fb)}
.seo-local-page .seo-local-nap h2{font-size:20px}

/* ---------- Blog/content CTA + contextual links ---------- */
.seo-v2-related,
.seo-v2-context-link{
  margin:28px 0;
  padding:17px 19px;
  border:1px solid #eadfe6;
  border-left:4px solid var(--fx-brand);
  border-radius:14px;
  background:#fcf8fb;
  color:#545b6d;
  font-size:15.5px;
  line-height:1.7;
}
.seo-v2-related a,
.seo-v2-context-link a{color:#74164a;font-weight:800;text-decoration:none}
.seo-v2-related a:hover,
.seo-v2-context-link a:hover{text-decoration:underline;text-underline-offset:3px}
.blog-detail .seo-v2-cta,
.post-content + .seo-v2-cta{
  margin:38px 0 6px;
  padding:30px;
  border-radius:22px;
  background:linear-gradient(132deg,#191a31,#292a55 58%,#59224e);
  box-shadow:0 20px 48px rgba(24,25,52,.14);
}
.blog-detail .seo-v2-cta h2,
.post-content + .seo-v2-cta h2{color:#fff;font-size:26px}
.blog-detail .seo-v2-cta p,
.post-content + .seo-v2-cta p{color:#d9dbe6}

/* ---------- Small quality-of-life details ---------- */
body:not(.home-page) main a{transition:color .18s ease,background-color .18s ease,border-color .18s ease,transform .18s ease,box-shadow .18s ease}
body:not(.home-page) main p{max-width:78ch}
body:not(.home-page) .breadcrumb{line-height:1.45}

@media(max-width:980px){
  .seo-expert-authority-grid{grid-template-columns:1fr}
  .seo-expert-authority-card{min-height:0}
}
@media(max-width:900px){
  .home-page .home-process-grid{grid-template-columns:1fr 1fr}
  .seo-local-page .seo-local-hero{width:min(100% - 28px,1180px);margin-top:18px;border-radius:26px}
  .seo-local-page .seo-local-hero .seo-local-container{padding:48px 30px}
}
@media(max-width:640px){
  .home-page .seo-v2-home-h1{margin-bottom:16px;font-size:11.5px;letter-spacing:.065em}
  .home-page .home-brand-statement{font-size:clamp(39px,11.7vw,52px);line-height:1.015}
  .home-page .home-process-grid{grid-template-columns:1fr}
  .home-page .home-process-card{min-height:0;padding:24px}
  .home-page .seo-local-links-grid,
  .blog-index-page .seo-local-links-grid{grid-template-columns:1fr}

  .service-v9-page .hizmet-header .seo-service-actions.service-v9-hero-actions{display:grid !important;grid-template-columns:1fr;width:100%}
  .service-v9-page .hizmet-header .seo-service-actions .seo-btn{width:100%}
  .service-v9-page article .seo-v2-section{padding-top:30px;margin-top:30px}
  .service-v9-page .seo-process-grid{grid-template-columns:1fr}
  .service-v9-page .seo-method-list{grid-template-columns:1fr}
  .service-v9-page .seo-v2-cta{padding:24px 20px}
  .service-v9-page .seo-v2-cta h2{font-size:23px !important}
  .service-v9-page .seo-v2-cta .seo-btn{width:100%}

  .seo-expert-authority-card{padding:22px 20px}
  .seo-expert-authority-card p,
  .seo-expert-authority-card li{font-size:15px}

  .seo-local-page .seo-local-hero{width:calc(100% - 24px);margin:12px auto 26px;border-radius:22px}
  .seo-local-page .seo-local-hero .seo-local-container{padding:38px 22px 34px}
  .seo-local-page .seo-local-hero h1{font-size:clamp(34px,10.8vw,46px)}
  .seo-local-page .seo-local-hero p{font-size:15.5px}
  .seo-local-page .seo-local-hero .seo-service-actions{display:grid;grid-template-columns:1fr;width:100%}
  .seo-local-page .seo-local-hero .seo-btn{width:100%}
  .seo-local-page .seo-local-card{padding:22px 19px;border-radius:20px}
  .seo-local-page .seo-local-card p,
  .seo-local-page .seo-local-card li{font-size:15.5px}
  .seo-local-page .seo-process-grid{grid-template-columns:1fr}

  .blog-detail .seo-v2-cta,
  .post-content + .seo-v2-cta{padding:24px 20px}
  .blog-detail .seo-v2-cta .seo-btn,
  .post-content + .seo-v2-cta .seo-btn{width:100%}
}

/* Prevent local hero/container overflow on narrow screens. */
.seo-local-page .seo-local-hero,
.seo-local-page .seo-local-hero .seo-local-container,
.seo-local-page .seo-local-main,
.seo-local-page .seo-local-grid,
.seo-local-page .seo-local-card{box-sizing:border-box}
.seo-local-page .seo-local-hero .seo-local-container{max-width:none}

/* Legacy blog templates: inline flex declarations were preventing mobile shrink. */
@media(max-width:1024px){
  body:not(.service-v9-page) .blog-detail{
    flex-direction:column !important;
    flex-wrap:nowrap !important;
  }
  body:not(.service-v9-page) .blog-detail > div[style*="flex: 1 1 700px"],
  body:not(.service-v9-page) .blog-detail > aside{
    flex:1 1 100% !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
  }
  body:not(.service-v9-page) .blog-detail img{max-width:100%;height:auto}
}

/* 404 action buttons must stay inside the mobile viewport. */
@media(max-width:640px){
  .not-found-primary,
  .not-found-secondary{
    box-sizing:border-box !important;
    width:100% !important;
    max-width:100% !important;
    margin-left:0 !important;
    margin-right:0 !important;
  }
}
