/* Bayad Al Thalj Cosmetics — bth.beauty */

:root {
  --snow: #F7F8FA;
  --frost: #ECEFF3;
  --rose: #A3624C;
  --rose-deep: #8A4A39;
  --rose-light: #D7AE9E;
  --ink: #2E2422;
  --ink-soft: #5F5350;

  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Karla", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 48px);

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }

html[lang="ar"] {
  --serif: "Amiri", "Times New Roman", serif;
  --sans: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 88px); }
body {
  margin: 0;
  background: var(--snow);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body { font-size: 1.125rem; line-height: 1.85; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; inset-inline-start: 12px; top: -60px;
  background: var(--ink); color: var(--snow); padding: 10px 16px; z-index: 100; text-decoration: none;
}
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(247, 248, 250, 0.88);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--frost); }
.header-inner { display: flex; align-items: center; gap: 32px; height: 76px; }
.brand img { width: 196px; }
.nav { display: flex; gap: 28px; margin-inline-start: auto; }
.nav a {
  text-decoration: none; font-size: .95rem; color: var(--ink-soft);
  padding-block: 6px; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s;
}
.nav a:hover { color: var(--rose-deep); border-bottom-color: var(--rose-light); }

.lang-toggle {
  font: inherit; font-size: .95rem; cursor: pointer;
  background: none; color: var(--rose-deep);
  border: 1px solid var(--rose-light); border-radius: 999px;
  padding: 6px 16px; line-height: 1.4;
}
.lang-toggle:hover { background: var(--rose-deep); border-color: var(--rose-deep); color: var(--snow); }
.lang-toggle:lang(ar) { font-family: "IBM Plex Sans Arabic", sans-serif; }
.lang-toggle:lang(en) { font-family: "Karla", sans-serif; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  min-height: min(86vh, 820px);
  display: grid; place-items: center;
  padding-block: 96px 120px;
  text-align: center;
}
.flake {
  position: absolute; left: 50%; top: 50%;
  width: min(118vw, 760px); height: auto;
  transform: translate(-50%, -50%);
  fill: none; stroke: var(--rose-light); stroke-width: .6;
  stroke-linecap: round; stroke-linejoin: round;
  opacity: .55; pointer-events: none;
}
.flake circle { fill: var(--rose-light); stroke: none; }
.flake path { stroke-dasharray: 100; stroke-dashoffset: 0; }

@media (prefers-reduced-motion: no-preference) {
  .flake path { animation: draw 2.4s cubic-bezier(.6, .1, .2, 1) both; }
  .flake circle { animation: fade 1s 1.8s both; }
  .hero-inner > * { animation: rise 1s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-inner > :nth-child(1) { animation-delay: .5s; }
  .hero-inner > :nth-child(2) { animation-delay: .75s; }
  .hero-inner > :nth-child(3) { animation-delay: 1s; }
}
@keyframes draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.hero-inner { position: relative; max-width: 820px; }
.hero-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  line-height: 1.05; letter-spacing: -.01em;
  margin: 0 0 28px; color: var(--ink);
}
html[lang="ar"] .hero-title { font-weight: 400; line-height: 1.35; letter-spacing: 0; }
.hero-text { max-width: 36em; margin: 0 auto 40px; color: var(--ink-soft); font-size: clamp(1.05rem, 1.6vw, 1.2rem); }

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 30px;
  font: inherit; font-size: 1rem; font-weight: 500; text-decoration: none;
  border-radius: 999px; transition: background-color .2s, color .2s, border-color .2s;
}
.btn-solid { background: var(--rose-deep); color: #fff; border: 1px solid var(--rose-deep); }
.btn-solid:hover { background: var(--ink); border-color: var(--ink); }
.btn-line { border: 1px solid var(--rose-light); color: var(--rose-deep); background: rgba(247, 248, 250, .7); }
.btn-line:hover { border-color: var(--rose-deep); }
.btn-light { background: var(--snow); color: var(--rose-deep); border: 1px solid var(--snow); white-space: nowrap; }
.btn-light:hover { background: transparent; color: #fff; }
.btn[download]::before {
  content: ""; width: 14px; height: 14px; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 1.5v9M4 7l4 4 4-4M2 14.5h12'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 1.5v9M4 7l4 4 4-4M2 14.5h12'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Divider echoing the logo */
.divider { display: flex; align-items: center; justify-content: center; gap: 18px; max-width: 520px; margin: 0 auto; padding-inline: var(--gutter); }
.divider span { flex: 1; height: 1px; background: linear-gradient(to right, transparent, var(--rose-light)); }
.divider span:last-child { background: linear-gradient(to left, transparent, var(--rose-light)); }

/* Sections */
.section { padding-block: clamp(72px, 10vw, 128px); }
.section-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.15;
  margin: 0 0 24px; color: var(--rose-deep);
}
html[lang="ar"] .section-title { font-weight: 400; line-height: 1.5; }
.section-title.center { text-align: center; margin-bottom: 56px; }

.about-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; }
.about-body { max-width: 38em; }
.about-body p { margin: 0 0 1.1em; color: var(--ink-soft); }
.about-body .lead {
  font-family: var(--serif); font-size: clamp(1.45rem, 2.4vw, 1.8rem);
  line-height: 1.4; color: var(--ink);
}

.services { background: var(--frost); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.service { padding: 8px 36px; border-inline-start: 1px solid var(--rose-light); }
.service:first-child { border-inline-start: 0; padding-inline-start: 0; }
.service:last-child { padding-inline-end: 0; }
.service h3 { font-family: var(--serif); font-weight: 600; font-size: 1.55rem; line-height: 1.25; margin: 0 0 12px; }
html[lang="ar"] .service h3 { font-weight: 700; font-size: 1.5rem; line-height: 1.6; }
.service p { margin: 0; color: var(--ink-soft); }

/* Catalog band */
.catalog {
  background: linear-gradient(115deg, var(--rose-deep), var(--rose) 60%, #B97A64);
  color: #fff; padding-block: clamp(56px, 8vw, 88px);
}
.catalog-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.catalog-title { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.15; margin: 0 0 8px; }
html[lang="ar"] .catalog-title { font-weight: 400; line-height: 1.5; }
.catalog p { margin: 0; max-width: 34em; opacity: .9; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.contact-intro { color: var(--ink-soft); max-width: 30em; margin: 0; }
.contact-list { margin: 0; display: grid; gap: 28px; }
.contact-list dt { font-size: .9rem; color: var(--rose); margin-bottom: 4px; }
.contact-list dd { margin: 0; font-size: 1.1rem; }
.contact-list a { text-decoration: none; border-bottom: 1px solid var(--rose-light); transition: border-color .2s, color .2s; }
.contact-list a:hover { color: var(--rose-deep); border-bottom-color: var(--rose-deep); }
.contact-email { font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 500; }
html[lang="ar"] .contact-list dd [dir="ltr"] { display: inline-block; }

/* Footer */
.site-footer { border-top: 1px solid var(--frost); padding-block: 28px; font-size: .9rem; color: var(--ink-soft); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-inner p { margin: 0; }
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { color: var(--rose-deep); }

/* Responsive */
@media (max-width: 860px) {
  .nav { display: none; }
  .lang-toggle { margin-inline-start: auto; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 20px; }
  .contact-grid { gap: 36px; }
  .services-grid { grid-template-columns: 1fr; gap: 0; }
  .service, .service:first-child, .service:last-child {
    border-inline-start: 0; border-top: 1px solid var(--rose-light);
    padding: 28px 0;
  }
  .service:first-child { border-top: 0; padding-top: 0; }
  .catalog-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .brand img { width: 136px; }
  .hero { padding-block: 64px 88px; }
  .hero-actions .btn { width: 100%; }
}
