/* ================================================================================
   ESGUARE - STATİK WEB SİTESİ CSS
   Tüm sayfalar için ortak stil dosyası
   ================================================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,700;0,900;1,700&family=Inter:wght@400;500;600;700&display=swap');

/* --- Renk Paleti ve Değişkenler --- */
:root {
    --bg-parchment: #fcf8f2;
    --bg-linen: #f4efe7;
    --text-charcoal: #302924;
    --text-walnut: #61544a;
    --accent-brass: #c5a07a;
    --accent-brass-dark: #b18e66;
    --border-soft: #e0d8cc;
    --border-hard: #c9bfaa;
    --shadow-color-soft: rgba(48, 41, 36, 0.08);
    --shadow-color-hard: rgba(48, 41, 36, 0.15);
    --font-serif-display: 'Playfair Display', serif;
    --font-sans-body: 'Inter', sans-serif;
    --transition-swift: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --border-radius-main: 12px;
}

/* --- Temel Stiller --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    font-family: var(--font-sans-body);
    background-color: var(--bg-parchment);
    color: var(--text-charcoal);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* --- Container --- */
.container {
    width: 90%;
    max-width: 1320px;
    margin: 0 auto;
}

/* --- Başlıklar --- */
.opus-title-serif {
    font-family: var(--font-serif-display);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
    color: var(--text-charcoal);
}
.opus-subtitle-sans {
    font-size: clamp(1.1rem, 2.2vw, 1.3rem);
    text-align: center;
    color: var(--text-walnut);
    max-width: 850px;
    margin: 30px auto 80px auto;
    line-height: 1.9;
}

/* --- Butonlar --- */
.cta-grand {
    display: inline-block;
    background-color: var(--text-charcoal);
    color: var(--bg-parchment);
    padding: 22px 55px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--text-charcoal);
    transition: var(--transition-swift);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.cta-grand::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--accent-brass-dark);
    transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: -1;
}
.cta-grand:hover {
    color: var(--bg-parchment);
    border-color: var(--accent-brass-dark);
    transform: translateY(-6px);
    box-shadow: 0 15px 30px var(--shadow-color-hard);
}
.cta-grand:hover::before { width: 100%; }

/* --- Header Stilleri --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 25px 0;
    background-color: rgba(247, 247, 247, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease-in-out;
}
.site-header.scrolled {
    padding: 20px 0;
    border-bottom-color: var(--border-soft);
    background-color: rgba(247, 247, 247, 0.95);
}
.site-header .logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-decoration: none;
    color: #8B4513;
}
.main-nav a {
    color: var(--text-charcoal);
    text-decoration: none;
    margin: 0 20px;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}
.main-nav a:hover, .main-nav a.active {
    color: var(--text-charcoal);
}
.main-nav a:hover::after, .main-nav a.active::after {
    transform: scaleX(1);
}

/* --- Mobil Menü --- */
.menu-toggle {
    display: block;
    position: fixed;
    top: 30px;
    right: 5%;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
}
@media (min-width: 992px) { .menu-toggle { display: none; } }
.menu-toggle span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--text-charcoal);
    border-radius: 3px;
    left: 0;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease;
}
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 8px; }
.menu-toggle span:nth-child(3) { top: 16px; }
.menu-toggle.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: 1050;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.83, 0, 0.17, 1);
}
.mobile-menu-overlay.is-open { transform: translateX(0); }
.mobile-menu-nav ul { list-style: none; padding: 0; text-align: center; }
.mobile-menu-nav li {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.mobile-menu-overlay.is-open li {
    opacity: 1;
    transform: translateY(0);
}
.mobile-menu-nav a {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-charcoal);
    text-decoration: none;
    padding: 15px 0;
    display: block;
    transition: color 0.3s ease;
}
.mobile-menu-nav a:hover { color: var(--subtle-color); }

/* --- Footer Stilleri --- */
.site-footer {
    background-color: var(--card-color);
    color: var(--text-charcoal);
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-color);
    margin-top: 100px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    padding-bottom: 60px;
}
@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}
.footer-col .footer-logo-link img {
    height: 100px;
    width: auto;
    display: block;
    border-radius: 8px;
    transition: opacity 0.3s;
}
.footer-col .footer-logo-link:hover img { opacity: 0.8; }
.footer-col p {
    color: var(--text-walnut);
    line-height: 1.7;
    font-size: 0.95rem;
    max-width: 350px;
}
.footer-col h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-charcoal);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul a {
    color: var(--text-walnut);
    text-decoration: none;
    transition: color 0.3s;
}
.footer-col ul a:hover { color: var(--text-charcoal); }
.footer-socials a {
    color: var(--text-walnut);
    font-size: 1.4rem;
    transition: color 0.3s ease, transform 0.3s ease;
}
.footer-socials a:hover {
    color: var(--text-charcoal);
    transform: translateY(-3px);
}

/* --- WhatsApp ve Yukarı Çık Butonları --- */
.action-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.action-button {
    background-color: var(--card-color);
    color: var(--text-charcoal);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.action-button:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}
.whatsapp-button {
    background-color: #25D366;
    color: #fff;
}
.scroll-to-top {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}
.scroll-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* --- Animasyonlar --- */
.reveal-effect {
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.19, 1, 0.22, 1), transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}
.reveal-up { transform: translateY(80px); }
.reveal-fade-in { transform: translateY(0); }
.reveal-from-left { transform: translateX(-80px); }
.reveal-from-right { transform: translateX(80px); }
.reveal-effect.visible {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

/* --- Preloader --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-parchment);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}
.preloader-logo {
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: 2px;
    opacity: 0;
    animation: fadeInOut 2.5s ease-in-out infinite;
}
@keyframes fadeInOut {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}
