/*
Theme Name: Cinar Yol Yardim
Theme URI: https://cinarotoyolyardim.com
Author: Cinar Yol Yardim
Description: Cinar Yol Yardim ve Cekici Hizmetleri icin ozel WordPress temasi. 7/24 oto cekici, akü takviyesi, lastik değişimi ve yol yardim hizmetleri sitesi.
Version: 5.0
Requires at least: 5.9
Requires PHP: 7.4
Text Domain: cinar-yol-yardim
*/

:root{
  --asphalt:#0c0c0e;
  --asphalt-2:#151517;
  --charcoal:#1d1d20;
  --line:#302f2a;
  --gold:#e3a530;
  --gold-bright:#ffce5c;
  --warn:#ffcc00;
  --white:#f4f2ec;
  --grey:#a9a79f;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  background:var(--asphalt);
  color:var(--white);
  font-family:'Manrope', sans-serif;
  overflow-x:hidden;
}
body.has-mobile-call{padding-bottom:58px;}
h1,h2,h3,.display{
  font-family:'Oswald', sans-serif;
  text-transform:uppercase;
  letter-spacing:0.01em;
}
a{color:inherit; text-decoration:none;}
img{max-width:100%; display:block;}
.wrap{max-width:1180px; margin:0 auto; padding:0 24px;}

.hazard{
  height:14px;
  background:repeating-linear-gradient(135deg, var(--warn) 0 22px, #111 22px 44px);
}
.hazard.thin{height:8px;}

.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(12,12,14,0.92);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 24px; max-width:1180px; margin:0 auto;
}
.brand{display:flex; align-items:center; gap:12px;}
.brand img{height:52px; width:auto;}
.brand-logo-round{height:54px; width:54px; border-radius:50%; object-fit:cover;}
.brand-logo-round-sm{height:40px; width:40px; border-radius:50%; object-fit:cover;}
.brand-text{line-height:1.05;}
.brand-text .b1{font-family:'Oswald'; font-size:20px; font-weight:700; color:var(--white);}
.brand-text .b2{font-size:11px; color:var(--gold); letter-spacing:0.08em; text-transform:uppercase;}
.call-btn{
  display:flex; align-items:center; gap:8px;
  background:var(--gold); color:#161616;
  padding:11px 20px; border-radius:6px;
  font-weight:800; font-size:15px; white-space:nowrap;
}
.call-btn:hover{background:var(--gold-bright);}
.call-btn svg{width:16px; height:16px;}

.hero{
  position:relative;
  padding:72px 24px 56px;
  background:
    radial-gradient(ellipse at 70% 0%, rgba(227,165,48,0.14), transparent 55%),
    var(--asphalt);
  border-bottom:1px solid var(--line);
}
.hero-grid{
  max-width:1180px; margin:0 auto;
  display:grid; grid-template-columns:1.15fr 0.85fr; gap:48px; align-items:center;
}
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size:12.5px; font-weight:700; letter-spacing:0.12em;
  color:var(--warn); text-transform:uppercase; margin-bottom:18px;
}
.pulse{
  width:8px; height:8px; border-radius:50%; background:var(--warn);
  box-shadow:0 0 0 0 rgba(255,204,0,0.6);
  animation:pulse 2s infinite;
}
@keyframes pulse{
  0%{box-shadow:0 0 0 0 rgba(255,204,0,0.5);}
  70%{box-shadow:0 0 0 10px rgba(255,204,0,0);}
  100%{box-shadow:0 0 0 0 rgba(255,204,0,0);}
}
h1.hero-title{
  font-size:clamp(38px, 5.2vw, 68px);
  line-height:0.98;
  font-weight:700;
  color:var(--white);
}
h1.hero-title span{color:var(--gold);}
.hero-sub{
  margin-top:20px; font-size:17px; line-height:1.6; color:var(--grey);
  max-width:480px;
}
.hero-ctas{display:flex; gap:14px; margin-top:32px; flex-wrap:wrap;}
.btn-primary{
  background:var(--gold); color:#161616; font-weight:800; font-size:17px;
  padding:16px 26px; border-radius:8px; display:inline-flex; align-items:center; gap:10px;
}
.btn-primary:hover{background:var(--gold-bright);}
.btn-secondary{
  border:1px solid var(--line); color:var(--white); font-weight:700; font-size:15px;
  padding:15px 22px; border-radius:8px;
}
.btn-secondary:hover{border-color:var(--gold); color:var(--gold);}

/* slider placeholder slot - shown only to you in the editor; keep or replace with a real slider */
.slider-slot{max-width:1180px; margin:0 auto;}
.slider-placeholder{
  border:2px dashed var(--line); border-radius:14px; padding:40px 28px; text-align:center;
  background:rgba(227,165,48,0.04);
}
.slider-placeholder-badge{
  display:inline-block; font-family:'Oswald', sans-serif; font-size:12px; letter-spacing:0.14em;
  color:var(--gold); border:1px solid var(--gold); border-radius:999px; padding:5px 14px; margin-bottom:14px;
}
.slider-placeholder p{color:var(--grey); font-size:14px; line-height:1.6; margin:0; max-width:520px; margin-left:auto; margin-right:auto;}

/* hero: text on top, slider full width underneath (never squeezed into a narrow column) */
.hero .wp-block-columns{flex-direction:column; gap:36px;}
.hero .wp-block-column{flex:1 1 100% !important; max-width:100%; width:100%;}

/* hero slider built from native WordPress Cover blocks — every slide is editable in wp-admin.
   Pure CSS rotation: no JavaScript, and works whether or not WordPress wraps the group
   in an extra .wp-block-group__inner-container div. */
.cinar-slider{position:relative; max-width:1180px; margin:0 auto; border-radius:16px; overflow:hidden; border:1px solid var(--line);}
.cinar-slider,
.cinar-slider > .wp-block-group__inner-container{display:grid;}
.cinar-slider .cinar-slide{
  grid-area:1 / 1;
  min-height:400px;
  opacity:0;
  animation:cinarFade 21s infinite;
}
.cinar-slider .cinar-slide:nth-child(1){animation-delay:0s;}
.cinar-slider .cinar-slide:nth-child(2){animation-delay:7s;}
.cinar-slider .cinar-slide:nth-child(3){animation-delay:14s;}
@keyframes cinarFade{
  0%{opacity:0;}
  2%{opacity:1;}
  31%{opacity:1;}
  33%{opacity:0;}
  100%{opacity:0;}
}
.cinar-slider .wp-block-cover__inner-container{max-width:620px; margin-left:6%; margin-right:auto;}
/* replace the Cover block's flat dim with a directional fade: text side dark, photo side open */
.cinar-slider .wp-block-cover__background{
  background:linear-gradient(100deg, rgba(12,12,14,0.93) 0%, rgba(12,12,14,0.74) 45%, rgba(12,12,14,0.32) 100%) !important;
  opacity:1 !important;
}
.cinar-slider .eyebrow{color:var(--warn) !important; margin-bottom:10px;}
.cinar-slide-title{
  font-family:'Oswald', sans-serif; font-size:clamp(26px,3.4vw,40px); color:#fff !important;
  font-weight:700; line-height:1.05; text-transform:uppercase; margin:0 0 12px;
}
.cinar-slide-text{font-size:16px; color:#e8e6df !important; line-height:1.5; margin:0;}
@media (max-width:880px){ .cinar-slider .cinar-slide{min-height:320px;} }
@media (prefers-reduced-motion: reduce){
  .cinar-slider .cinar-slide{animation:none; opacity:0;}
  .cinar-slider .cinar-slide:nth-child(1){opacity:1;}
}

/* WordPress column blocks: consistent gaps between cards, and between stacked rows */
.wp-block-columns{
  display:flex; flex-wrap:wrap; gap:18px;
  max-width:1180px; margin:0 auto 18px; padding:0 24px;
}
.wp-block-column{flex:1 1 260px; min-width:0;}
.wp-block-columns.are-vertically-aligned-center{align-items:center;}
.wp-block-columns + .wp-block-columns{margin-top:0;}
@media (max-width:781px){
  .wp-block-columns{flex-direction:column; gap:18px; margin-bottom:18px;}
  .wp-block-column{flex:1 1 auto;}
}
.svc-card, .mv-card, .region-card{height:100%;}

/* in the block editor, show every slide stacked and still so each one can be edited */
.editor-styles-wrapper .cinar-slider,
.editor-styles-wrapper .cinar-slider > .wp-block-group__inner-container{display:block !important;}
.editor-styles-wrapper .cinar-slider .cinar-slide{
  display:block !important;
  animation:none !important;
  opacity:1 !important;
  visibility:visible !important;
  margin-bottom:12px;
}

/* per-district SEO cards */
.region-grid{max-width:1180px; margin:0 auto; display:grid; grid-template-columns:repeat(2,1fr); gap:18px;}
.region-card{
  background:var(--charcoal); border:1px solid var(--line); border-radius:12px; padding:26px;
  border-left:3px solid var(--gold);
}
.region-card h3{font-size:18px; color:var(--white); font-weight:600; text-transform:none; letter-spacing:0; margin-bottom:10px;}
.region-card p{font-size:14px; color:var(--grey); line-height:1.6; margin:0;}
@media (max-width:880px){ .region-grid{grid-template-columns:1fr;} }


.hero-stats{
  display:flex; gap:28px; margin-top:40px; padding-top:28px; border-top:1px solid var(--line);
}
.stat b{display:block; font-family:'Oswald'; font-size:26px; color:var(--gold);}
.stat span{font-size:12.5px; color:var(--grey); text-transform:uppercase; letter-spacing:0.05em;}
.hero-visual{position:relative; display:flex; justify-content:center;}
.hero-visual img{
  width:100%; max-width:420px;
  filter:drop-shadow(0 20px 40px rgba(0,0,0,0.5));
}

section{padding:64px 24px;}
.section-head{max-width:640px; margin:0 auto 40px; text-align:center;}
.section-head .eyebrow{display:inline-flex;}
.section-head h2{font-size:clamp(28px,3.6vw,40px); font-weight:700; color:var(--white); margin-top:10px;}
.section-head p{color:var(--grey); margin-top:12px; font-size:15.5px; line-height:1.6;}

.services-grid{
  max-width:1180px; margin:0 auto;
  display:grid; grid-template-columns:repeat(3, 1fr); gap:18px;
}
.svc-card{
  background:var(--charcoal); border:1px solid var(--line); border-radius:10px;
  padding:26px; transition:transform .18s ease, border-color .18s ease;
}
.svc-card:hover{transform:translateY(-4px); border-color:var(--gold);}
.svc-icon{
  width:44px; height:44px; border-radius:8px; background:rgba(227,165,48,0.12);
  display:flex; align-items:center; justify-content:center; margin-bottom:16px;
}
.svc-icon svg{width:22px; height:22px; stroke:var(--gold);}
.svc-card h3{font-size:18px; color:var(--white); font-weight:600; text-transform:none; letter-spacing:0; margin-bottom:8px;}
.svc-card p{font-size:14px; color:var(--grey); line-height:1.55;}

.why-wrap{
  max-width:1180px; margin:0 auto; display:grid; grid-template-columns:0.9fr 1.1fr; gap:56px; align-items:center;
}
.why-list{display:flex; flex-direction:column; gap:22px;}
.why-item{display:flex; gap:16px;}
.why-num{
  font-family:'Oswald'; font-size:14px; color:var(--gold); border:1px solid var(--gold);
  width:32px; height:32px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.why-item h3{font-size:16.5px; color:var(--white); font-weight:600; text-transform:none; letter-spacing:0;}
.why-item p{font-size:14px; color:var(--grey); margin-top:4px; line-height:1.55;}
.why-item h4{font-size:16.5px; color:var(--white); font-weight:600; text-transform:none; letter-spacing:0; margin-bottom:4px;}
.why-panel{
  background:var(--charcoal); border:1px solid var(--line); border-radius:14px; padding:36px;
  position:relative; overflow:hidden;
}
.why-panel::before{
  content:''; position:absolute; inset:0; height:6px;
  background:repeating-linear-gradient(135deg, var(--warn) 0 16px, #111 16px 32px);
}
.why-panel h3, .why-panel h4{color:var(--gold); font-size:15px; letter-spacing:0.05em; margin-bottom:18px; text-transform:uppercase;}
.why-panel p{font-size:14.5px; color:var(--white); padding:10px 0; border-bottom:1px solid var(--line); margin:0;}
.why-panel p:last-child{border-bottom:none;}
.response-row{display:flex; justify-content:space-between; padding:14px 0; border-bottom:1px solid var(--line); font-size:14.5px;}
.response-row:last-child{border-bottom:none;}
.response-row span:last-child{color:var(--gold); font-weight:700;}

/* dark info panel used for the "Hizmet Bölgesi" block on the homepage */
.panel-dark{
  max-width:1180px; margin:0 auto;
  background:var(--charcoal); border:1px solid var(--line); border-radius:16px; padding:44px;
}
.tag-pills{display:flex; flex-wrap:wrap; gap:10px; margin-top:20px;}
.tag-pill{
  background:rgba(227,165,48,0.1) !important; border:1px solid var(--line); color:var(--white) !important;
  padding:8px 14px !important; border-radius:999px; font-size:13px; display:inline-block;
}

.coverage-wrap{
  max-width:1180px; margin:0 auto;
  background:var(--charcoal); border:1px solid var(--line); border-radius:16px;
  padding:44px; display:grid; grid-template-columns:1fr 1fr; gap:40px; align-items:center;
}
.district-tags{display:flex; flex-wrap:wrap; gap:10px; margin-top:20px;}
.district-tags span{
  background:rgba(227,165,48,0.1); border:1px solid var(--line); color:var(--white);
  padding:8px 14px; border-radius:999px; font-size:13px;
}

.mv-wrap{max-width:1180px; margin:0 auto; display:grid; grid-template-columns:1fr 1fr; gap:22px;}
.mv-card{
  background:var(--charcoal); border:1px solid var(--line); border-radius:14px; padding:36px;
  position:relative; overflow:hidden;
}
.mv-card::before{content:''; position:absolute; top:0; left:0; right:0; height:4px; background:var(--gold);}
.mv-icon{
  width:48px; height:48px; border-radius:10px; background:rgba(227,165,48,0.12);
  display:flex; align-items:center; justify-content:center; margin-bottom:20px;
}
.mv-icon svg{width:24px; height:24px; stroke:var(--gold);}
.mv-card h3{font-size:15px; color:var(--gold); letter-spacing:0.06em; margin-bottom:14px;}
.mv-card p{font-size:15px; color:var(--white); line-height:1.7;}

.cta-band{
  background:linear-gradient(120deg, #1a1408, var(--asphalt));
  border-top:1px solid var(--line); border-bottom:1px solid var(--line);
  text-align:center;
}
.cta-band h2{font-size:clamp(26px,3.6vw,38px); color:var(--white); font-weight:700;}
.cta-band p{color:var(--grey); margin-top:10px; font-size:15.5px;}
.cta-band .btn-primary{margin-top:26px; font-size:19px; padding:18px 32px;}

.site-footer{padding:36px 24px 28px; border-top:1px solid var(--line);}
.footer-inner{
  max-width:1180px; margin:0 auto; display:flex; justify-content:space-between; align-items:center;
  flex-wrap:wrap; gap:16px; color:var(--grey); font-size:13px;
}
.footer-inner .brand{gap:10px;}
.footer-inner .brand img{height:34px;}

.wa-float{
  position:fixed; right:20px; bottom:150px; z-index:60;
  width:60px; height:60px; border-radius:50%;
  background:#25D366; display:flex; align-items:center; justify-content:center;
  box-shadow:0 6px 18px rgba(0,0,0,0.4); text-decoration:none;
}
.wa-float svg{width:30px; height:30px;}
.wa-float .float-label{display:none;}

/* round fixed "Hemen Ara" button: phone icon on top, label underneath */
.call-float{
  position:fixed; right:16px; bottom:76px; z-index:60;
  width:68px; height:68px; border-radius:50%;
  background:var(--gold); display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:2px; text-decoration:none; box-shadow:0 6px 18px rgba(0,0,0,0.4);
}
.call-float svg{width:24px; height:24px;}
.call-float .float-label{
  font-family:'Manrope', sans-serif; font-size:9.5px; font-weight:800; color:#161616;
  text-transform:uppercase; letter-spacing:0.02em; line-height:1;
}

.mobile-call{
  display:none; position:fixed; bottom:0; left:0; right:0; z-index:60;
  background:var(--gold); color:#161616; text-align:center;
  padding:14px; font-weight:800; font-size:16px;
  box-shadow:0 -6px 18px rgba(0,0,0,0.4);
}

.site-content{padding:48px 0 64px;}
.entry-content{max-width:760px; margin:0 auto; padding:0 24px; line-height:1.7; font-size:16.5px; color:var(--white);}
.entry-content h2{font-size:28px; margin-top:38px;}
.entry-content h3{font-size:20px; margin-top:28px; text-transform:none; letter-spacing:0;}
.entry-content img{border-radius:10px; margin:20px 0;}
.entry-title{font-size:clamp(30px,4vw,46px); max-width:900px; margin:0 auto 20px; padding:0 24px; font-weight:700;}
.entry-meta{max-width:900px; margin:0 auto 12px; padding:0 24px; color:var(--grey); font-size:13.5px;}
.archive-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:20px; max-width:1180px; margin:0 auto; padding:0 24px;}
.post-card{background:var(--charcoal); border:1px solid var(--line); border-radius:10px; overflow:hidden;}
.post-card img{margin:0; aspect-ratio:16/10; object-fit:cover;}
.post-card .post-card-body{padding:18px;}
.post-card h3{font-size:17px; text-transform:none; letter-spacing:0; margin:0 0 8px;}
.post-card p{color:var(--grey); font-size:14px; line-height:1.5; margin:0;}

@media (max-width: 880px){
  .hero-grid{grid-template-columns:1fr; text-align:left;}
  .hero-visual{order:-1; max-width:280px; margin:0 auto 8px;}
  .hero-stats{flex-wrap:wrap; row-gap:16px;}
  .services-grid{grid-template-columns:1fr 1fr;}
  .why-wrap{grid-template-columns:1fr;}
  .coverage-wrap{grid-template-columns:1fr; padding:28px;}
  .call-btn span.call-label{display:none;}
  .mobile-call{display:block;}
  .archive-grid{grid-template-columns:1fr 1fr;}
}
@media (max-width: 560px){
  .services-grid{grid-template-columns:1fr;}
  .brand-text .b2{display:none;}
  .archive-grid{grid-template-columns:1fr; padding:0 20px;}
}
@media (prefers-reduced-motion: reduce){
  .pulse{animation:none;}
  .svc-card{transition:none;}
}
