/*
Theme Name: Celtic Transfers
Theme URI: https://celtictransfers.co.uk/
Author: HachiWeb
Author URI: https://celtictransfers.co.uk/
Description: Custom WordPress theme for Celtic Transfers.
Version: 1.0.0
Text Domain: celtic-transfers
*/

:root {
  /* Fintech/Mobility Palette */
  --base-navy: #0f172a; /* Deep navy/charcoal base */
  --surface-dark: #1e293b; /* Elevated dark surface */
  --celtic-emerald: #10b981; /* Celtic accent */
  --celtic-purple: #8b5cf6; /* Thistle purple alternative accent */
  --electric-cyan: #22d3ee; /* Vibrant CTA */

  /* UI Elements */
  --glass-bg: rgba(15, 23, 42, 0.75);
  --glass-border: rgba(255, 255, 255, 0.1);

  /* Typography */
  --font-heading: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
}

/* 1. Force remove the white gap at the top */
html,
body {
  margin: 0 !important;
  margin-top: 0 !important; /* Overrides the default WP admin bar space */
  padding: 0 !important;
  width: 100%;
}

/* 2. Push the floating white header lower */
.celtic-header {
  position: absolute;
  top: 90px; /* Increased from 50px to push it below the dark bar */
  width: 100%;
  z-index: 100;
  padding: 0 20px;
}

/* Glassmorphism Utility */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
}

/* ==========================================================================
   TOP BAR
   ========================================================================== */
.celtic-topbar {
  background-color: #222222; /* Dark slate */
  color: #ffffff;
  padding: 10px 0;
  font-size: 0.85rem;
  font-family: sans-serif;
}

.topbar-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.topbar-contact {
  display: flex;
  gap: 25px;
}

.topbar-contact span {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Yellow accent for icons in contact bar */
.topbar-contact span::first-letter {
  color: #ffb600;
}

.topbar-social {
  display: flex;
  gap: 10px;
}

.topbar-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background-color: #ffb600;
  color: #ffffff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background 0.3s;
}

.topbar-social a:hover {
  background-color: #e5a300;
}

/* ==========================================================================
   FLOATING ROUNDED HEADER
   ========================================================================== */
.celtic-header {
  position: absolute;
  top: 50px; /* Overlaps the hero section */
  width: 100%;
  z-index: 100;
  padding: 0 20px;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  background-color: #ffffff;
  border-radius: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px 10px 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.header-logo a {
  font-size: 1.5rem;
  color: #000000;
  text-decoration: none;
  font-family: sans-serif;
}

.header-nav .nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 30px;
}

.header-nav .nav-list a {
  text-decoration: none;
  color: #333333;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.header-nav .nav-list a:hover {
  color: #ffb600;
}

.btn-booking {
  display: inline-block;
  background-color: #ffb600;
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s;
}

.btn-booking:hover {
  background-color: #e5a300;
}

/* ==========================================================================
   WORDPRESS EMOJIS & INLINE SVG ICONS (Checkmarks, etc.)
   ========================================================================== */
img.wp-smiley,
img.emoji,
img[src*="s.w.org/images/core/emoji"],
img[src*="/emoji/"],
img[src*="twemoji"],
img[src*="2714.svg"],
img[alt="✔"],
img[alt="✅"] {
  display: inline !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  height: 1.15em !important;
  width: 1.15em !important;
  max-height: 1.15em !important;
  max-width: 1.15em !important;
  min-height: 0 !important;
  min-width: 0 !important;
  margin: 0 0.18em !important;
  vertical-align: -0.15em !important;
  background: none !important;
  padding: 0 !important;
}

/* ==========================================================================
   SHORTCODE BOOKING FORM CONTAINER SCROLLER & RESIZING
   ========================================================================== */
.celtic-shortcode-booking-container {
  max-height: min(750px, 85vh);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  position: relative;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: #3d4432 #f1f3f4;
}

.celtic-shortcode-booking-container:has(iframe),
.celtic-shortcode-booking-container.has-iframe {
  max-height: none !important;
  overflow: visible !important;
}

.celtic-shortcode-booking-container iframe {
  width: 100% !important;
  min-width: 100% !important;
  border: 0 !important;
  display: block;
}

.celtic-shortcode-booking-container::-webkit-scrollbar {
  width: 6px;
}

.celtic-shortcode-booking-container::-webkit-scrollbar-track {
  background: #f1f3f4;
  border-radius: 4px;
}

.celtic-shortcode-booking-container::-webkit-scrollbar-thumb {
  background: #3d4432;
  border-radius: 4px;
}

.celtic-shortcode-booking-container::-webkit-scrollbar-thumb:hover {
  background: #252b1e;
}

@media (max-width: 768px) {
  .celtic-shortcode-booking-container {
    max-height: min(580px, 78vh);
    padding: 16px !important;
  }
  .celtic-shortcode-booking-container:has(iframe),
  .celtic-shortcode-booking-container.has-iframe {
    max-height: none !important;
    overflow: visible !important;
  }
}
