@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,700;0,900;1,700;1,900&display=swap');

:root {
  --bg-primary: #f6f4ee;       /* Warm cream background (from Alfan) */
  --bg-secondary: #ffffff;     /* Pure white card background */
  --bg-tertiary: #efeade;      /* Darker cream background for sections */
  --bg-element: #fbfaf7;       /* Soft beige for inner elements */
  --brand-primary: #C61B23;    /* Crimson Red brand color */
  --brand-primary-hover: #a5151c;
  --brand-primary-glow: rgba(198, 27, 35, 0.1);
  --fg-primary: #1f1b18;       /* Deep athletic charcoal/black */
  --fg-secondary: #5a544e;     /* Warm gray body text */
  --fg-tertiary: #847d75;      /* Muted text color */
  --border-color: #e2dcd0;     /* Cream-gray elegant border */
  --border-color-hover: rgba(198, 27, 35, 0.3);
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(226, 220, 208, 0.6);
  
  --font-sans: 'Outfit', sans-serif;
  --font-serif: 'Playfair Display', serif;
  
  --shadow-sm: 0 2px 8px rgba(31, 27, 24, 0.04);
  --shadow-md: 0 8px 24px rgba(31, 27, 24, 0.06);
  --shadow-lg: 0 16px 40px rgba(31, 27, 24, 0.08);
  --shadow-brand: 0 10px 30px rgba(198, 27, 35, 0.2);
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --border-radius-xl: 32px;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--fg-primary);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Background Gradients and Decorative Lights */
.bg-light-decor {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.light-orb-1 {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 27, 35, 0.08) 0%, rgba(198, 27, 35, 0) 70%);
  filter: blur(80px);
}

.light-orb-2 {
  position: absolute;
  top: 40%;
  right: -15%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 27, 35, 0.06) 0%, rgba(198, 27, 35, 0) 70%);
  filter: blur(80px);
}

.light-orb-3 {
  position: absolute;
  bottom: 10%;
  left: 5%;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 27, 35, 0.05) 0%, rgba(198, 27, 35, 0) 70%);
  filter: blur(100px);
}

.grid-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.02;
  background-image: linear-gradient(rgba(198, 27, 35, 0.15) 1px, transparent 1px), 
                    linear-gradient(90deg, rgba(198, 27, 35, 0.15) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
  from { transform: translateX(30px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes pulseBrand {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.animate-fade-in {
  animation: fadeIn var(--transition-slow) forwards;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 5px;
  border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brand-primary);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 10;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--border-radius-md);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}

.btn-primary {
  background-color: var(--brand-primary);
  color: var(--fg-primary);
  box-shadow: var(--shadow-brand);
}

.btn-primary:hover {
  background-color: var(--brand-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(198, 27, 35, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: var(--bg-tertiary);
  color: var(--fg-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: rgba(31, 27, 24, 0.04);
  border-color: var(--brand-primary);
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: translateY(0);
}

.btn-text {
  background: none;
  color: var(--fg-secondary);
  padding: 8px 16px;
}

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

/* Cards */
.card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.card:hover {
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-md), 0 4px 20px rgba(198, 27, 35, 0.04);
}

/* Typography elements */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(198, 27, 35, 0.1);
  color: var(--brand-primary);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid rgba(198, 27, 35, 0.15);
  margin-bottom: 24px;
}

.section-title {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-title span {
  color: var(--brand-primary);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
}

.section-desc {
  color: var(--fg-secondary);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto 56px auto;
}

/* Shared Header */
.header {
  border-bottom: 1px solid var(--border-color);
  background-color: rgba(246, 244, 238, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--fg-primary);
}

.logo-img {
  width: 44px;
  height: 44px;
  border-radius: var(--border-radius-sm);
  object-fit: contain;
  background-color: #000;
  padding: 2px;
  border: 1px solid rgba(198, 27, 35, 0.3);
  box-shadow: 0 4px 12px rgba(198, 27, 35, 0.2);
}

.logo-text-title {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.5px;
  display: block;
}

.logo-text-sub {
  font-size: 10px;
  color: var(--brand-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-link {
  color: var(--fg-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-primary);
}

/* Form Styles */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--fg-primary);
  font-size: 15px;
}

.form-label span {
  color: var(--brand-primary);
}

.form-control-wrapper {
  position: relative;
}

.form-control-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--fg-tertiary);
  pointer-events: none;
}

.form-control {
  width: 100%;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--fg-primary);
  padding: 14px 16px;
  border-radius: var(--border-radius-md);
  font-family: var(--font-sans);
  font-size: 15px;
  transition: all var(--transition-fast);
}

.form-control-icon + .form-control {
  padding-left: 48px;
}

.form-control::placeholder {
  color: var(--fg-tertiary);
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 1px rgba(198, 27, 35, 0.5);
}

/* Footer style */
.footer {
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  padding: 64px 0 32px 0;
  margin-top: 120px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 48px;
}

.footer-col h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 24px;
  position: relative;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 32px;
  height: 2px;
  background-color: var(--brand-primary);
}

.footer-desc {
  color: var(--fg-secondary);
  font-size: 14px;
  margin-top: 16px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--fg-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
  font-size: 14px;
}

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

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--fg-tertiary);
  font-size: 13px;
}

.footer-bottom-links a {
  color: var(--fg-tertiary);
  text-decoration: none;
  margin-left: 16px;
  transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
  color: var(--brand-primary);
}

/* Glass panel styling */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px 0 rgba(31, 27, 24, 0.05);
}

/* Responsive Grid layouts */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .section-title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .nav-menu {
    display: none; /* simple hidden for demo mobile toggles */
  }
}
