/* ===================================
   Didar Abdullaev — Bar Chef Website
   Design System: Refined Dark Luxury
   Mobile-First Approach
   =================================== */

/* --- Custom Properties --- */
:root {
  --bg: #0B0A09;
  --surface: #15110F;
  --surface-soft: #1B1613;
  --accent: #B8844A;
  --accent-soft: #D1AE7A;
  --text: #F1E7D9;
  --text-secondary: #B9A48D;
  --divider: #2A211C;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-body: 'Inter', sans-serif;
  --font-display: 'Playfair Display', serif;
  --max-width: 1120px;
  --header-h: 60px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-soft);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover,
a:focus-visible {
  color: var(--accent);
}

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.35rem, 3.5vw, 2rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
}

p {
  color: var(--text-secondary);
  max-width: 640px;
}

.accent-text {
  color: var(--accent-soft);
}

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

.section {
  padding: 64px 0;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  margin-bottom: 20px;
}

.section-desc {
  margin-bottom: 40px;
  font-size: 0.95rem;
}

/* --- Divider --- */
.divider {
  width: 100%;
  height: 1px;
  background: var(--divider);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  min-height: 48px;
  min-width: 48px;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #9A6C38);
  color: #0B0A09;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
  color: #0B0A09;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(184, 132, 74, 0.25);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--divider);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent-soft);
  transform: translateY(-1px);
}

/* --- Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 10, 9, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--divider);
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.logo span {
  color: var(--accent);
}

/* Desktop Nav */
.nav {
  display: none;
}

.nav a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition);
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

/* Language Switcher */
.lang-switch {
  display: none;
  gap: 4px;
}

.lang-switch a {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 4px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lang-switch a:hover,
.lang-switch a.active {
  color: var(--text);
  background: var(--surface-soft);
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  min-width: 48px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 10, 9, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: 32px 20px;
  gap: 4px;
  transform: translateX(100%);
  transition: transform var(--transition);
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu a {
  display: block;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 14px 0;
  border-bottom: 1px solid var(--divider);
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--text);
}

.mobile-lang {
  display: flex;
  gap: 8px;
  margin-top: 24px;
  padding-top: 16px;
}

.mobile-lang a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 14px;
  border: 1px solid var(--divider);
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mobile-lang a:hover,
.mobile-lang a.active {
  color: var(--text);
  border-color: var(--accent);
  background: var(--surface-soft);
}

/* --- Hero Section --- */
.hero {
  padding: 24px 0 32px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(184, 132, 74, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-content {
  order: 2;
}

.hero-visual {
  order: 1;
}

.hero h1 {
  margin-bottom: 12px;
}

.hero-text {
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 20px;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding-top: 20px;
  border-top: 1px solid var(--divider);
}

.trust-line span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.trust-line span::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.trust-secondary {
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  opacity: 0.7;
}

.ai-note {
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  opacity: 0.65;
  font-style: italic;
  padding-left: 12px;
  border-left: 2px solid var(--accent);
}

/* Hero Image */
.hero-image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  width: 80%;
  margin: 0 auto;
  border-radius: var(--radius);
}

.hero-image-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  padding: 16px 0 0;
  font-size: 0.8rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-secondary);
}

.breadcrumbs li + li::before {
  content: '→';
  color: var(--divider);
  margin-right: 2px;
}

.breadcrumbs a {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.breadcrumbs a:hover {
  color: var(--accent-soft);
}

.breadcrumbs .current {
  color: var(--text);
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  border-color: rgba(184, 132, 74, 0.25);
  transform: translateY(-2px);
}

.service-number {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  font-family: var(--font-body);
}

.service-card h3 {
  margin-bottom: 10px;
}

.service-card h3 a {
  color: var(--text);
}

.service-card h3 a:hover {
  color: var(--accent-soft);
}

.service-card p {
  font-size: 0.88rem;
  line-height: 1.6;
}

/* --- Why Choose --- */
.why-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.why-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--divider);
  transition: border-color var(--transition);
}

.why-item:hover {
  border-color: rgba(184, 132, 74, 0.2);
}

.why-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(184, 132, 74, 0.1);
  border-radius: 8px;
  color: var(--accent);
  font-size: 1rem;
}

.why-item p {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
}

/* --- Process (How I Work) --- */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--divider);
  border-radius: var(--radius);
  overflow: hidden;
}

.process-step {
  background: var(--surface);
  padding: 28px 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.step-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  min-width: 36px;
}

.step-content h3 {
  margin-bottom: 6px;
  font-size: 1rem;
}

.step-content p {
  font-size: 0.85rem;
  line-height: 1.6;
}

/* --- Cases --- */
.cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.case-card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color var(--transition);
}

.case-card:hover {
  border-color: rgba(184, 132, 74, 0.2);
}

.case-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.case-card h3 {
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.case-card p {
  font-size: 0.88rem;
  line-height: 1.65;
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.case-meta span {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 4px 10px;
  background: var(--surface-soft);
  border-radius: 20px;
  border: 1px solid var(--divider);
}

/* --- FAQ --- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--divider);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item {
  background: var(--surface);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  gap: 16px;
  min-height: 48px;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.4;
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--accent-soft);
}

.faq-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.2rem;
  transition: transform var(--transition);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* --- Contact CTA --- */
.contact-section {
  text-align: center;
  padding: 64px 0;
}

.contact-section h2 {
  margin-bottom: 16px;
}

.contact-section p {
  margin: 0 auto 32px;
  text-align: center;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--divider);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-disclaimer {
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--text-secondary);
  opacity: 0.6;
  max-width: 640px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

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

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

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-secondary);
  opacity: 0.5;
}

/* --- Mobile Sticky CTA --- */
.mobile-cta {
  display: flex;
  gap: 8px;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 12px 20px;
  background: rgba(11, 10, 9, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--divider);
}

.mobile-cta .btn {
  flex: 1;
  padding: 12px 8px;
  font-size: 0.85rem;
}

/* Contact CTA Buttons */
.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

/* Add bottom padding to body on mobile for sticky CTA */
body {
  padding-bottom: 76px;
}

/* --- Inner Page Layout --- */
.page-hero {
  padding: 32px 0 24px;
}

.page-hero h1 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 0.95rem;
}

.page-content {
  padding: 32px 0 64px;
}

.page-content h2 {
  margin-top: 40px;
  margin-bottom: 16px;
}

.page-content p {
  margin-bottom: 16px;
}

.page-content ul {
  margin-bottom: 20px;
}

.page-content ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.page-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ============================
   DESKTOP BREAKPOINTS
   ============================ */

/* Tablet */
@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }

  .contact-buttons {
    flex-direction: row;
    justify-content: center;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop */
@media (min-width: 960px) {
  :root {
    --header-h: 70px;
  }

  .container {
    padding: 0 40px;
  }

  .section {
    padding: 96px 0;
  }

  /* Header */
  .hamburger {
    display: none;
  }

  .nav {
    display: flex;
    gap: 4px;
  }

  .lang-switch {
    display: flex;
  }

  /* Hero */
  .hero {
    padding: 64px 0 72px;
  }

  .hero-grid {
    flex-direction: row;
    align-items: center;
    gap: 64px;
  }

  .hero-content {
    order: 1;
    flex: 1;
  }

  .hero-visual {
    order: 2;
    flex: 0 0 380px;
  }

  .hero-image-wrapper {
    aspect-ratio: 3 / 4;
    max-height: 520px;
    border-radius: var(--radius);
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  /* Mobile CTA — hide on desktop */
  .mobile-cta {
    display: none;
  }

  body {
    padding-bottom: 0;
  }

  /* Services */
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Process */
  .process-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Cases */
  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer */
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }
}

/* Large Desktop */
@media (min-width: 1200px) {
  .hero-visual {
    flex: 0 0 440px;
  }
}
