/* =========================================================
   Civics Albania Design tokens
   Palette: Navy #0B3D91 (trust/gov), Red #D52B1E (Albanian flag),
   near-black navy header/footer for contrast, Gold seal accent
   ties both flags without being literal.
   Display: Fraunces (serif, formal but warm) / Body: Inter
   ========================================================= */

:root {
  --navy: #0B3D91;
  --navy-deep: #0A1830;
  --red: #D52B1E;
  --red-deep: #a91f15;
  --gold: #B08D3F;
  --parchment: #F4F6FB;
  --paper: #FFFFFF;
  --ink: #16213A;
  --ink-soft: #4A5468;
  --line: #E3E7F0;
  --shadow: 0 8px 24px rgba(11, 61, 145, 0.08);
  --shadow-lg: 0 20px 50px rgba(11, 61, 145, 0.14);
  --radius: 16px;
  --radius-sm: 10px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--parchment);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  margin: 0 0 .4em;
  line-height: 1.15;
  font-weight: 600;
}

p {
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 1em;
}

button {
  font-family: var(--sans);
  cursor: pointer;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Sponsor ticker (scrolling names, above header) ---------- */
.sponsor-ticker {
  background: var(--navy-deep);
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  flex-shrink: 0;
}

.sponsor-ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
  animation: sponsor-ticker-scroll 32s linear infinite;
  will-change: transform;
}

.sponsor-ticker:hover .sponsor-ticker-track {
  animation-play-state: paused;
}

.sponsor-ticker-track a {
  color: #b9c6e8;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: color .15s;
}

.sponsor-ticker-track a:hover {
  color: #fff;
}

.sponsor-ticker-track .sep {
  color: rgba(255, 255, 255, .3);
  font-size: .7rem;
}

@keyframes sponsor-ticker-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sponsor-ticker-track {
    animation: none;
    overflow-x: auto;
  }
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  flex-shrink: 0;
  background: rgba(10, 24, 48, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1320px;
  margin: 0 auto;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
}

.brand .seal {
  width: 42px;
  height: 42px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  padding: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}

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

.nav-links a {
  font-size: .88rem;
  font-weight: 500;
  color: #b9c6e8;
  transition: color .15s, background .15s;
  padding: 7px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.nav-links a:hover {
  color: #fff;
}

.nav-links a.active {
  background: var(--red);
  color: #fff;
}

.lang-toggle {
  display: flex;
  border: 1.5px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  overflow: hidden;
  font-size: .8rem;
  font-weight: 700;
}

.lang-toggle a,
.lang-toggle button {
  border: none;
  background: transparent;
  padding: 6px 14px;
  color: #b9c6e8;
  display: inline-block;
  text-decoration: none;
}

.lang-toggle a.active,
.lang-toggle button.active {
  background: var(--red);
  color: #fff;
}

.nav-toggle {
  display: none;
  color: #fff;
}

@media (max-width:860px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
    background: none;
    border: none;
    color: #fff;
  }
}

/* ---------- Icon system (replaces emoji site-wide) ---------- */
.icon-svg {
  width: 1.3em;
  height: 1.3em;
  display: inline-block;
  vertical-align: -0.22em;
  flex: none;
}

.nav-toggle .icon-svg {
  width: 26px;
  height: 26px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  transition: transform .15s, box-shadow .15s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 24px rgba(213, 43, 30, .28);
}

.btn-primary:hover {
  box-shadow: 0 14px 30px rgba(213, 43, 30, .36);
}

.btn-navy {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 10px 24px rgba(11, 61, 145, .28);
}

.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: #fff;
}

.btn-sm {
  padding: 9px 18px;
  font-size: .85rem;
}

/* ---------- Hero (signature seal motif) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 80px;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(11, 61, 145, .08), transparent 60%),
    radial-gradient(900px 400px at -10% 110%, rgba(213, 43, 30, .07), transparent 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}

@media(max-width:900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--red);
  display: inline-block;
}

.hero h1 {
  font-size: clamp(2.3rem, 4.2vw, 3.4rem);
  color: var(--navy);
  letter-spacing: -.01em;
}

.hero h1 em {
  font-style: normal;
  color: var(--red);
}

.hero p.lead {
  font-size: 1.15rem;
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.seal-badge {
  width: 100%;
  aspect-ratio: 1;
  max-width: 360px;
  margin: 0 auto;
  position: relative;
}

.seal-ring {
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.4;
}

.seal-ring.gold {
  stroke: var(--gold);
  stroke-dasharray: 2 6;
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 64px;
}

@media(max-width:700px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-card .num {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--navy);
  font-weight: 700;
}

.stat-card .label {
  font-size: .82rem;
  color: var(--ink-soft);
  margin-top: 4px;
}

/* ---------- Sections ---------- */
.section {
  padding: 88px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head .eyebrow {
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--navy);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media(max-width:900px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width:620px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Icon tooltips (hover/focus label bubble) ---------- */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--navy-deep);
  color: #fff;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
  padding: 5px 9px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s, transform .15s;
  z-index: 20;
}

[data-tooltip]::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--navy-deep);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
  z-index: 20;
}

[data-tooltip]:hover::after,
[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

[data-tooltip]:hover::before,
[data-tooltip]:focus-visible::before {
  opacity: 1;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(11, 61, 145, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--navy);
}

.card .icon .icon-svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  font-size: 1.15rem;
  color: var(--ink);
}

.card p {
  font-size: .94rem;
  margin-bottom: 0;
}

/* ---------- Sponsor carousel (strip of cards, above footer, full-bleed) ---------- */
.sponsor-carousel {
  background: var(--navy-deep);
  padding: 20px 14px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

.sc-viewport {
  flex: 1;
  overflow: hidden;
  min-width: 0;
}

.sc-track {
  display: flex;
  transition: transform .5s ease;
}

.sc-slide {
  flex: 0 0 25%;
  min-width: 0;
  box-sizing: border-box;
  padding: 0 8px;
}

.sc-image-wrap {
  position: relative;
  aspect-ratio: 2/1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.sc-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sc-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 24, 48, .75);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity .2s;
}

.sc-image-wrap:hover .sc-overlay,
.sc-image-wrap:focus-within .sc-overlay {
  opacity: 1;
}

.sc-overlay a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  border: 1.5px solid rgba(255, 255, 255, .4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s, transform .15s;
  flex-shrink: 0;
}

.sc-overlay a svg {
  width: 15px;
  height: 15px;
}

.sc-overlay a:hover {
  background: #fff;
  color: var(--navy);
  transform: translateY(-2px);
}

.sc-arrow {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}

.sc-arrow:hover {
  background: rgba(255, 255, 255, .2);
}

@media(max-width:900px) {
  .sc-slide {
    flex: 0 0 50%;
  }
}

@media(max-width:620px) {
  .sc-slide {
    flex: 0 0 100%;
    padding: 0 4px;
  }

  .sc-arrow {
    width: 30px;
    height: 30px;
    font-size: 1.1rem;
  }

  .sponsor-carousel {
    padding: 16px 8px;
    gap: 6px;
  }

  /* Touch devices have no hover, so keep the social icons visible all the
     time instead of only on :hover. A bottom gradient (rather than a full
     dark fill) keeps the photo itself visible underneath. */
  .sc-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(10, 24, 48, .8) 0%, rgba(10, 24, 48, 0) 60%);
    align-items: flex-end;
    padding-bottom: 10px;
  }

  .sc-overlay a {
    width: 30px;
    height: 30px;
  }

  .sc-overlay a svg {
    width: 13px;
    height: 13px;
  }
}

/* ---------- Testimonial carousel (feedback quotes, index page) ---------- */
.testimonial-carousel {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 48px;
}

.tm-viewport {
  flex: 1;
  overflow: hidden;
  min-width: 0;
}

.tm-track {
  display: flex;
  transition: transform .5s ease;
}

.tm-slide {
  flex: 0 0 33.333%;
  min-width: 0;
  box-sizing: border-box;
  padding: 0 10px;
}

.tm-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.tm-stars {
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 12px;
  font-size: .95rem;
}

.tm-stars-empty {
  color: var(--line);
}

.tm-quote {
  color: var(--ink-soft);
  font-size: .92rem;
  flex: 1;
  margin-bottom: 18px;
}

.tm-person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tm-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: .85rem;
  flex-shrink: 0;
}

.tm-name {
  font-weight: 700;
  color: var(--ink);
  font-size: .88rem;
}

.tm-meta {
  font-size: .78rem;
  color: var(--ink-soft);
}

.tm-arrow {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(11, 61, 145, .06);
  border: 1px solid rgba(11, 61, 145, .18);
  color: var(--navy);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}

.tm-arrow:hover {
  background: rgba(11, 61, 145, .14);
}

@media(max-width:900px) {
  .tm-slide {
    flex: 0 0 50%;
  }
}

@media(max-width:620px) {
  .tm-slide {
    flex: 0 0 100%;
    padding: 0 6px;
  }

  .tm-arrow {
    width: 30px;
    height: 30px;
    font-size: 1.1rem;
  }
}

/* ---------- Sponsor carousel: zoom button + detail modal ---------- */
.sc-zoom {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(10, 24, 48, .55);
  border: 1.5px solid rgba(255, 255, 255, .5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background .15s, color .15s, transform .15s;
}

.sc-zoom svg {
  width: 15px;
  height: 15px;
}

.sc-zoom:hover {
  background: #fff;
  color: var(--navy);
  transform: scale(1.08);
}

/* ---------- Feedback modal (review form, index page) ---------- */
.fb-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 24, 48, .72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 200;
}

.fb-modal-overlay.show {
  display: flex;
}

.fb-modal-card {
  background: var(--paper);
  border-radius: var(--radius);
  max-width: 480px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  padding: 36px;
  position: relative;
  box-sizing: border-box;
}

.fb-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(11, 61, 145, .08);
  color: var(--navy);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  transition: background .15s;
}

.fb-modal-close:hover {
  background: rgba(11, 61, 145, .16);
}

.sc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 24, 48, .72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 200;
}

.sc-modal-overlay.show {
  display: flex;
}

.sc-modal-card {
  background: var(--paper);
  border-radius: var(--radius);
  max-width: 900px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.sc-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(10, 24, 48, .55);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
}

.sc-modal-close:hover {
  background: rgba(10, 24, 48, .8);
}

.sc-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(10, 24, 48, .55);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  transition: background .15s;
}

.sc-modal-nav:hover {
  background: rgba(10, 24, 48, .8);
}

.sc-modal-prev {
  left: 12px;
}

.sc-modal-next {
  right: 12px;
}

.sc-modal-banner {
  width: 100%;
  aspect-ratio: 2/1;
}

.sc-modal-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius) var(--radius) 0 0;
}

.sc-modal-body {
  padding: 40px;
}

.sc-modal-body h3 {
  margin-top: 0;
  font-size: 1.7rem;
}

.sc-modal-body p {
  font-size: 1.05rem;
}

.sc-modal-city {
  color: var(--gold);
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: 14px;
}

.sc-modal-social {
  display: flex;
  gap: 10px;
  margin: 18px 0 22px;
}

.sc-modal-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(11, 61, 145, .08);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
}

.sc-modal-social a svg {
  width: 19px;
  height: 19px;
}

.sc-modal-social a:hover {
  background: var(--navy);
  color: #fff;
}

@media(max-width:620px) {
  .sc-modal-nav {
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
  }

  .sc-modal-prev {
    left: 6px;
  }

  .sc-modal-next {
    right: 6px;
  }

  .sc-modal-body {
    padding: 22px;
  }

  .sc-modal-body h3 {
    font-size: 1.3rem;
  }

  .sc-modal-body p {
    font-size: 1rem;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #dbe3f5;
  padding: 56px 0 28px;
  margin-top: auto;
  border-top: 4px solid var(--red);
  flex-shrink: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

@media(max-width:900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 28px;
  }
}

@media(max-width:520px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }
}

.site-footer h4 {
  color: #fff;
  font-size: .95rem;
  margin-bottom: 14px;
}

.site-footer a {
  color: #b9c6e8;
  display: block;
  margin-bottom: 8px;
  font-size: .9rem;
}

.site-footer a:hover {
  color: #fff;
}

.footer-bottom a {
  display: inline;
  margin-bottom: 0;
  color: inherit;
  font-weight: 600;
}

.footer-bottom a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 22px;
  font-size: .8rem;
  color: #93a3cc;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Badge / seal chip (signature element reused) ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(176, 141, 63, .12);
  color: var(--gold);
  border: 1px solid rgba(176, 141, 63, .35);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .03em;
}

/* ---------- Utility ---------- */
.page-hero {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  color: var(--navy);
  font-size: clamp(2rem, 3.6vw, 2.8rem);
}

.page-hero p {
  max-width: 60ch;
  font-size: 1.05rem;
}

.center {
  text-align: center;
}

.mt-lg {
  margin-top: 48px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media(max-width:760px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}