/* ═══════════════════════════════════════════
   Huzur Dekor — Kaliteyi Evinize Taşıyoruz
   Palette: cream · charcoal · antique gold
   ═══════════════════════════════════════════ */

:root {
  --cream: #f7f2e9;
  --cream-deep: #f0e9dc;
  --ink: #2e2e2e;
  --ink-soft: #5c5850;
  --gold: #b8892f;
  --gold-soft: #cfa858;
  --gold-faint: rgba(184, 137, 47, 0.14);
  --white: #fffdf9;
  --line: rgba(46, 46, 46, 0.12);
  --shadow: 0 18px 50px -18px rgba(46, 40, 26, 0.22);

  --font-latin-display: "Playfair Display", serif;
  --font-latin-body: "Jost", sans-serif;
  --font-ar-display: "Amiri", serif;
  --font-ar-body: "Tajawal", sans-serif;

  --font-display: var(--font-ar-display), var(--font-latin-display);
  --font-body: var(--font-ar-body), var(--font-latin-body);
}

html[lang="tr"] {
  --font-display: var(--font-latin-display);
  --font-body: var(--font-latin-body);
}
html[lang="ar"] {
  --font-display: var(--font-ar-display);
  --font-body: var(--font-ar-body);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light only;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

/* smooth fade when switching language */
body.lang-fading .i18n-zone,
body.lang-fading [data-i18n] {
  opacity: 0;
  transition: opacity 0.22s ease;
}
[data-i18n] { transition: opacity 0.22s ease; }

/* ══════════ Header ══════════ */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  background: rgba(247, 242, 233, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(46, 40, 26, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.7rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.brand-mark { width: 46px; height: 46px; }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  font-family: var(--font-latin-display);
}
.brand-name {
  font-size: 1.25rem;
  letter-spacing: 0.14em;
  color: var(--ink);
}
.brand-sub {
  font-size: 0.68rem;
  letter-spacing: 0.5em;
  color: var(--gold);
  font-family: var(--font-latin-body);
  font-weight: 500;
}

.main-nav {
  display: flex;
  gap: 1.8rem;
}
.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding-block: 0.3rem;
  transition: color 0.25s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline-start: 50%;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width 0.3s ease, inset-inline-start 0.3s ease;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after {
  width: 100%;
  inset-inline-start: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

/* — language switch — */
.lang-switch {
  position: relative;
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--gold-soft);
  border-radius: 999px;
  background: var(--white);
  cursor: pointer;
  padding: 4px;
  font-family: inherit;
  box-shadow:
    inset 0 1px 4px rgba(46, 40, 26, 0.07),
    0 2px 10px -4px rgba(184, 137, 47, 0.35);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}
.lang-switch:hover {
  border-color: var(--gold);
  box-shadow:
    inset 0 1px 4px rgba(46, 40, 26, 0.07),
    0 5px 16px -6px rgba(184, 137, 47, 0.55);
}
.lang-switch:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.lang-opt {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 5rem;
  padding-block: 0.42rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color 0.35s ease, opacity 0.35s ease;
  opacity: 0.75;
}
.lang-opt-ar { font-family: var(--font-ar-body); }
.lang-opt-tr { font-family: var(--font-latin-body); }
.lang-globe {
  width: 15px;
  height: 15px;
  flex: none;
  opacity: 0.85;
}
.lang-opt.active {
  color: var(--white);
  opacity: 1;
}
.lang-pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  width: calc(50% - 6px);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 90%);
  box-shadow:
    0 3px 10px -3px rgba(140, 100, 25, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: inset-inline-start 0.45s cubic-bezier(0.65, 0, 0.35, 1);
  inset-inline-start: 4px;
}
.lang-switch[data-active="tr"] .lang-pill {
  inset-inline-start: calc(50% + 2px);
}

/* — burger — */
.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════ Hero ══════════ */
.hero {
  position: relative;
  padding-top: clamp(7rem, 14vh, 10rem);
  padding-bottom: 3rem;
  overflow: hidden;
}
.hero-ornament {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--gold-faint);
  pointer-events: none;
}
.hero-ornament-1 {
  width: 520px; height: 520px;
  top: -180px;
  inset-inline-end: -140px;
  background: radial-gradient(circle, var(--gold-faint), transparent 65%);
}
.hero-ornament-2 {
  width: 340px; height: 340px;
  bottom: -120px;
  inset-inline-start: -120px;
  border-color: rgba(184, 137, 47, 0.2);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3rem;
}

.hero-kicker,
.section-kicker {
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
html[lang="ar"] .hero-kicker,
html[lang="ar"] .section-kicker { letter-spacing: 0.04em; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5.4vw, 3.9rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1.2rem;
}
.hero-lede {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 34rem;
  margin-bottom: 2.2rem;
}

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: var(--white);
  box-shadow: 0 12px 28px -12px rgba(184, 137, 47, 0.6);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(184, 137, 47, 0.7); }
.btn-ghost {
  border: 1.5px solid var(--gold);
  color: var(--gold);
}
.btn-ghost:hover { background: var(--gold-faint); transform: translateY(-2px); }

.hero-visual { display: flex; justify-content: center; }
.hero-logo {
  width: min(380px, 80%);
  filter: drop-shadow(0 24px 40px rgba(46, 40, 26, 0.15));
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-divider,
.footer-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(480px, 70%);
  margin: 3.5rem auto 0;
}
.divider-line { flex: 1; height: 1px; background: var(--gold-soft); opacity: 0.5; }
.divider-leaf { color: var(--gold); font-size: 1.1rem; }

/* ══════════ Sections ══════════ */
.section { padding-block: clamp(4rem, 9vh, 6.5rem); }
.section-cream { background: var(--cream-deep); }

.section-head { text-align: center; margin-bottom: 3.2rem; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 700;
}
.section-lede {
  color: var(--ink-soft);
  max-width: 38rem;
  margin: 0.9rem auto 0;
  font-size: 1.05rem;
}

/* ══════════ Services ══════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2.2rem 1.8rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--gold-soft);
}
.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
  background: var(--gold-faint);
}
.service-icon svg { width: 32px; height: 32px; }
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}
.service-card p { color: var(--ink-soft); font-size: 0.97rem; }

/* ══════════ Gallery ══════════ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.gallery-item {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px -20px rgba(46, 40, 26, 0.3);
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 1.8rem 1.2rem 0.9rem;
  color: #fffdf9;
  font-weight: 500;
  font-size: 0.95rem;
  background: linear-gradient(to top, rgba(30, 26, 18, 0.75), transparent);
}

/* ══════════ About ══════════ */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
.about-lede { color: var(--ink-soft); margin-bottom: 1rem; font-size: 1.05rem; }

.about-values { display: grid; gap: 1.2rem; }
.value-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem 1.7rem;
  position: relative;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.value-card:hover { border-color: var(--gold-soft); box-shadow: var(--shadow); }
.value-num {
  font-family: var(--font-latin-display);
  color: var(--gold-soft);
  font-size: 1.4rem;
  display: block;
  margin-bottom: 0.3rem;
}
.value-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}
.value-card p { color: var(--ink-soft); font-size: 0.95rem; }

/* ══════════ Contact ══════════ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--gold-soft);
}
.contact-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
  background: var(--gold-faint);
}
.contact-icon svg { width: 28px; height: 28px; }
.contact-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}
.contact-card p { color: var(--ink-soft); font-size: 0.95rem; }

/* ══════════ Footer ══════════ */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding-block: 3.5rem 2rem;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  font-family: var(--font-latin-display);
  letter-spacing: 0.2em;
  font-size: 1.15rem;
}
.footer-mark { width: 42px; height: 42px; }
.footer-slogan {
  color: var(--gold-soft);
  margin-top: 0.6rem;
  font-size: 1rem;
}
.site-footer .footer-divider { margin-block: 1.8rem; }
.site-footer .divider-line { background: var(--gold-soft); opacity: 0.35; }
.footer-copy { font-size: 0.85rem; opacity: 0.65; }

/* ══════════ WhatsApp float ══════════ */
.wa-float {
  position: fixed;
  bottom: 1.6rem;
  inset-inline-end: 1.6rem;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #2aa84a, #43c463);
  color: #fff;
  box-shadow: 0 14px 30px -10px rgba(42, 168, 74, 0.6);
  transition: transform 0.25s ease;
}
.wa-float:hover { transform: translateY(-3px) scale(1.05); }
.wa-float svg { width: 28px; height: 28px; }

/* ══════════ Reveal on scroll ══════════ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════ Responsive ══════════ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
  .hero-lede { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-logo { width: min(230px, 58%); }
  .about-inner { grid-template-columns: 1fr; gap: 2.2rem; }

  .main-nav {
    position: fixed;
    top: var(--header-h, 62px);
    inset-inline: 0;
    background: rgba(247, 242, 233, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.6rem 1.2rem 1rem;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -28px rgba(46, 40, 26, 0.4);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  .main-nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .main-nav a {
    padding-block: 0.95rem;
    font-size: 1.08rem;
    text-align: center;
    border-bottom: 1px solid rgba(184, 137, 47, 0.14);
  }
  .main-nav a:last-child { border-bottom: none; }
  .main-nav a::after { display: none; }
  .menu-btn { display: flex; }
}

/* — phones — */
@media (max-width: 560px) {
  .container { width: 92%; }

  /* header: tighter, keep everything on one row */
  .header-inner { gap: 0.6rem; padding-block: 0.55rem; }
  .brand { gap: 0.5rem; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-name { font-size: 1.05rem; letter-spacing: 0.1em; }
  .brand-sub { font-size: 0.58rem; letter-spacing: 0.38em; }
  .lang-opt { width: 4rem; padding-block: 0.38rem; font-size: 0.8rem; }

  /* hero */
  .hero { padding-top: 5.6rem; padding-bottom: 2rem; }
  .hero-logo { width: min(190px, 55%); }
  .hero-kicker { font-size: 0.78rem; margin-bottom: 0.6rem; }
  .hero-title { font-size: clamp(1.9rem, 8.5vw, 2.4rem); }
  .hero-lede { font-size: 1rem; margin-bottom: 1.6rem; }
  .hero-cta { flex-direction: column; align-items: stretch; padding-inline: 0.6rem; }
  .btn { text-align: center; padding: 0.9rem 1.6rem; }
  .hero-divider { margin-top: 2.4rem; }
  .hero-ornament-1 { width: 300px; height: 300px; top: -120px; inset-inline-end: -110px; }
  .hero-ornament-2 { display: none; }

  /* sections */
  .section { padding-block: 3.2rem; }
  .section-head { margin-bottom: 2.2rem; }
  .section-title { font-size: 1.75rem; }
  .section-lede { font-size: 0.98rem; }

  .services-grid { grid-template-columns: 1fr; gap: 1rem; }
  .service-card { padding: 1.7rem 1.4rem; }
  .service-icon { width: 56px; height: 56px; margin-bottom: 1rem; }

  .gallery-grid { grid-template-columns: 1fr; gap: 1.1rem; }
  .gallery-item img { aspect-ratio: 16 / 11; }

  .value-card { padding: 1.2rem 1.3rem; }

  .contact-grid { grid-template-columns: 1fr 1fr; gap: 0.9rem; }
  .contact-card { padding: 1.4rem 0.8rem; }
  .contact-icon { width: 48px; height: 48px; margin-bottom: 0.7rem; }
  .contact-icon svg { width: 24px; height: 24px; }
  .contact-card h3 { font-size: 1.02rem; }
  .contact-card p { font-size: 0.78rem; word-break: break-all; }

  .site-footer { padding-block: 2.6rem 1.6rem; }

  .wa-float {
    width: 52px;
    height: 52px;
    bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px));
    inset-inline-end: 1.1rem;
  }
  .wa-float svg { width: 26px; height: 26px; }
}

/* — very narrow phones — */
@media (max-width: 360px) {
  .brand-text { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .lang-opt { width: 3.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-logo { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
