/**
 * Pearl Travel Services - custom styles
 * -------------------------------------
 * Everything added on top of the template lives here, so assets/css/main.css
 * stays untouched and the template can still be updated later.
 * Load this file AFTER main.css.
 */

/*--------------------------------------------------------------
# Contact: highlight panel (replaces the template map)
--------------------------------------------------------------*/
.contact .contact-highlight {
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(160deg, #1c1c1c 0%, #2b2b2b 55%, color-mix(in srgb, var(--accent-color), #1c1c1c 72%) 100%);
  color: #ffffff;
}

@media (min-width: 992px) {
  .contact .contact-highlight {
    position: sticky;
    top: 100px;
    align-self: start;
  }
}

.contact .contact-highlight-inner {
  padding: 40px 34px;
}

@media (max-width: 575px) {
  .contact .contact-highlight-inner {
    padding: 30px 24px;
  }
}

.contact .contact-highlight-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 50px;
  background-color: color-mix(in srgb, var(--accent-color), transparent 80%);
  color: color-mix(in srgb, var(--accent-color), #ffffff 25%);
  margin-bottom: 22px;
}

.contact .contact-highlight h3 {
  color: #ffffff;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 14px;
}

.contact .contact-highlight > .contact-highlight-inner > p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 26px;
}

.contact .contact-promises {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.contact .contact-promises li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.88);
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contact .contact-promises li:last-child {
  border-bottom: 0;
}

.contact .contact-promises li i {
  color: var(--accent-color);
  font-size: 16px;
  line-height: 1.5;
  flex-shrink: 0;
}

.contact .contact-highlight-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 10px;
  background-color: var(--accent-color);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  word-break: break-word;
}

.contact .contact-highlight-btn:hover {
  background-color: color-mix(in srgb, var(--accent-color), #000000 18%);
  color: #ffffff;
  transform: translateY(-2px);
}

.contact .contact-highlight-btn-alt {
  margin-top: 12px;
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.contact .contact-highlight-btn-alt:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.contact .contact-highlight-social {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact .contact-highlight-social span {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 14px;
}

.contact .contact-highlight-social .social-links {
  display: flex;
  gap: 12px;
}

.contact .contact-highlight-social .social-links a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact .contact-highlight-social .social-links a:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
}

/*--------------------------------------------------------------
# Contact: form additions
--------------------------------------------------------------*/
.contact .contact-form-container .php-email-form select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23888'%3E%3Cpath d='M8 11 3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px;
  padding-right: 42px;
  cursor: pointer;
}

.contact .contact-form-container .php-email-form .form-privacy {
  margin: 18px 0 0 0;
  font-size: 13px;
  color: color-mix(in srgb, var(--default-color), transparent 35%);
}

.contact .contact-form-container .php-email-form .form-privacy a {
  color: var(--accent-color);
  text-decoration: underline;
}

.contact .contact-card .contact-text a {
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}

/* The email address is the main way people reach us and it is a long,
   unbreakable word, so give its card the full width of the row. */
@media (min-width: 576px) {
  .contact .contact-cards-container .contact-card:first-child {
    grid-column: 1 / -1;
  }
}

.contact .contact-card .contact-text a:hover {
  color: var(--accent-color);
}

/* Give the form feedback boxes real styling instead of bare text */
.php-email-form .loading,
.php-email-form .error-message,
.php-email-form .sent-message {
  display: none;
}

.php-email-form .loading.d-block,
.php-email-form .error-message.d-block,
.php-email-form .sent-message.d-block {
  display: block !important;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.6;
}

.php-email-form .error-message.d-block {
  background-color: #fdeceb;
  color: #a62b23;
  border: 1px solid #f5c6c3;
}

.php-email-form .sent-message.d-block {
  background-color: #eaf7ee;
  color: #1c6b36;
  border: 1px solid #c3e6cd;
}

.php-email-form .loading.d-block {
  background-color: color-mix(in srgb, var(--accent-color), transparent 92%);
  color: color-mix(in srgb, var(--accent-color), #000000 25%);
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 75%);
}

/*--------------------------------------------------------------
# Testimonials: the quote mark is decoration, not a link
--------------------------------------------------------------*/
.team .image-wrapper .social-links .quote-mark {
  width: 35px;
  height: 35px;
  background: var(--accent-color);
  color: var(--contrast-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

/*--------------------------------------------------------------
# Destinations: titles are headings, not links
--------------------------------------------------------------*/
.recent-posts .post-title span {
  display: block;
  color: var(--heading-color);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
}

.recent-posts .recent-title span {
  display: block;
  color: var(--heading-color);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

@media (max-width: 991px) {
  .recent-posts .post-title span {
    font-size: 24px;
  }
}

.recent-posts .destinations-cta {
  margin-top: 40px;
  text-align: center;
  padding: 34px 24px;
  border-radius: 16px;
  background-color: color-mix(in srgb, var(--accent-color), transparent 94%);
}

.recent-posts .destinations-cta p {
  margin-bottom: 18px;
  font-size: 16px;
  color: var(--default-color);
}

/*--------------------------------------------------------------
# Footer additions
--------------------------------------------------------------*/
.footer .newsletter-form .newsletter-note {
  font-size: 13px;
  color: color-mix(in srgb, var(--default-color), transparent 45%);
  margin-bottom: 12px;
}

.footer .footer-contact .contact-info a {
  color: inherit;
  text-decoration: none;
  word-break: break-word;
}

.footer .footer-contact .contact-info a:hover {
  color: var(--accent-color);
}

/*--------------------------------------------------------------
# Simple content pages (privacy policy, terms, 404)
--------------------------------------------------------------*/
.legal-page .legal-content {
  max-width: 820px;
  margin: 0 auto;
}

.legal-page .legal-content h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--heading-color);
  margin: 38px 0 14px 0;
}

.legal-page .legal-content h2:first-child {
  margin-top: 0;
}

.legal-page .legal-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--heading-color);
  margin: 24px 0 10px 0;
}

.legal-page .legal-content p,
.legal-page .legal-content li {
  font-size: 16px;
  line-height: 1.8;
  color: var(--default-color);
}

.legal-page .legal-content ul {
  padding-left: 20px;
  margin-bottom: 18px;
}

.legal-page .legal-content li {
  margin-bottom: 8px;
}

.legal-page .legal-updated {
  display: inline-block;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 50px;
  background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  color: var(--accent-color);
  margin-bottom: 30px;
}

.legal-page .legal-content a {
  color: var(--accent-color);
}

/*--------------------------------------------------------------
# 404 page
--------------------------------------------------------------*/
.error-page {
  text-align: center;
  padding: 40px 0;
}

.error-page .error-code {
  font-size: 120px;
  font-weight: 800;
  line-height: 1;
  color: var(--accent-color);
  margin-bottom: 10px;
}

.error-page h2 {
  font-size: 30px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 14px;
}

.error-page p {
  font-size: 16px;
  color: var(--default-color);
  max-width: 560px;
  margin: 0 auto 28px auto;
}

.error-page .error-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

@media (max-width: 575px) {
  .error-page .error-code {
    font-size: 84px;
  }
}

/*--------------------------------------------------------------
# Accessibility helper used by form labels
--------------------------------------------------------------*/
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/*--------------------------------------------------------------
# Hero
# The slider images already carry their own headline, which is only
# visible on wide screens. On narrow screens the image is cropped and
# that headline disappears, so the HTML headline takes over there.
--------------------------------------------------------------*/
.hero .info .hero-copy {
  text-align: center;
}

.hero .carousel-item::before {
  background: linear-gradient(180deg,
    color-mix(in srgb, #000000, transparent 45%) 0%,
    color-mix(in srgb, #000000, transparent 35%) 100%);
}

.hero .info .hero-copy h1 {
  margin-bottom: 30px;
  padding-bottom: 30px;
  font-size: 56px;
  font-weight: 700;
  position: relative;
  color: #ffffff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.hero .info .hero-copy h1::after {
  content: "";
  position: absolute;
  display: block;
  width: 80px;
  height: 4px;
  background: var(--accent-color);
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}

.hero .info .hero-copy p {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.hero .info {
  width: 100%;
}

.hero .info .container {
  width: 100%;
}

/* The nav is white text. At the top of the page it sits over bright artwork,
   so it needs its own soft shadow. It disappears once the header goes solid. */
.index-page .header {
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 100%);
  border-bottom-color: transparent;
}

.index-page.scrolled .header {
  background-image: none;
}

@media (min-width: 992px) {
  /* Wide screens: the banner artwork shows its own headline, so the
     HTML headline is hidden and only the button sits over the image. */
  .hero .info {
    align-self: stretch;
    align-items: flex-end !important;
    padding-bottom: 18vh;
  }

  .hero .info .hero-copy {
    text-align: left;
  }

  .hero .info .hero-copy h1,
  .hero .info .hero-copy p {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .hero .info .hero-copy .btn-get-started {
    margin-left: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  }

  /* The artwork is bright, so it only needs a light wash on desktop. */
  .hero .carousel-item::before {
    background: linear-gradient(180deg,
      rgba(0, 0, 0, 0.06) 0%,
      rgba(0, 0, 0, 0.12) 100%);
  }
}

@media (min-width: 992px) and (max-height: 700px) {
  .hero .info {
    padding-bottom: 10vh;
  }
}

/*--------------------------------------------------------------
# Hero on phones and tablets
# The banner artwork is very wide. Cropping it to a tall phone screen
# cuts off most of the picture and all of its text, so below 992px the
# banner is shown whole and the wording sits on a panel underneath it.
--------------------------------------------------------------*/
@media (max-width: 991px) {
  .hero {
    min-height: auto;
    flex-direction: column;
    justify-content: flex-start;
    background-color: #101010;
    padding-top: 74px;
  }

  .hero .carousel {
    position: relative;
    inset: auto;
    order: 1;
    width: 100%;
    aspect-ratio: 1685 / 951;
  }

  .hero .carousel-item::before {
    background: transparent;
  }

  .hero .info {
    order: 2;
    position: relative;
    inset: auto;
    width: 100%;
    padding: 36px 0 46px 0;
    background-color: #101010;
  }

  .hero .info .hero-copy h1 {
    font-size: 32px;
    margin-bottom: 22px;
    padding-bottom: 22px;
    text-shadow: none;
  }

  .hero .info .hero-copy p {
    font-size: 16px;
    text-shadow: none;
    margin-bottom: 22px;
  }

  .hero .carousel-control-prev,
  .hero .carousel-control-next {
    width: 15%;
  }
}

@media (max-width: 991px) and (max-height: 480px) {
  .hero .info {
    padding: 28px 20px 34px 20px;
  }
}

/*--------------------------------------------------------------
# Section titles
# The template sets line-height: 1px on these headings. That is fine
# for one line, but on narrow screens a long title wraps and the two
# lines print on top of each other. This gives wrapped titles room.
--------------------------------------------------------------*/
@media (max-width: 991px) {
  .section-title h2 {
    line-height: 1.35;
  }

  .section-title h2::after {
    display: block;
    margin: 10px auto 0 auto;
  }
}

@media (max-width: 575px) {
  .section-title h2 {
    font-size: 21px;
  }
}

/*--------------------------------------------------------------
# Brand buttons
# The template only colours .btn-primary inside a few sections, so
# buttons anywhere else fall back to the default Bootstrap blue.
# This gives every one of them the brand colour.
--------------------------------------------------------------*/
.btn.btn-primary {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--contrast-color);
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn.btn-primary:hover,
.btn.btn-primary:focus,
.btn.btn-primary:active,
.btn.btn-primary:focus-visible {
  background-color: color-mix(in srgb, var(--accent-color), #000000 15%);
  border-color: color-mix(in srgb, var(--accent-color), #000000 15%);
  color: var(--contrast-color);
  transform: translateY(-2px);
}

.btn.btn-primary:focus-visible {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-color), transparent 70%);
}

/* The About section uses a wider, uppercase version. Keep that. */
.about .btn.btn-primary {
  padding: 15px 38px;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 50px;
}
