/* ============================================
   Dr. Sezgin Firidin - Frontend Stylesheet
   Lightweight | Mobile-First | Dynamic Theme
   ============================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: #1f2937;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; height: auto; }
a { color: var(--color-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-secondary); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.25; color: #0f172a; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: .8em; }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.5rem); margin-bottom: .6em; }
p { margin-bottom: 1em; }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute; top: -100px; left: 0;
  background: var(--color-primary); color: #fff;
  padding: 10px 16px; z-index: 9999;
}
.skip-link:focus { top: 0; }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  text-align: center;
  transition: transform .15s, box-shadow .2s, background .2s, color .2s;
  cursor: pointer;
  line-height: 1.2;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(10,77,140,.25);
}
.btn-primary:hover { background: #093f73; color: #fff; transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.btn-accent {
  background: #25d366; color: #fff;
}
.btn-accent:hover { background: #1bb555; color: #fff; transform: translateY(-2px); }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-block { display: block; width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .06), 0 4px 16px rgba(15, 23, 42, .04);
}
.topbar {
  background: var(--color-primary);
  color: #fff;
  font-size: .85rem;
}
.topbar-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 20px; gap: 10px; flex-wrap: wrap;
}
.topbar-contact { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar-contact a, .topbar-social a {
  color: #fff; opacity: .92;
}
.topbar-contact a:hover { opacity: 1; color: #fff; }
.topbar-social {
  display: flex; gap: 6px;
}
.topbar-social a {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 600;
}
.topbar-social a:hover { background: rgba(255,255,255,.3); }
.ico { margin-right: 4px; }

.navbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: 'Great Vibes', 'Allura', 'Pinyon Script', cursive;
  font-weight: 400;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--color-primary);
  letter-spacing: .01em;
}
.brand-sub {
  font-size: .72rem;
  color: #6b7280;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.nav-menu {
  display: flex; align-items: center; gap: 6px;
}
.nav-menu a {
  display: inline-block;
  padding: 10px 14px;
  color: #1f2937;
  font-weight: 500;
  font-size: .95rem;
  border-radius: 8px;
  position: relative;
}
.nav-menu a:hover { color: var(--color-primary); background: #f1f5fb; }
.nav-menu a.active {
  color: var(--color-primary);
  background: #eaf2fb;
}
.nav-menu a.btn { color: #fff; padding: 10px 22px; }
.nav-menu a.btn:hover { color: #fff; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
}
.nav-toggle span {
  width: 24px; height: 2px; background: #1f2937; border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 600px at 100% 0%, rgba(255,255,255,.18), transparent 60%),
    linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff; padding: 70px 0 90px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: auto -10% -50% -10%;
  height: 200px; background: #fff;
  transform: skewY(-2deg);
}
.hero-grid {
  display: grid; gap: 40px;
  grid-template-columns: 1fr;
  align-items: center;
  position: relative; z-index: 1;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  color: #fff; margin-bottom: 16px; line-height: 1.15;
}
.hero .lead {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  opacity: .94; margin-bottom: 28px; max-width: 620px;
}
.hero-badges {
  display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap;
}
.hero-badge {
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.25);
  padding: 6px 14px; border-radius: 999px;
  font-size: .85rem;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-actions .btn-primary { background: #fff; color: var(--color-primary); box-shadow: 0 10px 28px rgba(0,0,0,.18); }
.hero-actions .btn-primary:hover { background: #f3f7fc; }
.hero-actions .btn-outline { color: #fff; border-color: rgba(255,255,255,.7); }
.hero-actions .btn-outline:hover { background: #fff; color: var(--color-primary); }

.hero-card {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.18);
  padding: 26px;
  border-radius: 18px;
  display: grid; gap: 14px;
}
.hero-stat {
  display: flex; align-items: baseline; gap: 8px;
}
.hero-stat .num { font-size: 2.1rem; font-weight: 700; font-family: 'Playfair Display', serif; }
.hero-stat .label { opacity: .85; font-size: .95rem; }

/* ---------- Section base ---------- */
section { padding: 70px 0; }
.section-head { text-align: center; margin-bottom: 50px; }
.section-head .eyebrow {
  text-transform: uppercase; letter-spacing: .12em;
  font-size: .78rem; color: var(--color-secondary);
  font-weight: 600; margin-bottom: 12px; display: block;
}
.section-head h2 { margin-bottom: 12px; }
.section-head p { color: #4b5563; max-width: 640px; margin: 0 auto; }

/* ---------- Cards / Services ---------- */
.cards {
  display: grid; gap: 22px;
  grid-template-columns: 1fr;
}
.card-service {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 14px;
  padding: 28px 24px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative;
  display: flex; flex-direction: column;
}
.card-service:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(10, 77, 140, .12);
  border-color: transparent;
}
.card-service .icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff; display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-size: 1.5rem;
}
.card-service h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card-service p { color: #4b5563; font-size: .95rem; flex: 1; }
.card-service .read-more {
  margin-top: 14px; font-weight: 600; color: var(--color-primary);
  display: inline-flex; align-items: center; gap: 6px;
}
.card-service .read-more::after { content: "→"; transition: transform .2s; }
.card-service:hover .read-more::after { transform: translateX(4px); }

/* ---------- About ---------- */
.about-section { background: #f8fafc; }
.about-grid {
  display: grid; gap: 40px;
  grid-template-columns: 1fr;
  align-items: center;
}
.about-img {
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 20px 40px rgba(15,23,42,.12);
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  position: relative;
}
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-content h2 { margin-bottom: 18px; }
.about-tags {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px;
}
.about-tag {
  background: #fff; border: 1px solid #e2e8f0;
  padding: 6px 14px; border-radius: 999px;
  font-size: .85rem; color: #475569;
}

/* ---------- Reviews ---------- */
.reviews-grid {
  display: grid; gap: 22px;
  grid-template-columns: 1fr;
}
.review-card {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 14px;
  padding: 26px;
  display: flex; flex-direction: column; gap: 12px;
  position: relative;
}
.review-card::before {
  content: "“";
  position: absolute; top: 6px; right: 16px;
  font-family: 'Playfair Display', serif;
  font-size: 4rem; color: var(--color-secondary); opacity: .25;
  line-height: 1;
}
.review-rating {
  color: #f5b301; font-size: 1.1rem; letter-spacing: 2px;
}
.review-text { color: #334155; font-size: .96rem; }
.review-author {
  display: flex; gap: 12px; align-items: center;
  margin-top: 6px;
}
.review-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 600;
}
.review-author strong { font-size: .95rem; color: #0f172a; }
.review-author small { color: #64748b; font-size: .8rem; }

/* ---------- Reviews stats hero ---------- */
.reviews-hero {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff; padding: 60px 0; text-align: center;
}
.reviews-hero h1 { color: #fff; margin-bottom: 12px; }
.reviews-hero .stars {
  font-size: 2rem; color: #ffd54a; margin: 12px 0;
}
.reviews-hero .rating-num {
  font-family: 'Playfair Display', serif;
  font-size: 3rem; font-weight: 700;
}

/* ---------- Blog ---------- */
.blog-grid {
  display: grid; gap: 28px;
  grid-template-columns: 1fr;
}
.blog-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #eef2f7;
  transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15,23,42,.10);
}
.blog-thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  padding: 20px;
  text-align: center;
}
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.blog-meta {
  color: #64748b; font-size: .82rem; margin-bottom: 8px;
  display: flex; gap: 12px;
}
.blog-card h3 {
  font-size: 1.15rem; margin-bottom: 10px;
}
.blog-card h3 a { color: #0f172a; }
.blog-card h3 a:hover { color: var(--color-primary); }
.blog-card p { color: #4b5563; font-size: .92rem; flex: 1; }

/* ---------- Blog detail / Article ---------- */
.article {
  max-width: 760px; margin: 0 auto;
}
.article-hero { padding: 56px 0 26px; }
.article-hero h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  margin-bottom: 18px;
}
.article-meta {
  display: flex; gap: 16px; color: #64748b; font-size: .9rem;
  flex-wrap: wrap;
}
.article-image {
  width: 100%; aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden; margin: 24px 0 28px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}
.article-image img { width: 100%; height: 100%; object-fit: cover; }
.article-body { font-size: 1.05rem; color: #1f2937; }
.article-body h2 {
  margin-top: 1.8em; font-size: 1.6rem;
  padding-bottom: 6px;
  border-bottom: 2px solid #eaf2fb;
}
.article-body h3 { margin-top: 1.5em; font-size: 1.3rem; color: var(--color-primary); }
.article-body ul, .article-body ol { margin: 0 0 1.2em 1.4em; }
.article-body li { margin-bottom: .4em; }
.article-body blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 12px 20px;
  background: #f8fafc;
  margin: 1.4em 0; font-style: italic;
  border-radius: 0 8px 8px 0;
}
.article-body a { color: var(--color-primary); text-decoration: underline; }

/* ---------- Service detail ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff; padding: 60px 0;
}
.page-hero h1 { color: #fff; }
.breadcrumbs {
  font-size: .85rem; opacity: .85; margin-bottom: 12px;
}
.breadcrumbs a { color: #fff; opacity: .85; }
.breadcrumbs a:hover { opacity: 1; color: #fff; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid; gap: 30px;
  grid-template-columns: 1fr;
}
.contact-info {
  display: grid; gap: 18px;
}
.contact-item {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff; padding: 18px;
  border: 1px solid #eef2f7; border-radius: 12px;
}
.contact-item .ic {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-item strong { display: block; margin-bottom: 4px; color: #0f172a; }
.contact-item a { color: #334155; }
.contact-item a:hover { color: var(--color-primary); }

.contact-form {
  background: #fff; padding: 30px;
  border-radius: 14px; border: 1px solid #eef2f7;
}
.form-row {
  display: grid; gap: 14px; grid-template-columns: 1fr;
  margin-bottom: 14px;
}
.field label {
  display: block; font-size: .88rem; color: #374151;
  margin-bottom: 6px; font-weight: 500;
}
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-family: inherit;
  font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
  background: #f8fafc;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(10,77,140,.12);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 120px; }
.honey { position: absolute; left: -9999px; }

.alert {
  padding: 14px 18px; border-radius: 10px;
  margin-bottom: 18px; font-size: .92rem;
}
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.alert-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

.map-wrap iframe {
  width: 100%; border: 0; border-radius: 12px; min-height: 320px;
  box-shadow: 0 12px 30px rgba(15,23,42,.08);
}

/* ---------- CTA ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff; text-align: center;
  padding: 60px 0;
}
.cta-section h2 { color: #fff; }
.cta-section .btn-primary { background: #fff; color: var(--color-primary); }
.cta-section .btn-primary:hover { background: #f3f7fc; }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed; right: 18px; bottom: 22px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(37,211,102,.45);
  z-index: 99;
  transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0f172a; color: #cbd5e1; padding-top: 60px;
}
.footer-grid {
  display: grid; gap: 36px;
  grid-template-columns: 1fr;
  padding-bottom: 40px;
}
.footer-title {
  color: #fff; margin-bottom: 16px; font-size: 1.1rem;
  font-family: 'Inter', sans-serif; font-weight: 600;
}
.footer-text { color: #94a3b8; font-size: .92rem; }
.footer-list li { margin-bottom: 8px; }
.footer-list a { color: #cbd5e1; font-size: .92rem; }
.footer-list a:hover { color: #fff; }
.footer-socials {
  display: flex; gap: 8px; margin-top: 16px;
}
.footer-socials a {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,.08);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: .82rem; font-weight: 600;
}
.footer-socials a:hover { background: var(--color-primary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 0; font-size: .82rem; color: #94a3b8;
}
.footer-bottom-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
}

/* ---------- Pages ---------- */
.feature-list {
  display: grid; gap: 14px; margin-top: 22px;
}
.feature-list li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 18px;
  background: #fff; border-radius: 10px;
  border: 1px solid #eef2f7;
}
.feature-list .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0; margin-top: 8px;
}

.related-grid {
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
  margin-top: 26px;
}

/* ---------- 404 ---------- */
.error-page {
  min-height: 60vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 60px 20px;
}
.error-page .num {
  font-size: clamp(5rem, 14vw, 9rem);
  font-family: 'Playfair Display', serif;
  color: var(--color-primary);
  line-height: 1;
}

/* ============================================
   Responsive Breakpoints
   ============================================ */

/* Tablets */
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Small desktops */
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.4fr 1fr; }
  .about-grid { grid-template-columns: 1fr 1.2fr; }
  .contact-grid { grid-template-columns: 1fr 1.2fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
  .related-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Desktops large */
@media (min-width: 1100px) {
  .cards-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Mobile menu (below 900) */
@media (max-width: 899px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column; align-items: stretch;
    padding: 16px 20px;
    box-shadow: 0 10px 24px rgba(15,23,42,.10);
    transform: translateY(-110%);
    opacity: 0; pointer-events: none;
    transition: transform .25s, opacity .25s;
    gap: 4px;
  }
  .nav-menu.open {
    transform: translateY(0); opacity: 1; pointer-events: auto;
  }
  .nav-menu a { width: 100%; }
  .nav-menu li:last-child a.btn { text-align: center; margin-top: 6px; }
}

@media (max-width: 540px) {
  .topbar-inner { font-size: .78rem; }
  .topbar-contact { gap: 10px; }
  .hero { padding: 56px 0 80px; }
  section { padding: 50px 0; }
  .contact-form { padding: 22px; }
  .brand-name { font-size: 1.9rem; }
  .brand-sub  { font-size: .65rem; }
}
