/*
Theme Name: Xenia Connect
Theme URI: https://xeniaconnect.com
Author: Xenia Connect
Author URI: https://xeniaconnect.com
Description: Strategic hospitality consulting theme for Xenia Connect
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: xenia-connect
Tags: hospitality, consulting, business, professional
*/

/* ===========================
   CSS Custom Properties
   =========================== */
:root {
  --background: hsl(30, 20%, 98%);
  --foreground: hsl(210, 15%, 15%);
  --primary: hsl(175, 35%, 45%);
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(30, 10%, 92%);
  --secondary-foreground: hsl(210, 15%, 20%);
  --muted: hsl(30, 15%, 95%);
  --muted-foreground: hsl(210, 10%, 45%);
  --accent: hsl(175, 45%, 38%);
  --accent-foreground: hsl(0, 0%, 100%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(210, 15%, 15%);
  --border: hsl(30, 15%, 88%);
  --destructive: hsl(0, 72%, 51%);
  --radius: 0.5rem;
}

/* ===========================
   Reset & Base
   =========================== */
*, *::before, *::after {
  box-sizing: border-box;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  overflow-x: hidden;
  line-height: 1.625;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-top: 0;
}

h1 { font-size: 3rem; font-weight: 700; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.875rem; }

p {
  max-width: 65ch;
  margin-top: 0;
}

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

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

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ===========================
   Layout
   =========================== */
.container {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
  .container { padding-left: 2rem; padding-right: 2rem; }
}

.min-h-screen {
  min-height: 100vh;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.grid { display: grid; }

.text-center { text-align: center; }

/* ===========================
   Header
   =========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid var(--border);
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header .container {
  display: flex;
  height: 4rem;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  transition: opacity 0.2s;
}

.site-logo:hover { opacity: 0.85; }

.main-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .main-nav { display: flex; }
}

.main-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(26, 32, 44, 0.8);
  text-decoration: none;
  transition: color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--foreground);
  font-weight: 600;
}

.main-nav a.current-menu-item,
.main-nav a[aria-current="page"] {
  color: var(--primary);
  font-weight: 600;
}

/* ===========================
   Buttons
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  font-family: "DM Sans", sans-serif;
  line-height: 1;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--primary-foreground);
}

.btn-outline {
  background-color: transparent;
  color: var(--foreground);
  border-color: var(--border);
}

.btn-outline:hover {
  background-color: var(--secondary);
  color: var(--foreground);
}

.btn-lg {
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
  color: var(--foreground);
}

.mobile-menu-toggle:hover { background-color: var(--secondary); }

@media (min-width: 768px) {
  .mobile-menu-toggle { display: none; }
}

/* Mobile Nav Drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: 4rem;
  right: 0;
  bottom: 0;
  width: 300px;
  background: var(--background);
  border-left: 1px solid var(--border);
  padding: 2rem;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 49;
  box-shadow: -4px 0 24px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
  transform: translateX(100%);
}

.mobile-nav.is-open {
  display: flex;
  transform: translateX(0);
}

.mobile-nav a {
  font-size: 1.125rem;
  font-weight: 500;
  color: rgba(26, 32, 44, 0.8);
  text-decoration: none;
  transition: color 0.2s;
}

.mobile-nav a:hover,
.mobile-nav a.active { color: var(--foreground); font-weight: 600; }

/* ===========================
   Hero Section
   =========================== */
.hero-section {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('https://images.unsplash.com/photo-1694973283525-2b3840f7c08a?w=1600&q=80');
  background-size: cover;
  background-position: center;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    rgba(250,248,245,0.95) 0%,
    rgba(250,248,245,0.85) 50%,
    rgba(250,248,245,0.70) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.75rem);
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.125rem;
  color: rgba(26, 32, 44, 0.8);
  margin-bottom: 2rem;
  line-height: 1.7;
  max-width: 60ch;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ===========================
   Section Shared Styles
   =========================== */
.section-py { padding-top: 5rem; padding-bottom: 5rem; }
.bg-muted { background-color: var(--muted); }
.bg-primary-section { background-color: var(--primary); color: var(--primary-foreground); }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 { margin-bottom: 1rem; }

.section-header p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

/* ===========================
   Services Grid
   =========================== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
}

.service-card {
  background-color: var(--card);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  height: 100%;
}

.service-card:hover {
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}

.service-card-inner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.service-icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background-color: rgba(67, 158, 145, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.service-icon svg { width: 1.5rem; height: 1.5rem; }

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--muted-foreground);
  line-height: 1.7;
  font-size: 0.9375rem;
  max-width: none;
  margin: 0;
}

/* ===========================
   About Page
   =========================== */
.about-story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-story-grid { grid-template-columns: 1fr 1fr; }
}

.about-story-text h2 { margin-bottom: 1.5rem; }

.about-story-text p {
  color: var(--muted-foreground);
  line-height: 1.8;
  margin-bottom: 1rem;
  max-width: none;
}

.about-story-image img {
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  width: 100%;
}

.mission-section {
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 5rem 0;
  text-align: center;
}

.mission-section h2 { color: var(--primary-foreground); margin-bottom: 1.5rem; }

.mission-section p {
  font-size: 1.25rem;
  line-height: 1.8;
  margin-left: auto;
  margin-right: auto;
  max-width: 48rem;
  opacity: 0.95;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .values-grid { grid-template-columns: 1fr 1fr; }
}

.value-card {
  background-color: var(--muted);
  border-radius: 0.75rem;
  padding: 2rem;
}

.value-card-inner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.value-icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background-color: rgba(67, 158, 145, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.value-icon svg { width: 1.5rem; height: 1.5rem; }

.value-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.value-card p { color: var(--muted-foreground); max-width: none; margin: 0; }

/* ===========================
   Contact Page
   =========================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

.contact-card {
  background: var(--card);
  border-radius: 1rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  overflow: hidden;
}

.contact-card-header {
  padding: 1.5rem 1.5rem 0;
}

.contact-card-header h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.contact-card-header p {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  max-width: none;
  margin: 0;
}

.contact-card-body {
  padding: 1.5rem;
}

/* Contact Form */
.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
  color: var(--foreground);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-family: "DM Sans", sans-serif;
  font-size: 0.9375rem;
  color: var(--foreground);
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(67, 158, 145, 0.15);
}

.contact-form textarea {
  resize: none;
  rows: 6;
  min-height: 9rem;
}

.contact-form .field-error {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  color: var(--destructive);
}

.contact-form .btn {
  width: 100%;
}

.form-success {
  display: none;
  background: rgba(67, 158, 145, 0.1);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  color: var(--primary);
  font-weight: 500;
  margin-top: 1rem;
}

.form-success.is-visible { display: block; }

/* Contact Info Side */
.contact-info-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.contact-info-section .intro {
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  max-width: none;
}

.contact-items { display: flex; flex-direction: column; gap: 1.5rem; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-item-icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background-color: rgba(67, 158, 145, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.contact-item-icon svg { width: 1.5rem; height: 1.5rem; }

.contact-item h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.contact-item a {
  color: var(--muted-foreground);
  transition: color 0.2s;
  font-family: "DM Sans", sans-serif;
}

.contact-item a:hover { color: var(--primary); }
.contact-item p { color: var(--muted-foreground); margin: 0; max-width: none; }

.business-hours {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

.business-hours h3 { font-size: 1rem; margin-bottom: 1rem; }

.business-hours p {
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
  max-width: none;
  font-size: 0.9375rem;
}

/* ===========================
   Page Heroes (inner pages)
   =========================== */
.page-hero {
  padding: 5rem 0;
  background: linear-gradient(to bottom, var(--muted), var(--background));
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
}

.page-hero p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-left: auto;
  margin-right: auto;
}

/* ===========================
   Footer
   =========================== */
.site-footer {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

.footer-brand-name {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: rgba(30, 38, 50, 0.7);
  max-width: none;
  margin: 0;
}

.footer-col-title {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav a {
  font-size: 0.875rem;
  color: rgba(30, 38, 50, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--secondary-foreground); }

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(30, 38, 50, 0.7);
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.footer-contact-item:hover { color: var(--secondary-foreground); }
.footer-contact-item svg { width: 1rem; height: 1rem; flex-shrink: 0; }

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  color: rgba(30, 38, 50, 0.7);
  transition: color 0.2s;
}

.footer-social a:hover { color: var(--primary); }
.footer-social svg { width: 1.25rem; height: 1.25rem; }

.footer-bottom {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

.footer-bottom p {
  font-size: 0.875rem;
  color: rgba(30, 38, 50, 0.5);
  margin: 0;
  max-width: none;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  font-size: 0.875rem;
  color: rgba(30, 38, 50, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal a:hover { color: var(--secondary-foreground); }

/* ===========================
   Animations
   =========================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* Intersection Observer animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   Responsive Utilities
   =========================== */
@media (max-width: 767px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  .section-py { padding-top: 3rem; padding-bottom: 3rem; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { text-align: center; }
  .about-story-image { order: -1; }
}

/* ===========================
   WordPress Core Compatibility
   =========================== */
.wp-caption { max-width: 100%; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignright { float: right; margin-left: 1rem; }
.alignleft { float: left; margin-right: 1rem; }
.screen-reader-text { clip: rect(1px,1px,1px,1px); height: 1px; overflow: hidden; position: absolute; width: 1px; }
