/**
 * 22 HUES - Main Stylesheet
 * Complete styling from original HTML files
 */

/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
  --black: #191919;
  --white: #FFFFFF;
  --cream: #F6F1EB;
  --cream-header: #FAF8F5;
  --cream-light: #FAF8F5;
  --cream-dark: #F0EBE3;
  --warm-gray: #6B6B6B;
  --gray-light: #E8E6E3;
  --gray-medium: #9A9A9A;
  --gray-dark: #4A4A4A;
  --charcoal: #191919;
  --gold: #A37E2C;
  --gold-light: #B8923F;
  --success: #2D7D46;
  --warning: #D4A017;
  --error: #C0392B;
  --font-logo: 'Playfair Display', Georgia, serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-accent: 'Cormorant Garamond', Georgia, serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.panel-open {
  overflow: hidden;
}

body.page-template-page-account,
body.page-template-page-schedule,
body.page-template-page-inquire,
body.page-template-page-wallet {
  background: var(--cream);
  color: var(--charcoal);
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ========================================
   LOADER
   ======================================== */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-text {
  font-family: var(--font-logo);
  font-size: clamp(40px, 10vw, 80px);
  color: var(--white);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ========================================
   BACKDROP
   ======================================== */
.backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}

.backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* ========================================
   HEADER
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  background: transparent;
  transition: background 0.3s var(--ease);
}

.header.scrolled {
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

/* Header Left */
.header-left {
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s var(--ease);
}

.header.scrolled .header-left {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  cursor: pointer;
}

.contact-btn span {
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--black);
}

/* Plus Icon */
.plus-icon {
  width: 12px;
  height: 12px;
  position: relative;
  transition: transform 0.6s var(--ease);
}

.plus-icon::before,
.plus-icon::after {
  content: '';
  position: absolute;
  background: var(--black);
  transition: transform 0.3s var(--ease);
}

.plus-icon::before {
  width: 12px;
  height: 1px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.plus-icon::after {
  width: 1px;
  height: 12px;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.contact-btn:hover .plus-icon {
  transform: rotate(90deg);
}

.contact-btn.active .plus-icon {
  transform: rotate(45deg);
}

/* Header Right */
.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-icon {
  color: var(--white);
  transition: color 0.3s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
}

.header.scrolled .header-icon {
  color: var(--black);
}

.header-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

/* Menu Button */
.menu-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  cursor: pointer;
}

.menu-btn-text {
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--white);
  transition: color 0.3s var(--ease);
}

.header.scrolled .menu-btn-text {
  color: var(--black);
}

.hamburger {
  width: 18px;
  height: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--white);
  transition: all 0.3s var(--ease);
}

.header.scrolled .hamburger span {
  background: var(--black);
}

.menu-btn.active .hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.menu-btn.active .hamburger span:nth-child(2) {
  opacity: 0;
}

.menu-btn.active .hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* ========================================
   MAIN LOGO
   ======================================== */
.main-logo {
  position: fixed;
  top: 21%;
  left: 50%;
  z-index: 101;
  text-align: center;
  pointer-events: none;
  white-space: nowrap;
}

.logo-text {
  font-family: var(--font-logo);
  font-size: clamp(60px, 20vw, 320px);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--white);
  line-height: 0.85;
  transition: color 0.3s var(--ease);
}

.header.scrolled ~ .main-logo .logo-text {
  color: var(--black);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  height: 100vh;
  position: relative;
  background: var(--black);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 60px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
}

.hero-title {
  font-family: var(--font-logo);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 400;
  font-style: italic;
  color: var(--white);
  margin-bottom: 32px;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.hero-btn {
  padding: 16px 40px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 1px solid var(--white);
  color: var(--white);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.hero-btn:hover {
  background: var(--white);
  color: var(--black);
}

.hero-btn-filled {
  padding: 16px 40px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 1px solid var(--white);
  color: var(--black);
  background: var(--white);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.hero-btn-filled:hover {
  background: transparent;
  color: var(--white);
}

/* ========================================
   RIGHT PANEL (Contact & Menu)
   ======================================== */
.right-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 100%;
  height: 100%;
  background: var(--cream);
  color: var(--black);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  overflow-y: auto;
}

.right-panel.active {
  transform: translateX(0);
}

.panel-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  background: var(--black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}

.panel-close svg {
  width: 16px;
  height: 16px;
  stroke: var(--white);
  stroke-width: 2;
}

.panel-content {
  padding: 80px 40px 40px;
}

.panel-title {
  font-family: var(--font-logo);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 40px;
}

/* Contact Panel */
.contact-item {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-item-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.contact-item-header svg {
  width: 18px;
  height: 18px;
  stroke: var(--black);
  fill: none;
  stroke-width: 1.5;
}

.contact-item-header a,
.contact-item-header span {
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  color: var(--black);
}

.contact-item p {
  font-size: 12px;
  color: var(--warm-gray);
  line-height: 1.6;
  margin-left: 30px;
}

.contact-footer {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.contact-footer p {
  font-size: 14px;
  margin-bottom: 16px;
}

.contact-footer a {
  font-size: 14px;
  text-decoration: underline;
  color: var(--black);
}

/* Menu Panel */
.menu-nav {
  margin-bottom: 40px;
}

.menu-nav li {
  margin: 0;
}

.menu-nav a {
  display: block;
  font-size: 18px;
  font-weight: 400;
  color: var(--black);
  padding: 12px 0;
  transition: color 0.2s ease;
}

.menu-nav a:hover {
  color: var(--warm-gray);
}

.menu-nav-secondary {
  padding-top: 24px;
  border-top: 1px solid rgba(0,0,0,0.1);
  margin-bottom: 40px;
}

.menu-nav-secondary a {
  display: block;
  font-size: 14px;
  color: var(--black);
  padding: 10px 0;
}

.menu-footer {
  padding-top: 24px;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.menu-footer a {
  display: block;
  font-size: 14px;
  text-decoration: underline;
  color: var(--black);
  padding: 8px 0;
}

/* ========================================
   SEARCH DROPDOWN
   ======================================== */
.search-dropdown {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  width: 580px;
  max-width: calc(100% - 48px);
  background: var(--white);
  color: var(--black);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.search-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.search-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-light);
}

.search-header label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-medium);
  margin-bottom: 12px;
}

.search-header input {
  width: 100%;
  border: none;
  font-size: 18px;
  padding: 8px 0;
  background: transparent;
  outline: none;
}

.search-cancel {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 13px;
  color: var(--black);
}

.search-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 24px;
}

.search-column h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-medium);
  margin-bottom: 12px;
}

.search-column ul {
  list-style: none;
}

.search-column a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--black);
  padding: 8px 0;
}

.search-column svg {
  width: 14px;
  height: 14px;
  stroke: var(--gray-medium);
  fill: none;
  stroke-width: 1.5;
}

/* ========================================
   CONTENT SECTION
   ======================================== */
.content {
  background: var(--cream);
  color: var(--black);
  padding: 100px 80px;
}

.content-header {
  text-align: center;
  margin-bottom: 60px;
}

.content-header h2 {
  font-family: var(--font-logo);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 400;
  color: var(--black);
}

.content-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.content-inner p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--warm-gray);
  margin-bottom: 24px;
}

.cta-btn {
  display: inline-block;
  padding: 16px 40px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--black);
  transition: all 0.3s var(--ease);
  margin-top: 20px;
}

.cta-btn:hover {
  background: transparent;
  color: var(--black);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 80px 80px 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand {
  max-width: 280px;
}

.footer-logo {
  font-family: var(--font-logo);
  font-size: 24px;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray-medium);
}

.footer-links h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 20px;
  color: var(--gray-medium);
}

.footer-links a {
  display: block;
  font-size: 14px;
  color: var(--white);
  padding: 8px 0;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 12px;
  color: var(--gray-medium);
}

/* ========================================
   BUTTONS (Global)
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  text-decoration: none;
}

.btn-primary {
  background: var(--charcoal);
  color: var(--white);
  border: 1px solid var(--charcoal);
}

.btn-primary:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--charcoal);
  border: 1px solid var(--charcoal);
}

.btn-secondary:hover {
  background: var(--charcoal);
  color: var(--white);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 12px;
}

/* ========================================
   APPLE BUSINESS CHAT BUTTON
   ======================================== */
.apple-chat-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
}

.apple-chat-btn {
  width: 50px;
  height: 44px;
  background: #1a1a1a;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  position: relative;
  border-radius: 22px 22px 4px 22px;
}

.apple-chat-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.chat-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.chat-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.chat-logo {
  position: absolute;
  font-family: var(--font-logo);
  font-size: 16px;
  color: #fff;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.apple-chat-btn.show-logo .chat-dots {
  opacity: 0;
  transform: scale(0.8);
}

.apple-chat-btn.show-logo .chat-logo {
  opacity: 1;
  transform: scale(1);
}

.chat-dot {
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .header {
    height: 56px;
    padding: 0 16px;
  }
  
  .header-right {
    gap: 16px;
  }

  .right-panel {
    width: 100%;
  }

  .search-dropdown {
    width: calc(100% - 32px);
    top: 56px;
  }

  .search-columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .hero-btn,
  .hero-btn-filled {
    width: 220px;
    text-align: center;
  }

  .hero-title {
    padding: 0 20px;
  }

  .content {
    padding: 60px 24px;
  }

  .footer {
    padding: 60px 24px 30px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .apple-chat-container {
    bottom: 20px;
    right: 20px;
  }

  .apple-chat-btn {
    width: 44px;
    height: 38px;
    border-radius: 19px 19px 3px 19px;
  }

  .chat-dot {
    width: 5px;
    height: 5px;
  }
}
