/* AUTOFREAK - Main Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@400;700&display=swap');

:root {
  --gold: #C9A84C;
  --gold-light: #E8C97A;
  --gold-dark: #A07830;
  --marble: #F8F6F2;
  --marble-2: #EDE9E1;
  --dark: #0A0A0A;
  --dark-mid: #1A1A1A;
  --text-mid: #4A4A4A;
  --white: #FFFFFF;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--marble); color: var(--dark); overflow-x: hidden; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

.gold-text {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-tag {
  display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold);
  padding: 0.3rem 1rem; border-radius: 2px; margin-bottom: 1.2rem;
}

.section-title { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.2; margin-bottom: 1rem; }

.divider { width: 50px; height: 2px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); margin: 1.5rem auto; }
.divider.left { margin-left: 0; }

.btn { display: inline-block; padding: 0.9rem 2.2rem; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; border-radius: 3px; cursor: pointer; border: none; transition: all 0.3s ease; }
.btn-gold { background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold-dark) 100%); color: var(--dark); }
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 10px 35px rgba(201,168,76,0.45); }
.btn-outline { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.5); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-3px); }

#navbar { position: fixed; top: 0; width: 100%; z-index: 1000; padding: 1.5rem 0; transition: all 0.4s ease; }
#navbar.scrolled { background: rgba(10,10,10,0.97); backdrop-filter: blur(20px); padding: 1rem 0; box-shadow: 0 2px 30px rgba(0,0,0,0.3); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; }
.nav-logo-mark { width: 44px; height: 44px; background: linear-gradient(135deg, var(--gold), var(--gold-light)); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; color: var(--dark); }
.nav-logo-text { display: flex; flex-direction: column; }
.nav-logo-name { font-size: 1.1rem; font-weight: 700; color: var(--white); letter-spacing: 0.05em; }
.nav-logo-sub { font-size: 0.55rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 2.5rem; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; transition: color 0.2s; }
.nav-links a:hover { color: var(--gold); }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-lang { background: none; border: 1px solid rgba(255,255,255,0.3); color: rgba(255,255,255,0.7); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; padding: 0.4rem 0.8rem; border-radius: 3px; cursor: pointer; transition: all 0.2s; }
.nav-lang:hover { border-color: var(--gold); color: var(--gold); }
.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.nav-burger span { display: block; width: 24px; height: 2px; background: var(--white); }

.mobile-menu { display: none; position: fixed; inset: 0; background: rgba(10,10,10,0.98); z-index: 999; flex-direction: column; align-items: center; justify-content: center; gap: 2.5rem; }
.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--white); text-decoration: none; font-size: 1.5rem; font-weight: 600; text-transform: uppercase; transition: color 0.2s; }
.mobile-menu a:hover { color: var(--gold); }
.mobile-close { position: absolute; top: 1.5rem; right: 1.5rem; background: none; border: none; color: var(--white); font-size: 2rem; cursor: pointer; }

#hero { min-height: 100vh; background: linear-gradient(160deg, #0A0A0A 0%, #1A1208 60%, #0A0A0A 100%); display: flex; align-items: center; position: relative; overflow: hidden; }
.hero-bg-pattern { position: absolute; inset: 0; background-image: radial-gradient(ellipse at 70% 50%, rgba(201,168,76,0.08) 0%, transparent 60%), radial-gradient(ellipse at 20% 80%, rgba(201,168,76,0.05) 0%, transparent 50%); }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(201,168,76,0.04) 1px, transparent 1px); background-size: 80px 80px; }
.hero-content { position: relative; z-index: 2; max-width: 700px; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.6rem; border: 1px solid rgba(201,168,76,0.4); border-radius: 100px; padding: 0.4rem 1.2rem; margin-bottom: 2rem; }
.hero-badge-dot { width: 6px; height: 6px; background: var(--gold); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero-badge-text { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold-light); }
.hero-title { font-family: 'Playfair Display', serif; font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 700; color: var(--white); line-height: 1.1; margin-bottom: 1.5rem; }
.hero-subtitle { font-size: 1rem; color: rgba(255,255,255,0.55); line-height: 1.7; max-width: 480px; margin-bottom: 2.5rem; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3.5rem; }
.hero-stats { display: flex; gap: 3rem; flex-wrap: wrap; }
.hero-stat-num { font-size: 2rem; font-weight: 800; color: var(--white); line-height: 1; }
.hero-stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 0.12em; margin-top: 0.3rem; }
.hero-scroll { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.5rem; color: rgba(255,255,255,0.3); font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; z-index: 2; animation: bounce 2s infinite; }
@keyframes bounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }
.hero-scroll svg { width: 20px; height: 20px; color: var(--gold); }

#services { padding: 7rem 0; background: var(--marble); }
.services-header { text-align: center; margin-bottom: 4rem; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.service-card { background: var(--white); border: 1px solid rgba(201,168,76,0.15); border-radius: 12px; padding: 2.5rem 2rem; transition: all 0.3s ease; position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); transform: scaleX(0); transition: transform 0.3s ease; }
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(201,168,76,0.15); border-color: rgba(201,168,76,0.4); }
.service-icon { width: 56px; height: 56px; background: linear-gradient(135deg, rgba(201,168,76,0.12), rgba(201,168,76,0.05)); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; font-size: 1.6rem; }
.service-name { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.8rem; }
.service-desc { font-size: 0.88rem; color: var(--text-mid); line-height: 1.7; margin-bottom: 1.5rem; }
.service-price { font-size: 1.4rem; font-weight: 800; color: var(--gold-dark); }
.service-price span { font-size: 0.8rem; font-weight: 400; color: var(--text-mid); }

#about { padding: 7rem 0; background: var(--dark); position: relative; overflow: hidden; }
#about::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 80% 50%, rgba(201,168,76,0.06) 0%, transparent 60%); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; position: relative; }
.about-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.about-title { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 700; color: var(--white); line-height: 1.2; margin-bottom: 1.5rem; }
.about-text { color: rgba(255,255,255,0.55); font-size: 0.95rem; line-height: 1.85; margin-bottom: 1rem; }
.about-features { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.9rem; }
.about-feature { display: flex; align-items: center; gap: 0.8rem; color: rgba(255,255,255,0.75); font-size: 0.9rem; }
.about-feature-dot { width: 6px; height: 6px; background: var(--gold); border-radius: 50%; flex-shrink: 0; }
.about-card-main { background: rgba(201,168,76,0.08); border: 1px solid rgba(201,168,76,0.2); border-radius: 16px; padding: 3rem; text-align: center; }
.about-card-main .big-num { font-family: 'Playfair Display', serif; font-size: 5rem; font-weight: 700; color: var(--gold); line-height: 1; }
.about-card-main .big-label { color: rgba(255,255,255,0.5); font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase; margin-top: 0.5rem; }
.about-cards-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.about-mini-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(201,168,76,0.15); border-radius: 10px; padding: 1.5rem; text-align: center; }
.about-mini-num { font-size: 1.8rem; font-weight: 800; color: var(--white); }
.about-mini-label { font-size: 0.7rem; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.3rem; }

#gallery { padding: 7rem 0; background: var(--marble-2); }
.gallery-header { text-align: center; margin-bottom: 4rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery-item { border-radius: 10px; overflow: hidden; background: var(--dark-mid); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; position: relative; border: 1px solid rgba(201,168,76,0.1); }
.gallery-item:first-child { grid-column: span 2; aspect-ratio: 16/9; }
.gallery-placeholder { position: absolute; inset: 0; background: linear-gradient(135deg, #1A1A1A, #0A0A0A); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; color: rgba(255,255,255,0.15); font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; }

#booking { padding: 7rem 0; background: var(--marble); }
.booking-header { text-align: center; margin-bottom: 4rem; }
.booking-card { max-width: 700px; margin: 0 auto; background: var(--white); border: 1px solid rgba(201,168,76,0.2); border-radius: 16px; padding: 3rem; box-shadow: 0 10px 60px rgba(0,0,0,0.08); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-bottom: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group.full { grid-column: 1 / -1; }
label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-mid); }
input, select, textarea { width: 100%; padding: 0.85rem 1rem; border: 1.5px solid #E0DCD5; border-radius: 8px; font-size: 0.9rem; font-family: 'Inter', sans-serif; background: var(--marble); color: var(--dark); transition: border-color 0.2s, box-shadow 0.2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,0.15); }
textarea { resize: vertical; min-height: 100px; }
.booking-submit { width: 100%; margin-top: 1.5rem; padding: 1rem; font-size: 0.9rem; }
.booking-note { text-align: center; margin-top: 1rem; font-size: 0.8rem; color: var(--text-mid); }
.booking-note a { color: var(--gold-dark); text-decoration: none; }

.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(6px); z-index: 2000; align-items: center; justify-content: center; }
.modal-overlay.open { display: flex; }
.modal-box { background: var(--white); border-radius: 16px; padding: 3rem; width: 100%; max-width: 440px; margin: 1rem; position: relative; border: 1px solid rgba(201,168,76,0.2); box-shadow: 0 30px 80px rgba(0,0,0,0.25); }
.modal-close { position: absolute; top: 1rem; right: 1.2rem; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-mid); }
.modal-logo { text-align: center; margin-bottom: 2rem; }
.modal-logo-mark { width: 52px; height: 52px; background: linear-gradient(135deg, var(--gold), var(--gold-light)); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; color: var(--dark); margin: 0 auto 0.8rem; }
.modal-title { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 700; margin-bottom: 0.3rem; }
.modal-sub { font-size: 0.85rem; color: var(--text-mid); }
.modal-tabs { display: flex; border-bottom: 1.5px solid #EDE9E1; margin-bottom: 1.8rem; }
.modal-tab { flex: 1; background: none; border: none; padding: 0.8rem; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-mid); cursor: pointer; border-bottom: 2.5px solid transparent; margin-bottom: -1.5px; transition: all 0.2s; }
.modal-tab.active { color: var(--gold-dark); border-bottom-color: var(--gold); }
.auth-form { display: none; }
.auth-form.active { display: block; }
.modal-form-group { margin-bottom: 1rem; }
.modal-btn { width: 100%; padding: 0.95rem; margin-top: 0.5rem; font-size: 0.9rem; border-radius: 8px; }
.modal-switch { text-align: center; margin-top: 1.2rem; font-size: 0.82rem; color: var(--text-mid); }
.modal-switch button { background: none; border: none; color: var(--gold-dark); font-weight: 600; cursor: pointer; font-size: 0.82rem; }
.msg-box { padding: 0.8rem 1rem; border-radius: 8px; font-size: 0.83rem; margin-bottom: 1rem; display: none; }
.msg-box.success { background: #F0FDF4; color: #166534; border: 1px solid #BBF7D0; }
.msg-box.error { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.msg-box.show { display: block; }

#dashboard { display: none; position: fixed; inset: 0; background: var(--marble); z-index: 3000; overflow-y: auto; }
#dashboard.open { display: block; }
.dash-header { background: var(--dark); padding: 1rem 0; position: sticky; top: 0; z-index: 10; }
.dash-header-inner { display: flex; align-items: center; justify-content: space-between; }
.dash-welcome { color: rgba(255,255,255,0.7); font-size: 0.85rem; }
.dash-welcome strong { color: var(--gold); }
.dash-body { padding: 3rem 0; }
.dash-title { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 700; margin-bottom: 0.5rem; }
.dash-subtitle { color: var(--text-mid); font-size: 0.9rem; margin-bottom: 2.5rem; }
.dash-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; margin-bottom: 3rem; }
.dash-card { background: var(--white); border: 1px solid rgba(201,168,76,0.15); border-radius: 12px; padding: 1.8rem; }
.dash-card-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-mid); margin-bottom: 0.5rem; }
.dash-card-value { font-size: 2rem; font-weight: 800; }
.dash-section-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 1.2rem; }
.appointment-list { display: flex; flex-direction: column; gap: 0.8rem; }
.appointment-item { background: var(--white); border: 1px solid rgba(201,168,76,0.15); border-radius: 10px; padding: 1.2rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.apt-service { font-weight: 600; font-size: 0.95rem; }
.apt-date { font-size: 0.82rem; color: var(--text-mid); margin-top: 0.2rem; }
.apt-status { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.3rem 0.9rem; border-radius: 100px; }
.apt-status.pending { background: #FEF9EC; color: #92400E; border: 1px solid #FDE68A; }
.apt-status.confirmed { background: #F0FDF4; color: #166534; border: 1px solid #BBF7D0; }
.apt-cancel { background: none; border: none; color: #DC2626; font-size: 0.78rem; cursor: pointer; font-weight: 500; }
.no-appointments { text-align: center; padding: 3rem; color: var(--text-mid); font-size: 0.9rem; background: var(--white); border-radius: 12px; border: 1px dashed rgba(201,168,76,0.3); }

#contact { padding: 7rem 0; background: var(--dark); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.contact-info-title { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--white); margin-bottom: 1rem; }
.contact-info-sub { color: rgba(255,255,255,0.5); font-size: 0.9rem; line-height: 1.7; margin-bottom: 2.5rem; }
.contact-items { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-item { display: flex; align-items: center; gap: 1rem; }
.contact-item-icon { width: 44px; height: 44px; background: rgba(201,168,76,0.1); border: 1px solid rgba(201,168,76,0.2); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.contact-item-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.2rem; }
.contact-item-value { color: rgba(255,255,255,0.8); font-size: 0.9rem; }
.contact-form-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(201,168,76,0.15); border-radius: 16px; padding: 2.5rem; }
.contact-form-title { font-size: 1.1rem; font-weight: 700; color: var(--white); margin-bottom: 1.5rem; }
.contact-form input, .contact-form textarea { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.1); color: var(--white); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255,255,255,0.25); }
.contact-form label { color: rgba(255,255,255,0.5); }

footer { background: #050505; padding: 3rem 0 1.5rem; }
.footer-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.06); margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.footer-links { display: flex; gap: 2rem; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.4); text-decoration: none; font-size: 0.8rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.footer-copy { color: rgba(255,255,255,0.25); font-size: 0.75rem; }
.footer-made { color: rgba(255,255,255,0.2); font-size: 0.72rem; }

.toast { position: fixed; bottom: 2rem; right: 2rem; background: var(--dark); color: var(--white); padding: 1rem 1.5rem; border-radius: 10px; border-left: 4px solid var(--gold); font-size: 0.88rem; font-weight: 500; box-shadow: 0 10px 40px rgba(0,0,0,0.3); z-index: 9999; transform: translateY(100px); opacity: 0; transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.toast.show { transform: translateY(0); opacity: 1; }

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .nav-burger { display: flex; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item:first-child { grid-column: 1 / -1; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
  .booking-card { padding: 2rem 1.5rem; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item:first-child { grid-column: 1; }
  .about-cards-row { grid-template-columns: 1fr; }
}