/* ============ TrueTail brand system ============ */
:root {
  --green: #3E4A2B;
  --green-dark: #333d23;
  --green-soft: #55633c;
  --cream: #EDE4D0;
  --cream-light: #F5EFE2;
  --kraft: #E3D5B8;
  --brown: #3B2A1E;
  --brown-soft: #5d4a3a;
  --gold: #C6A15B;
  --gold-light: #d9bc82;
  --shadow: 0 10px 30px rgba(59, 42, 30, 0.12);
  --radius: 18px;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Nunito Sans", -apple-system, sans-serif;
  --font-script: "Caveat", cursive;
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--brown);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

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

h1, h2, h3 { font-family: var(--font-serif); line-height: 1.15; }

h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); color: var(--green); }
h2 em, h1 em { font-style: italic; color: var(--gold); }

section { padding: 90px 24px; }

.section-head { text-align: center; margin-bottom: 56px; }
.section-eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
}
.head-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
}
.head-rule span { display: block; width: 70px; height: 1px; background: var(--gold); opacity: 0.6; }
.rule-paw { width: 20px; height: 20px; color: var(--gold); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 40px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-primary { background: var(--green); color: var(--cream-light); }
.btn-primary:hover { background: var(--green-dark); }
.btn-outline { border-color: var(--green); color: var(--green); background: transparent; }
.btn-outline:hover { background: var(--green); color: var(--cream-light); }
.btn-whatsapp { background: #24793f; color: #fff; width: 100%; }
.btn-whatsapp svg { width: 20px; height: 20px; }
.btn-whatsapp:hover { background: #1d6534; }

/* ============ Nav ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(237, 228, 208, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: box-shadow 0.3s ease;
}
.nav.scrolled { box-shadow: 0 4px 24px rgba(59, 42, 30, 0.14); }
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav-logo img {
  height: 58px;
  width: auto;
}
.nav-links {
  display: flex;
  gap: 36px;
}
.nav-links a {
  text-decoration: none;
  color: var(--brown);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.28s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-cta {
  background: var(--green);
  color: var(--cream-light);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 11px 22px;
  border-radius: 30px;
  transition: background 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--green-dark); transform: translateY(-1px); }

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

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 150px 24px 120px;
  background:
    radial-gradient(ellipse at 85% 15%, rgba(198, 161, 91, 0.16), transparent 55%),
    radial-gradient(ellipse at 8% 85%, rgba(62, 74, 43, 0.10), transparent 50%),
    var(--cream);
}
.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-eyebrow {
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--green-soft);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.3rem);
  color: var(--green);
  margin-bottom: 22px;
}
.hero-sub {
  font-size: 1.08rem;
  color: var(--brown-soft);
  max-width: 480px;
  margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-script {
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--gold);
  margin-top: 28px;
  transform: rotate(-2deg);
}
.hero-img { position: relative; }
.hero-img-frame {
  border-radius: 46% 54% 52% 48% / 44% 46% 54% 56%;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(59, 42, 30, 0.25);
  border: 8px solid rgba(245, 239, 226, 0.85);
}
.hero-img-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.47);
  transform-origin: 87% 62%;
}
.hero-badge {
  position: absolute;
  bottom: 18px; left: -14px;
  background: var(--green);
  color: var(--cream-light);
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1.35;
  box-shadow: var(--shadow);
  animation: floaty 5s ease-in-out infinite;
}
.hero-badge svg { width: 28px; height: 28px; color: var(--gold-light); flex-shrink: 0; }
@keyframes floaty { 50% { transform: translateY(-7px); } }

.torn-edge {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 26px;
  background: var(--green);
  clip-path: polygon(0 55%, 3% 30%, 7% 60%, 11% 25%, 15% 55%, 19% 35%, 23% 65%, 27% 30%, 31% 55%, 35% 25%, 39% 60%, 43% 35%, 47% 60%, 51% 28%, 55% 55%, 59% 32%, 63% 62%, 67% 30%, 71% 55%, 75% 25%, 79% 58%, 83% 32%, 87% 60%, 91% 28%, 95% 55%, 100% 35%, 100% 100%, 0 100%);
}

/* ============ Treats ============ */
.treats {
  background:
    radial-gradient(ellipse at 12% 8%, rgba(198, 161, 91, 0.14), transparent 45%),
    var(--green);
  padding-top: 80px;
  padding-bottom: 100px;
}
.treats h2 { color: var(--cream-light); }
.treats .section-eyebrow.light { color: var(--gold-light); }
.soon-wrap {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}
.soon-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}
.soon-panel {
  color: var(--cream-light);
}
.soon-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brown);
  background: var(--gold);
  border-radius: 30px;
  padding: 8px 18px;
  margin-bottom: 20px;
}
.soon-panel h3 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  color: var(--cream-light);
  margin-bottom: 18px;
}
.soon-panel p {
  color: rgba(237, 228, 208, 0.85);
  margin-bottom: 16px;
  max-width: 460px;
}
.soon-strong { color: var(--gold-light) !important; font-weight: 700; }
.soon-btn { width: auto; margin-top: 10px; }

/* ============ Promise ============ */
.promise { background: var(--cream); }
.promise-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.promise-item {
  background: var(--cream-light);
  border: 1px solid rgba(198, 161, 91, 0.35);
  border-radius: var(--radius);
  padding: 34px 26px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.promise-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}
.promise-icon {
  width: 66px; height: 66px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--green);
  color: var(--cream-light);
  display: grid;
  place-items: center;
}
.promise-icon svg { width: 30px; height: 30px; }
.promise-item h3 { font-size: 1.08rem; color: var(--green); margin-bottom: 8px; }
.promise-item p { font-size: 0.9rem; color: var(--brown-soft); }

/* ============ Story ============ */
.story {
  background:
    radial-gradient(ellipse at 90% 90%, rgba(198, 161, 91, 0.18), transparent 50%),
    var(--cream-light);
}
.story-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.story-img img {
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(59, 42, 30, 0.24);
  transform: rotate(-1.5deg);
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.story-text h2 { margin-bottom: 20px; }
.story-text p { color: var(--brown-soft); margin-bottom: 16px; max-width: 520px; }
.story-script {
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: var(--gold);
  margin: 6px 0 26px;
}

/* ============ Footer ============ */
.footer {
  background: var(--brown);
  color: var(--cream);
  padding: 70px 24px 0;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 50px;
}
.footer-logo {
  width: 74px;
  border-radius: 50%;
  margin-bottom: 14px;
}
.footer-word {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--cream-light);
}
.footer-word span { color: var(--gold); }
.footer-tag {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: 6px;
}
.footer-col h4 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer-col a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  text-decoration: none;
  margin-bottom: 12px;
  font-size: 0.95rem;
  opacity: 0.85;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.footer-col a:hover { opacity: 1; color: var(--gold-light); }
.footer-col svg { width: 18px; height: 18px; flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid rgba(237, 228, 208, 0.18);
  text-align: center;
  padding: 22px;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ============ Reveal animation ============ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-badge { animation: none; }
}

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding-top: 130px; }
  .hero-img { max-width: 520px; margin: 0 auto; }
  .soon-wrap { grid-template-columns: 1fr; gap: 40px; max-width: 560px; }
  .soon-photo { max-width: 440px; margin: 0 auto; }
  .promise-grid { grid-template-columns: 1fr 1fr; }
  .story-inner { grid-template-columns: 1fr; gap: 44px; }
  .story-img { max-width: 440px; margin: 0 auto; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  section { padding: 64px 18px; }
  .nav-links {
    position: fixed;
    top: 78px; left: 0; right: 0;
    background: var(--cream-light);
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    box-shadow: 0 14px 30px rgba(59, 42, 30, 0.15);
  }
  .nav-links.open { max-height: 300px; }
  .nav-links a { padding: 16px 0; width: 100%; text-align: center; }
  .menu-btn { display: flex; }
  .nav-logo img { height: 48px; }
  .nav-cta { padding: 9px 16px; font-size: 0.8rem; }
  .soon-btn { width: 100%; }
  .promise-grid { grid-template-columns: 1fr; max-width: 400px; }
  .hero { padding: 118px 18px 90px; }
  .hero-badge { left: 4px; padding: 11px 14px; font-size: 0.76rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; text-align: left; }
}

/* ============ Language switch ============ */
.lang-btn {
  background: transparent;
  border: 1.5px solid var(--green);
  color: var(--green);
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.82rem;
  padding: 9px 16px;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  min-width: 62px;
}
.lang-btn:hover { background: var(--green); color: var(--cream-light); }

/* ============ Arabic ============ */
[lang="ar"] {
  --font-serif: "Amiri", "Playfair Display", Georgia, serif;
  --font-sans: "Tajawal", "Nunito Sans", -apple-system, sans-serif;
  --font-script: "Amiri", cursive;
}
/* Arabic script is cursive: letter-spacing breaks the joins between letters. */
[lang="ar"] .section-eyebrow,
[lang="ar"] .hero-eyebrow,
[lang="ar"] .footer-tag,
[lang="ar"] .soon-badge,
[lang="ar"] .nav-links a,
[lang="ar"] .btn,
[lang="ar"] .lang-btn,
[lang="ar"] .nav-cta { letter-spacing: normal; }

[lang="ar"] .hero-script,
[lang="ar"] .story-script { font-size: 1.35rem; transform: none; }
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3 { line-height: 1.35; }
[lang="ar"] .hero h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
[lang="ar"] .footer-word { font-family: var(--font-serif); }

/* Mirrored offsets that direction alone does not flip */
[dir="rtl"] .hero-badge { left: auto; right: -14px; }
[dir="rtl"] .nav-links a::after { left: auto; right: 0; }
[dir="rtl"] .story-img img { transform: rotate(1.5deg); }

@media (max-width: 640px) {
  [dir="rtl"] .hero-badge { right: 4px; left: auto; }
  .lang-btn { padding: 8px 12px; font-size: 0.76rem; min-width: 54px; }
  /* The nav gets crowded on phones, and Contact is already in the menu and
     the footer. Dropping it here also keeps Arabic from overflowing if the
     webfont falls back to a wider face. */
  .nav-cta { display: none; }
}

/* Latin contact details (phone, @handle, URL) must stay left-to-right even in
   the Arabic layout, otherwise the "+" and "@" jump to the wrong end. */
[dir="rtl"] .footer-col a[target="_blank"] {
  direction: ltr;
  justify-content: flex-end;
}
