/*
Theme Name: Conti7 Travel
Theme URI: https://conti7.net
Author: Conti7 Travel and Tourism
Author URI: https://conti7.net
Description: Bespoke Luxury Travel Consultancy Theme for Conti7 Travel — Middle East, Asia & Europe.
Version: 1.0.4
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: conti7
*/

@import url('assets/css/theme.css');

/* Global SVG constraints to prevent oversized icons */
svg {
  display: inline-block !important;
  vertical-align: middle !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
}

svg.w-3, .w-3 > svg { width: 12px !important; height: 12px !important; max-width: 12px !important; max-height: 12px !important; }
svg.w-3\.5, .w-3\.5 > svg { width: 14px !important; height: 14px !important; max-width: 14px !important; max-height: 14px !important; }
svg.w-4, .w-4 > svg { width: 16px !important; height: 16px !important; max-width: 16px !important; max-height: 16px !important; }
svg.w-5, .w-5 > svg { width: 20px !important; height: 20px !important; max-width: 20px !important; max-height: 20px !important; }
svg.w-6, .w-6 > svg { width: 24px !important; height: 24px !important; max-width: 24px !important; max-height: 24px !important; }
svg.w-8, .w-8 > svg { width: 32px !important; height: 32px !important; max-width: 32px !important; max-height: 32px !important; }
svg.w-10, .w-10 > svg { width: 40px !important; height: 40px !important; max-width: 40px !important; max-height: 40px !important; }
svg.w-12, .w-12 > svg { width: 48px !important; height: 48px !important; max-width: 48px !important; max-height: 48px !important; }
svg.w-16, .w-16 > svg { width: 64px !important; height: 64px !important; max-width: 64px !important; max-height: 64px !important; }

/* ==========================================================================
   NAVBAR & WORDPRESS ADMIN BAR COMPATIBILITY (Exact match to live site)
   ========================================================================== */
/* When logged into WordPress, push fixed header below the 32px/46px admin bar */
body.admin-bar header.fixed,
body.admin-bar #site-header,
.admin-bar header.fixed {
  top: 32px !important;
}

@media screen and (max-width: 782px) {
  body.admin-bar header.fixed,
  body.admin-bar #site-header,
  .admin-bar header.fixed {
    top: 46px !important;
  }
}

/* Base header styling */
header#site-header,
header.conti7-header {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  height: 80px !important;
  background-color: rgba(10, 22, 40, 0.95) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  backdrop-filter: blur(4px) !important;
  z-index: 9999 !important;
  transition: all 0.3s ease !important;
}

.conti7-navbar-inner {
  height: 80px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.conti7-nav-logo {
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
  height: 100% !important;
}

.conti7-nav-logo img {
  height: auto !important;
  max-height: 48px !important;
  width: auto !important;
  max-width: 200px !important;
  object-fit: contain !important;
  display: block !important;
}

.conti7-nav-menu {
  display: flex !important;
  align-items: center !important;
  gap: 2rem !important;
}

.conti7-nav-link {
  position: relative !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.025em !important;
  padding: 0.25rem 0 !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
  display: inline-block !important;
}

.conti7-nav-link:hover {
  color: #ffffff !important;
}

.conti7-nav-link .conti7-underline {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  height: 1px !important;
  background-color: #C9A96E !important;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.conti7-nav-link.is-active .conti7-underline {
  width: 100% !important;
}

.conti7-nav-link:not(.is-active) .conti7-underline {
  width: 0 !important;
}

.conti7-nav-link:hover .conti7-underline {
  width: 100% !important;
}

.conti7-nav-btn {
  margin-left: 0.5rem !important;
  padding: 0.625rem 1.25rem !important;
  background-color: #C9A96E !important;
  color: #0A1628 !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  border-radius: 2px !important;
  text-decoration: none !important;
  transition: background-color 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap !important;
}

.conti7-nav-btn:hover {
  background-color: #b8935a !important;
  color: #0A1628 !important;
}

/* ==========================================================================
   WHAT WE DO - 3-COLUMN SERVICE CARDS (Exact match to live site)
   ========================================================================== */
.conti7-services-grid {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 1.5rem !important;
  width: 100% !important;
}

@media (min-width: 768px) {
  .conti7-services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

.conti7-service-card {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 2px !important;
  min-height: 380px !important;
  height: 380px !important;
  cursor: pointer !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1) !important;
}

.conti7-service-card img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.conti7-service-card:hover img {
  transform: scale(1.05) !important;
}

/* ==========================================================================
   WHERE WE GO - 12-COLUMN BENTO GRID
   ========================================================================== */
.conti7-bento-grid {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 1rem !important;
  width: 100% !important;
}

@media (min-width: 768px) {
  .conti7-bento-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  }
  .conti7-bento-col-7 {
    grid-column: span 7 / span 7 !important;
  }
  .conti7-bento-col-5 {
    grid-column: span 5 / span 5 !important;
  }
  .conti7-bento-col-3 {
    grid-column: span 3 / span 3 !important;
  }
}

/* ==========================================================================
   DUBAI EXPERIENCES - 3 COLUMNS (DINNER CRUISE SPANS 2)
   ========================================================================== */
.conti7-dubai-grid {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 1.5rem !important;
  width: 100% !important;
}

@media (min-width: 768px) {
  .conti7-dubai-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1024px) {
  .conti7-dubai-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .conti7-dubai-dinner {
    grid-column: span 2 / span 2 !important;
  }
}

/* ==========================================================================
   THREE REGIONS - 3 COLUMNS
   ========================================================================== */
.conti7-three-regions-grid {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 1.5rem !important;
  width: 100% !important;
}

@media (min-width: 768px) {
  .conti7-three-regions-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

/* ==========================================================================
   STATS - 3 COLUMNS
   ========================================================================== */
.conti7-stats-grid {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 2rem !important;
  width: 100% !important;
}

@media (min-width: 768px) {
  .conti7-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

/* ==========================================================================
   3D IMAGE EFFECTS & SHADOWS (BLOG & SINGLE POST)
   ========================================================================== */
.conti7-3d-perspective {
  perspective: 1400px;
}

.conti7-3d-hero-wrap {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  transform: perspective(1200px) rotateX(1.8deg) translateZ(0);
  box-shadow: 
    0 25px 60px -15px rgba(10, 22, 40, 0.45),
    0 15px 35px -10px rgba(201, 169, 110, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.4);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.conti7-3d-hero-wrap:hover {
  transform: perspective(1200px) translateY(-8px) scale(1.015) rotateX(0deg);
  box-shadow: 
    0 35px 80px -20px rgba(10, 22, 40, 0.55),
    0 25px 50px -15px rgba(201, 169, 110, 0.45),
    inset 0 1px 2px rgba(255, 255, 255, 0.6);
}

.conti7-3d-glow {
  position: absolute;
  inset: -12px;
  background: radial-gradient(circle at 50% 50%, rgba(201, 169, 110, 0.3), rgba(10, 22, 40, 0.2), transparent 70%);
  filter: blur(28px);
  border-radius: 2rem;
  z-index: -1;
  opacity: 0.8;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.conti7-3d-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.05) 35%, transparent 65%);
  pointer-events: none;
  border-radius: inherit;
}

/* Social share circular buttons */
.conti7-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  background-color: #ffffff;
  color: #4b5563;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.conti7-social-btn:hover {
  color: #c9a96e;
  border-color: #c9a96e;
  background-color: rgba(201, 169, 110, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06);
}
