/* ===== Design Tokens ===== */
:root {
  --color-primary: #198cac;
  --color-gold: #daa520;
  --color-whatsapp: #25D366;
  --color-dark: #0b2530;
  --color-black: #000;
  --color-white: #fff;
  --color-muted: #aaa;
  --color-bg-light: #f7f9fc;
  --color-border: rgba(255, 255, 255, .15);
  --color-card-bg: rgba(255, 255, 255, .04);
  --color-card-border: rgba(255, 255, 255, .06);
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --radius: 18px;
  --maxw: 1180px;
}

/* ===== Reset ===== */
* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none
}

img {
  max-width: 100%;
  display: block
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px
}

/* ===== Preloader ===== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0b2530 0%, #0d3b4f 50%, #0b2530 100%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .5s ease, visibility .5s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-inner {
  text-align: center;
}

.preloader-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 20px;
  animation: preloader-pulse 1.2s ease-in-out infinite;
}

.preloader-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(218, 165, 32, .2);
  border-top-color: var(--color-gold);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin .8s linear infinite;
}

.preloader-text {
  color: var(--color-gold);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 3px;
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

@keyframes preloader-pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.1);
    opacity: .7;
  }
}

/* ===== Scroll Reveal ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Skip Link ===== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 8px 16px;
  z-index: 100;
  font-weight: 600;
  transition: top .2s ease;
}

.skip-link:focus {
  top: 0
}

/* ===== Header ===== */
header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 60;
  transition: all .28s ease;
}

header.transparent {
  background: transparent;
  border-bottom: none
}

header.solid {
  background: var(--color-white);
  border-bottom: 1px solid rgba(10, 10, 10, .06);
  box-shadow: 0 6px 20px rgba(2, 6, 23, .12);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0
}

header .brand {
  display: flex;
  align-items: center;
  gap: .6rem
}

header .brand .brand-text {
  font-weight: 700
}

header .brand .logo {
  width: 36px;
  height: 36px;
}

header .brand .logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

header.transparent .brand-text {
  color: var(--color-white)
}

header.solid .brand-text {
  color: var(--color-dark)
}

.menu {
  display: flex;
  gap: 18px;
  align-items: center
}

.menu a {
  font-weight: 600;
  transition: color .2s ease, opacity .2s ease
}

.menu a:hover,
.menu a:focus {
  opacity: 0.7
}

header.transparent .menu a {
  color: var(--color-white)
}

header.solid .menu a {
  color: var(--color-primary)
}

.whatsapp-link {
  color: var(--color-whatsapp) !important
}

/* ===== Hamburger ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 70;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all .3s ease;
}

header.solid .hamburger span {
  background: var(--color-dark)
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px)
}

.hamburger.active span:nth-child(2) {
  opacity: 0
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px)
}

/* ===== Hero ===== */
.hero {
  height: 100vh;
  position: relative;
  overflow: hidden
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -2;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: -1;
}

.hero-content {
  position: relative;
  color: var(--color-white);
  text-align: center;
  top: 40%;
  transform: translateY(-40%);
}

.ts {
  font-size: 65px;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif
}

.hero-gold {
  color: gold
}

.hero-white {
  color: var(--color-white)
}

.hero-tagline {
  color: lightblue
}

/* ===== Utilities ===== */
.indent-text {
  text-indent: 2em
}

.muted {
  text-align: justify;
  margin-top: 12px
}

/* ===== Sections ===== */
section {
  padding: 64px 0
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px
}

.section-head h2 {
  font-size: clamp(20px, 2.4vw, 32px);
  margin: 0
}

.divider {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, .08);
  margin: 0
}

/* ===== Cards ===== */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}

.card {
  flex: 0 1 calc((100% - 36px) / 3);
  min-width: 250px;
  max-width: 340px;
  background: var(--color-white);
  padding: 18px;
  border-radius: 12px;
  border: 1px solid #e8ecf0;
  transition: transform .3s ease, box-shadow .3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 12px;
  cursor: pointer;
  transition: transform .3s ease;
}

.card img:hover {
  transform: scale(1.03)
}

.card h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--color-black);
  text-align: center
}

/* Card icon (for motto cards) */
.card-icon {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 8px
}

/* Card accent borders */
.card-accent-1 {
  border-top: 4px solid var(--color-primary)
}

.card-accent-2 {
  border-top: 4px solid var(--color-gold)
}

.card-accent-3 {
  border-top: 4px solid var(--color-whatsapp)
}

/* Product card gradient overlay */
.card-product {
  position: relative;
  overflow: hidden
}

.card-product::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(transparent, rgba(255, 255, 255, .9));
  pointer-events: none;
  border-radius: 0 0 12px 12px;
}

/* ===== Before & After Gallery ===== */
.ba-gallery {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.ba-item {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
}

.ba-card {
  position: relative;
  flex: 1;
  max-width: 380px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .1);
}

.ba-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.ba-label {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .5px;
}

.ba-before .ba-label {
  background: #e74c3c;
  color: #fff
}

.ba-after .ba-label {
  background: var(--color-whatsapp);
  color: #fff
}

.ba-arrow {
  font-size: 2.5rem;
  color: var(--color-primary);
  font-weight: 900;
  flex-shrink: 0;
  animation: arrow-bounce 1.5s ease infinite;
}

@keyframes arrow-bounce {

  0%,
  100% {
    transform: translateX(0)
  }

  50% {
    transform: translateX(8px)
  }
}

/* ===== Testimonials ===== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--color-white);
  border-radius: 16px;
  padding: 28px;
  border: 1px solid #e8ecf0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
  transition: transform .3s ease, box-shadow .3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .12);
}

.testimonial-stars {
  color: #f5a623;
  font-size: 1.2rem;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.testimonial-text {
  color: #444;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-gold));
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-role {
  display: block;
  color: var(--color-muted);
  font-size: .85rem;
  margin-top: 2px;
}

/* ===== Contact Form ===== */
.contact-wrapper {
  max-width: 680px;
  margin: 0 auto;
}

.contact-form {
  background: var(--color-white);
  border-radius: 16px;
  padding: 36px;
  border: 1px solid #e8ecf0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
  font-size: .9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e4e8;
  border-radius: 10px;
  font-family: inherit;
  font-size: .95rem;
  transition: border-color .2s ease, box-shadow .2s ease;
  background: #fafbfc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 174, 239, .15);
  background: #fff;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px
}

.btn-submit {
  width: 100%;
  padding: 14px;
  font-size: 1.05rem;
  background: linear-gradient(135deg, var(--color-primary), #0090c5);
  border: none;
  cursor: pointer;
}

.btn-submit:hover {
  background: linear-gradient(135deg, #0090c5, var(--color-primary));
  box-shadow: 0 8px 24px rgba(0, 174, 239, .3);
}

.form-success {
  text-align: center;
  padding: 40px;
  background: var(--color-white);
  border-radius: 16px;
  border: 1px solid #e8ecf0;
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  color: #fff;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

/* ===== Lightbox ===== */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .9);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 20px;
}

.lightbox.open {
  display: flex
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 10001;
  transition: transform .2s;
}

.lightbox-close:hover {
  transform: scale(1.2)
}

.lightbox-img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
  animation: lightbox-zoom .3s ease;
}

.lightbox-caption {
  color: #ccc;
  margin-top: 12px;
  font-size: .95rem;
}

@keyframes lightbox-zoom {
  from {
    transform: scale(.8);
    opacity: 0
  }

  to {
    transform: scale(1);
    opacity: 1
  }
}

/* ===== Floating WhatsApp ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: var(--color-whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, .4);
  z-index: 50;
  transition: transform .3s ease, box-shadow .3s ease;
  animation: wa-pulse 2s ease infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, .6);
}

.whatsapp-tooltip {
  position: absolute;
  right: 72px;
  background: #333;
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: .85rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1
}

@keyframes wa-pulse {

  0%,
  100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, .4)
  }

  50% {
    box-shadow: 0 4px 30px rgba(37, 211, 102, .6), 0 0 0 10px rgba(37, 211, 102, .1)
  }
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .cards {
    justify-content: center
  }

  .card {
    flex: 0 1 calc(50% - 10px);
    max-width: none
  }

  .testimonial-grid {
    grid-template-columns: 1fr
  }
}

@media (max-width: 640px) {
  .hamburger {
    display: flex
  }

  .menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .95);
    justify-content: center;
    align-items: center;
    gap: 28px;
    z-index: 65;
  }

  .menu.open {
    display: flex
  }

  .menu a {
    color: var(--color-white) !important;
    font-size: 1.3rem
  }

  .menu a:hover,
  .menu a:focus {
    color: var(--color-primary) !important;
    opacity: 1
  }

  .cards {
    justify-content: center
  }

  .card {
    flex: 0 1 100%;
    max-width: none
  }

  .ts {
    font-size: 36px
  }

  .stats {
    grid-template-columns: 1fr
  }

  .ba-item {
    flex-direction: column
  }

  .ba-arrow {
    transform: rotate(90deg)
  }

  @keyframes arrow-bounce {

    0%,
    100% {
      transform: rotate(90deg) translateX(0)
    }

    50% {
      transform: rotate(90deg) translateX(8px)
    }
  }

  .form-row {
    grid-template-columns: 1fr
  }

  .contact-form {
    padding: 24px
  }

  .testimonial-grid {
    grid-template-columns: 1fr
  }
}

/* ===== Scrolling gallery ===== */
.scroll-gallery {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 20px 0
}

.scroll-track {
  display: flex;
  width: max-content;
  animation: scroll-left 25s linear infinite
}

.scroll-track .shot {
  flex: 0 0 auto;
  width: 250px;
  margin: 0 12px
}

.scroll-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px
}

@keyframes scroll-left {
  0% {
    transform: translateX(0)
  }

  100% {
    transform: translateX(-50%)
  }
}

/* ===== Projects ===== */
.projects {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width:900px) {
  .projects {
    grid-template-columns: 1fr
  }
}

.project {
  border: 1px solid #e8ecf0;
  border-radius: var(--radius);
  padding: 16px;
  background: var(--color-white);
}

/* ===== CTA Section ===== */
.cta-section {
  text-align: center;
  margin-top: 32px
}

.cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 16px 0
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 14px;
  background: var(--color-whatsapp);
  color: var(--color-white);
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}

.btn:hover,
.btn:focus {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(37, 211, 102, .4);
}

/* ===== Stats ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px
}

.stat {
  border: 1px dashed #d0d5dc;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--color-white);
  text-align: center;
}

.stat .num {
  font-size: 34px;
  font-weight: 900;
  color: var(--color-primary)
}

.stat .lbl {
  color: #555
}

/* ===== Compact Our Team Bar ===== */
.our-team-bar {
  background: var(--color-white);
  border: 1px solid #e8ecf0;
  border-radius: 14px;
  padding: 14px 20px;
  margin-top: 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.our-team-bar-title {
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-primary);
  margin: 0 0 12px;
  text-align: center;
  width: 100%;
}

.our-team-bar-members {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.team-bar-member {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 200px;
}

.team-bar-photo {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0,0,0,.15);
  overflow: hidden;
}

/* When showing a real photo */
.team-bar-photo-img {
  background: #e8ecf0;
}

.team-bar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.team-bar-initial {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
}

.team-bar-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.team-bar-post {
  font-size: .72rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: .4px;
}

.team-bar-name {
  font-size: .88rem;
  font-weight: 700;
  color: var(--color-dark);
}

.team-bar-divider {
  width: 1px;
  height: 44px;
  background: #e0e4e8;
  margin: 0 20px;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .our-team-bar-members {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .team-bar-divider {
    width: 100%;
    height: 1px;
    margin: 0;
  }
}

/* ===== Footer ===== */
footer {
  background: #1589a3;
  color:  #FFFFFF;
  padding: 40px 0 20px 0
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

.footer-left {
  flex: 1;
  min-width: 250px
}

.footer-brand {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px
}

.footer-logo {
  width: 40px;
  height: 40px
}

.footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain
}

.footer-desc {
  color: #000000;
  margin-bottom: 12px
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
  color: #000000;
  line-height: 1.8
}

.footer-contact a {
  transition: color .2s ease
}

.footer-contact a:hover,
.footer-contact a:focus {
  color: var(--color-primary)
}

.footer-right {
  flex: 1;
  min-width: 300px;
  max-width: 500px
}

.footer-right iframe {
  width: 100%;
  height: 250px;
  border: 0;
  border-radius: 8px
}

.footer-bottom {
  padding-top: 15px;
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .2);
  text-align: center;
  color: #777;
}

/* ===== Team Section (3-column) ===== */
.team-section {
  display: flex;
  gap: 0;
  align-items: stretch;
  min-height: 420px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--color-bg-light);
}

/* Side columns (cycling images) */
.team-side {
  flex: 0 0 220px;
  position: relative;
  overflow: hidden;
}

.team-slideshow {
  position: relative;
  width: 100%;
  height: 100%;
}

.team-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.team-slide.active {
  opacity: 1;
}

/* Center column */
.team-center {
  flex: 1;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Large 2-card layout for team */
.team-row-main {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 12px;
}

.team-card-large {
  background: var(--color-white);
  border-radius: 16px;
  padding: 24px 20px 20px;
  border: 1px solid #e8ecf0;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  width: 170px;
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease;
}

.team-card-large:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0,0,0,.14);
}

.team-card-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-primary);
  margin: 0 0 12px;
}

.team-photo-lg {
  width: 100px;
  height: 100px;
  margin: 0 auto 14px;
}

.team-photo-lg .team-initial {
  font-size: 2.6rem;
}

.team-name-lg {
  font-size: .88rem;
  font-weight: 800;
  margin: 0 0 4px;
  color: var(--color-dark);
}

.team-heading {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 900;
  color: var(--color-dark);
  margin: 0;
  text-align: center;
  letter-spacing: 1px;
}

.team-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.team-member {
  text-align: center;
  background: var(--color-white);
  border-radius: 14px;
  padding: 18px 16px 14px;
  border: 1px solid #e8ecf0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
  width: 150px;
  transition: transform .3s ease, box-shadow .3s ease;
}

.team-member:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
}

.team-member-sm {
  width: 130px;
  padding: 14px 10px 10px;
}

.team-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 10px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
  overflow: hidden;
}

.team-photo-sm {
  width: 64px;
  height: 64px;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-initial {
  color: var(--color-white);
  font-size: 2rem;
  font-weight: 800;
}

.team-photo-sm .team-initial {
  font-size: 1.5rem;
}

.team-name {
  font-size: .8rem;
  font-weight: 700;
  margin: 0 0 2px;
  color: var(--color-dark);
  letter-spacing: .3px;
}

.team-member-sm .team-name {
  font-size: .72rem;
}

.team-role {
  color: var(--color-muted);
  font-size: .75rem;
  font-style: italic;
  margin: 0;
}

.team-member-sm .team-role {
  font-size: .68rem;
}

.team-bottom-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  width: 100%;
}

.team-group {
  text-align: center;
}

/* ===== 3-Panel: Map + Reviews + Contact ===== */
.rc-three-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

/* --- Left: Map Column --- */
.rc-map-col {
  background: var(--color-white);
  border: 1px solid #e8ecf0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
  display: flex;
  flex-direction: column;
}

.rc-map-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: #fff;
  border-bottom: 2px solid #00AEEF;
  color: var(--color-dark);
}

.rc-map-header h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--color-dark);
}

.rc-map-header p {
  margin: 2px 0 0;
  font-size: .78rem;
  color: #666;
}

.rc-map-pin {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.rc-map-body {
  display: flex;
  flex: 1;
  min-height: 360px;
}

/* Mini sidebar inside the map panel */
.map-sidebar {
  width: 130px;
  flex-shrink: 0;
  background: #f7f9fc;
  border-right: 1px solid #e8ecf0;
  overflow-y: auto;
  padding: 10px 8px;
}

.map-sidebar-title {
  color: var(--color-primary);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 8px;
  padding: 0 4px;
}

.map-loc-item {
  padding: 8px 10px;
  margin-bottom: 6px;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  border-left: 3px solid transparent;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  transition: background .2s, border-color .2s, box-shadow .2s;
}

.map-loc-item:hover,
.map-loc-item.active {
  background: #e8f7fd;
  border-left-color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(0,174,239,.15);
}

.map-loc-item strong {
  display: block;
  color: var(--color-dark);
  font-size: .72rem;
  line-height: 1.3;
}

.map-loc-item small {
  color: #999;
  font-size: .65rem;
}

#projectMap {
  flex: 1;
  min-width: 0;
}

/* Leaflet popup image slider */
.map-popup-slider {
  width: 220px;
  height: 140px;
  position: relative;
  overflow: hidden;
  background: #000;
  border-radius: 0;
}

.map-popup-slider img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .5s ease;
}

.map-popup-slider img.active {
  opacity: 1;
}

.map-popup-label {
  padding: 8px 12px;
  text-align: center;
  font-weight: 700;
  font-size: .85rem;
  background: var(--color-white);
  color: var(--color-dark);
}

/* --- Right Column --- */
.rc-right-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rc-box-title {
  font-size: .82rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--color-dark);
}

.rc-reviews-box {
  background: var(--color-white);
  border: 1px solid #e8ecf0;
  border-radius: 14px;
  padding: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  flex: 1;
  overflow: hidden;
}

/* ── 2-column layout ── */
.reviews-two-col {
  display: flex;
  flex-direction: row;
  height: 100%;
}

/* Left: review list */
.reviews-list-col {
  flex: 1;
  padding: 12px 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Vertical divider */
.reviews-col-divider {
  width: 1px;
  background: #e8ecf0;
  flex-shrink: 0;
  margin: 12px 0;
}

/* Right: add comment form */
.add-comment-col {
  width: 180px;
  flex-shrink: 0;
  padding: 12px 12px;
  background: #f7f9fc;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Avatar preview + name input row */
.reviewer-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reviewer-avatar-preview {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), #0090c5);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .3s;
}

.reviewer-input-row input {
  flex: 1;
  min-width: 0;
  padding: 6px 8px;
  border: 1.5px solid #e0e4e8;
  border-radius: 7px;
  font-size: .78rem;
  font-family: inherit;
  background: #fff;
  transition: border-color .2s;
}
.reviewer-input-row input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(0,174,239,.12);
}

.add-comment-col textarea {
  width: 100%;
  padding: 7px 8px;
  border: 1.5px solid #e0e4e8;
  border-radius: 7px;
  font-family: inherit;
  font-size: .78rem;
  background: #fff;
  resize: none;
  flex: 1;
  transition: border-color .2s;
}
.add-comment-col textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(0,174,239,.12);
}

.review-char-line {
  text-align: right;
  margin-top: -4px;
}

/* Star selector */
.star-selector {
  display: flex;
  gap: 3px;
  align-items: center;
}
.star-btn {
  font-size: 1.25rem;
  color: #d0d5dc;
  cursor: pointer;
  transition: color .15s, transform .1s;
  user-select: none;
  line-height: 1;
}
.star-btn:hover,
.star-btn.active { color: #f5a623; transform: scale(1.2); }

/* Post Review button */
.btn-review-submit {
  background: linear-gradient(135deg, var(--color-primary), #0090c5);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 0;
  width: 100%;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
  letter-spacing: .3px;
}
.btn-review-submit:hover:not(:disabled) { opacity: .88; transform: translateY(-1px); }
.btn-review-submit:disabled { opacity: .6; cursor: not-allowed; }

/* Form feedback message */
.review-form-msg {
  font-size: .72rem;
  min-height: 1em;
  text-align: center;
}
.review-form-msg.success { color: #25D366; font-weight: 600; }
.review-form-msg.error   { color: #e74c3c; font-weight: 600; }

/* Char count */
.review-char-count { font-size: .68rem; color: #bbb; }

/* Live review cards */
.review-live {
  border-top: 1px dashed #edf0f4;
  padding-top: 6px;
  animation: fadeIn .4s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}

.review-stars-live { color: #f5a623; font-size: .72rem; }

.review-date {
  font-size: .62rem;
  color: #bbb;
  margin-left: auto;
  white-space: nowrap;
}

.reviews-empty-msg {
  font-size: .75rem;
  color: #bbb;
  text-align: center;
  padding: 6px 0;
  margin: 0;
}

/* Responsive: stack on small screens */
@media (max-width: 700px) {
  .reviews-two-col { flex-direction: column; }
  .add-comment-col { width: 100%; }
  .reviews-col-divider { width: 100%; height: 1px; margin: 0; }
}

/* Header row: title + Add Review button */
.rc-reviews-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.add-review-btn {
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 5px 11px;
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .15s;
  white-space: nowrap;
}
.add-review-btn:hover { background: #0090c5; transform: translateY(-1px); }

/* Add Review collapsible form */
.add-review-form {
  background: #f7f9fc;
  border: 1px solid #e0e4e8;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 6px;
  animation: fadeSlideDown .25s ease;
}
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.add-review-form input,
.add-review-form textarea {
  width: 100%;
  padding: 7px 10px;
  border: 1.5px solid #e0e4e8;
  border-radius: 7px;
  font-family: inherit;
  font-size: .82rem;
  background: #fff;
  transition: border-color .2s;
  resize: none;
}
.add-review-form input:focus,
.add-review-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0,174,239,.12);
}

/* Star selector */
.star-selector {
  display: flex;
  align-items: center;
  gap: 4px;
}
.star-btn {
  font-size: 1.4rem;
  color: #ccc;
  cursor: pointer;
  transition: color .15s, transform .1s;
  user-select: none;
  line-height: 1;
}
.star-btn:hover,
.star-btn.active { color: #f5a623; transform: scale(1.15); }
.star-hint {
  font-size: .72rem;
  color: #999;
  margin-left: 6px;
}

/* Form actions row */
.review-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.btn-review-submit {
  background: linear-gradient(135deg, var(--color-primary), #0090c5);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 7px 16px;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
}
.btn-review-submit:hover:not(:disabled) { opacity: .88; transform: translateY(-1px); }
.btn-review-submit:disabled { opacity: .6; cursor: not-allowed; }

.review-char-count {
  font-size: .7rem;
  color: #aaa;
}

/* Form status message */
.review-form-msg {
  font-size: .78rem;
  min-height: 1.2em;
  border-radius: 6px;
  padding: 2px 0;
}
.review-form-msg.success { color: #25D366; font-weight: 600; }
.review-form-msg.error   { color: #e74c3c; font-weight: 600; }

/* Live review cards from Firestore */
.review-live {
  border-top: 1px dashed #e8ecf0;
  padding-top: 7px;
  animation: fadeIn .4s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.review-date {
  font-size: .65rem;
  color: #bbb;
  margin-left: auto;
  white-space: nowrap;
}

.reviews-empty-msg {
  font-size: .78rem;
  color: #aaa;
  text-align: center;
  padding: 8px 0;
  margin: 0;
}

/* Shrink review items inside the box */
.rc-reviews-box .review-mini {
  padding: 8px 12px;
  border-radius: 9px;
}

.rc-reviews-box .review-mini-top {
  margin-bottom: 4px;
}

.rc-reviews-box .review-mini-top .testimonial-avatar {
  width: 28px;
  height: 28px;
  font-size: .75rem;
}

.rc-reviews-box .review-mini-top strong {
  font-size: .78rem;
}

.rc-reviews-box .review-mini-text {
  font-size: .76rem;
  line-height: 1.4;
  margin: 0;
}

.rc-reviews-box .testimonial-stars-sm {
  font-size: .7rem;
}

.rc-contact-box {
  background: var(--color-white);
  border: 1px solid #e8ecf0;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Shrink contact form inputs to fit */
.rc-contact-box .contact-form-compact {
  gap: 6px;
  flex: 1;
}

.rc-contact-box .contact-form-compact input,
.rc-contact-box .contact-form-compact select {
  padding: 7px 10px;
  font-size: .8rem;
}

.rc-contact-box .contact-form-compact textarea {
  padding: 7px 10px;
  font-size: .8rem;
  min-height: 48px;
  resize: none;
}

.rc-contact-box .btn-submit {
  padding: 9px;
  font-size: .82rem;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .rc-three-panel {
    grid-template-columns: 1fr;
  }
  .rc-map-body {
    height: 360px;
  }
}

@media (max-width: 640px) {
  .map-sidebar {
    width: 100px;
  }
  .rc-map-body {
    height: 300px;
  }
}

/* keep old classes for backward compat */
.reviews-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review-mini {
  background: var(--color-white);
  border: 1px solid #e8ecf0;
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
}

.review-mini-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.review-mini-top .testimonial-avatar {
  width: 36px;
  height: 36px;
  font-size: .95rem;
}

.testimonial-stars-sm {
  display: block;
  color: #f5a623;
  font-size: .8rem;
  letter-spacing: 1px;
}

.review-mini-text {
  margin: 0;
  color: #555;
  font-size: .88rem;
  line-height: 1.5;
  font-style: italic;
}

.contact-col {
  background: var(--color-white);
  border: 1px solid #e8ecf0;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
}

.contact-form-compact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-form-compact input,
.contact-form-compact select,
.contact-form-compact textarea {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #e0e4e8;
  border-radius: 8px;
  font-family: inherit;
  font-size: .9rem;
  transition: border-color .2s ease, box-shadow .2s ease;
  background: #fafbfc;
}

.contact-form-compact input:focus,
.contact-form-compact select:focus,
.contact-form-compact textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 174, 239, .15);
  background: #fff;
}

.contact-form-compact textarea {
  resize: vertical;
  min-height: 70px
}

.contact-form-compact .btn-submit {
  width: 100%;
  padding: 12px;
  font-size: .95rem;
}

@media (max-width: 640px) {
  .reviews-contact-grid {
    grid-template-columns: 1fr
  }

  .team-side {
    display: none
  }

  .team-section {
    min-height: auto;
    border-radius: 12px
  }

  .team-center {
    padding: 20px 12px
  }

  .team-row {
    gap: 12px
  }

  .team-member {
    width: 130px
  }

  .team-member-sm {
    width: 110px
  }
}

/* ================================================================
   MAP IMPROVEMENTS — Dark theme + pulse markers + branded popup
   ================================================================ */

/* ── Animated pulse marker ─────────────────────────────────────── */
.mr-pin-wrap {
  position: relative;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mr-pin-dot {
  width: 18px;
  height: 18px;
  border-radius: 50% 50% 50% 0;
  background: linear-gradient(135deg, #00AEEF, #0077aa);
  border: 2.5px solid #daa520;
  transform: rotate(-45deg);
  box-shadow: 0 2px 8px rgba(0,174,239,.6);
  position: relative;
  z-index: 2;
  transition: transform .2s, background .2s;
}

/* Active (selected) marker — gold */
.mr-pin-active .mr-pin-dot {
  background: linear-gradient(135deg, #daa520, #b8860b);
  border-color: #fff;
  transform: rotate(-45deg) scale(1.25);
}

.mr-pin-pulse {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 174, 239, 0.25);
  animation: mapPulse 2s ease-out infinite;
  z-index: 1;
}

.mr-pin-active .mr-pin-pulse {
  background: rgba(218, 165, 32, 0.3);
}

@keyframes mapPulse {
  0%   { transform: scale(0.4); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* ── Fit-All button ────────────────────────────────────────────── */
.map-fitall-btn {
  background: #fff;
  color: #00AEEF;
  border: 1.5px solid #00AEEF;
  border-radius: 8px;
  width: 34px;
  height: 34px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  transition: background .2s, color .2s;
  line-height: 1;
}
.map-fitall-btn:hover {
  background: #00AEEF;
  color: #fff;
}

/* ── Leaflet popup override — white branded ────────────────────── */
.mr-map-popup .leaflet-popup-content-wrapper {
  background: #fff;
  border: 1.5px solid #00AEEF;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0,0,0,.15);
  padding: 0;
  overflow: hidden;
}

.mr-map-popup .leaflet-popup-tip {
  background: #fff;
}

.mr-map-popup .leaflet-popup-content {
  margin: 0;
  width: 220px !important;
}

.mr-popup-inner {
  overflow: hidden;
  border-radius: 12px;
}

/* Popup image slider */
.mr-map-popup .map-popup-slider {
  position: relative;
  width: 100%;
  height: 130px;
  overflow: hidden;
  background: #eef2f5;
}

.mr-map-popup .map-popup-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .5s ease;
}

.mr-map-popup .map-popup-slider img.active {
  opacity: 1;
}

/* Popup footer */
.mr-popup-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  background: #fff;
  color: #0b2530;
  font-size: .82rem;
  font-weight: 600;
  border-top: 2px solid #00AEEF;
}

.mr-popup-dot {
  font-size: .9rem;
}

/* Leaflet close button tweak */
.mr-map-popup .leaflet-popup-close-button {
  color: #00AEEF !important;
  font-size: 18px !important;
  top: 4px !important;
  right: 6px !important;
}

/* Zoom controls — white theme */
.leaflet-bar a {
  background: #fff !important;
  color: #00AEEF !important;
  border-color: #e0e4e8 !important;
  font-weight: 700 !important;
}
.leaflet-bar a:hover {
  background: #00AEEF !important;
  color: #fff !important;
}

/* Attribution light */
.leaflet-control-attribution {
  background: rgba(255,255,255,.90) !important;
  color: #888 !important;
  font-size: .62rem !important;
  border-radius: 4px !important;
}
.leaflet-control-attribution a { color: #00AEEF !important; }

/* css Sosial media */
.social-container {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #f1f1f1;
  color: #333;
  border-radius: 50%;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}

.social-icon:hover {
  background-color: #007bff;
  color: #fff;
}
