/* ========================================
   Ak Saçlılar Teşkilatı – Premium Theme
   ======================================== */
:root {
  --red: #B71C1C;
  --red-dark: #8B0000;
  --red-light: #FFEBEE;
  --red-accent: #D32F2F;
  --white: #ffffff;
  --black: #0f0f0f;
  --gray-900: #1a1a1a;
  --gray-700: #374151;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-100: #f7f7f8;
  --gray-50: #fafafa;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container: 1200px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow: 0 4px 24px rgba(0,0,0,.06);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.1);
  --transition: .25s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); font-size: 1rem; line-height: 1.7; color: var(--gray-700); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red-dark); }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }

/* ==================== TOPBAR ==================== */
.topbar { background: var(--gray-900); color: rgba(255,255,255,.8); font-size: .8rem; padding: .5rem 0; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.topbar-left { display: flex; align-items: center; gap: 1.5rem; }
.topbar-item { color: rgba(255,255,255,.75); display: inline-flex; align-items: center; gap: .4rem; transition: color var(--transition); }
.topbar-item:hover { color: #fff; }
.topbar-right { display: flex; align-items: center; gap: 1rem; }
.topbar-social { display: flex; align-items: center; gap: .5rem; }
.social-icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.08); color: rgba(255,255,255,.7); transition: all var(--transition); }
.social-icon:hover { background: var(--red); color: #fff; transform: translateY(-1px); }
.lang-switcher { display: flex; gap: .25rem; margin-left: .5rem; }
.lang-btn { padding: .2rem .5rem; border-radius: 4px; color: rgba(255,255,255,.6); font-weight: 500; text-transform: uppercase; font-size: .7rem; letter-spacing: .05em; transition: all var(--transition); }
.lang-btn:hover, .lang-btn.active { background: var(--red); color: #fff; }

/* ==================== HEADER ==================== */
.site-header { background: var(--white); position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(0,0,0,.04); transition: box-shadow var(--transition); }
.site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: .75rem 1.5rem; }
.logo { display: flex; align-items: center; gap: .75rem; color: var(--gray-900); }
.logo-img { height: 48px; width: auto; }
.logo-text { display: flex; flex-direction: column; }
.logo-name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; line-height: 1.2; color: var(--gray-900); }
.nav-list { list-style: none; display: flex; align-items: center; gap: .15rem; }
.nav-item > a { display: inline-flex; align-items: center; gap: .3rem; padding: .6rem .85rem; color: var(--gray-700); font-weight: 500; font-size: .9rem; border-radius: var(--radius-sm); transition: all var(--transition); }
.nav-item > a:hover, .nav-item.has-sub:hover > a { color: var(--red); background: var(--red-light); }
.nav-item.has-sub { position: relative; }
.sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; background: var(--white); box-shadow: var(--shadow-lg); border-radius: var(--radius); padding: .5rem; z-index: 50; }
.nav-item.has-sub:hover .sub-menu { display: block; animation: fadeDown .2s ease; }
.sub-menu li a { display: block; padding: .55rem .85rem; border-radius: var(--radius-sm); color: var(--gray-700); font-size: .875rem; transition: all var(--transition); }
.sub-menu li a:hover { background: var(--red-light); color: var(--red); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: .5rem; width: 36px; height: 36px; position: relative; }
.mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--gray-900); position: absolute; left: 7px; transition: all .3s; }
.mobile-toggle span:nth-child(1) { top: 10px; }
.mobile-toggle span:nth-child(2) { top: 17px; }
.mobile-toggle span:nth-child(3) { top: 24px; }
.mobile-toggle.active span:nth-child(1) { top: 17px; transform: rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { top: 17px; transform: rotate(-45deg); }

/* ==================== HERO ==================== */
.hero { position: relative; min-height: 80vh; overflow: hidden; }
.hero-slider { position: relative; min-height: 80vh; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity .8s ease; }
.hero-slide.active { opacity: 1; position: relative; min-height: 80vh; display: flex; align-items: center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(15,15,15,.75) 0%, rgba(15,15,15,.3) 60%, transparent 100%); }
.hero-content { position: relative; z-index: 2; max-width: 640px; }
.hero-badge { display: inline-block; padding: .35rem 1rem; background: rgba(255,255,255,.12); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.15); border-radius: 50px; color: rgba(255,255,255,.9); font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1.25rem; }
.hero-content h1 { font-family: var(--font-display); font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 800; color: var(--white); line-height: 1.15; margin-bottom: .75rem; text-shadow: 0 2px 30px rgba(0,0,0,.2); }
.hero-content p { font-size: 1.125rem; color: rgba(255,255,255,.85); margin-bottom: 2rem; max-width: 480px; line-height: 1.7; }
.btn-hero { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 2rem; background: var(--white); color: var(--red); font-weight: 600; font-size: .95rem; border-radius: 50px; border: none; transition: all var(--transition); box-shadow: 0 4px 20px rgba(0,0,0,.15); }
.btn-hero:hover { background: var(--red); color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(183,28,28,.3); }
.hero-nav { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; align-items: center; gap: 1rem; background: rgba(255,255,255,.1); backdrop-filter: blur(12px); padding: .5rem 1.25rem; border-radius: 50px; border: 1px solid rgba(255,255,255,.12); }
.hero-arrow { background: none; border: none; color: rgba(255,255,255,.8); cursor: pointer; padding: .25rem; display: flex; transition: color var(--transition); }
.hero-arrow:hover { color: #fff; }
.hero-dots { display: flex; gap: .4rem; }
.hero-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.3); border: none; cursor: pointer; transition: all var(--transition); padding: 0; }
.hero-dot.active { background: var(--white); width: 24px; border-radius: 4px; }

/* ==================== STATS BAR ==================== */
.stats-bar { background: var(--red); padding: 2.5rem 0; position: relative; z-index: 10; margin-top: -2rem; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 2rem; text-align: center; }
.stat-card { color: var(--white); }
.stat-number { display: block; font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; line-height: 1.1; }
.stat-label { font-size: .85rem; opacity: .85; margin-top: .25rem; display: block; }

/* ==================== SECTIONS ==================== */
.section { padding: 5rem 0; }
.section-alt { background: var(--gray-50); }
.section-tag { display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--red); background: var(--red-light); padding: .35rem .85rem; border-radius: 50px; margin-bottom: 1rem; }
.section-heading { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; color: var(--gray-900); line-height: 1.3; max-width: 640px; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header .section-heading { margin: 0 auto; }

/* ==================== ABOUT ==================== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-text { color: var(--gray-500); font-size: 1.05rem; line-height: 1.8; margin: 1.5rem 0 2rem; }
.btn-outline { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.5rem; border: 2px solid var(--red); color: var(--red); font-weight: 600; font-size: .875rem; border-radius: 50px; transition: all var(--transition); }
.btn-outline:hover { background: var(--red); color: var(--white); transform: translateY(-1px); }
.btn-outline.btn-sm { padding: .5rem 1rem; font-size: .8rem; }
.about-visual { display: flex; justify-content: center; }
.about-img-wrap { position: relative; }
.about-img-wrap img { max-width: 380px; border-radius: var(--radius); position: relative; z-index: 2; }
.about-img-accent { position: absolute; top: -1rem; right: -1rem; width: 100%; height: 100%; border: 3px solid var(--red-light); border-radius: var(--radius); z-index: 1; }

/* ==================== FEATURES ==================== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.feature-card { background: var(--white); padding: 2rem; border-radius: var(--radius); border: 1px solid rgba(0,0,0,.04); box-shadow: var(--shadow-sm); transition: all var(--transition); position: relative; overflow: hidden; }
.feature-card::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--red); opacity: 0; transition: opacity var(--transition); }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-card:hover::before { opacity: 1; }
.feature-num { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--red-light); margin-bottom: .75rem; line-height: 1; }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--gray-900); margin-bottom: .5rem; }
.feature-card p { font-size: .9rem; color: var(--gray-500); line-height: 1.7; }

/* ==================== GALLERY ==================== */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.gallery-card { position: relative; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; display: block; background: var(--gray-100); }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-card:hover img { transform: scale(1.08); }
.gallery-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,15,15,.7) 0%, transparent 50%); display: flex; flex-direction: column; justify-content: flex-end; padding: 1.25rem; color: var(--white); opacity: 0; transition: opacity var(--transition); }
.gallery-card:hover .gallery-overlay { opacity: 1; }
.gallery-overlay svg { margin-bottom: .5rem; opacity: .8; }
.gallery-overlay span { font-weight: 600; font-size: .9rem; }

/* ==================== NEWSLETTER ==================== */
.newsletter-section { background: linear-gradient(135deg, var(--gray-900) 0%, #2a1a1a 100%); padding: 4rem 0; }
.newsletter-inner { max-width: 680px; margin: 0 auto; text-align: center; }
.newsletter-inner h2 { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; color: var(--white); margin-bottom: .5rem; }
.newsletter-inner p { color: rgba(255,255,255,.65); font-size: .95rem; margin-bottom: 2rem; }
.newsletter-form { display: flex; gap: .5rem; max-width: 480px; margin: 0 auto; }
.newsletter-input-wrap { flex: 1; position: relative; display: flex; align-items: center; }
.newsletter-input-wrap svg { position: absolute; left: 1rem; color: var(--gray-500); pointer-events: none; }
.newsletter-input-wrap input { width: 100%; padding: .85rem 1rem .85rem 2.75rem; border: 2px solid rgba(255,255,255,.1); background: rgba(255,255,255,.06); color: var(--white); border-radius: 50px; font-size: .95rem; transition: border-color var(--transition); }
.newsletter-input-wrap input::placeholder { color: rgba(255,255,255,.35); }
.newsletter-input-wrap input:focus { outline: none; border-color: var(--red); }
.btn-subscribe { display: inline-flex; align-items: center; gap: .4rem; padding: .85rem 1.75rem; background: var(--red); color: var(--white); border: none; border-radius: 50px; font-weight: 600; font-size: .9rem; cursor: pointer; transition: all var(--transition); white-space: nowrap; }
.btn-subscribe:hover { background: var(--red-dark); transform: translateY(-1px); }

/* ==================== FOOTER ==================== */
.site-footer { background: var(--black); color: rgba(255,255,255,.7); padding-top: 3.5rem; }
.footer-top { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.06); }
.footer-brand h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--white); margin-bottom: .75rem; }
.footer-about { font-size: .875rem; line-height: 1.7; margin-bottom: 1.25rem; }
.footer-social { display: flex; gap: .5rem; }
.footer-social .social-icon { background: rgba(255,255,255,.06); color: rgba(255,255,255,.6); }
.footer-social .social-icon:hover { background: var(--red); color: #fff; }
.footer-col h4 { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--white); margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }
.footer-col h4 svg { color: var(--red); flex-shrink: 0; }
.footer-col p { font-size: .875rem; margin-bottom: .35rem; line-height: 1.7; }
.footer-col a { color: rgba(255,255,255,.7); transition: color var(--transition); }
.footer-col a:hover { color: var(--red); }
.footer-bottom { padding: 1.5rem 0; text-align: center; }
.footer-bottom p { font-size: .8rem; color: rgba(255,255,255,.4); }

/* ==================== PAGE HERO ==================== */
.page-hero { background: linear-gradient(135deg, var(--gray-900), #2a1a1a); padding: 3.5rem 0 3rem; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; color: var(--white); margin-top: .5rem; }
.page-hero .section-tag { margin-bottom: .75rem; }

/* ==================== PAGE CONTENT ==================== */
.page-content { max-width: 780px; font-size: 1.05rem; line-height: 1.85; }
.page-content h2, .page-content h3 { color: var(--gray-900); margin: 2rem 0 1rem; font-family: var(--font-display); }
.page-content p { margin-bottom: 1rem; }
.page-content img { border-radius: var(--radius); margin: 1.5rem 0; }
.text-muted { color: var(--gray-500); }

/* ==================== TÜZÜK ==================== */
.tuzuk-toolbar { display: flex; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; align-items: center; }
.tuzuk-search-wrap { flex: 1; min-width: 250px; position: relative; display: flex; align-items: center; }
.tuzuk-search-wrap svg { position: absolute; left: 1rem; color: var(--gray-500); pointer-events: none; }
.tuzuk-search { width: 100%; padding: .75rem 1rem .75rem 2.75rem; border: 2px solid var(--gray-300); border-radius: 50px; font-size: .95rem; transition: border-color var(--transition); background: var(--white); }
.tuzuk-search:focus { outline: none; border-color: var(--red); }
.tuzuk-list { display: flex; flex-direction: column; gap: .5rem; }
.tuzuk-item { border: 1px solid rgba(0,0,0,.06); border-radius: var(--radius); overflow: hidden; background: var(--white); transition: box-shadow var(--transition); }
.tuzuk-item:hover { box-shadow: var(--shadow-sm); }
.tuzuk-header { width: 100%; display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; background: transparent; border: none; text-align: left; font-family: inherit; font-size: .95rem; cursor: pointer; transition: background var(--transition); }
.tuzuk-header:hover { background: var(--gray-50); }
.tuzuk-badge { flex-shrink: 0; padding: .25rem .75rem; background: var(--red-light); color: var(--red); font-size: .75rem; font-weight: 700; border-radius: 50px; }
.tuzuk-title { flex: 1; font-weight: 600; color: var(--gray-900); }
.tuzuk-chevron { flex-shrink: 0; color: var(--gray-500); transition: transform var(--transition); }
.tuzuk-item.expanded .tuzuk-chevron { transform: rotate(180deg); }
.tuzuk-body { display: none; }
.tuzuk-item.expanded .tuzuk-body { display: block; }
.tuzuk-content { padding: .5rem 1.25rem 1.25rem; color: var(--gray-500); font-size: .925rem; line-height: 1.8; border-top: 1px solid var(--gray-100); margin: 0 .75rem; }
.tuzuk-item.hidden { display: none; }

/* ==================== ANIMATIONS ==================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--delay, 0s); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 991px) {
  .mobile-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); box-shadow: var(--shadow-lg); border-top: 1px solid var(--gray-100); padding: 1rem; z-index: 99; }
  .main-nav.open { display: block; animation: fadeDown .3s ease; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-item > a { padding: .75rem 1rem; }
  .sub-menu { position: static; box-shadow: none; padding-left: 1rem; display: none; }
  .nav-item.has-sub.open .sub-menu { display: block; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .topbar-left { display: none; }
  .hero-content h1 { font-size: 2rem; }
  .stats-bar { margin-top: 0; }
}

@media (max-width: 640px) {
  .footer-top { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .hero-nav { bottom: 1rem; padding: .35rem .75rem; }
  .features-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}

@media print {
  .topbar, .site-header, .newsletter-section, .site-footer, .hero-nav, .tuzuk-toolbar .btn-outline, .btn-hero { display: none !important; }
  .tuzuk-body { display: block !important; }
  .tuzuk-header { cursor: default; }
  .tuzuk-item { break-inside: avoid; }
  .hero { min-height: auto; }
  .hero-slide { min-height: auto !important; }
}
