/*
Theme Name: Kemer Royal Beach Hotel v2
Theme URI: https://kemerroyal.com
Author: Kemer Royal Beach Hotel
Description: Premium boutique hotel theme – Montserrat + Outfit, Tailwind-inspired, direct booking focused
Version: 2.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
Text Domain: kemer-royal
Tags: hotel, booking, luxury, mediterranean, multilingual
*/

/* ============================================================
   CSS CUSTOM PROPERTIES  (matches uploaded design exactly)
   ============================================================ */
:root {
  --accent-color:                  #D4AF37;
  --accent2-color:                 #F5E6D3;
  --accent3-color:                 #60A5FA;
  --accent4-color:                 #F8FAFC;
  --primary-color:                 #1E3A8A;
  --dark-text-color:               #1F2937;
  --gray-text-color:               #6B7280;
  --button-padding-x:              32px;
  --button-padding-y:              16px;
  --font-family-body:              'Outfit', sans-serif;
  --light-text-color:              #FFFFFF;
  --dark-border-color:             #1E3A8A;
  --light-border-color:            #E5E7EB;
  --font-family-heading:           'Montserrat', sans-serif;
  --button-rounded-radius:         8px;
  --dark-background-color:         #0F172A;
  --light-background-color:        #EFF6FF;
  --medium-background-color:       #DBEAFE;
  --primary-button-text-color:     #FFFFFF;
  --secondary-button-bg-color:     #F5F5F5;
  --secondary-button-text-color:   #1E3A8A;
  --primary-button-hover-bg-color: #1E40AF;
  --primary-button-hover-text-color: #FFFFFF;
  --secondary-button-hover-bg-color: #E5E5E5;
  --secondary-button-hover-text-color: #1E3A8A;

  /* WhatsApp */
  --whatsapp-color: #25D366;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-family-body); color: var(--dark-text-color); overflow-x: hidden; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

/* ============================================================
   LANGUAGE SWITCHER  (header)
   ============================================================ */
.kr-lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--light-background-color);
  border: 1px solid var(--light-border-color);
  border-radius: 50px;
  padding: 3px;
}

.kr-lang-switcher a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-text-color);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.kr-lang-switcher a:hover,
.kr-lang-switcher a.active {
  background: var(--primary-color);
  color: #fff;
}

.kr-lang-switcher .lang-flag {
  font-size: 1rem;
  line-height: 1;
}

/* Compact version inside nav */
.kr-lang-switcher-compact {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  padding: 2px;
}
.kr-lang-switcher-compact a {
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  transition: all 0.2s ease;
}
.kr-lang-switcher-compact a:hover,
.kr-lang-switcher-compact a.active {
  background: var(--primary-color);
  color: #fff;
}

/* ============================================================
   HEADER OVERRIDES  (WP-specific fixes on top of Tailwind)
   ============================================================ */
#global-header {
  font-family: var(--font-family-body);
}

/* Make sure WP nav menu items render correctly */
#global-header nav ul { display: flex; align-items: center; gap: 2rem; }
#global-header nav ul li a {
  color: var(--dark-text-color);
  font-weight: 500;
  transition: color 0.2s;
}
#global-header nav ul li a:hover { color: var(--primary-color); }

/* Mobile menu shown/hidden */
[data-mobile-menu].is-open { display: block !important; }

/* ============================================================
   WORDPRESS CONTENT AREA (blog, pages)
   ============================================================ */
.wp-content-area {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 24px;
}

.entry-title {
  font-family: var(--font-family-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--dark-text-color);
  margin-bottom: 24px;
}

.entry-content {
  font-family: var(--font-family-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--dark-text-color);
}
.entry-content h2, .entry-content h3 {
  font-family: var(--font-family-heading);
  font-weight: 700;
  color: var(--dark-text-color);
  margin: 2rem 0 1rem;
}
.entry-content p { margin-bottom: 1.25rem; }
.entry-content ul, .entry-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content a { color: var(--primary-color); text-decoration: underline; }
.entry-content img { border-radius: 12px; margin: 1.5rem 0; }
.entry-content blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: var(--gray-text-color);
  font-style: italic;
}

/* ============================================================
   PAGE HERO  (inner pages)
   ============================================================ */
.page-hero-inner {
  background: linear-gradient(135deg, var(--dark-background-color) 0%, #1a2744 50%, var(--dark-background-color) 100%);
  padding: 120px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero-inner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(30,58,138,0.4) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-inner h1 {
  font-family: var(--font-family-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
}
.page-hero-inner .breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}
.page-hero-inner .breadcrumb a { color: rgba(255,255,255,0.65); }
.page-hero-inner .breadcrumb a:hover { color: #fff; }

/* ============================================================
   FLOATING WHATSAPP
   ============================================================ */
.kr-whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.kr-whatsapp-float-btn {
  width: 56px;
  height: 56px;
  background: var(--whatsapp-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  text-decoration: none;
}
.kr-whatsapp-float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37,211,102,0.6);
}
.kr-whatsapp-float-btn i { font-size: 1.6rem; color: #fff; }
.kr-whatsapp-float-btn::before {
  content: '';
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(37,211,102,0.3);
  animation: wa-ping 2s ease-out infinite;
}
@keyframes wa-ping {
  0%  { transform: scale(1); opacity: 1; }
  100%{ transform: scale(1.9); opacity: 0; }
}
.kr-whatsapp-label {
  background: var(--dark-background-color);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 50px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: all 0.25s ease;
  pointer-events: none;
  font-family: var(--font-family-body);
}
.kr-whatsapp-float:hover .kr-whatsapp-label { opacity: 1; transform: translateX(0); }

/* ============================================================
   WIDGETS / SIDEBAR
   ============================================================ */
.sidebar-widget { margin-bottom: 32px; }
.widget-title {
  font-family: var(--font-family-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark-text-color);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
}

/* ============================================================
   WP ALIGNMENT CLASSES
   ============================================================ */
.alignleft  { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.82rem; color: var(--gray-text-color); text-align: center; margin-top: 6px; }

/* ============================================================
   RESPONSIVE HELPERS
   ============================================================ */
@media (max-width: 768px) {
  .kr-whatsapp-float { bottom: 16px; right: 16px; }
}

/* ============================================================
   LOGO SIZE FIX
   the_custom_logo() generates its own img – control via CSS
   ============================================================ */
.site-logo img,
.site-logo .custom-logo,
#global-header .custom-logo-link img,
#global-header .custom-logo-link .custom-logo,
#global-header a img {
  height: 56px !important;
  width: auto !important;
  max-height: 56px !important;
  display: block;
}

#site-footer .custom-logo-link img,
#site-footer .custom-logo-link .custom-logo,
#site-footer a img.custom-logo {
  height: 56px !important;
  width: auto !important;
  max-height: 56px !important;
  display: block;
}
