/* ==========================================
   Site Yonetimi Samsun - Ana Stil Dosyasi
   siteyonetimisamsun.com
   Profesyonel Site ve Apartman Yonetimi
   ========================================== */

/* CSS Variables */
:root {
  --primary: #1a5276;
  --primary-dark: #0e3a56;
  --primary-light: #2471a3;
  --secondary: #2ecc71;
  --secondary-dark: #27ae60;
  --accent: #3498db;
  --accent-light: #5dade2;
  --text: #2d3436;
  --text-light: #636e72;
  --bg: #ffffff;
  --bg-light: #f8f9fa;
  --bg-alt: #ecf0f1;
  --border: #dfe6e9;
  --shadow: 0 2px 15px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.3s ease;
  --max-width: 1200px;
  --header-height: 70px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul, ol {
  list-style: none;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary);
  margin-bottom: 1rem;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
  color: var(--text);
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== HEADER & NAVIGATION ========== */
.site-header {
  background: var(--bg);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.logo a {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.main-nav ul {
  display: flex;
  gap: 8px;
}

.main-nav a {
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  transition: all var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--primary);
  color: #fff;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ========== HERO SECTION ========== */
.hero {
  background: linear-gradient(135deg, rgba(26,82,118,0.92) 0%, rgba(52,152,219,0.88) 100%),
              url('/images/samsun-hero.jpg') center/cover no-repeat;
  color: #fff;
  padding: 100px 20px 90px;
  text-align: center;
}

.hero h1 {
  color: #fff;
  font-size: 2.6rem;
  max-width: 800px;
  margin: 0 auto 1.2rem;
}

.hero p {
  color: rgba(255,255,255,0.92);
  font-size: 1.2rem;
  max-width: 650px;
  margin: 0 auto 2rem;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-align: center;
}

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

.btn-primary:hover {
  background: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(46,204,113,0.4);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

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

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

.btn-accent:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

/* ========== SECTIONS ========== */
section {
  padding: 70px 0;
}

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

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--secondary);
  margin: 12px auto 0;
  border-radius: 2px;
}

.section-title p {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0.5rem auto 0;
}

/* ========== CARD GRID ========== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 1px solid var(--border);
}

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

.card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  color: #fff;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.card h3 a {
  color: var(--primary);
  transition: color var(--transition);
}

.card h3 a:hover {
  color: var(--accent);
}

.card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

.card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 1rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
}

.card .card-link:hover {
  color: var(--primary);
}

/* ========== FEATURES / NEDEN BIZ ========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-item {
  text-align: center;
  padding: 28px 20px;
}

.feature-item .icon {
  width: 70px;
  height: 70px;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--primary);
}

.feature-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.feature-item p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ========== BOLGE / TAGS ========== */
.bolge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.bolge-tag {
  background: var(--bg);
  border: 2px solid var(--border);
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--primary);
  transition: all var(--transition);
}

.bolge-tag:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ========== BLOG CARDS ========== */
.blog-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 1px solid var(--border);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.blog-card-body {
  padding: 24px;
}

.blog-card-body .tag {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.blog-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.blog-card-body h3 a:hover {
  color: var(--accent);
}

.blog-card-body p {
  color: var(--text-light);
  font-size: 0.9rem;
}

.blog-card-body .read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 0.8rem;
}

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

.faq-list details {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all var(--transition);
}

.faq-list details[open] {
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.faq-list summary {
  padding: 18px 24px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 1rem;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-list details[open] summary::after {
  content: '-';
}

.faq-list .faq-answer {
  padding: 0 24px 18px;
  color: var(--text-light);
  line-height: 1.8;
}

/* ========== BREADCRUMB ========== */
.breadcrumb {
  background: var(--bg-light);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.9rem;
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-list li + li::before {
  content: '>';
  color: var(--text-light);
}

.breadcrumb-list a {
  color: var(--accent);
}

.breadcrumb-list a:hover {
  text-decoration: underline;
}

.breadcrumb-list .current {
  color: var(--text-light);
}

/* ========== ILETISIM / CONTACT ========== */
.contact-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  text-align: center;
}

.contact-section h2 {
  color: #fff;
}

.contact-section p {
  color: rgba(255,255,255,0.85);
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 2rem;
}

.contact-info-item {
  padding: 28px 20px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
}

.contact-info-item h4 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.contact-info-item p {
  color: rgba(255,255,255,0.8);
  margin: 0;
}

.contact-info-item a {
  color: var(--secondary);
  font-weight: 600;
}

.contact-info-item a:hover {
  text-decoration: underline;
}

/* ========== FOOTER ========== */
.site-footer {
  background: #0c1e2e;
  color: rgba(255,255,255,0.75);
  padding: 50px 0 0;
}

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

.footer-col h4 {
  color: #fff;
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}

.footer-col p {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
}

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

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

.footer-col ul a:hover {
  color: var(--secondary);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* ========== FLOATING BUTTONS ========== */
.floating-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}

.floating-btn:hover {
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 6px 25px rgba(0,0,0,0.35);
}

.floating-phone {
  left: 20px;
  background: var(--accent);
  color: #fff;
}

.floating-whatsapp {
  right: 20px;
  background: #25D366;
  color: #fff;
}

.floating-btn svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

/* ========== ARTICLE / BLOG PAGE ========== */
.article-header {
  background: linear-gradient(135deg, rgba(26,82,118,0.9) 0%, rgba(52,152,219,0.85) 100%);
  color: #fff;
  padding: 60px 20px 50px;
  text-align: center;
}

.article-header h1 {
  color: #fff;
  max-width: 800px;
  margin: 0 auto;
  font-size: 2.2rem;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 1rem;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
}

.article-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 50px 20px;
}

.article-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

.article-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

.article-content p {
  margin-bottom: 1.2rem;
  line-height: 1.85;
}

.article-content ul,
.article-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.article-content ul {
  list-style: disc;
}

.article-content ol {
  list-style: decimal;
}

.article-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.article-content a {
  color: var(--accent);
  font-weight: 500;
}

.article-content a:hover {
  text-decoration: underline;
}

.article-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  margin: 1.5rem 0;
  background: var(--bg-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-light);
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.article-content table th,
.article-content table td {
  border: 1px solid var(--border);
  padding: 12px 16px;
  text-align: left;
}

.article-content table th {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

.article-content table tr:nth-child(even) {
  background: var(--bg-light);
}

/* CTA Box */
.cta-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  padding: 40px;
  border-radius: var(--radius-lg);
  text-align: center;
  margin: 3rem 0;
}

.cta-box h3 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.cta-box p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.5rem;
}

/* Service Page */
.service-hero {
  background: linear-gradient(135deg, rgba(26,82,118,0.93) 0%, rgba(46,204,113,0.85) 100%);
  color: #fff;
  padding: 70px 20px 60px;
  text-align: center;
}

.service-hero h1 {
  color: #fff;
  max-width: 750px;
  margin: 0 auto;
}

.service-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 50px 20px;
}

.service-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.service-content p {
  line-height: 1.85;
  margin-bottom: 1.2rem;
}

.service-content ul {
  list-style: disc;
  margin: 1rem 0 1.5rem 1.5rem;
}

.service-content li {
  margin-bottom: 0.5rem;
}

.service-content a {
  color: var(--accent);
  font-weight: 500;
}

/* Internal links */
.internal-links {
  background: var(--bg-light);
  padding: 24px;
  border-radius: var(--radius);
  margin: 2rem 0;
}

.internal-links h4 {
  margin-bottom: 0.8rem;
}

.internal-links ul {
  list-style: disc;
  margin-left: 1.5rem;
}

.internal-links li {
  margin-bottom: 0.4rem;
}

.internal-links a {
  color: var(--accent);
}

/* ========== SSS PAGE ========== */
.sss-hero {
  background: linear-gradient(135deg, rgba(26,82,118,0.92) 0%, rgba(52,152,219,0.88) 100%);
  color: #fff;
  padding: 60px 20px;
  text-align: center;
}

.sss-hero h1 {
  color: #fff;
}

/* ========== RESPONSIVE ========== */

/* Tablet */
@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  .contact-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  h1 { font-size: 2rem; }
  .hero h1 { font-size: 2.2rem; }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  .hamburger {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg);
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    padding: 80px 24px 24px;
    transition: right var(--transition);
    z-index: 1050;
  }

  .main-nav.active {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 4px;
  }

  .main-nav a {
    display: block;
    padding: 12px 16px;
    font-size: 1rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .contact-info-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 60px 16px 50px;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero p {
    font-size: 1.05rem;
  }

  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.5rem; }

  section {
    padding: 50px 0;
  }

  .article-header {
    padding: 40px 16px 35px;
  }

  .article-header h1 {
    font-size: 1.6rem;
  }

  .cta-box {
    padding: 28px 20px;
  }

  .floating-phone {
    left: 12px;
    width: 52px;
    height: 52px;
  }

  .floating-whatsapp {
    right: 12px;
    width: 52px;
    height: 52px;
  }

  .floating-btn svg {
    width: 24px;
    height: 24px;
  }
}

/* Small Mobile */
@media (max-width: 320px) {
  .hero h1 {
    font-size: 1.45rem;
  }

  .btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* ========== UTILITIES ========== */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
