/* ========================================
   GLOBAL STYLES & DESIGN SYSTEM
   ======================================== */

/* Root Design Tokens */
:root {
  /* Brand Colors - Elegant & Sophisticated */
  --background: hsl(32, 20%, 97%);
  --foreground: hsl(25, 10%, 15%);
  
  /* Luxury Card System */
  --card: hsl(30, 15%, 98%);
  --card-foreground: hsl(25, 10%, 15%);
  
  /* Premium Brand Colors */
  --primary: hsl(35, 25%, 25%);
  --primary-foreground: hsl(30, 15%, 98%);
  
  /* Elegant Secondary */
  --secondary: hsl(35, 12%, 92%);
  --secondary-foreground: hsl(25, 10%, 25%);
  
  /* Luxury Gold Accent */
  --accent: hsl(45, 85%, 65%);
  --accent-foreground: hsl(25, 10%, 15%);
  
  /* Muted Elegance */
  --muted: hsl(32, 8%, 94%);
  --muted-foreground: hsl(25, 8%, 45%);
  
  /* Subtle Elements */
  --border: hsl(30, 10%, 88%);
  --input: hsl(30, 10%, 94%);
  --ring: hsl(35, 25%, 25%);
  
  --radius: 0.75rem;
  
  /* Gradients */
  --gradient-hero: linear-gradient(135deg, hsl(32, 20%, 97%) 0%, hsl(35, 12%, 92%) 100%);
  --gradient-card: linear-gradient(145deg, hsl(30, 15%, 98%) 0%, hsl(32, 12%, 96%) 100%);
  --gradient-accent: linear-gradient(135deg, hsl(45, 85%, 65%) 0%, hsl(40, 80%, 60%) 100%);
  
  /* Shadows */
  --shadow-soft: 0 2px 20px -5px rgba(0, 0, 0, 0.08);
  --shadow-elegant: 0 8px 30px -8px rgba(0, 0, 0, 0.12);
  --shadow-luxury: 0 15px 50px -12px rgba(0, 0, 0, 0.15);
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  --transition-gentle: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Typography */
  --font-family-display: 'Playfair Display', serif;
  --font-family-body: 'Inter', sans-serif;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-body);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-gentle);
}

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

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

/* ========================================
   UTILITY CLASSES
   ======================================== */

.d-none {
  display: none !important;
}

.d-block {
  display: block !important;
}

.d-inline {
  display: inline !important;
}

.d-inline-block {
  display: inline-block !important;
}

.d-flex {
  display: flex !important;
}

.d-grid {
  display: grid !important;
}

/* Visibility Classes */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Spacing Utilities */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* Text Utilities */
.text-center {
  text-align: center;
}

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

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

.text-muted {
  color: var(--muted-foreground);
}

.text-primary {
  color: var(--primary);
}

.text-accent {
  color: var(--accent);
}

/* ========================================
   COMMON BUTTON STYLES
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.125rem;
  border-radius: var(--radius);
  font-weight: 500;
  transition: var(--transition-gentle);
  cursor: pointer;
  border: none;
}

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

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

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

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

.btn-outline {
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
}

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

.btn-danger {
  background-color: #ff6b6b;
  color: white;
}

.btn-danger:hover {
  background-color: #ff4b4b;
}

.btn i {
  font-size: 0.9rem;
}

/* ========================================
   COMMON INPUT STYLES
   ======================================== */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-color: var(--input);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition-gentle);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.1);
  outline: none;
}

/* ========================================
   COMMON FORM STYLES
   ======================================== */

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.form-group label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

/* ========================================
   COMMON FOOTER STYLES
   ======================================== */

.footer {
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 3rem 2rem 1rem;
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand a {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.footer-logo-title {
  font-weight: 600;
  font-size: 1.25rem;
}

.footer-logo-subtitle {
  font-size: 0.875rem;
  opacity: 0.8;
}

.footer-description {
  font-size: 0.875rem;
  opacity: 0.8;
  line-height: 1.6;
}

.footer-nav,
.footer-social {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav a,
.footer-social a {
  opacity: 0.8;
  transition: var(--transition-gentle);
}

.footer-nav a:hover,
.footer-social a:hover {
  opacity: 1;
}

.footer-contact h3,
.footer-social h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.footer-contact p,
.footer-social ul {
  font-size: 0.875rem;
  opacity: 0.8;
}

.footer-social ul {
  list-style: none;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  opacity: 0.8;
}

.footer-made-by {
  margin-top: 0.5rem;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
  :root {
    --radius: 0.5rem;
  }

  .btn {
    padding: 0.5rem 1rem;
  }
}
