/* =========================================================
   ASLAN FRONTEND V4 — final visual quality layer
   Keeps SEO v2 semantics while improving resilient layout.
   ========================================================= */

/* ---------- Homepage: service feature card must never overlap its CTA ---------- */
.home-page .home-services-feature{
  display:flex;
  flex-direction:column;
  min-height:580px;
  padding:42px;
}
.home-page .home-services-feature > small,
.home-page .home-services-feature > h2,
.home-page .home-services-feature > p,
.home-page .home-services-feature > .home-btn{position:relative;z-index:2}
.home-page .home-services-feature > h2{
  max-width:390px;
  font-size:clamp(39px,3.65vw,52px);
  line-height:1.035;
  text-wrap:balance;
}
.home-page .home-services-feature > p{
  max-width:390px;
  margin-bottom:30px;
  color:#e2e3ec !important;
  font-size:16px;
  line-height:1.72;
}
.home-page .home-services-feature > .home-btn{
  position:relative !important;
  left:auto !important;
  right:auto !important;
  bottom:auto !important;
  width:max-content;
  max-width:100%;
  margin-top:auto;
  align-self:flex-start;
  white-space:normal;
  text-align:center;
}

/* ---------- Local SEO pages: premium location landing experience ---------- */
.seo-local-page{
  --local-brand:#9e1f63;
  --local-indigo:#2c3990;
  --local-ink:#17182d;
  --local-copy:#586074;
  --local-line:#ebe7ef;
  --local-soft:#fbf8fc;
  background:
    radial-gradient(900px 520px at 6% 0%,rgba(158,31,99,.055),transparent 66%),
    #fbfafd !important;
}
.seo-local-page .seo-local-container{width:min(1180px,calc(100% - 40px))}

.seo-local-page .seo-local-hero{
  width:min(1220px,calc(100% - 40px));
  margin:30px auto 42px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.1);
  border-radius:36px;
  background:
    radial-gradient(500px 370px at 17% 10%,rgba(181,40,117,.22),transparent 70%),
    radial-gradient(430px 340px at 82% 18%,rgba(86,100,196,.16),transparent 72%),
    linear-gradient(125deg,#17182d 0%,#222547 56%,#4e204c 100%);
  box-shadow:0 32px 90px rgba(24,25,52,.16);
}
.seo-local-page .seo-local-hero .seo-local-container{
  width:100%;
  max-width:none;
  padding:clamp(34px,5vw,68px);
}
.local-hero-grid{
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(310px,.72fr);
  gap:clamp(34px,5vw,72px);
  align-items:center;
}
.local-hero-copy{min-width:0}
.seo-local-page .seo-local-hero .breadcrumb{
  margin-bottom:22px;
  color:#bfc3d3;
  font-size:13px;
}
.seo-local-page .seo-local-hero .breadcrumb a{color:#e5e6ed;text-decoration:none}
.local-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:9px;
  margin-bottom:18px;
  color:#f3c8dd;
  font-size:12px;
  font-weight:850;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.local-eyebrow::before{
  content:"";
  width:8px;height:8px;border-radius:50%;
  background:#da4f98;
  box-shadow:0 0 0 6px rgba(218,79,152,.12);
}
.seo-local-page .seo-local-hero h1{
  max-width:760px;
  margin:0;
  color:#fff;
  font-size:clamp(43px,5.2vw,68px);
  line-height:.99;
  letter-spacing:-.052em;
  text-wrap:balance;
}
.seo-local-page .seo-local-hero .local-hero-lead{
  max-width:720px;
  margin:22px 0 0;
  color:#d8dae4;
  font-size:17px;
  line-height:1.75;
}
.local-hero-proof{
  display:flex;
  flex-wrap:wrap;
  gap:9px 16px;
  margin:24px 0 0;
  padding:0;
  list-style:none;
}
.local-hero-proof li{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:#edf0f5;
  font-size:13px;
  font-weight:700;
}
.local-hero-proof li::before{
  content:"✓";
  display:grid;
  width:22px;height:22px;
  place-items:center;
  border-radius:50%;
  color:#fff;
  background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.13);
  font-size:11px;
}
.seo-local-page .seo-local-hero .seo-service-actions{
  justify-content:flex-start;
  margin:28px 0 0;
}
.seo-local-page .seo-local-hero .seo-btn{min-height:50px;border-radius:14px}
.seo-local-page .seo-local-hero .seo-btn--primary{
  background:linear-gradient(135deg,#b52875,#7d2464 55%,#39459e);
  box-shadow:0 15px 34px rgba(158,31,99,.26);
}
.seo-local-page .seo-local-hero .seo-btn--secondary{
  color:#fff;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.07);
  backdrop-filter:blur(8px);
}

.local-hero-visual{
  position:relative;
  min-height:430px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.15);
  border-radius:28px 28px 28px 78px;
  background:#e8e4e2;
  box-shadow:0 26px 65px rgba(5,8,25,.24);
}
.local-hero-visual::after{
  content:"";
  position:absolute;inset:0;
  background:linear-gradient(180deg,transparent 48%,rgba(17,18,40,.38));
  pointer-events:none;
}
.local-hero-visual img{
  width:100%;height:100%;min-height:430px;
  display:block;
  object-fit:cover;
  object-position:center;
}
.local-hero-location{
  position:absolute;
  z-index:2;
  left:20px;right:20px;bottom:20px;
  padding:16px 17px;
  border:1px solid rgba(255,255,255,.66);
  border-radius:18px;
  color:#22243e;
  background:rgba(255,255,255,.93);
  box-shadow:0 18px 38px rgba(9,10,28,.18);
  backdrop-filter:blur(12px);
}
.local-hero-location span{
  display:block;
  margin-bottom:4px;
  color:#8e1d5b;
  font-size:11px;
  font-weight:850;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.local-hero-location strong{display:block;font-size:17px;line-height:1.25}
.local-hero-location small{display:block;margin-top:5px;color:#6a7081;font-size:12px;line-height:1.45}

/* Main local-page hierarchy */
.seo-local-page .seo-local-main{padding:0 0 94px}
.seo-local-page .seo-local-grid{
  grid-template-columns:minmax(0,1.5fr) minmax(290px,.62fr);
  gap:28px;
}
.local-main-stack{display:grid;gap:20px;min-width:0}
.seo-local-page .seo-local-card{
  margin:0 !important;
  padding:clamp(25px,3vw,36px);
  border:1px solid var(--local-line);
  border-radius:26px;
  background:#fff;
  box-shadow:0 14px 42px rgba(25,27,58,.055);
}
.seo-local-page .seo-local-card h2{
  margin:0 0 13px;
  color:var(--local-ink);
  font-size:clamp(25px,2.5vw,34px);
  line-height:1.15;
  letter-spacing:-.035em;
  text-wrap:balance;
}
.seo-local-page .seo-local-card > p{
  color:var(--local-copy);
  font-size:16px;
  line-height:1.78;
}

.local-location-card{
  display:grid;
  grid-template-columns:minmax(0,1fr) 185px;
  gap:26px;
  align-items:center;
  background:
    linear-gradient(145deg,#fff,#fdf9fb) !important;
}
.local-location-icon{
  display:grid;
  place-items:center;
  min-height:170px;
  border-radius:22px;
  color:#fff;
  background:
    radial-gradient(circle at 75% 25%,rgba(255,255,255,.16),transparent 30%),
    linear-gradient(145deg,#242743,#3a386f 60%,#8e255f);
  font-size:54px;
}
.local-location-icon span{
  display:grid;width:78px;height:78px;place-items:center;
  border-radius:24px;background:rgba(255,255,255,.11);border:1px solid rgba(255,255,255,.12)
}
.local-inline-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:8px;
  color:#74164a !important;
  font-weight:800;
  text-decoration:none;
}
.local-inline-link::after{content:"→";transition:transform .18s ease}
.local-inline-link:hover::after{transform:translateX(3px)}

.local-services-card{overflow:hidden}
.local-section-kicker{
  display:inline-block;
  margin-bottom:10px;
  color:#9e1f63;
  font-size:11.5px;
  font-weight:850;
  letter-spacing:.075em;
  text-transform:uppercase;
}
.local-service-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:11px;
  margin-top:22px;
}
.local-service-link{
  position:relative;
  min-height:94px;
  padding:17px 44px 16px 17px;
  overflow:hidden;
  border:1px solid #ece7ee;
  border-radius:17px;
  color:#292b46 !important;
  background:#fdfbfd;
  text-decoration:none;
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease,background .2s ease;
}
.local-service-link::after{
  content:"→";
  position:absolute;right:16px;top:50%;transform:translateY(-50%);
  color:#a12768;font-size:20px;
}
.local-service-link:hover{
  transform:translateY(-2px);
  border-color:#ddc4d4;
  background:#fff;
  box-shadow:0 12px 26px rgba(37,30,65,.07);
}
.local-service-link b{display:block;font-size:14.5px;line-height:1.35}
.local-service-link small{display:block;margin-top:5px;color:#7c8192;font-size:11.5px;line-height:1.45}

.local-process-card{background:linear-gradient(150deg,#fff,#fcfbfd) !important}
.seo-local-page .local-process-card .seo-process-grid{gap:12px;margin-top:22px}
.seo-local-page .local-process-card .seo-process-card{
  min-height:168px;
  padding:19px;
  border:1px solid #ece8ef;
  border-radius:18px;
  background:#fff;
}
.seo-local-page .local-process-card .seo-process-card span{
  width:34px;height:34px;border-radius:11px;
  box-shadow:0 8px 18px rgba(87,42,119,.12)
}
.seo-local-page .local-process-card .seo-process-card b{font-size:14px}
.seo-local-page .local-process-card .seo-process-card p{font-size:13px;line-height:1.62}

.local-faq-card{padding-bottom:14px !important}
.local-faq-list{margin-top:18px;border-top:1px solid #ece8ef}
.local-faq-item{border-bottom:1px solid #ece8ef}
.local-faq-item summary{
  list-style:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:19px 4px;
  color:#282a45;
  font-size:15px;
  line-height:1.4;
  font-weight:800;
}
.local-faq-item summary::-webkit-details-marker{display:none}
.local-faq-item summary::after{
  content:"+";
  display:grid;
  width:30px;height:30px;
  flex:0 0 30px;
  place-items:center;
  border-radius:10px;
  color:#8a1d57;
  background:#fbf0f6;
  font-size:20px;
  font-weight:500;
  transition:transform .18s ease;
}
.local-faq-item[open] summary::after{transform:rotate(45deg)}
.local-faq-item p{margin:0;padding:0 44px 19px 4px;color:#656c7e;font-size:15px;line-height:1.72}

/* Local sidebar */
.seo-local-page .seo-local-aside{position:sticky;top:108px;display:grid;gap:14px}
.seo-local-page .seo-local-nap{
  padding:25px;
  border-radius:24px;
  background:linear-gradient(152deg,#191a31,#25284f 62%,#672050) !important;
  color:#fff;
  box-shadow:0 20px 48px rgba(24,25,52,.14);
}
.seo-local-page .seo-local-nap .local-aside-kicker{color:#efbfd7;font-size:11px;font-weight:850;letter-spacing:.075em;text-transform:uppercase}
.seo-local-page .seo-local-nap h2{margin:8px 0 15px;color:#fff;font-size:25px;letter-spacing:-.035em}
.seo-local-page .seo-local-nap strong{color:#fff;font-size:14px}
.seo-local-page .seo-local-nap p{margin:8px 0;color:#d7d9e4;font-size:13.5px;line-height:1.62}
.seo-local-page .seo-local-nap a{color:#fff;text-decoration:none}
.local-aside-divider{height:1px;margin:16px 0;background:rgba(255,255,255,.12)}
.local-aside-actions{display:grid;gap:9px;margin-top:18px}
.local-aside-actions a{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:11px 13px;
  border-radius:13px;
  color:#fff !important;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.07);
  font-size:13px;
  font-weight:800;
  text-decoration:none;
}
.local-aside-actions a:first-child{border-color:transparent;background:linear-gradient(135deg,#b52875,#3a459c)}
.local-mini-note{
  padding:18px;
  border:1px solid #ebe7ef;
  border-radius:20px;
  background:#fff;
  color:#687083;
  font-size:12.5px;
  line-height:1.65;
}
.local-mini-note strong{display:block;margin-bottom:5px;color:#2a2c47;font-size:13.5px}

.seo-local-page .seo-v2-cta{
  margin:0;
  padding:34px;
  border-radius:26px;
  background:
    radial-gradient(circle at 90% 20%,rgba(255,255,255,.11),transparent 28%),
    linear-gradient(132deg,#191a31,#292a55 58%,#682154);
}
.seo-local-page .seo-v2-cta h2{font-size:clamp(25px,3vw,36px)}
.seo-local-page .seo-v2-cta p{max-width:670px;color:#dadce7}

@media(max-width:1020px){
  .local-hero-grid{grid-template-columns:1fr .72fr;gap:30px}
  .local-hero-visual{min-height:390px}
  .local-hero-visual img{min-height:390px}
  .seo-local-page .seo-local-grid{grid-template-columns:1fr}
  .seo-local-page .seo-local-aside{position:static;grid-template-columns:1fr 1fr}
}
@media(max-width:760px){
  .home-page .home-services-feature{min-height:0;padding:30px}
  .home-page .home-services-feature > h2{font-size:clamp(38px,8vw,48px)}
  .home-page .home-services-feature > .home-btn{width:100%;margin-top:8px}

  .seo-local-page .seo-local-hero{width:calc(100% - 24px);margin:12px auto 28px;border-radius:24px}
  .seo-local-page .seo-local-hero .seo-local-container{padding:34px 21px 21px}
  .local-hero-grid{grid-template-columns:1fr;gap:28px}
  .seo-local-page .seo-local-hero h1{font-size:clamp(38px,11vw,50px)}
  .seo-local-page .seo-local-hero .local-hero-lead{font-size:15.5px;line-height:1.7}
  .local-hero-proof{display:grid;grid-template-columns:1fr;gap:9px;margin-top:20px}
  .local-hero-visual{min-height:300px;border-radius:22px 22px 22px 54px}
  .local-hero-visual img{min-height:300px;max-height:340px;object-position:center 52%}
  .local-hero-location{left:13px;right:13px;bottom:13px;padding:13px 14px;border-radius:15px}
  .local-hero-location strong{font-size:15px}
  .local-hero-location small{font-size:11.5px}

  .seo-local-page .seo-local-container{width:min(100% - 24px,1180px)}
  .seo-local-page .seo-local-main{padding-bottom:74px}
  .local-main-stack{gap:14px}
  .seo-local-page .seo-local-card{padding:22px 19px;border-radius:21px}
  .seo-local-page .seo-local-card h2{font-size:26px}
  .seo-local-page .seo-local-card > p{font-size:15.5px}
  .local-location-card{grid-template-columns:1fr;gap:18px}
  .local-location-icon{min-height:130px}
  .local-service-grid{grid-template-columns:1fr}
  .local-service-link{min-height:82px}
  .seo-local-page .local-process-card .seo-process-grid{grid-template-columns:1fr 1fr}
  .seo-local-page .local-process-card .seo-process-card{min-height:145px}
  .seo-local-page .seo-local-aside{grid-template-columns:1fr}
  .seo-local-page .seo-v2-cta{padding:28px 21px}
}
@media(max-width:500px){
  .home-page .home-services-feature{padding:28px;min-height:0}
  .home-page .home-services-feature > h2{font-size:clamp(36px,10.5vw,46px);line-height:1.03}
  .home-page .home-services-feature > p{font-size:15.5px;line-height:1.7;margin-bottom:24px}

  .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 .local-process-card .seo-process-grid{grid-template-columns:1fr}
  .seo-local-page .local-process-card .seo-process-card{min-height:0}
  .local-faq-item summary{font-size:14.5px}
  .local-faq-item p{padding-right:4px}
}

/* ---------- Site-wide resilience discovered in the final audit ---------- */
/* Legacy pages contain intrinsic image width attributes (1200–3024px). Keep them fluid. */
body:not(.home-page) main,
body:not(.home-page) main *{box-sizing:border-box}
body:not(.home-page) main img{max-width:100%;height:auto}
body:not(.home-page) main a.seo-btn{max-width:100%;box-sizing:border-box}
.service-v9-page .hizmet-header{box-sizing:border-box !important;max-width:calc(100% - 40px) !important}
@media(max-width:900px){
  .service-v9-page .hizmet-header{max-width:calc(100% - 28px) !important}
}
@media(max-width:640px){
  .service-v9-page .hizmet-header{max-width:calc(100% - 24px) !important}
  .service-v9-page .hizmet-header .seo-service-actions,
  .service-v9-page .hizmet-header .seo-service-actions .seo-btn{min-width:0;max-width:100%;box-sizing:border-box}
}
/* Some legacy public templates do not wrap content in <main>; normalize those too. */
body:not(.home-page):not(.panel-page) *,
body:not(.home-page):not(.panel-page) *::before,
body:not(.home-page):not(.panel-page) *::after{box-sizing:border-box}
body:not(.panel-page) img{max-width:100%}
/* Ultra-narrow mobile safeguards (320px class devices). */
body:not(.panel-page) iframe{max-width:100%}
#reviews iframe,
.contact-map iframe{width:100% !important;max-width:100% !important}
.appointment-form{min-width:0;max-width:100%}
@media(max-width:340px){
  .services-v9-page .page-hero{padding:34px 18px 30px !important}
  .services-v9-page .page-hero h1{font-size:38px !important;letter-spacing:-.045em !important}
}

/* V4.1 — Local SEO CTA contrast lock.
   The global brand heading selector is intentionally strong; local dark CTA
   headings must opt back into a light foreground explicitly. */
.seo-local-page .seo-v2-cta,
.seo-local-page .seo-v2-cta h2,
.seo-local-page .seo-v2-cta h3,
.seo-local-page .seo-v2-cta strong {
  color:#fff !important;
}
.seo-local-page .seo-v2-cta p {
  color:#e5e6ef !important;
}
.seo-local-page .seo-v2-cta .seo-btn--primary {
  color:#68194f !important;
  background:#fff !important;
  border-color:rgba(255,255,255,.9) !important;
}
