﻿/*
Theme Name: Hasbi Modern
Theme URI: https://hasbikurt.com
Author: Codex
Author URI: https://hasbikurt.com
Description: Modern, sıcak ve profesyonel psikolog tanıtım teması.
Version: 1.3.2
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: hasbi-modern
*/

:root {
  --bg: #f9f4ec;
  --surface: #fffefb;
  --surface-soft: #f4efe5;
  --primary: #6f9f88;
  --primary-strong: #4f7a66;
  --accent: #f2b186;
  --accent-soft: #ffe6d3;
  --text: #26332d;
  --muted: #5f6e66;
  --line: #ded8ca;
  --shadow: 0 14px 40px rgba(66, 93, 79, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Nunito Sans", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 2% 2%, rgba(243, 168, 121, 0.18), transparent 28%),
    radial-gradient(circle at 97% 4%, rgba(95, 133, 118, 0.16), transparent 28%),
    var(--bg);
  line-height: 1.72;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 12px;
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.2;
  color: #1d2a24;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2.4rem);
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.65rem);
}

p {
  margin: 0 0 14px;
}

a {
  color: inherit;
}

.container {
  width: min(1140px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(12px);
  background: rgba(249, 244, 236, 0.9);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 86px;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.custom-logo-link,
.custom-logo-link img {
  display: inline-flex;
}

.custom-logo-link img,
.brand-logo-fallback {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
}

.brand-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.brand-title {
  font-size: 1.06rem;
  font-weight: 800;
}

.brand-slogan {
  font-size: 0.84rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  color: var(--primary-strong);
}

.header-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.main-nav .menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav .menu-item a {
  display: inline-block;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  color: #304038;
  border-radius: 999px;
  padding: 8px 12px;
  transition: 0.2s ease;
}

.main-nav .menu-item a:hover,
.main-nav .menu-item.current-menu-item a {
  background: rgba(95, 133, 118, 0.18);
  color: var(--primary-strong);
}

.main-nav .menu-item-calendar a {
  background: var(--primary-strong);
  color: #fff;
  border: 1px solid var(--primary-strong);
}

.main-nav .menu-item-calendar a:hover,
.main-nav .menu-item-calendar.current-menu-item a {
  background: var(--primary);
  color: #fff;
}

.lang-switcher {
  position: relative;
}

.lang-toggle {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #2f3f37;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  font-weight: 700;
  cursor: pointer;
}

.lang-toggle svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.lang-menu {
  list-style: none;
  margin: 8px 0 0;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  position: absolute;
  right: 0;
  top: 100%;
  min-width: 130px;
  display: none;
}

.lang-menu.is-open {
  display: block;
}

.lang-menu a {
  display: block;
  text-decoration: none;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.93rem;
  font-weight: 700;
}

.lang-menu a:hover,
.lang-menu a.is-active {
  background: rgba(95, 133, 118, 0.15);
  color: var(--primary-strong);
}

.site-main {
  padding: 36px 0 18px;
}

.section {
  margin-bottom: 42px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: clamp(20px, 2.4vw, 34px);
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 26px;
}

.hero-image-wrap {
  position: relative;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(95, 133, 118, 0.17);
  color: #355548;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  margin-bottom: 10px;
}

.hero-lead {
  font-size: clamp(1rem, 1.45vw, 1.16rem);
  color: #46544e;
  max-width: 62ch;
}

.hero-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 11px 20px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--primary-strong);
  color: #fff;
}

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

.btn-outline {
  border-color: var(--primary-strong);
  color: var(--primary-strong);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary-strong);
  color: #fff;
}

.btn-soft {
  border-color: transparent;
  color: #6e4a2f;
  background: rgba(243, 168, 121, 0.24);
}

.btn-soft:hover {
  background: rgba(243, 168, 121, 0.38);
}

.hero-image {
  width: 100%;
  height: clamp(340px, 33vw, 450px);
  object-fit: cover;
  object-position: center 18%;
  border-radius: 24px;
  border: 1px solid var(--line);
}

.hero-note {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  margin: 0;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  color: #41534a;
  padding: 10px 12px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 20px;
}

.feature-card p {
  color: #4d5d56;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.step-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 18px;
}

.step-no {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #6a4326;
  background: rgba(243, 168, 121, 0.28);
  margin-bottom: 10px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.post-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 18px;
}

.post-card h3 {
  margin-bottom: 8px;
}

.post-card p {
  color: #4e6058;
}

.post-card a.more {
  text-decoration: none;
  color: var(--primary-strong);
  font-weight: 800;
}

.page-header {
  margin-bottom: 22px;
}

.blog-categories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.cat-card {
  display: block;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.cat-pill {
  display: inline-block;
  border-radius: 999px;
  background: rgba(243, 168, 121, 0.26);
  color: #835436;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 10px;
  margin-bottom: 10px;
}

.service-list {
  display: grid;
  gap: 24px;
}

.service-row {
  display: grid;
  grid-template-columns: minmax(240px, 0.86fr) minmax(0, 1.14fr);
  gap: 14px;
  align-items: stretch;
}

.service-row.reverse {
  direction: rtl;
}

.service-row.reverse > * {
  direction: ltr;
}

.service-media {
  display: flex;
  min-height: 100%;
}

.service-image {
  display: block;
  flex: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid var(--line);
}

.service-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  padding: clamp(20px, 2.2vw, 30px);
}

.service-card p {
  color: #4e6058;
}

.appointment-panel h2 {
  margin-bottom: 14px;
}

.calendar-embed,
.calendar-placeholder {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 16px;
}

.calendar-placeholder p {
  margin-bottom: 14px;
}

.calendar-embed iframe {
  width: 100%;
  min-height: 690px;
  border: 0;
  border-radius: 14px;
}

.about-wrap,
.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
}

.about-photo {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid var(--line);
}

.contact-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 20px;
}

.hasbi-contact-form {
  display: grid;
  gap: 10px;
}

.hasbi-contact-form input,
.hasbi-contact-form textarea {
  width: 100%;
  border: 1px solid #cfd6ce;
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
  background: #fff;
}

.hasbi-contact-form button {
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--primary-strong);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.hasbi-form-notice {
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.92rem;
}

.hasbi-form-notice.is-success {
  background: #e8f4eb;
  color: #245f3a;
}

.hasbi-form-notice.is-error {
  background: #fbe8e8;
  color: #8a2f2f;
}

.map-embed {
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: 18px;
}

.single-post .single-content h2,
.single-post .single-content h3 {
  margin-top: 24px;
}

.single-post .single-content ul,
.single-post .single-content ol {
  padding-left: 20px;
}

.post-meta-divider {
  margin: 0 8px;
  opacity: 0.6;
}

.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  background: #efe8db;
}

.footer-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.95rem;
  color: #455148;
}

.footer-inner p {
  margin: 0;
}

.floating-actions {
  position: fixed;
  right: 18px;
  bottom: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.floating-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.floating-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.floating-btn.whatsapp {
  background: #25d366;
}

.floating-btn.email {
  background: var(--primary-strong);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1024px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .hero,
  .service-row,
  .about-wrap,
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .hero-image-wrap .hero-note {
    position: static;
    margin-top: 12px;
  }

  .service-row.reverse {
    direction: ltr;
  }

  .service-media {
    min-height: 0;
  }

  .service-image {
    height: clamp(220px, 46vw, 320px);
  }

  .post-grid,
  .blog-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .header-inner {
    min-height: 76px;
  }

  .brand-slogan {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
  }

  .header-controls {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 8px);
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }

  .header-controls.is-open {
    display: flex;
  }

  .main-nav .menu {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .main-nav .menu-item a {
    width: 100%;
    text-align: left;
  }

  .lang-switcher {
    align-self: flex-end;
  }

  .cards-grid,
  .steps,
  .post-grid,
  .blog-categories {
    grid-template-columns: 1fr;
  }

  .floating-btn {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1140px, calc(100% - 24px));
  }

  .footer-inner {
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 0;
  }

  .hero-image {
    height: clamp(300px, 72vw, 380px);
  }
}

@media (max-width: 480px) {
  .btn {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .floating-actions {
    right: 12px;
    bottom: 14px;
  }
}
