/* ==========================================================================
   FAM Saç Tasarım Merkezi - Premium UI/UX Design System
   ========================================================================== */

:root {
    /* Color Tokens */
    --color-forest-dark: #0D3028;
    --color-forest-deep: #123B30;
    --color-gold: #C6A34A;
    --color-gold-light: #E3C779;
    --color-black: #101310;
    --color-offwhite: #F5F4EF;
    --color-white: #FFFFFF;
    --color-text-muted: #A8B1AA;
    --color-border: rgba(198, 163, 74, 0.22);
    --color-border-subtle: rgba(255, 255, 255, 0.08);

    /* Typography */
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Transitions & Easing */
    --transition-fast: 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.38s cubic-bezier(0.16, 1, 0.3, 1);

    /* Layout Spacing */
    --section-space: 100px;
    --container-max: 1140px;

    /* Components */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --glass-bg: rgba(13, 48, 40, 0.88);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--color-black);
    color: var(--color-offwhite);
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--color-black);
}

@media (max-width: 768px) {
    body {
        padding-bottom: 60px; /* Space for fixed mobile bottom bar */
    }
    :root {
        --section-space: 64px;
    }
}

img, video, iframe {
    max-width: 100%;
    display: block;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
}

ul {
    list-style: none;
}

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

.section-padding {
    padding: var(--section-space) 0;
}

/* ==========================================================================
   Intro Loader Animation
   ========================================================================== */
.intro-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: var(--color-forest-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.intro-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.intro-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.intro-logo {
    height: 64px;
    width: auto;
    object-fit: contain;
}

.intro-fallback {
    display: none;
    font-family: var(--font-heading);
    font-size: 2.25rem;
    color: var(--color-gold);
    letter-spacing: 2px;
}

.intro-line {
    width: 0;
    height: 2px;
    background-color: var(--color-gold);
    animation: lineGrow 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes lineGrow {
    to { width: 70px; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn-gold {
    background-color: var(--color-gold);
    color: var(--color-black);
}

.btn-gold:hover {
    background-color: var(--color-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(198, 163, 74, 0.25);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-offwhite);
    border: 1px solid var(--color-border);
}

.btn-outline:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 38px;
    font-size: 0.9rem;
}

.btn-full {
    width: 100%;
}

/* ==========================================================================
   Header & Navbar
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: padding var(--transition-smooth), background-color var(--transition-smooth), border-color var(--transition-smooth);
}

.navbar.scrolled {
    padding: 12px 0;
    background-color: var(--glass-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--color-border);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 40px;
    width: auto;
}

.nav-brand-fallback {
    display: none;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--color-gold);
    letter-spacing: 1px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-offwhite);
    position: relative;
    padding: 4px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-gold);
    transition: width var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: var(--color-gold-light);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-mobile-cta {
    display: none;
    margin-top: 24px;
    width: 100%;
}

.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 16px;
    z-index: 1001;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background-color: var(--color-offwhite);
    transition: transform var(--transition-smooth), opacity var(--transition-smooth);
}

@media (max-width: 991px) {
    .btn-desktop-only {
        display: none;
    }
    .hamburger-btn {
        display: flex;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 82%;
        max-width: 340px;
        height: 100vh;
        background-color: var(--color-forest-dark);
        border-left: 1px solid var(--color-border);
        flex-direction: column;
        justify-content: center;
        padding: 40px;
        transition: right var(--transition-smooth);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.7);
    }
    .nav-menu.open {
        right: 0;
    }
    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 22px;
        width: 100%;
    }
    .nav-link {
        font-size: 1.15rem;
    }
    .nav-mobile-cta {
        display: block;
    }
    .hamburger-btn.open .hamburger-line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
        background-color: var(--color-gold);
    }
    .hamburger-btn.open .hamburger-line:nth-child(2) {
        transform: translateY(-7px) rotate(-45deg);
        background-color: var(--color-gold);
    }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--color-forest-dark);
}

.hero-video-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(13, 48, 40, 0.6) 0%,
        rgba(16, 19, 16, 0.8) 75%,
        rgba(16, 19, 16, 0.95) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
    max-width: 720px;
}

.hero-brand-tag {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(198, 163, 74, 0.12);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    font-size: 0.725rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--color-gold-light);
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.75rem, 7vw, 4.25rem);
    font-weight: 500;
    color: var(--color-white);
    line-height: 1.1;
    margin-bottom: 16px;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--color-offwhite);
    margin: 0 auto 32px auto;
    font-weight: 300;
    max-width: 580px;
    opacity: 0.92;
}

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

.hero-scroll-indicator {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.hero-scroll-indicator:hover {
    opacity: 1;
}

.scroll-text {
    font-size: 0.675rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-gold-light);
}

.scroll-line {
    width: 1px;
    height: 32px;
    background: linear-gradient(180deg, var(--color-gold) 0%, transparent 100%);
    animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    50.1% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (max-width: 576px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    .hero-buttons .btn {
        width: 100%;
    }
}

/* ==========================================================================
   Section Headers & Common
   ========================================================================== */
.section-tag {
    display: block;
    font-size: 0.725rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--color-gold);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.25rem, 5vw, 3rem);
    font-weight: 500;
    color: var(--color-white);
    line-height: 1.15;
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-top: 10px;
    max-width: 500px;
}

.section-header.center {
    text-align: center;
    margin-bottom: 48px;
}

.section-header.center .section-subtitle {
    margin: 10px auto 0 auto;
}

.gold-divider {
    width: 48px;
    height: 1px;
    background-color: var(--color-gold);
    margin: 18px 0 24px 0;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-section {
    background-color: var(--color-black);
}

.about-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 54px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
    height: 440px;
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-paragraph {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 16px;
}

.about-paragraph.sub-paragraph {
    color: var(--color-offwhite);
    border-left: 2px solid var(--color-gold);
    padding-left: 16px;
}

@media (max-width: 991px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .about-image-wrapper {
        height: 360px;
    }
}

/* ==========================================================================
   Compact Services Section (Accordion)
   ========================================================================== */
.services-section {
    background-color: var(--color-forest-dark);
    border-top: 1px solid var(--color-border-subtle);
    border-bottom: 1px solid var(--color-border-subtle);
}

.accordion-container {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.accordion-item {
    background-color: rgba(18, 59, 48, 0.45);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--color-white);
    text-align: left;
    transition: background-color var(--transition-fast);
}

.accordion-header:hover {
    background-color: rgba(198, 163, 74, 0.06);
}

.acc-title {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 500;
}

.acc-icon {
    position: relative;
    width: 14px;
    height: 14px;
}

.acc-icon::before, .acc-icon::after {
    content: '';
    position: absolute;
    background-color: var(--color-gold);
    transition: transform var(--transition-fast);
}

.acc-icon::before {
    top: 6px;
    left: 0;
    width: 14px;
    height: 2px;
}

.acc-icon::after {
    top: 0;
    left: 6px;
    width: 2px;
    height: 14px;
}

.accordion-header.active .acc-icon::after {
    transform: rotate(90deg);
    opacity: 0;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-smooth);
    background-color: rgba(10, 30, 25, 0.5);
}

.compact-service-list {
    padding: 18px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid rgba(198, 163, 74, 0.1);
}

.compact-service-list li {
    font-size: 0.925rem;
    color: var(--color-offwhite);
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

.compact-service-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.services-single-cta {
    text-align: center;
    margin-top: 40px;
}

/* ==========================================================================
   FAM Experience Section
   ========================================================================== */
.experience-section {
    background-color: var(--color-black);
}

.experience-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 50px auto;
}

.experience-intro {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    margin-top: 12px;
    font-weight: 300;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.exp-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    transition: transform var(--transition-smooth), border-color var(--transition-smooth);
}

.exp-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-border);
    background-color: rgba(13, 48, 40, 0.25);
}

.exp-icon {
    color: var(--color-gold);
    margin-bottom: 18px;
}

.exp-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--color-white);
    margin-bottom: 8px;
}

.exp-desc {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .experience-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Editorial Section (Mahmut Faris)
   ========================================================================== */
.editorial-section {
    background-color: var(--color-forest-dark);
    border-top: 1px solid var(--color-border-subtle);
    border-bottom: 1px solid var(--color-border-subtle);
}

.editorial-box {
    background: linear-gradient(135deg, rgba(18, 59, 48, 0.7) 0%, rgba(13, 48, 40, 0.9) 100%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 50px 32px;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.editorial-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    color: var(--color-white);
    margin-top: 4px;
}

.editorial-subtitle {
    font-size: 1.1rem;
    color: var(--color-gold);
    font-weight: 500;
    margin-top: 4px;
}

.editorial-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--color-offwhite);
    margin: 20px 0 24px 0;
}

.editorial-social {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-gold-light);
    font-size: 0.875rem;
    font-weight: 600;
}

.editorial-social:hover {
    color: var(--color-gold);
    text-decoration: underline;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
    background-color: var(--color-black);
}

.cta-card {
    background-color: var(--color-forest-dark);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 50px 32px;
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-white);
    margin-top: 6px;
}

.cta-desc {
    color: var(--color-text-muted);
    font-size: 0.975rem;
    margin: 10px 0 28px 0;
}

/* ==========================================================================
   Contact & Map Section
   ========================================================================== */
.contact-section {
    background-color: var(--color-black);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 48px;
    align-items: center;
}

.info-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.info-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-gold);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.info-val, .info-val a {
    color: var(--color-offwhite);
    font-size: 0.95rem;
    line-height: 1.5;
}

.info-val a:hover {
    color: var(--color-gold-light);
}

.contact-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.map-wrapper {
    width: 100%;
    height: 380px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
    background-color: var(--color-forest-dark);
}

@media (max-width: 991px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .map-wrapper {
        height: 320px;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--color-forest-dark);
    border-top: 1px solid var(--color-border);
    padding: 70px 0 28px 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 36px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--color-border-subtle);
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 16px;
}

.footer-logo-fallback {
    display: none;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--color-gold);
    margin-bottom: 12px;
}

.footer-desc {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    max-width: 280px;
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-white);
    margin-bottom: 18px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.footer-links a:hover {
    color: var(--color-gold);
}

.footer-info-text {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-gold);
    font-size: 0.85rem;
    margin-top: 8px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    font-size: 0.775rem;
    color: var(--color-text-muted);
}

.footer-bottom-links a {
    color: var(--color-gold);
}

@media (max-width: 850px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-top {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* ==========================================================================
   Mobile Fixed Action Bottom Bar
   ========================================================================== */
.mobile-fixed-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background-color: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--color-border);
    padding: 10px 16px;
    gap: 10px;
}

.mobile-bar-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px;
    border-radius: var(--radius-sm);
    font-size: 0.775rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.call-btn {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--color-offwhite);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.book-btn {
    background-color: var(--color-gold);
    color: var(--color-black);
}

@media (max-width: 768px) {
    .mobile-fixed-bar {
        display: flex;
    }
}

/* ==========================================================================
   Animations & Motion Utilities
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}
