/*
Theme Name: Bay Kepenk Kurumsal
Theme URI: https://kepenkfirmasi.com/
Author: Antigravity AI
Author URI: https://kepenkfirmasi.com/
Description: İstanbul genelinde 7/24 otomatik kepenk tamiri, motor değişimi, kepenk ve kapı sistemleri montajı sunan %100 mobil ve SEO uyumlu WordPress teması.
Version: 1.1.0
License: GNU General Public License v2 or later
Text Domain: kepenk-firmasi
*/

:root {
  --primary: #0b1c36;
  --primary-light: #162b4c;
  --primary-dark: #061122;
  --accent-red: #dc2626;
  --accent-red-hover: #b91c1c;
  --accent-yellow: #f59e0b;
  --accent-green: #10b981;
  --text-main: #1e293b;
  --text-muted: #475569;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --bg-dark: #0f172a;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(11,28,54,0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.25;
  word-wrap: break-word;
}

h1 {
  font-size: clamp(1.8rem, 4vw + 1rem, 2.8rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw + 0.8rem, 2.2rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw + 0.6rem, 1.5rem);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

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

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* TOP ANNOUNCEMENT BAR */
.top-bar {
  background: var(--primary-dark);
  color: #94a3b8;
  font-size: 0.875rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.top-bar-badge {
  background: var(--accent-red);
  color: white;
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.75rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.75; }
  100% { opacity: 1; }
}

.top-bar-right {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.top-bar-link {
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  min-height: 36px;
}

.top-bar-link:hover {
  color: #ffffff;
}

/* MAIN HEADER */
.site-header {
  background: var(--bg-white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 800;
  color: var(--primary);
  min-height: 48px;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--accent-red));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
  box-shadow: 0 4px 10px rgba(220,38,38,0.3);
  flex-shrink: 0;
}

.logo span {
  color: var(--accent-red);
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 24px;
}

.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
  padding: 8px 0;
  position: relative;
  min-height: 44px;
}

.main-nav a:hover, .main-nav .active {
  color: var(--accent-red);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-red);
  transition: var(--transition);
}

.main-nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  min-height: 48px;
  text-align: center;
}

.btn-primary {
  background: var(--accent-red);
  color: white;
  box-shadow: 0 4px 14px rgba(220,38,38,0.35);
}

.btn-primary:hover {
  background: var(--accent-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220,38,38,0.45);
}

.btn-whatsapp {
  background: #25d366;
  color: white;
  box-shadow: 0 4px 14px rgba(37,211,102,0.35);
}

.btn-whatsapp:hover {
  background: #1eb956;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,211,102,0.45);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--primary);
  cursor: pointer;
  padding: 10px;
  min-height: 48px;
  min-width: 48px;
}

/* HERO SECTION */
.hero-section {
  background: linear-gradient(135deg, #0b1c36 0%, #112647 100%);
  color: white;
  padding: clamp(40px, 6vw, 80px) 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(220,38,38,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #f8fafc;
  margin-bottom: 20px;
  max-width: 100%;
}

.hero-title {
  color: white;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-title span {
  color: var(--accent-red);
}

.hero-text {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: #cbd5e1;
  margin-bottom: 35px;
  max-width: 620px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.stat-item h4 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  color: var(--accent-yellow);
}

.stat-item p {
  font-size: 0.85rem;
  color: #94a3b8;
}

.hero-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: clamp(20px, 4vw, 35px);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.hero-card-title {
  color: white;
  margin-bottom: 15px;
}

.hero-card-list {
  list-style: none;
  margin-bottom: 25px;
}

.hero-card-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  color: #e2e8f0;
  font-size: 0.95rem;
}

.hero-card-list li svg {
  color: var(--accent-green);
  flex-shrink: 0;
  margin-top: 3px;
}

/* SECTIONS & GRIDS */
.section {
  padding: clamp(50px, 8vw, 80px) 0;
}

.bg-light {
  background-color: var(--bg-light);
}

.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 40px auto;
}

.section-subtitle {
  color: var(--accent-red);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  margin-bottom: 15px;
}

.section-desc {
  color: var(--text-muted);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

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

/* CARDS DESIGN */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(220,38,38,0.3);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: rgba(220,38,38,0.08);
  color: var(--accent-red);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.card-title {
  margin-bottom: 12px;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-link {
  color: var(--accent-red);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
}

.card-link:hover {
  gap: 10px;
}

/* DISTRICTS REGION BADGES */
.region-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: var(--radius-sm);
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 85px;
}

.region-card:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-3px);
}

.region-card h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  transition: var(--transition);
}

.region-card:hover h4 {
  color: white;
}

.region-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.region-card:hover p {
  color: #cbd5e1;
}

/* EMERGENCY CTA BANNER */
.emergency-banner {
  background: linear-gradient(135deg, var(--accent-red) 0%, #b91c1c 100%);
  color: white;
  padding: clamp(35px, 6vw, 60px) 20px;
  text-align: center;
  border-radius: var(--radius-lg);
  box-shadow: 0 15px 35px rgba(220,38,38,0.25);
  margin: 40px 0;
}

.emergency-banner h2 {
  color: white;
  margin-bottom: 15px;
}

.emergency-banner p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  margin-bottom: 30px;
  opacity: 0.95;
}

.emergency-btn-group {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-white {
  background: white;
  color: var(--primary);
}

.btn-white:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
}

/* FAQ ACCORDION */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 20px;
  text-align: left;
  background: none;
  border: none;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1rem, 2vw, 1.1rem);
  font-weight: 700;
  color: var(--primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  min-height: 54px;
}

.faq-icon {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 10px;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 350px;
  padding: 0 20px 20px 20px;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* TESTIMONIALS */
.testimonial-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 25px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.stars {
  color: var(--accent-yellow);
  margin-bottom: 12px;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-main);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.testimonial-author {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
}

/* FOOTER */
.site-footer {
  background: var(--bg-dark);
  color: #94a3b8;
  padding-top: clamp(40px, 6vw, 70px);
  padding-bottom: 30px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: white;
  font-size: 1.15rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background: var(--accent-red);
}

.footer-text {
  font-size: 0.9rem;
  margin-bottom: 20px;
  line-height: 1.7;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #cbd5e1;
  font-size: 0.9rem;
  min-height: 36px;
}

.footer-links a:hover {
  color: var(--accent-red);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: #cbd5e1;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.85rem;
}

/* FLOATING QUICK CONTACT BUTTONS (WITH SAFE-AREA MARGINS) */
.floating-bar {
  position: fixed;
  bottom: max(20px, env(safe-area-inset-bottom));
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}

.floating-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.6rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  transition: var(--transition);
  min-height: 58px;
}

.floating-btn:hover {
  transform: scale(1.1);
}

.floating-phone {
  background: var(--accent-red);
}

.floating-wp {
  background: #25d366;
}

/* RESPONSIVE BREAKPOINTS (320px - 1024px) */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .main-nav {
    display: none;
  }
  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .top-bar {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .hero-cta {
    flex-direction: column;
  }
  .btn {
    width: 100%;
  }
  .emergency-btn-group {
    flex-direction: column;
  }
  .emergency-btn-group .btn {
    width: 100%;
  }
}
