/* ============================================
   Pendry Mexico City Residences — Clone Styles
   ============================================ */

:root {
  --color-bg-dark: #0b0b0b;
  --color-bg-light: #f7f7f7;
  --color-accent: #c9a96e;
  --color-accent-hover: #b8985e;
  --color-text: #666;
  --color-text-dark: #111;
  --color-text-light: #fff;
  --color-overlay: rgba(0,0,0,0.55);
  --color-loader-bg: rgba(0,0,0,0.75);
  --font-body: 'Open Sans', Arial, sans-serif;
  --font-heading: 'Open Sans', Arial, sans-serif;
  --transition: 0.3s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg-light);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75em 1.6em; font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; border: 2px solid transparent;
  border-radius: 2px; cursor: pointer; transition: all var(--transition);
  min-height: 44px; position: relative;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-accent { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.btn-accent:hover:not(:disabled) { background: var(--color-accent-hover); border-color: var(--color-accent-hover); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-outline:hover:not(:disabled) { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-dark { background: #111; color: #fff; border-color: #111; }
.btn-dark:hover:not(:disabled) { background: #333; border-color: #333; }
.btn-light { background: #fff; color: #111; border-color: #fff; }
.btn-light:hover:not(:disabled) { background: #eee; border-color: #eee; }
.btn-full { width: 100%; }
.btn-small { padding: 0.4em 1em; font-size: 0.75rem; }

/* Button spinner */
.btn-spinner {
  display: none; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite;
  margin-left: 8px; flex-shrink: 0;
}
.btn.loading .btn-text { opacity: 0.8; }
.btn.loading .btn-spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Global Loader */
.global-loader {
  position: fixed; inset: 0; z-index: 99999;
  background: var(--color-loader-bg); display: none;
  align-items: center; justify-content: center; flex-direction: column;
}
.global-loader.active { display: flex; }
.loader-spinner {
  width: 48px; height: 48px; border: 4px solid rgba(255,255,255,0.25);
  border-top-color: var(--color-accent); border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
.loader-text { color: #fff; margin-top: 16px; font-size: 0.9rem; letter-spacing: 0.05em; }

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(11,11,11,0.85); backdrop-filter: blur(8px);
  transition: background var(--transition);
}
.site-header.scrolled { background: rgba(11,11,11,0.95); }
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.logo img { height: 36px; width: auto; }
.logo-fallback { color: #fff; font-weight: 600; letter-spacing: 0.15em; font-size: 0.9rem; }
.main-nav ul { display: flex; gap: 28px; }
.main-nav a {
  color: rgba(255,255,255,0.85); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; position: relative; padding: 4px 0;
}
.main-nav a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px;
  background: var(--color-accent); transition: width var(--transition);
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.user-indicator { display: flex; align-items: center; gap: 10px; }
.user-greeting { color: #fff; font-size: 0.8rem; }

/* Mobile Menu Toggle */
.mobile-menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-menu-toggle span { display: block; width: 24px; height: 2px; background: #fff; transition: var(--transition); }

/* Mobile Menu */
.mobile-menu {
  position: fixed; top: 0; right: -100%; width: 80%; max-width: 320px; height: 100vh;
  background: #111; z-index: 1001; padding: 80px 32px 32px; transition: right 0.35s ease;
}
.mobile-menu.open { right: 0; }
.mobile-menu-close {
  position: absolute; top: 20px; right: 24px; background: none; border: none;
  color: #fff; font-size: 2rem; cursor: pointer; line-height: 1;
}
.mobile-menu ul { display: flex; flex-direction: column; gap: 20px; }
.mobile-menu a {
  color: rgba(255,255,255,0.85); font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; display: block; padding: 8px 0;
}
.mobile-menu a:hover { color: var(--color-accent); }

/* Hero */
.hero {
  position: relative; height: 100vh; min-height: 600px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.hero-slider { position: absolute; inset: 0; z-index: 1; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease-in-out;
}
.hero-slide.active { opacity: 1; }
.hero-overlay { position: absolute; inset: 0; background: var(--color-overlay); z-index: 2; }
.hero-content { position: relative; z-index: 3; max-width: 800px; padding: 0 24px; }
.hero-title {
  font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 300; color: #fff;
  letter-spacing: 0.06em; line-height: 1.15; margin-bottom: 28px;
}
.hero-cta { font-size: 0.8rem; }
.hero-dots {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; gap: 10px;
}
.hero-dot {
  width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.4);
  cursor: pointer; transition: background var(--transition); border: none;
}
.hero-dot.active { background: #fff; }

/* Sections */
.section { padding: 100px 24px; }
.section-dark { background: var(--color-bg-dark); color: #ccc; }
.section-dark .section-title { color: #fff; }
.section-dark .section-kicker { color: var(--color-accent); }
.section-light { background: var(--color-bg-light); color: var(--color-text); }
.section-light .section-title { color: var(--color-text-dark); }
.section-light .section-kicker { color: var(--color-accent); }
.container { max-width: 1100px; margin: 0 auto; }
.container.narrow { max-width: 640px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.section-kicker {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 300; line-height: 1.2;
  margin-bottom: 24px; letter-spacing: 0.02em;
}
.section-body { font-size: 1rem; line-height: 1.8; margin-bottom: 20px; }
.center { text-align: center; }
.section-subtitle { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 12px; }
.section-note { font-size: 0.9rem; margin-top: 8px; margin-bottom: 32px; }

/* Image cards */
.image-card { position: relative; overflow: hidden; border-radius: 2px; }
.image-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.image-card:hover img { transform: scale(1.03); }
.image-card.img-fallback { background: linear-gradient(135deg, #1a1a1a, #333); min-height: 300px; }

/* Image sliders */
.image-slider { position: relative; overflow: hidden; border-radius: 2px; }
.image-slide { display: none; }
.image-slide.active { display: block; animation: fadeIn 0.8s ease; }
.image-slide img { width: 100%; height: auto; object-fit: cover; }
.image-slide.img-fallback { background: linear-gradient(135deg, #1a1a1a, #333); min-height: 300px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Offerings grid */
.offerings-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; }
.offering-card { background: #fff; border: 1px solid #e5e5e5; border-radius: 2px; overflow: hidden; transition: box-shadow var(--transition); }
.offering-card:hover { box-shadow: 0 12px 30px rgba(0,0,0,0.08); }
.offering-img { height: 180px; overflow: hidden; position: relative; background: linear-gradient(135deg, #ddd, #bbb); }
.offering-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.offering-img.img-fallback { background: linear-gradient(135deg, #ddd, #bbb); }
.offering-card:hover .offering-img img { transform: scale(1.05); }
.offering-card h3 { padding: 16px 16px 4px; font-size: 1rem; color: var(--color-text-dark); }
.offering-card p { padding: 0 16px 16px; font-size: 0.85rem; color: var(--color-text); }

/* Inquiry Section */
.section-inquiry { background: #fff; padding: 80px 24px; border-top: 1px solid #e5e5e5; }
.inquiry-list { display: inline-flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.inquiry-list li { font-size: 0.9rem; color: var(--color-text); }
.inquiry-form { margin-top: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 14px 16px; border: 1px solid #ddd; border-radius: 2px;
  font-family: inherit; font-size: 0.95rem; color: var(--color-text-dark);
  background: #fff; transition: border-color var(--transition);
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--color-accent); }
.form-group input::placeholder { color: #aaa; }
.form-disclaimer { font-size: 0.75rem; color: #999; margin-top: 16px; line-height: 1.5; }
.form-disclaimer a { color: var(--color-accent); text-decoration: underline; }
.form-success { text-align: center; padding: 40px 20px; background: #f7f7f7; border-radius: 2px; margin-top: 24px; }
.form-success h3 { color: var(--color-text-dark); margin-bottom: 8px; }

/* Register Page */
.register-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 120px 24px 60px; background: linear-gradient(180deg, #0b0b0b 0%, #1a1a1a 100%);
}
.register-card {
  background: #fff; padding: 48px 40px; border-radius: 2px; width: 100%; max-width: 440px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.register-card h1 { font-size: 1.5rem; font-weight: 300; color: var(--color-text-dark); margin-bottom: 8px; text-align: center; }
.register-subtitle { font-size: 0.9rem; color: var(--color-text); text-align: center; margin-bottom: 28px; }
.register-form .form-group { margin-bottom: 14px; }

/* Footer */
.site-footer { background: #0b0b0b; color: rgba(255,255,255,0.6); font-size: 0.85rem; }
.footer-top { padding: 60px 24px 40px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.footer-col h4 { color: #fff; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col p { line-height: 1.8; margin-bottom: 12px; }
.footer-col a { color: rgba(255,255,255,0.7); transition: color var(--transition); }
.footer-col a:hover { color: var(--color-accent); }
.footer-soon { color: rgba(255,255,255,0.45); font-size: 0.8rem; }
.footer-copyright { color: rgba(255,255,255,0.4); font-size: 0.8rem; margin-top: 8px; }
.footer-bottom { padding: 32px 24px; }
.footer-legal p { font-size: 0.75rem; color: rgba(255,255,255,0.35); line-height: 1.6; margin-bottom: 12px; }
.site-footer.compact { padding: 24px; text-align: center; }

/* WhatsApp Float */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 9998;
  width: 56px; height: 56px; background: #25d366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25); transition: transform var(--transition);
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float img { width: 32px; height: 32px; }
.whatsapp-float span { color: #fff; font-weight: 700; font-size: 1.2rem; }

/* Ghost Shopper Audit Panel */
.audit-panel {
  position: fixed; bottom: 20px; left: 20px; z-index: 9997;
  width: 320px; max-width: 90vw; background: #111; color: #ccc;
  border: 1px solid rgba(255,255,255,0.1); border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4); overflow: hidden;
}
.audit-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; background: rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.08);
}
.audit-header h4 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-accent); }
.audit-toggle { background: none; border: none; color: #fff; font-size: 1.2rem; cursor: pointer; padding: 0 4px; line-height: 1; }
.audit-body { max-height: 240px; overflow-y: auto; padding: 10px 14px; }
.audit-body.collapsed { display: none; }
.audit-log { display: flex; flex-direction: column; gap: 6px; }
.audit-log li { font-size: 0.72rem; line-height: 1.4; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 4px; }
.audit-log .audit-ts { color: rgba(255,255,255,0.4); font-size: 0.65rem; margin-right: 6px; }

/* Touch-friendly hover fallbacks */
@media (hover: none) {
  .image-card:hover img { transform: none; }
  .offering-card:hover { box-shadow: none; }
  .offering-card:hover .offering-img img { transform: none; }
}

/* Responsive */
@media (max-width: 980px) {
  .main-nav { display: none; }
  .header-actions .btn { display: none; }
  .header-actions .inquire-btn { display: inline-flex; }
  .mobile-menu-toggle { display: flex; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .two-col.reverse .text-col { order: -1; }
  .offerings-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 768px) {
  .section { padding: 72px 20px; }
  .hero { min-height: 500px; }
  .offerings-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .audit-panel { width: 280px; }
  .register-card { padding: 36px 24px; }
}

@media (max-width: 480px) {
  .header-inner { padding: 0 16px; height: 64px; }
  .logo img { height: 28px; }
  .hero-title { font-size: 1.6rem; }
  .section-title { font-size: 1.4rem; }
  .audit-panel { width: calc(100vw - 32px); left: 16px; bottom: 16px; }
  .whatsapp-float { width: 48px; height: 48px; bottom: 16px; right: 16px; }
  .whatsapp-float img { width: 26px; height: 26px; }
}
