/* custom.css */

/* Montserrat Font Import */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

html {
  font-family: 'Montserrat', sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: #ffffff;
  color: #334155; /* text-slate-700 equivalent */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.625;
  letter-spacing: -0.025em;
}

/* Custom radial-dot pattern background */
.bg-slate-50-dots {
  background-image: radial-gradient(#e2e8f0 0.5px, transparent 0.5px);
  background-size: 24px 24px;
}

/* Testimonial radial background */
.testimonial-dots {
  background-image: radial-gradient(#00B5CC 0.5px, transparent 0.5px);
  background-size: 32px 32px;
}

/* Focus styles for keyboard navigation */
*:focus-visible {
  outline: 2px solid #00B5CC !important;
  outline-offset: 2px;
}

/* Remove default focus ring for mouse clicks */
*:focus:not(:focus-visible) {
  outline: none;
}

/* Skip link logic */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  background-color: #ffffff;
  color: #1E1F55;
  padding: 0.75rem 1.5rem;
  border-bottom-right-radius: 0.5rem;
  border-bottom-left-radius: 0.5rem;
  font-weight: 600;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* -------------------------------------------------------------
   Custom Theme Variables and Standardized Design Overrides
   ------------------------------------------------------------- */
:root {
  --primary-teal: #00B5CC;
  --primary-teal-hover: #009cb0;
  --navy-dark: #0D1B2A;
}

/* Light Blue-Grey Hero Gradient */
.hero-gradient {
  background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 50%, #E2F1F6 100%) !important;
}

/* Force dark navy for headings & specific text containers */
h1, h2, h3, h4, h5, h6,
.text-slate-900,
.text-\[\#1E1F55\] {
  color: var(--navy-dark) !important;
}

/* Force primary teal for highlights, text, backgrounds, and borders */
.text-\[\#4AA6CF\],
.text-\[\#2B7A9E\],
.text-\[\#4aa6cf\],
.text-\[\#2b7a9e\] {
  color: var(--primary-teal) !important;
}

/* Header links and chevron icons color change on hover */
nav a:hover,
.desktop-dropdown-trigger:hover,
.hover\:text-\[\#4AA6CF\]:hover,
.group-hover\:text-\[\#4AA6CF\]:hover,
.group\/nav:hover .desktop-dropdown-trigger {
  color: var(--primary-teal) !important;
}

/* Background teal overrides */
.bg-\[\#4AA6CF\],
.bg-\[\#4aa6cf\] {
  background-color: var(--primary-teal) !important;
}

/* Background hover teal overrides */
.hover\:bg-\[\#3b85a6\]:hover,
.hover\:bg-\[\#3b85a6\]:hover {
  background-color: var(--primary-teal-hover) !important;
}

/* Active page menu background and text */
.bg-\[\#4AA6CF\]\/10,
.bg-\[\#4aa6cf\]\/10 {
  background-color: rgba(0, 181, 204, 0.1) !important;
  color: var(--primary-teal) !important;
}

/* Borders and lines */
.border-\[\#4AA6CF\]\/30,
.border-\[\#4aa6cf\]\/30 {
  border-color: rgba(0, 181, 204, 0.3) !important;
}
.border-\[\#4AA6CF\],
.border-\[\#4aa6cf\] {
  border-color: var(--primary-teal) !important;
}

/* Focus and ring shadows */
.ring-\[\#4AA6CF\]\/5,
.ring-\[\#4aa6cf\]\/5 {
  --tw-ring-color: rgba(0, 181, 204, 0.05) !important;
}
.shadow-\[\#4AA6CF\]\/20,
.shadow-\[\#4aa6cf\]\/20 {
  --tw-shadow-color: rgba(0, 181, 204, 0.2) !important;
}
.hover\:shadow-\[\#4AA6CF\]\/40:hover,
.hover\:shadow-\[\#4aa6cf\]\/40:hover {
  --tw-shadow-color: rgba(0, 181, 204, 0.4) !important;
}

/* Buttons style rules: 50px border-radius, teal background, white bold text */
a.bg-\[\#4AA6CF\],
a.bg-\[\#00B5CC\],
a[href*="booking.html"]:not(#mobile-nav a):not(footer a),
#mobile-nav a[href*="booking.html"],
button[type="submit"],
input[type="submit"],
.btn-primary {
  background-color: var(--primary-teal) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border-radius: 50px !important;
  border: none !important;
  transition: all 0.3s ease !important;
}

a.bg-\[\#4AA6CF\]:hover,
a.bg-\[\#00B5CC\]:hover,
a[href*="booking.html"]:not(#mobile-nav a):not(footer a):hover,
#mobile-nav a[href*="booking.html"]:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
  background-color: var(--primary-teal-hover) !important;
  color: #ffffff !important;
}

/* Mobile Nav Drawer animation & toggle handling overrides */
#mobile-nav {
  transition: transform 0.3s ease-in-out !important;
  transform: translateX(100%) !important;
}
#mobile-nav.open {
  transform: translateX(0) !important;
}
#mobile-nav-overlay {
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out !important;
  opacity: 0 !important;
  visibility: hidden !important;
  display: block !important;
}
#mobile-nav-overlay.open {
  opacity: 0.4 !important;
  visibility: visible !important;
}

/* Subtle pulse animation for hero graphic */
@keyframes pulse-subtle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.95; transform: scale(1.02); }
}
.animate-pulse-subtle {
  animation: pulse-subtle 4.5s ease-in-out infinite;
}

/* Desktop dropdown hover fallback */
@media (min-width: 1024px) {
  .group\/nav:hover > div {
    display: block !important;
  }
  .group\/nav:hover .chevron-icon {
    transform: rotate(180deg) !important;
  }
}

/* Ensure group-hover:text-white overrides the !important teal color */
.group:hover .group-hover\:text-white {
  color: #ffffff !important;
}

/* Ensure group-hover:bg-[#4AA6CF] overrides the !important background color */
.group:hover .group-hover\:bg-\[\#4AA6CF\],
.group:hover .group-hover\:bg-\[\#4aa6cf\] {
  background-color: var(--primary-teal) !important;
}

/* Override to restore plain text/icon look for specific inline booking links */
a.inline-flex.items-center.text-\[\#2B7A9E\],
a.inline-flex.items-center.text-\[\#2b7a9e\],
a.inline-flex.items-center.text-\[\#2B7A9E\] i,
a.inline-flex.items-center.text-\[\#2b7a9e\] i {
  background-color: transparent !important;
  background: none !important;
  color: #2B7A9E !important;
  border-radius: 0 !important;
  padding: 0 !important;
  font-weight: 600 !important;
  border: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  width: auto !important;
  height: auto !important;
}

a.inline-flex.items-center.text-\[\#2B7A9E\]:hover,
a.inline-flex.items-center.text-\[\#2b7a9e\]:hover,
a.inline-flex.items-center.text-\[\#2B7A9E\]:hover i,
a.inline-flex.items-center.text-\[\#2b7a9e\]:hover i {
  background-color: transparent !important;
  background: none !important;
  color: #1E1F55 !important;
  box-shadow: none !important;
}

/* Contact Form 7 - Checkboxes styling (matching Tailwind styles) */
.wpcf7-form-control-wrap.service .wpcf7-checkbox {
  display: flex !important;
  flex-wrap: wrap !important;
  column-gap: 1.5rem !important; /* gap-x-6 */
  row-gap: 0.75rem !important;   /* gap-y-3 */
}

.wpcf7-form-control-wrap.service .wpcf7-list-item {
  margin: 0 !important;
  display: inline-flex !important;
}

.wpcf7-form-control-wrap.service .wpcf7-list-item label {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important; /* gap-2 */
  cursor: pointer !important;
}

.wpcf7-form-control-wrap.service .wpcf7-list-item label input[type="checkbox"] {
  width: 1rem !important; /* w-4 */
  height: 1rem !important; /* h-4 */
  border-radius: 0.25rem !important; /* rounded */
  border: 1px solid #d1d5db !important; /* border-gray-300 */
  cursor: pointer !important;
  accent-color: var(--primary-teal) !important;
}

.wpcf7-form-control-wrap.service .wpcf7-list-item label .wpcf7-list-item-label {
  font-size: 0.875rem !important; /* text-sm */
  color: #374151 !important; /* text-gray-700 */
  transition: color 0.2s !important;
}

.wpcf7-form-control-wrap.service .wpcf7-list-item label:hover .wpcf7-list-item-label {
  color: var(--navy-dark) !important; /* group-hover:text-[#1E1F55] */
}

/* Contact Form 7 - Acceptance checkbox styling (Terms) */
.wpcf7-form-control-wrap.terms .wpcf7-acceptance label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important; /* gap-2 */
  cursor: pointer !important;
}

.wpcf7-form-control-wrap.terms .wpcf7-acceptance input[type="checkbox"] {
  width: 1rem !important; /* w-4 */
  height: 1rem !important; /* h-4 */
  border-radius: 0.25rem !important; /* rounded */
  border: 1px solid #d1d5db !important; /* border-gray-300 */
  cursor: pointer !important;
  accent-color: var(--primary-teal) !important;
}

.wpcf7-form-control-wrap.terms .wpcf7-acceptance label span {
  font-size: 0.875rem !important; /* text-sm */
  color: #374151 !important; /* text-gray-700 */
  transition: color 0.2s !important;
}

.wpcf7-form-control-wrap.terms .wpcf7-acceptance label:hover span {
  color: var(--navy-dark) !important;
}

/* Custom styles for CF7 text fields to bypass square bracket shortcode parsing issue */
.contact-field {
  width: 100% !important;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
  border-radius: 0.75rem !important;
  border-width: 1px !important;
  border-color: #e5e7eb !important;
  outline: none !important;
  background-color: #f9fafb !important;
  transition: all 0.2s ease !important;
}

.contact-field:focus {
  border-color: var(--primary-teal) !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 2px rgba(0, 181, 204, 0.2) !important;
}

.contact-textarea {
  width: 100% !important;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
  border-radius: 0.75rem !important;
  border-width: 1px !important;
  border-color: #e5e7eb !important;
  outline: none !important;
  background-color: #f9fafb !important;
  transition: all 0.2s ease !important;
  resize: vertical !important;
  height: 150px !important;
}

.contact-textarea:focus {
  border-color: var(--primary-teal) !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 2px rgba(0, 181, 204, 0.2) !important;
}

/* Contact Form 7 validation & submission alerts */
.wpcf7-form-control-wrap.service .wpcf7-checkbox {
  display: flex !important;
  flex-wrap: wrap !important;
  column-gap: 1.5rem !important; /* gap-x-6 */
  row-gap: 0.75rem !important;   /* gap-y-3 */
}

.wpcf7-form-control-wrap.service .wpcf7-list-item {
  margin: 0 !important;
  display: inline-flex !important;
}

.wpcf7-form-control-wrap.service .wpcf7-list-item label {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important; /* gap-2 */
  cursor: pointer !important;
}

.wpcf7-form-control-wrap.service .wpcf7-list-item label input[type="checkbox"] {
  width: 1rem !important; /* w-4 */
  height: 1rem !important; /* h-4 */
  border-radius: 0.25rem !important; /* rounded */
  border: 1px solid #d1d5db !important; /* border-gray-300 */
  cursor: pointer !important;
  accent-color: var(--primary-teal) !important;
}

.wpcf7-form-control-wrap.service .wpcf7-list-item label .wpcf7-list-item-label {
  font-size: 0.875rem !important; /* text-sm */
  color: #374151 !important; /* text-gray-700 */
  transition: color 0.2s !important;
}

.wpcf7-form-control-wrap.service .wpcf7-list-item label:hover .wpcf7-list-item-label {
  color: var(--navy-dark) !important; /* group-hover:text-[#1E1F55] */
}

/* Contact Form 7 - Acceptance checkbox styling (Terms) */
.wpcf7-form-control-wrap.terms .wpcf7-acceptance label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important; /* gap-2 */
  cursor: pointer !important;
}

.wpcf7-form-control-wrap.terms .wpcf7-acceptance input[type="checkbox"] {
  width: 1rem !important; /* w-4 */
  height: 1rem !important; /* h-4 */
  border-radius: 0.25rem !important; /* rounded */
  border: 1px solid #d1d5db !important; /* border-gray-300 */
  cursor: pointer !important;
  accent-color: var(--primary-teal) !important;
}

.wpcf7-form-control-wrap.terms .wpcf7-acceptance label span {
  font-size: 0.875rem !important; /* text-sm */
  color: #374151 !important; /* text-gray-700 */
  transition: color 0.2s !important;
}

.wpcf7-form-control-wrap.terms .wpcf7-acceptance label:hover span {
  color: var(--navy-dark) !important;
}

/* Contact Form 7 Custom Loading Spinner */
.wpcf7-spinner {
  display: none !important;
}

.wpcf7-form.submitting .wpcf7-spinner,
.wpcf7-form.is-submitting .wpcf7-spinner,
.wpcf7-spinner.is-active {
  display: block !important;
  margin: 1.5rem auto 0 auto !important;
  width: 2rem !important;
  height: 2rem !important;
  border: 3px solid rgba(0, 181, 204, 0.2) !important;
  border-top-color: var(--primary-teal) !important;
  border-radius: 9999px !important;
  animation: wpcf7-spin 1s linear infinite !important;
  background-color: transparent !important;
  background-image: none !important;
  position: relative !important;
  visibility: visible !important;
}

@keyframes wpcf7-spin {
  to {
    transform: rotate(360deg);
  }
}

.wpcf7-response-output {
  margin: 2rem 0 0 0 !important;
  padding: 1rem !important;
  border-radius: 0.75rem !important;
  font-size: 0.875rem !important;
  text-align: center !important;
  border: none !important;
}

/* Success state */
.wpcf7 form.sent .wpcf7-response-output {
  background-color: #def7ec !important;
  color: #03543f !important;
  border: 1px solid #31c48d !important;
}

/* Failure / error states */
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output {
  background-color: #fde8e8 !important;
  color: #9b1c1c !important;
  border: 1px solid #f98080 !important;
}

.wpcf7-not-valid-tip {
  color: #e02424 !important;
  font-size: 0.75rem !important;
  margin-top: 0.25rem !important;
  display: block !important;
}

