/* ============================================================
   MERT SARIÖZKAN THE BERBER — Premium Demo
   ============================================================ */

:root {
  --bg: #211d18;
  --bg-panel: #2a251e;
  --bg-panel-2: #322b23;
  --line: rgba(237, 224, 202, 0.14);
  --line-soft: rgba(237, 224, 202, 0.08);
  --text: #f3ead9;
  --text-muted: #c2b39c;
  --text-dim: #8f8271;
  --accent: #c68a4e;
  --accent-2: #e4c9a0;
  --accent-soft: rgba(198, 138, 78, 0.16);
  --accent-dim: #9c6f45;
  --cream: #ece2cf;
  --cream-dim: #d9caab;

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1220px;
  --radius: 3px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 130px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}

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

::selection { background: var(--accent); color: #211d18; }

/* Subtle grain texture to add depth to flat dark panels */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ============================================================
   DEMO BANNER
   ============================================================ */

.demo-banner {
  background: var(--bg-panel);
  border-bottom: 1px solid var(--line);
  text-align: center;
  padding: 9px 16px;
  position: relative;
  z-index: 200;
}

.demo-banner p {
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.01em;
}

.demo-banner a {
  color: var(--accent);
  font-weight: 700;
  border-bottom: 1px solid var(--accent-dim);
  transition: opacity 0.2s var(--ease);
}

.demo-banner a:hover { opacity: 0.75; }

/* ============================================================
   NAVBAR
   ============================================================ */

.navbar {
  position: sticky;
  top: 0;
  z-index: 190;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}

.navbar.scrolled {
  background: rgba(33, 29, 24, 0.85);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

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

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

.brand-logo {
  height: 64px;
  width: 64px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-link {
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
  transition: color 0.25s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}

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

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

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.nav-cta { display: inline-flex; }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}

.btn-accent {
  background: var(--accent);
  color: #131110;
  border: 1px solid var(--accent);
}

.btn-accent:hover {
  background: transparent;
  color: var(--accent);
}

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

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

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

.btn-outline:hover {
  background: var(--accent);
  color: #131110;
}

.btn-lg {
  padding: 17px 42px;
  font-size: 0.88rem;
}

/* Hamburger */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  max-height: 0;
  overflow: hidden;
  background: rgba(23, 20, 16, 0.98);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transition: max-height 0.4s var(--ease);
}

.mobile-menu.open {
  max-height: 480px;
}

.mobile-link {
  padding: 16px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text-muted);
}

.mobile-link:hover { color: var(--text); }

.mobile-cta {
  margin: 18px 24px 22px;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
}

.hero-bg::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -12%;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 68%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 6%;
  width: 420px;
  height: 420px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transform: translateY(-50%);
}

.hero-bg-word {
  position: absolute;
  top: 50%;
  right: -4%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(4rem, 13vw, 11rem);
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  padding: 100px 24px 80px;
}

.hero-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 22px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.01em;
  display: flex;
  flex-direction: column;
  color: var(--text);
}

.hero-title span {
  font-size: clamp(3rem, 9vw, 7.2rem);
  display: block;
}

.hero-sub {
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.6rem, 4vw, 3.1rem) !important;
  color: var(--accent);
  margin-top: 6px;
  border-top: 1px solid var(--accent-dim);
  padding-top: 14px;
  width: fit-content;
}

.hero-tagline {
  margin-top: 30px;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--text-muted);
  max-width: 480px;
  font-weight: 500;
}

.hero-actions {
  margin-top: 44px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-scroll-cue {
  position: absolute;
  bottom: 34px;
  right: 40px;
  z-index: 1;
  width: 1px;
  height: 56px;
  background: var(--line);
  overflow: hidden;
}

.hero-scroll-cue span {
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scroll-cue 2.2s var(--ease) infinite;
}

@keyframes scroll-cue {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}

@media (max-width: 640px) {
  .hero-scroll-cue { display: none; }
  .hero-bg-word { display: none; }
}

/* Reveal-up (hero) */

.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  animation: reveal-up 0.9s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes reveal-up {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   SCROLL REVEAL (generic)
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger for cards */
.category-grid .service-card.in-view { transition-delay: calc(var(--i, 0) * 70ms); }

/* ============================================================
   INTRO
   ============================================================ */

.intro {
  padding: 100px 24px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.intro::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  pointer-events: none;
}

.intro-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.intro-mark {
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--accent-dim);
  margin-bottom: 26px;
}

.intro-heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 4.4vw, 3.2rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.intro-heading em {
  font-style: italic;
  color: var(--accent);
  font-weight: 300;
}

.intro-text {
  margin-top: 30px;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   SECTION HEAD (shared)
   ============================================================ */

.section-head {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 56px;
  text-align: center;
}

.section-head .eyebrow::before,
.section-head .eyebrow::after {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--accent-dim);
  vertical-align: middle;
  margin: 0 10px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.4vw, 3rem);
  letter-spacing: -0.01em;
}

/* ============================================================
   SERVICES
   ============================================================ */

.services {
  padding: 130px 0 100px;
  background: var(--bg-panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}

.services-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.service-category { width: 100%; }

.category-label {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.category-index {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 400;
}

.category-label h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-card {
  background: var(--bg-panel);
  padding: 40px 30px;
  transition: background 0.35s var(--ease), transform 0.35s var(--ease);
  position: relative;
}

.service-card:hover {
  background: var(--bg-panel-2);
  transform: translateY(-4px);
}

.service-mark {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 18px;
}

.service-card h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.18rem;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

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

.services-cta p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ============================================================
   FEATURE (DAMAT)
   ============================================================ */

.feature {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  background: var(--bg-panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.feature-content {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 90px 24px;
}

.feature-content > * { max-width: 520px; }

.feature-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}

.feature-text {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.75;
  max-width: 420px;
  margin-bottom: 36px;
}

.feature-word {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(6rem, 16vw, 14rem);
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  letter-spacing: -0.02em;
  z-index: 0;
  user-select: none;
}

@media (max-width: 900px) {
  .feature-word { display: none; }
}

/* ============================================================
   INSTAGRAM
   ============================================================ */

.instagram {
  padding: 90px 24px;
  background: var(--bg-panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.instagram::before {
  content: "";
  position: absolute;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  pointer-events: none;
}

.instagram-inner { max-width: 560px; margin: 0 auto; position: relative; }

.instagram-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  margin-bottom: 34px;
  letter-spacing: -0.01em;
}

/* ============================================================
   CTA BANNER
   ============================================================ */

.cta-banner {
  padding: 120px 24px;
  text-align: center;
  position: relative;
  background: var(--bg-panel);
}

.cta-banner::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 70px;
  background: var(--accent-dim);
}

.cta-banner-inner h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.3rem, 5.6vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.cta-banner-inner p {
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.cta-banner-inner .btn {
  margin-top: 42px;
}

/* ============================================================
   CONTACT
   ============================================================ */

.contact {
  padding: 130px 0 0;
}

.contact-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 130px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
}

.contact-block {
  margin-bottom: 40px;
}

.contact-block h3 {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 700;
  margin-bottom: 12px;
}

.contact-block p {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.contact-link {
  color: var(--text);
  font-weight: 600;
  font-size: 1.02rem;
  border-bottom: 1px solid var(--accent-dim);
  padding-bottom: 2px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
  display: inline-block;
}

.contact-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.contact-phone { font-size: 1.3rem; font-family: var(--font-display); }

.contact-map {
  min-height: 420px;
  border: 1px solid var(--line);
  overflow: hidden;
  filter: grayscale(0.4) contrast(1.05);
}

.contact-map iframe { width: 100%; height: 100%; min-height: 420px; }

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--bg-panel);
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-logo {
  height: 52px;
  width: 52px;
  object-fit: cover;
  margin-bottom: 14px;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-loc { color: var(--text-dim) !important; margin-top: 2px; }

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

.footer-links a {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.25s var(--ease);
}

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

.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding: 22px 24px;
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom p {
  font-size: 0.76rem;
  color: var(--text-dim);
}

.footer-bottom a {
  color: var(--text-dim);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.25s var(--ease);
}

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

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .nav-links { gap: 24px; }
  .feature-content { padding: 60px 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 50px; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }
  .services-wrap { gap: 48px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .navbar-inner { padding: 10px 20px; }
  .brand-logo { height: 46px; width: 46px; }

  .hero { min-height: 88svh; }
  .hero-content { padding: 0 20px 60px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }

  .intro { padding: 90px 20px; }
  .services { padding: 90px 0 70px; }
  .services-wrap { padding: 0 20px; gap: 44px; }
  .category-grid { grid-template-columns: 1fr; }
  .services-cta { flex-direction: column; align-items: flex-start; padding: 0 20px; }

  .feature-content { padding: 60px 24px; }

  .instagram { padding: 80px 20px; }
  .cta-banner { padding: 100px 20px; }

  .contact { padding: 90px 0 0; }
  .contact-grid { padding: 0 20px 90px; }
  .contact-map { min-height: 320px; }
  .contact-map iframe { min-height: 320px; }

  .footer-inner { padding: 50px 20px 30px; flex-direction: column; }
  .footer-bottom { padding: 20px; flex-direction: column; align-items: flex-start; }

  .section-head { padding: 0 20px 44px; }
}

@media (max-width: 380px) {
  .hero-title span { font-size: clamp(2.4rem, 11vw, 3.2rem); }
}
