/* ============================================================
   HERA BAKIM — MAIN.CSS
   1. Variables & Reset
   2. Base Typography
   3. Layout Utilities
   4. Navigation
   5. Hero
   6. Services Section
   7. Why Us Section
   8. How It Works
   9. Service Areas
   10. FAQ
   11. CTA Band
   12. Footer
   13. Floating WhatsApp
   14. Responsive
   ============================================================ */

/* ── 1. Variables & Reset ── */
:root {
  --green-dark:   #2E1A47;
  --green-mid:    #3D2460;
  --green-light:  #5C3D8F;
  --gold:         #6B82A0;
  --gold-light:   #8B9BB4;
  --cream:        #F7F5FA;
  --cream-dark:   #EDE9F5;
  --white:        #FFFFFF;
  --text-dark:    #1A1A1A;
  --text-muted:   #6B6B6B;

  --font-heading: 'Playfair Display', serif;
  --font-body:    'Nunito', sans-serif;

  --radius:       10px;
  --radius-lg:    16px;
  --shadow:       0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg:    0 8px 40px rgba(0,0,0,0.14);
  --transition:   0.25s ease;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* ── 2. Base Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { margin-bottom: 0; }

/* ── 3. Layout Utilities ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 88px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header .label {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.section-header h2 {
  color: var(--green-dark);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ── 4. Navigation ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--cream-dark);
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.nav-logo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 8px;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--green-dark);
  white-space: nowrap;
  line-height: 1.2;
}

.nav-logo::after {
  content: "Her An Yanınızda";
  flex: 0 0 100%;
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-body);
  padding-left: 42px;
  margin-top: -2px;
}

.footer-logo .nav-logo-img {
  width: 28px;
  height: 28px;
}

.nav-logo-img {
  flex-shrink: 0;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
  padding: 6px 14px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover {
  color: var(--green-light);
  background: var(--cream);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--gold) !important;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--gold);
  white-space: nowrap;
  letter-spacing: 0.01em;
  transition: background var(--transition), color var(--transition);
  flex-shrink: 0;
}

.nav-cta:hover {
  background: var(--gold);
  color: var(--white) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--green-dark);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── 5. Hero ── */
.hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 60%, var(--green-light) 100%);
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(200,135,58,0.12) 0%, transparent 65%);
  pointer-events: none;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: center;
}

.hero-content {
  text-align: left;
}

/* Sağ panel: hizmet linkleri */
.hero-services-panel {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(8px);
}

.hero-panel-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero-services-panel ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-services-panel a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s;
}

.hero-services-panel a:hover {
  background: rgba(255,255,255,0.1);
}

.hsp-icon {
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0;
}

.hsp-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
}

.hsp-text strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--white);
}

.hsp-text small {
  font-size: 0.73rem;
  color: rgba(255,255,255,0.5);
  font-weight: 400;
}

.hsp-arrow {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.3);
  flex-shrink: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.18;
}

.hero h1 span {
  color: var(--gold-light);
}

.hero-sub {
  color: rgba(255,255,255,0.82);
  font-size: 1.1rem;
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 10px;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  min-height: 52px;
  white-space: nowrap;
}

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

.btn-white:hover {
  background: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
}

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

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

.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,135,58,0.35);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
}

.trust-item .icon {
  font-size: 1rem;
}

/* ── Hero Stats ── */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 48px;
  padding: 28px 0 8px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 40px;
  flex: 1;
}

.hero-stat-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

@media (max-width: 580px) {
  .hero-stats { gap: 0; padding: 20px 0 4px; }
  .hero-stat { padding: 0 16px; }
  .hero-stat-num { font-size: 1.5rem; }
  .hero-stat-label { font-size: 0.68rem; }
}

@media (max-width: 400px) {
  .hero-stat-divider { display: none; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .hero-stat { flex: 0 0 calc(50% - 8px); padding: 0 8px; }
}

/* ── 6. Services Section ── */
.services-section {
  background: var(--cream);
}

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

/* ── 7. Why Us Section ── */
.why-us {
  background: var(--green-dark);
}

.why-us .section-header .label {
  color: var(--gold-light);
}

.why-us .section-header h2 {
  color: var(--white);
}

.why-us .section-header p {
  color: rgba(255,255,255,0.7);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ── 8. How It Works ── */
.how-section {
  background: var(--white);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(16.66% + 24px);
  right: calc(16.66% + 24px);
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  opacity: 0.4;
}

/* ── 9. Service Areas ── */
.areas-section {
  background: var(--cream);
}

.areas-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ── 10. FAQ ── */
.faq-section {
  background: var(--white);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

/* ── 11. CTA Band ── */
.cta-band {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  padding: 72px 0;
  text-align: center;
}

.cta-band h2 {
  color: var(--white);
  margin-bottom: 10px;
}

.cta-band p {
  color: rgba(255,255,255,0.85);
  font-size: 1.08rem;
  margin-bottom: 32px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ── 12. Footer ── */
.site-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.8);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
}

.footer-logo .nav-logo-img {
  width: 28px;
  height: 28px;
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.65);
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 18px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--gold-light);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
}

.footer-contact-item .icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-item a {
  color: rgba(255,255,255,0.85);
  transition: color var(--transition);
}

.footer-contact-item a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

/* ── 13. Floating WhatsApp ── */
.floating-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  animation: waPulse 2.4s ease-in-out infinite;
  transition: transform var(--transition);
}

.floating-whatsapp:hover {
  transform: scale(1.12);
  animation-play-state: paused;
}

.floating-whatsapp svg {
  width: 28px;
  height: 28px;
  fill: var(--white);
}

@keyframes waPulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.50); }
  60%  { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ── 14. Responsive ── */

/* Intermediate — 1024px (iPad landscape / small desktop) */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
  .footer-about { grid-column: 1 / -1; }
}

/* Tablet — 768px */
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .section-header { margin-bottom: 40px; }

  /* Nav */
  .nav-links { display: none; flex-direction: column; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--cream-dark);
    padding: 12px 20px 20px;
    gap: 2px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    z-index: 999;
  }
  .nav-links.open a {
    padding: 11px 14px;
    font-size: 0.97rem;
    border-radius: 8px;
    display: block;
  }
  .hamburger { display: flex; }
  .nav-cta { padding: 5px 12px; font-size: 0.78rem; }

  /* Hero */
  .hero { padding: 64px 0 52px; }
  .hero-layout { grid-template-columns: 1fr; gap: 32px; }
  .hero-services-panel { display: none; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* Grids */
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; gap: 24px; }
  .steps-grid::before { display: none; }

  /* CTA */
  .cta-band { padding: 60px 0; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-about { grid-column: 1 / -1; }

  /* Floating WA */
  .floating-whatsapp { width: 58px; height: 58px; bottom: 20px; right: 16px; }
}

/* Mobile — 480px */
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .section { padding: 48px 0; }
  .section-header { margin-bottom: 28px; }

  /* Hero */
  .hero { padding: 48px 0 40px; }
  .hero-badge { font-size: 0.72rem; padding: 5px 12px; }
  .hero-sub { font-size: 0.97rem; margin-bottom: 28px; }
  .hero-trust { gap: 8px; }
  .trust-item { font-size: 0.8rem; padding: 7px 13px; }

  /* Services — horizontal card layout on small mobile */
  .services-grid { grid-template-columns: 1fr; gap: 10px; }
  .service-card {
    display: grid;
    grid-template-columns: 44px 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 14px;
    row-gap: 4px;
    padding: 16px 18px;
    align-items: start;
  }
  .service-card .card-icon {
    grid-column: 1;
    grid-row: 1 / 4;
    font-size: 1.8rem;
    margin-bottom: 0;
    padding-top: 3px;
  }
  .service-card h3 { grid-column: 2; grid-row: 1; font-size: 0.95rem; }
  .service-card p  { grid-column: 2; grid-row: 2; }
  .service-card .card-link { grid-column: 2; grid-row: 3; }

  /* Why us */
  .why-grid { grid-template-columns: 1fr; }
  .why-card { padding: 24px 20px; }

  /* Steps */
  .step-number { width: 56px; height: 56px; font-size: 1.3rem; margin-bottom: 16px; }

  /* CTA */
  .cta-band { padding: 48px 0; }
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn { width: 100%; max-width: 360px; justify-content: center; }

  /* Nav */
  .nav-cta { font-size: 0.75rem; padding: 5px 11px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  /* Floating WA */
  .floating-whatsapp { bottom: 18px; right: 14px; }
}

/* Small mobile — 360px */
@media (max-width: 360px) {
  .container { padding: 0 14px; }
  .nav-inner { height: 60px; }
  .nav-logo { font-size: 1.15rem; }
  .nav-cta { display: none; }
  .section { padding: 40px 0; }
}

/* Touch devices — disable hover transform side-effects */
@media (hover: none) {
  .service-card:hover,
  .why-card:hover,
  .step-card:hover,
  .blog-card:hover,
  .area-badge:hover,
  .region-service-link:hover,
  .btn:hover,
  .nav-cta:hover { transform: none !important; }
}

/* ── Page-level inner layouts ── */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%);
  padding: 72px 0 60px;
}

.page-hero-content { max-width: 680px; }

.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.page-hero .breadcrumb a {
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}

.page-hero .breadcrumb a:hover { color: var(--gold-light); }
.page-hero .breadcrumb span { color: var(--gold-light); font-weight: 600; }
.page-hero .breadcrumb .sep { color: rgba(255,255,255,0.3); }

.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,0.78); font-size: 1.05rem; margin-bottom: 28px; }

.detail-section { background: var(--white); }
.detail-section + .detail-section { background: var(--cream); }

.detail-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 768px) {
  .page-hero { padding: 52px 0 44px; }
  .detail-grid { grid-template-columns: 1fr; gap: 0; }
  /* Sidebar (price box + related links) comes first on mobile for fast CTA access */
  .detail-grid > div:last-child { order: -1; margin-bottom: 32px; }
}

@media (max-width: 480px) {
  .page-hero { padding: 44px 0 36px; }
  .page-hero h1 { margin-bottom: 12px; }
}

/* Region page */
.region-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 768px) {
  .region-services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .region-services-grid { grid-template-columns: 1fr; }
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}
