/* Homepage redesign — light neutral system with teal/gold accents */

:root {
  --cip-home-ink: #1f2d3d;
  --cip-home-sage: #0091a0;
  --cip-home-sage-dark: #526b63;
  --cip-home-sage-soft: #eef3f0;
  --cip-home-sand: #61b37c;
  --cip-home-sand-soft: #f7f2e8;
}

.cip-section__eyebrow {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: var(--cip-home-sage);
  font-size: 0.72rem;
  font-weight: 800;
}

.cip-section__lead {
  max-width: 34rem;
  margin: 0.45rem 0 0;
  color: var(--cip-text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

.cip-section__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.cip-section__link svg {
  width: 15px;
  height: 15px;
}

/* Hero */
.cip-hero {
  position: relative;
  min-height: min(78vh, 620px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: #46544c;
}

.cip-hero__media {
  position: absolute;
  inset: 0;
}

.cip-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: cipHeroZoom 18s ease-in-out infinite alternate;
}

.cip-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(42, 49, 44, 0.58) 0%, rgba(42, 49, 44, 0.3) 48%, rgba(42, 49, 44, 0.16) 100%),
    linear-gradient(180deg, rgba(42, 49, 44, 0.1) 0%, rgba(42, 49, 44, 0.58) 100%);
}

.cip-hero__content {
  position: relative;
  z-index: 1;
  max-width: 46rem;
  padding: 5rem 0 7.75rem;
  animation: cipFadeUp 0.8s ease both;
}

.cip-hero__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
  padding: 0.35rem 0.7rem;
  color: #1f2d3d;
  border: 1px solid rgba(179, 154, 97, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.72rem;
  font-weight: 800;
}

.cip-hero__brand svg {
  width: 14px;
  height: 14px;
}

.cip-hero__title {
  margin: 0 0 0.8rem;
  color: #fff;
  font-size: clamp(2rem, 4.4vw, 3.15rem);
  line-height: 1.35;
  text-wrap: balance;
}

.cip-hero__subtitle {
  max-width: 34rem;
  margin: 0 0 1.35rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.02rem;
  line-height: 1.9;
}

.cip-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.cip-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 36rem;
  list-style: none;
}

.cip-hero__stats li {
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.cip-hero__stats strong {
  display: block;
  margin-bottom: 0.15rem;
  color: #fff;
  font-size: 0.82rem;
}

.cip-hero__stats span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.7rem;
}

.cip-hero .cip-btn--warm,
.cip-cta-band .cip-btn--warm {
  color: var(--cip-home-ink);
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(48, 56, 51, 0.12);
}

.cip-hero .cip-btn--warm:hover,
.cip-cta-band .cip-btn--warm:hover {
  color: var(--cip-home-ink);
  background: #c9d4ea;
}

/* Search bar */
.cip-search-bar {
  position: relative;
  z-index: 2;
  margin-top: -3.25rem;
  margin-bottom: 0.25rem;
}

.cip-search-bar__panel {
  display: grid;
  grid-template-columns: minmax(150px, 0.9fr) repeat(4, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 0.8rem;
  padding: 1.05rem;
  border: 1px solid rgba(34, 49, 42, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 18px 48px rgba(34, 49, 42, 0.12);
}

.cip-search-bar__intro {
  display: grid;
  gap: 0.15rem;
  padding: 0.35rem 0.2rem;
}

.cip-search-bar__eyebrow {
  color: var(--cip-home-sage);
  font-size: 0.66rem;
  font-weight: 800;
}

.cip-search-bar__intro strong {
  color: var(--cip-text);
  font-size: 0.88rem;
  line-height: 1.5;
}

.cip-search-bar label {
  display: grid;
  gap: 0.35rem;
  color: var(--cip-text-muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.cip-search-bar select,
.cip-search-bar input {
  width: 100%;
  min-height: 48px;
  padding: 0.55rem 0.85rem;
  color: var(--cip-text);
  border: 1px solid var(--cip-border);
  border-radius: 12px;
  background: #f8faf9;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cip-search-bar select:focus,
.cip-search-bar input:focus {
  border-color: var(--cip-home-sage);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(102, 128, 120, 0.1);
}

.cip-search-bar__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding-inline: 1.35rem;
  color: #fff;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cip-primary), #003a77);
  box-shadow: 0 10px 22px rgba(82, 107, 99, 0.16);
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.cip-search-bar__submit:hover {
  background: #0091a0;
  transform: translateY(-1px);
}

/* Services */
.cip-services {
  padding-top: 3.5rem;
}

.cip-services__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.cip-service {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem;
  min-height: 108px;
  padding: 1rem;
  color: inherit;
  border: 1px solid rgba(34, 49, 42, 0.08);
  border-radius: 18px;
  background: linear-gradient(145deg, #fff, #f8fbfa);
  box-shadow: 0 8px 24px rgba(34, 49, 42, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cip-service:hover {
  color: inherit;
  border-color: rgba(102, 128, 120, 0.25);
  box-shadow: 0 14px 30px rgba(34, 49, 42, 0.08);
  transform: translateY(-3px);
}

.cip-service__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--cip-home-sage);
  border-radius: 14px;
  background: var(--cip-home-sage-soft);
}

.cip-service__icon svg,
.cip-service__arrow svg {
  width: 20px;
  height: 20px;
}

.cip-service__body {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.cip-service__body strong {
  font-size: 0.92rem;
}

.cip-service__body span {
  color: var(--cip-text-muted);
  font-size: 0.76rem;
  line-height: 1.65;
}

.cip-service__arrow {
  color: var(--cip-text-muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

.cip-service:hover .cip-service__arrow {
  color: var(--cip-home-sage);
  transform: translateX(-3px);
}

/* Tour cards */
.cip-tour-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(34, 49, 42, 0.08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(34, 49, 42, 0.045);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.cip-tour-card:hover {
  border-color: rgba(102, 128, 120, 0.24);
  box-shadow: 0 16px 36px rgba(34, 49, 42, 0.1);
  transform: translateY(-4px);
}

.cip-tour-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cip-surface-muted);
}

.cip-tour-card__media img,
.cip-tour-card__placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.cip-tour-card__placeholder {
  display: block;
  background: linear-gradient(135deg, #d7e3dc, #a9c7bc);
}

.cip-tour-card:hover .cip-tour-card__media img {
  transform: scale(1.05);
}

.cip-tour-card__badge {
  position: absolute;
  top: 0.8rem;
  inset-inline-end: 0.8rem;
  padding: 0.28rem 0.65rem;
  color: var(--cip-text);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.cip-tour-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1rem 1.05rem 1.1rem;
}

.cip-tour-card__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--cip-text-muted);
  font-size: 0.78rem;
}

.cip-tour-card__meta svg {
  width: 14px;
  height: 14px;
  color: var(--cip-home-sage);
}

.cip-tour-card__title {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.55;
}

.cip-tour-card__title a {
  color: inherit;
}

.cip-tour-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--cip-border);
}

.cip-tour-card__price {
  display: grid;
  gap: 0.1rem;
}

.cip-tour-card__price em {
  color: var(--cip-text-muted);
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 500;
}

.cip-tour-card__price b {
  color: var(--cip-home-ink);
  font-size: 0.95rem;
}

.cip-tour-card__cta {
  min-height: 38px;
  padding: 0.4rem 0.9rem;
  color: #fff;
  border-radius: 999px;
  background: var(--cip-home-sage);
  font-size: 0.8rem;
  font-weight: 700;
}

.cip-tour-card__cta:hover {
  color: #fff;
  background: var(--cip-primary);
}

.cip-tour-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

/* Destinations */
.cip-destinations {
  background: linear-gradient(180deg, #fff, #f6f7f8);
}

.cip-destinations__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.cip-destination {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  display: flex;
  align-items: end;
  color: #fff;
  border-radius: 18px;
  background: #2a3831;
}

.cip-destination::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 35%, rgba(20, 28, 24, 0.78));
}

.cip-destination__bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transition: transform 0.4s ease;
}

.cip-destination:hover .cip-destination__bg {
  transform: scale(1.06);
}

.cip-destination__content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 0.2rem;
  padding: 1.2rem;
}

.cip-destination__content strong {
  font-size: 1.05rem;
}

.cip-destination__content span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
}

/* Trust / story */
.cip-trust {
  padding-top: 4rem;
  padding-bottom: 4rem;
  background: #f6f7f8;
}

.cip-trust__layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.cip-trust__story {
  display: grid;
  align-content: start;
  gap: 0.85rem;
  padding: 1.6rem;
  border: 1px solid rgba(34, 49, 42, 0.08);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0, rgba(179, 154, 97, 0.09), transparent 14rem),
    linear-gradient(145deg, #fff, #f8faf8);
  box-shadow: 0 10px 28px rgba(34, 49, 42, 0.05);
}

.cip-trust__about {
  margin: 0;
  color: var(--cip-text-muted);
  font-size: 0.92rem;
  line-height: 1.95;
}

.cip-trust__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.cip-trust__item {
  display: grid;
  gap: 0.35rem;
  padding: 1.15rem;
  border: 1px solid rgba(34, 49, 42, 0.08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(34, 49, 42, 0.04);
}

.cip-trust__icon {
  width: 46px;
  height: 46px;
  margin-bottom: 0.25rem;
  display: grid;
  place-items: center;
  color: var(--cip-home-sage);
  border-radius: 14px;
  background: var(--cip-home-sage-soft);
}

.cip-trust__item strong {
  font-size: 0.92rem;
}

.cip-trust__item span {
  color: var(--cip-text-muted);
  font-size: 0.78rem;
  line-height: 1.7;
}

/* Testimonials */
.cip-testimonials {
  background: linear-gradient(180deg, #f5f8f6 0%, #fff 100%);
}

.cip-testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.cip-quote {
  display: grid;
  gap: 0.9rem;
  padding: 1.35rem;
  border: 1px solid rgba(34, 49, 42, 0.08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(34, 49, 42, 0.045);
}

.cip-quote__stars {
  color: var(--cip-home-sand);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.cip-quote__text {
  margin: 0;
  color: var(--cip-text-muted);
  font-size: 0.92rem;
  line-height: 1.9;
}

.cip-quote__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cip-quote__avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--cip-home-sage-dark);
  border-radius: 50%;
  background: var(--cip-home-sage-soft);
  font-weight: 800;
}

.cip-quote__author strong {
  display: block;
  font-size: 0.9rem;
}

.cip-quote__author span {
  color: var(--cip-text-muted);
  font-size: 0.76rem;
}

/* Final CTA */
.cip-cta-band {
  position: relative;
  overflow: hidden;
  padding: 2.75rem 0;
  color: var(--cip-text);
  background:
    radial-gradient(circle at 8% 20%, rgba(102, 128, 120, 0.06), transparent 18rem),
    radial-gradient(circle at 92% 80%, rgba(179, 154, 97, 0.07), transparent 16rem),
    linear-gradient(120deg, #f4f8f6, #fff8ea);
  border-top: 1px solid rgba(34, 49, 42, 0.06);
}

.cip-cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.6rem 1.75rem;
  border: 1px solid rgba(34, 49, 42, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 36px rgba(34, 49, 42, 0.06);
}

.cip-cta-band__eyebrow {
  display: inline-block;
  margin-bottom: 0.35rem;
  color: #75633d;
  font-size: 0.72rem;
  font-weight: 800;
}

.cip-cta-band h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
}

.cip-cta-band p {
  margin: 0;
  color: var(--cip-text-muted);
  font-size: 0.9rem;
}

.cip-cta-band__actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.cip-cta-band__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--cip-home-ink);
  font-weight: 800;
}

.cip-cta-band__phone svg {
  width: 18px;
  height: 18px;
  color: var(--cip-home-sage);
}

.cip-trust__story .cip-btn--primary {
  color: #fff;
  background: var(--cip-home-sage);
  box-shadow: 0 8px 22px rgba(82, 107, 99, 0.15);
}

.cip-trust__story .cip-btn--primary:hover {
  background: var(--cip-home-sage-dark);
}

@keyframes cipFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes cipHeroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  .cip-hero__media img,
  .cip-hero__content {
    animation: none;
  }
}

@media (max-width: 1100px) {
  .cip-search-bar__panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cip-search-bar__intro,
  .cip-search-bar__submit {
    grid-column: 1 / -1;
  }

  .cip-tour-grid,
  .cip-services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cip-destinations__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .cip-trust__layout,
  .cip-testimonials__grid {
    grid-template-columns: 1fr;
  }

  .cip-hero__stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .cip-hero {
    min-height: 70vh;
  }

  .cip-hero__content {
    padding: 4rem 0 6.75rem;
  }

  .cip-hero__actions {
    width: 100%;
  }

  .cip-hero__actions .cip-btn {
    flex: 1 1 auto;
  }

  .cip-search-bar {
    margin-top: -2.5rem;
  }

  .cip-search-bar__panel,
  .cip-services__grid,
  .cip-tour-grid,
  .cip-destinations__grid,
  .cip-trust__grid {
    grid-template-columns: 1fr;
  }

  .cip-cta-band__inner {
    padding: 1.25rem;
  }

  .cip-cta-band__actions {
    width: 100%;
  }

  .cip-cta-band__actions .cip-btn {
    width: 100%;
  }
}
