/* ============================================================
   HB Hair Studio — Özel Stiller
   Tailwind CDN ile birlikte çalışır
   Renk Paleti: Gold #C9A84C | Siyah #1A1A1A | Beyaz #FFFFFF
============================================================ */

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

/* ===== CSS Custom Properties ===== */
:root {
    --gold-primary:   #C9A84C;
    --gold-light:     #e8c96d;
    --gold-dark:      #a88730;
    --black-primary:  #1A1A1A;
    --black-soft:     #2a2a2a;
    --white:          #FFFFFF;
    --gray-soft:      #F8F8F6;
    --gray-border:    #E8E8E4;

    --font-display:   'Playfair Display', Georgia, serif;
    --font-body:      'Inter', system-ui, -apple-system, sans-serif;

    --radius-sm:      8px;
    --radius-md:      16px;
    --radius-lg:      24px;
    --radius-xl:      32px;
    --radius-full:    9999px;

    --shadow-gold:    0 8px 32px rgba(201, 168, 76, 0.25);
    --shadow-card:    0 4px 24px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 16px 48px rgba(0, 0, 0, 0.12);

    --transition-default: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow:    all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ===== Typography ===== */
.font-display,
h1, h2, h3, h4 {
    font-family: var(--font-display);
}

h1 { line-height: 1.15; }
h2 { line-height: 1.2; }
h3 { line-height: 1.3; }

/* ===== Navigation ===== */
#main-nav {
    transition: var(--transition-default);
}

#main-nav.scrolled .nav-inner {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav-link {
    position: relative;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--black-soft);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* ===== Gallery Tabs ===== */
.gallery-tab-btn {
    border-color: #e5e7eb;
    color: #6b7280;
    background-color: #ffffff;
    cursor: pointer;
    transition: var(--transition-default);
}

.gallery-tab-btn:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

.gallery-tab-btn.active-tab {
    background-color: var(--black-primary);
    border-color: var(--black-primary);
    color: var(--gold-primary);
    box-shadow: 0 4px 16px rgba(26, 26, 26, 0.25);
}

.gallery-panel {
    transition: opacity 0.4s ease;
}

.gallery-panel.hidden {
    display: none;
}

/* ===== Scroll Reveal Animations ===== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Service Cards ===== */
.service-card {
    border: 1px solid transparent;
    transition: var(--transition-slow);
}

.service-card:hover {
    border-color: rgba(201, 168, 76, 0.2);
    box-shadow: var(--shadow-card-hover);
}

/* ===== Location Cards ===== */
.location-card {
    border: 1px solid #f3f4f6;
    transition: var(--transition-slow);
    text-decoration: none;
}

.location-card:hover {
    border-color: rgba(201, 168, 76, 0.3);
}

/* ===== Gold Shimmer Button Effect ===== */
.btn-gold-shimmer {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-light) 50%, var(--gold-primary) 100%);
    background-size: 200% auto;
    transition: background-position 0.5s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-gold-shimmer:hover {
    background-position: right center;
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-gold);
}

/* ===== WhatsApp Floating Button ===== */
#whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    animation: floatPulse 3s infinite;
}

#whatsapp-float:hover {
    transform: scale(1.12);
    box-shadow: 0 10px 32px rgba(37, 211, 102, 0.55);
}

@keyframes floatPulse {
    0%, 100% { box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.4); }
    50%       { box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45), 0 0 0 12px rgba(37, 211, 102, 0); }
}

/* ===== Line Clamp ===== */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== Prose (SEO text in location detail) ===== */
.prose p {
    margin-bottom: 1.25rem;
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.75;
}

.prose strong {
    color: var(--black-primary);
    font-weight: 600;
}

/* ===== Gold Divider ===== */
.gold-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-primary), var(--gold-light));
    border-radius: var(--radius-full);
    margin: 1rem auto;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f8f8f8;
}

::-webkit-scrollbar-thumb {
    background: var(--gold-primary);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}

/* ===== Page Transition ===== */
@keyframes pageIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

main, section {
    animation: pageIn 0.5s ease-out;
}

/* ===== Responsive Image ===== */
img {
    max-width: 100%;
    height: auto;
}

/* ===== Selection Color ===== */
::selection {
    background-color: rgba(201, 168, 76, 0.25);
    color: var(--black-primary);
}

/* ===== Focus Styles (a11y) ===== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--gold-primary);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ===== FAQ Accordion ===== */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-chevron {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-chevron.rotate-180 {
    transform: rotate(180deg);
}

.faq-item:focus-within {
    border-color: rgba(201, 168, 76, 0.4);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.08);
}

/* ===== Print Styles ===== */
@media print {
    nav, footer, #whatsapp-float { display: none !important; }
    body { background: white; color: black; }
}

/* ===== Custom Utilities ===== */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

@keyframes scanline {
    0% { transform: scaleX(0); opacity: 0; }
    50% { transform: scaleX(1); opacity: 1; }
    100% { transform: scaleX(0); opacity: 0; }
}

@keyframes signatureDraw {
    0% { opacity: 0; transform: translate(-20px, 10px) rotate(-10deg) scale(0.9); }
    100% { opacity: 1; transform: translate(0, 0) rotate(-10deg) scale(1.1); }
}
.animate-signature {
    animation: signatureDraw 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.8s;
}
