/* Kurdistan Animal Guardians — stylesheet
   Cream paper, terracotta accent, rounded type. */

:root {
  --cream: #f6f2eb;
  --cream-2: #efe9df;
  --sand: #e9dfd2;
  --rust: #b5461f;
  --rust-2: #9a3a19;
  --brown: #3a2a20;
  --muted: #7d6b5e;
  --line: rgba(58, 42, 32, .12);
  --wa: #25d366;

  --head: "Fredoka", "Segoe UI", system-ui, sans-serif;
  --body: "Nunito", "Segoe UI", system-ui, sans-serif;
}

:root[dir="rtl"] { --head: "Vazirmatn", Tahoma, sans-serif; --body: "Vazirmatn", Tahoma, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--brown);
  background: var(--cream);
}
:root[dir="rtl"] body { line-height: 1.85; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1.05; margin: 0; letter-spacing: -.01em; }
:root[dir="rtl"] h1, :root[dir="rtl"] h2, :root[dir="rtl"] h3 { font-weight: 800; letter-spacing: 0; line-height: 1.4; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; background: var(--rust); color: #fff; padding: .6rem 1rem; z-index: 100; border-radius: 8px; }
.skip:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 3px; }
.ico { width: 1.15em; height: 1.15em; flex: none; }
:root[dir="rtl"] .flip { transform: scaleX(-1); }

.label {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--head); font-weight: 500; font-size: .92rem; letter-spacing: .06em; text-transform: uppercase; color: var(--rust);
}
.label::before { content: ""; width: 1.6rem; height: 2px; background: currentColor; }
.label.center { display: flex; justify-content: center; }
.label.center::after { content: ""; width: 1.6rem; height: 2px; background: currentColor; }
:root[dir="rtl"] .label { letter-spacing: 0; text-transform: none; font-size: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 3rem; padding: .7rem 1.6rem; border-radius: 10px;
  font: 600 1rem/1.2 var(--head); text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s, background-color .15s, color .15s, box-shadow .15s;
}
:root[dir="rtl"] .btn { font-weight: 700; }
.btn:hover { transform: translateY(-2px); }
.btn-sm { min-height: 2.6rem; padding: .5rem 1.2rem; font-size: .95rem; }
.btn-rust { background: var(--rust); color: #fff; box-shadow: 0 10px 24px -10px rgba(181, 70, 31, .7); }
.btn-rust:hover { background: var(--rust-2); }
.btn-line { background: transparent; color: var(--brown); border-color: var(--brown); }
.btn-line:hover { background: var(--brown); color: var(--cream); }
.btn-wa { background: var(--wa); color: #08301a; font-family: var(--body); font-weight: 800; font-size: 1.05rem; }
.btn-wa:hover { background: #38e07d; }
.btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.text-link { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; color: var(--rust); text-decoration: none; padding: .4rem 0; }
.text-link:hover { color: var(--rust-2); text-decoration: underline; text-underline-offset: 4px; }
.round {
  width: 2.8rem; height: 2.8rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--sand); color: var(--brown); border: 0; cursor: pointer; text-decoration: none; transition: background-color .15s, color .15s, transform .15s;
}
.round:hover { background: var(--rust); color: #fff; transform: translateY(-2px); }

/* Page container */
.frame {
  position: relative;
  width: min(100%, 1360px);
  margin-inline: auto;
  padding: 0 clamp(1.25rem, 5vw, 5rem);
}

/* Header */
.top { display: flex; align-items: center; gap: 1.5rem; padding: 1.4rem 0; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; margin-inline-end: auto; font-family: var(--head); font-weight: 500; font-size: 1.1rem; color: var(--brown); line-height: 1.1; }
.brand img { width: 44px; mix-blend-mode: multiply; }
.brand b { color: var(--rust); font-weight: 600; }
.nav { display: flex; gap: 1.8rem; }
.nav a { text-decoration: none; font-weight: 700; font-size: .98rem; color: var(--brown); position: relative; padding: .25rem 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--rust); transform: scaleX(0); transition: transform .2s; transform-origin: left; }
.nav a:hover::after { transform: scaleX(1); }
.tools { display: flex; align-items: center; gap: .8rem; }
.lang { display: flex; gap: 2px; background: var(--sand); border-radius: 999px; padding: 3px; }
.lang button { font: 700 .8rem/1 var(--body); color: var(--muted); background: none; border: 0; border-radius: 999px; padding: .45rem .7rem; cursor: pointer; }
.lang button[lang="ckb"], .lang button[lang="ar"] { font-family: "Vazirmatn", Tahoma, sans-serif; font-size: .85rem; }
.lang button[aria-pressed="true"] { background: var(--rust); color: #fff; }
.lang-select { display: none; position: relative; }
.lang-select select {
  appearance: none; -webkit-appearance: none;
  font: 700 .9rem/1 var(--body); color: var(--brown); background: var(--sand);
  border: 0; border-radius: 999px; padding: .6rem 2.1rem .6rem 1rem; cursor: pointer;
}
.lang-select::after { content: ""; position: absolute; right: .9rem; top: 50%; width: .45rem; height: .45rem; border-right: 2px solid var(--brown); border-bottom: 2px solid var(--brown); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
:root[dir="rtl"] .lang-select select { padding: .6rem 1rem .6rem 2.1rem; }
:root[dir="rtl"] .lang-select::after { right: auto; left: .9rem; }
.menu-btn { display: none; width: 2.6rem; height: 2.6rem; background: none; border: 0; cursor: pointer; position: relative; }
.bars, .bars::before, .bars::after { position: absolute; left: 50%; width: 1.3rem; height: 2px; background: var(--brown); transform: translateX(-50%); transition: transform .2s, opacity .2s; }
.bars { top: 50%; }
.bars::before, .bars::after { content: ""; left: 0; transform: none; }
.bars::before { top: -6px; } .bars::after { top: 6px; }
.menu-open .bars { background: transparent; }
.menu-open .bars::before { transform: translateY(6px) rotate(45deg); }
.menu-open .bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Side tabs (desktop) */
.side-tabs { position: fixed; top: 50%; transform: translateY(-50%); inset-inline-end: 0; display: flex; flex-direction: column; background: var(--rust); z-index: 5; border-radius: 10px 0 0 10px; overflow: hidden; }
:root[dir="rtl"] .side-tabs { border-radius: 0 10px 10px 0; }
.side-tabs a {
  writing-mode: vertical-rl; padding: 1.6rem .85rem; color: #fff; text-decoration: none;
  font: 500 .95rem/1 var(--head); letter-spacing: .04em; border-top: 1px solid rgba(255, 255, 255, .2); transition: background-color .15s;
}
:root[dir="rtl"] .side-tabs a { letter-spacing: 0; font-weight: 700; }
.side-tabs a:first-child { border-top: 0; }
.side-tabs a:hover { background: var(--rust-2); }

/* Hero */
.hero { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: clamp(1.5rem, 4vw, 4rem); min-height: calc(100vh - 6.5rem); padding: 1rem 0 5rem; overflow: hidden; }
.hero-text { position: relative; z-index: 2; max-width: 34rem; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 5.2rem); display: flex; flex-direction: column; white-space: nowrap; }
.hero h1 .dark { color: var(--brown); }
.hero h1 .rust { color: var(--rust); }
.sub { margin-top: 1.4rem; padding-top: 1.1rem; border-top: 2px solid var(--brown); display: inline-block; font-size: clamp(1.1rem, 1.5vw, 1.35rem); color: var(--brown); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.6rem; margin-top: 2rem; }
.ghost {
  position: absolute; bottom: -2.2rem; inset-inline-start: -.5rem; z-index: 0;
  font: 600 clamp(7rem, 15vw, 12rem)/1 var(--head); color: transparent;
  -webkit-text-stroke: 1px rgba(181, 70, 31, .22); pointer-events: none; user-select: none;
}
:root[dir="rtl"] .ghost { display: none; }

.hero-art { position: relative; z-index: 1; margin: 0; width: 100%; justify-self: start; }
.hero-art img { width: 100%; height: auto; filter: drop-shadow(0 24px 30px rgba(58, 42, 32, .18)); }

/* About */
.about { padding: 4rem 0 3rem; max-width: 60rem; }
.about h2 { margin-top: 1.2rem; font-size: clamp(1.5rem, 2.8vw, 2.3rem); font-weight: 500; color: var(--brown); }
:root[dir="rtl"] .about h2 { font-weight: 700; }
.stats { list-style: none; margin: 2.2rem 0 0; padding: 0; display: flex; gap: 3rem; flex-wrap: wrap; }
.stats li { display: flex; flex-direction: column; }
.stats b { font: 600 2.4rem/1 var(--head); color: var(--rust); }
.stats sup { font-size: .45em; }
.stats span { color: var(--muted); font-size: .95rem; }

/* Meet — arch cards */
.meet { padding: 4rem 0 3rem; }
.carousel { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.5rem; margin-top: 2rem; }
.cards { position: relative; min-height: 34rem; }
.card { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr minmax(16rem, 20rem) 1fr; grid-template-rows: auto 1fr auto; column-gap: 2rem; align-items: center; opacity: 0; visibility: hidden; transform: translateX(2rem); transition: opacity .35s, transform .35s, visibility .35s; }
.card.on { opacity: 1; visibility: visible; transform: none; }
.card h3 { grid-column: 2; grid-row: 1; text-align: center; font-size: clamp(2rem, 3.6vw, 2.8rem); color: var(--rust); margin-bottom: -1.4rem; position: relative; z-index: 2; }
.arch { grid-column: 2; grid-row: 2 / 4; align-self: stretch; background: var(--sand); border-radius: 50% 50% 18px 18px / 36% 36% 18px 18px; padding: 3.2rem .9rem 4.2rem; display: flex; flex-direction: column; }
.arch img { width: 100%; flex: 1; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 45% 45% 12px 12px / 30% 30% 12px 12px; }
.facts { margin: 0; display: contents; }
.facts div { display: flex; flex-direction: column; gap: .15rem; grid-row: 2; }
.facts div:first-child { grid-column: 1; text-align: end; }
.facts div:last-child { grid-column: 3; }
.facts dt { font-size: .82rem; color: var(--muted); }
.facts dd { margin: 0; font: 500 1.15rem var(--head); color: var(--rust); }
:root[dir="rtl"] .facts dd { font-weight: 700; }
.card .btn { grid-column: 2; grid-row: 3; justify-self: center; margin-bottom: 1.1rem; position: relative; z-index: 2; }
.carousel .prev .ico { transform: scaleX(-1); }
:root[dir="rtl"] .carousel .prev .ico { transform: none; }
.dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1.2rem; }
.dots i { width: .5rem; height: .5rem; border-radius: 50%; background: var(--sand); }
.dots i.on { background: var(--rust); }

/* Help */
.help { padding: 4rem 0; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2rem; }
.tile { background: #fff; border-radius: 18px; padding: 2.2rem 1.8rem; display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; border: 1px solid var(--line); }
.tile-main { background: var(--rust); color: #fff; border: 0; }
.tile-main .text-link { color: #fff; }
.tile-main .btn-rust { background: #fff; color: var(--rust); box-shadow: none; }
.tile-main .btn-rust:hover { background: var(--cream); }
.tile-ico { width: 2.2rem; height: 2.2rem; color: var(--rust); margin-bottom: .4rem; }
.tile-main .tile-ico { color: #fff; }
.tile h3 { font-size: 1.7rem; }
.tile p { color: var(--muted); margin-bottom: .8rem; }
.tile-main p { color: rgba(255, 255, 255, .85); }
.tile .btn { margin-top: auto; }
.soon { font-size: .85rem; font-weight: 700; opacity: .9; }
.chips { list-style: none; margin: 1.6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .55rem; justify-content: center; }
.chips li { font: 500 .9rem var(--head); color: var(--brown); background: var(--sand); border-radius: 999px; padding: .45rem 1rem; }

/* Contact */
.contact { padding: 4.5rem 0 5rem; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; border-top: 1px solid var(--line); }
.contact h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); margin: .6rem 0 1rem; color: var(--brown); }
.contact-info { display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; }
.contact-lead { color: var(--muted); font-size: 1.08rem; max-width: 32rem; }
.socials { display: flex; gap: .8rem; margin-top: .4rem; }

/* Contact form (Netlify Forms) */
.contact-form { display: grid; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.4rem, 3vw, 2rem); }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font: 600 .92rem var(--head); color: var(--brown); }
:root[dir="rtl"] .field label { font-weight: 700; }
.field input, .field select, .field textarea {
  font: 400 1rem var(--body); color: var(--brown); background: var(--cream);
  border: 1.5px solid var(--line); border-radius: 10px; padding: .72rem .85rem; width: 100%;
}
.field textarea { resize: vertical; min-height: 6rem; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--rust); box-shadow: 0 0 0 3px rgba(181, 70, 31, .15);
}
.contact-form .btn { justify-self: start; }
:root[dir="rtl"] .contact-form .btn { justify-self: end; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-weight: 700; font-size: .95rem; min-height: 1.2em; }
.form-status.ok { color: #1a7f45; }
.form-status.err { color: var(--rust); }

/* Footer */
.foot { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; padding: 1.6rem 0 2rem; border-top: 1px solid var(--line); }
.foot img { width: 64px; mix-blend-mode: multiply; }
.foot p { display: flex; flex-direction: column; font-size: .9rem; color: var(--muted); line-height: 1.5; }
.foot p [lang="en"] { font-family: var(--head); font-weight: 500; color: var(--brown); font-size: 1rem; }
.foot p [dir="rtl"] { font-family: "Vazirmatn", Tahoma, sans-serif; text-align: start; }
.foot small { margin-inline-start: auto; color: var(--muted); }

/* Gallery page */
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.gallery { padding: 2rem 0 5rem; }
.gallery-head { text-align: center; max-width: 40rem; margin: 0 auto 2.5rem; }
.gallery-head .label { display: inline-flex; }
.gallery-head .label::after { content: ""; width: 1.6rem; height: 2px; background: currentColor; }
.gallery h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin: .6rem 0 .8rem; }
.gallery-intro { color: var(--muted); font-size: 1.1rem; }
.grid { columns: 3 18rem; column-gap: 1rem; }
.tile-img { position: relative; display: block; break-inside: avoid; margin-bottom: 1rem; border-radius: 16px; overflow: hidden; background: var(--sand); text-decoration: none; }
.tile-img img { width: 100%; display: block; transition: transform .4s ease; }
.tile-img:hover img { transform: scale(1.04); }
.tile-img span {
  position: absolute; left: .8rem; right: .8rem; bottom: .8rem; padding: .45rem .8rem; border-radius: 10px;
  background: rgba(246, 242, 235, .92); color: var(--brown); font: 500 .92rem var(--head);
  opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s;
}
.tile-img:hover span, .tile-img:focus-visible span { opacity: 1; transform: none; }
@media (hover: none) { .tile-img span { opacity: 1; transform: none; } }
.gallery-foot { display: flex; justify-content: center; gap: 1.6rem; margin: 2rem 0 1.2rem; }
.gallery .btn-line { display: flex; width: max-content; margin-inline: auto; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1100px); max-height: 96vh; overflow: visible; }
.lightbox::backdrop { background: rgba(58, 42, 32, .88); }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.lightbox img { max-width: 92vw; max-height: 84vh; border-radius: 14px; background: var(--sand); }
.lightbox figcaption { color: var(--cream); font: 500 1.05rem var(--head); }
.lightbox .round { position: fixed; top: 50%; transform: translateY(-50%); background: rgba(246, 242, 235, .9); }
.lb-prev { left: 1rem; } .lb-next { right: 1rem; }
.lb-close { top: 1rem !important; right: 1rem; transform: none !important; }
@media (max-width: 600px) { .lb-prev, .lb-next { top: auto; bottom: 1rem; transform: none; } }

/* Floating social dock — bottom right, horizontal row */
.social-dock {
  position: fixed; inset-inline-end: 1.25rem; bottom: 1.25rem; z-index: 60;
  display: flex; flex-direction: row; align-items: center; gap: .6rem;
}
.dock-btn {
  width: 3.25rem; height: 3.25rem; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 8px 20px -6px rgba(58, 42, 32, .5);
  transition: transform .15s, filter .15s;
}
.dock-btn svg { width: 1.55rem; height: 1.55rem; }
.dock-btn:hover { transform: scale(1.1); }
.dock-btn.wa { width: 3.75rem; height: 3.75rem; background: var(--wa); box-shadow: 0 10px 24px -6px rgba(18, 140, 75, .7); }
.dock-btn.wa svg { width: 2rem; height: 2rem; }
.dock-btn.ig { background: #e1306c; }
.dock-btn.fb { background: #1877f2; }
.dock-btn.tt { background: #1b1b1b; }

/* Responsive */
@media (max-width: 1100px) {
  .side-tabs { display: none; }
}
@media (max-width: 900px) {
  .lang { display: none; }
  .lang-select { display: block; }
  .menu-btn { display: block; }
  .social-dock { position: static; justify-content: center; margin: 1.75rem auto .5rem; }
  .nav {
    position: absolute; left: 0; right: 0; top: 5.2rem; z-index: 20; flex-direction: column; gap: 0;
    background: var(--cream); border-block: 1px solid var(--line); padding: .5rem 1.5rem 1rem;
    transform: translateY(-1rem); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a::after { display: none; }
  .hero { display: flex; flex-direction: column; align-items: center; min-height: 0; padding-top: 1rem; text-align: center; }
  .hero-text { display: contents; }
  .hero h1 { order: 1; align-items: center; }
  .hero-art { order: 2; max-width: 28rem; margin: 1.25rem auto .25rem; width: 100%; }
  .sub { order: 3; }
  .actions { order: 4; justify-content: center; }
  .ghost { display: none; }
  .stats { justify-content: center; gap: 2rem; }
  .about { text-align: center; margin-inline: auto; }
  .about .label { display: inline-flex; }
  .carousel { grid-template-columns: 1fr; gap: 1rem; }
  .carousel .round { display: none; }
  .cards { min-height: 0; height: auto; }
  .card { position: relative; inset: auto; grid-template-columns: 1fr; grid-template-rows: auto auto auto auto; column-gap: 0; display: none; }
  .card.on { display: grid; }
  .card h3, .arch, .card .btn { grid-column: 1; }
  .arch { grid-row: 2; max-width: 20rem; width: 100%; margin-inline: auto; }
  .facts { display: flex; justify-content: center; gap: 2.5rem; grid-row: 3; margin: 1.2rem 0; }
  .facts div, .facts div:first-child, .facts div:last-child { grid-column: auto; grid-row: auto; text-align: center; }
  .card .btn { grid-row: 4; margin-bottom: 0; }
  .dots { display: none; }
  .mobile-nav { display: flex; }
  .tiles { grid-template-columns: 1fr; max-width: 28rem; margin-inline: auto; }
  .contact { grid-template-columns: 1fr; }
  .foot { justify-content: center; text-align: center; }
  .foot small { margin: 0; width: 100%; }
}
@media (max-width: 520px) {
  .brand span { font-size: .95rem; }
  .actions { flex-direction: column; gap: .8rem; }
  .actions .btn { width: 100%; }
  .stats b { font-size: 2rem; }
}
