/* ============================================================
   GALLERY, CTA, FOOTER — Tasks 9, 10, 11
   ============================================================ */

/* ── Gallery Section ── */
.tan-gallery {
  padding: 80px 0;
  background: #fff;
}
.tan-gallery__container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 40px;
}
.tan-gallery__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
}
.tan-gallery__header-left { flex: 1; }
.tan-gallery__heading {
  font-size: clamp(1.55rem, 2.8vw, 2.1rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin: 0;
  font-family: var(--font-family-primary);
}

/* Masonry gallery — 3 CSS columns */
.tan-gallery__masonry {
  columns: 3;
  column-gap: 14px;
}
.tan-gallery__masonry-item {
  break-inside: avoid;
  margin-bottom: 14px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}
.tan-gallery__masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .45s ease;
}
.tan-gallery__masonry-item:hover img { transform: scale(1.06); }

/* Keep old classes harmless */
.tan-gallery__grid, .tan-gallery__stacked,
.tan-gallery__item, .tan-gallery__item--large,
.tan-gallery__item--medium { display: none; }


/* ── CTA / 24-7 Section ── */
.tan-cta {
  padding: 72px 0;
  background: #f8f9fa;
}
.tan-cta__container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}
.tan-cta__inner {
  display: flex;
  align-items: center;
  gap: 60px;
}
.tan-cta__image {
  flex: 0 0 320px;
  height: 280px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
}
.tan-cta__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tan-cta__text { flex: 1; }
.tan-cta__text .tan-section-pill { margin-bottom: 12px; }
.tan-cta__heading {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 12px;
  font-family: var(--font-family-primary);
  line-height: 1.2;
}
.tan-cta__description {
  font-size: .95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 0 28px;
}
.tan-cta__text .tan-main-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--secondary-color);
  color: #fff;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.tan-cta__text .tan-main-button:hover {
  background: var(--secondary-dark, #2589c0);
  transform: translateY(-2px);
  color: #fff;
}

/* ── Footer ── */
.tan-footer {
  font-family: var(--font-family-primary);
}
.tan-footer__container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Top section */
.tan-footer__top {
  background: #1a1a2e;
  padding: 56px 0 40px;
}
.tan-footer__columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.tan-footer__col-heading {
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.tan-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tan-footer__links li a {
  font-size: .84rem;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  line-height: 1.5;
  transition: color .2s;
}
.tan-footer__links li a:hover { color: var(--primary-color); }

/* Bottom section */
.tan-footer__bottom {
  background: #141426;
  padding: 32px 0;
}
.tan-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.tan-footer__info {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.tan-footer__info-block h4 {
  font-size: .78rem;
  font-weight: 700;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin: 0 0 4px;
}
.tan-footer__info-block p {
  font-size: .84rem;
  color: rgba(255,255,255,.75);
  margin: 0;
}
.tan-footer__social {
  display: flex;
  gap: 10px;
}
.tan-footer__social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  transition: background .2s, color .2s;
}
.tan-footer__social a svg { width: 17px; height: 17px; }
.tan-footer__social a:hover { background: var(--primary-color); color: #fff; }

/* Copyright strip */
.tan-footer__copyright {
  background: #0f0f1e;
  padding: 14px 0;
  text-align: center;
}
.tan-footer__copyright p {
  font-size: .8rem;
  color: rgba(255,255,255,.45);
  margin: 0;
}

/* ── Responsive ── */
@media (max-width: 1200px) {
  .tan-footer__columns { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .tan-gallery__container,
  .tan-cta__container,
  .tan-footer__container { padding: 0 24px; }
  .tan-cta__inner { gap: 36px; }
  .tan-cta__image { flex-basis: 260px; }
}
@media (max-width: 768px) {
  .tan-gallery__masonry { columns: 2; }
  .tan-cta__inner { flex-direction: column; gap: 28px; }
  .tan-cta__text { order: 1; }
  .tan-cta__image { order: 2; flex-basis: auto; width: 100%; height: 220px; }
  .tan-footer__info { gap: 24px; }
}
@media (max-width: 640px) {
  .tan-gallery,
  .tan-cta { padding: 48px 0; }
  .tan-gallery__container,
  .tan-cta__container,
  .tan-footer__container { padding: 0 16px; }
  .tan-gallery__masonry { columns: 2; }
  .tan-gallery__header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .tan-footer__columns { grid-template-columns: 1fr; gap: 24px; }
  .tan-footer__bottom-inner { flex-direction: column; align-items: flex-start; }
  .tan-footer__info { flex-direction: column; gap: 16px; }
}
