/* ===== MODERN MINIMALIST DESIGN SYSTEM ===== */
:root {
  /* Modern Color Palette - Monochromatic with accent */
  --primary-50: #fafaf9;
  --primary-100: #f5f5f4;
  --primary-200: #e7e5e4;
  --primary-300: #d6d3d1;
  --primary-400: #a8a29e;
  --primary-500: #78716c;
  --primary-600: #57534e;
  --primary-700: #44403c;
  --primary-800: #292524;
  --primary-900: #1c1917;
  
  /* Accent - Warm, sophisticated */
  --accent-50: #fef7ed;
  --accent-100: #feeee2;
  --accent-200: #fcd9b6;
  --accent-300: #f9c083;
  --accent-400: #f59e0b;
  --accent-500: #d97706;
  --accent-600: #b45309;
  --accent-700: #92400e;
  --accent-800: #78350f;
  --accent-900: #451a03;
  
  /* Semantic Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  
  /* Shadows - Subtle and refined */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Border Radius */
  --radius-sm: 0.125rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-all: all 0.2s ease;
  --transition-colors: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  --transform-press: scale(0.98);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--primary-800);
  line-height: 1.6;
  background-color: var(--primary-50);
  overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--primary-900);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
}

p {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--primary-600);
}

.text-lead {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--primary-700);
}

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

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

/* ===== LAYOUT ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section {
  padding: var(--space-24) 0;
}

.section-sm {
  padding: var(--space-16) 0;
}

.grid {
  display: grid;
  gap: var(--space-8);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  transition: var(--transition-all);
  border-bottom: 1px solid var(--primary-200);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) var(--space-6);
  max-width: 1280px;
  margin: 0 auto;
  height: 80px;
}

.navbar-brand {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--primary-900);
  text-decoration: none;
  letter-spacing: -0.02em;
  line-height: 1.2;
  z-index: 1001;
}

/* Desktop Navigation */
.navbar-nav.desktop-nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav-link {
  position: relative;
  padding: var(--space-2) var(--space-3);
  color: var(--primary-700);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  line-height: 1.3;
  transition: var(--transition-colors);
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-600);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-600);
  transition: var(--transition-all);
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.phone-button {
  font-size: 0.8rem;
  padding: var(--space-2) var(--space-3);
  gap: var(--space-1);
  white-space: nowrap;
}

/* Mobile Menu Toggle */
.navbar-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  position: relative;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary-800);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-origin: center;
  position: absolute;
}

.hamburger-line:nth-child(1) {
  top: 16px;
}

.hamburger-line:nth-child(2) {
  top: 21px;
}

.hamburger-line:nth-child(3) {
  top: 26px;
}

/* Hamburger Animation */
.navbar-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.navbar-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.navbar-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background: white;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1001;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-content {
  padding: var(--space-6);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.mobile-menu-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--primary-200);
  position: relative;
}

.mobile-brand {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--primary-900);
  text-decoration: none;
  text-align: center;
}

.mobile-menu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--primary-100);
  border: none;
  border-radius: var(--radius-md);
  color: var(--primary-700);
  cursor: pointer;
  transition: var(--transition-all);
  position: absolute;
  right: 0;
}

.mobile-menu-close:hover {
  background: var(--primary-200);
  color: var(--primary-900);
}

.mobile-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.mobile-nav-link {
  display: block;
  padding: var(--space-4) 0;
  color: var(--primary-800);
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 500;
  border-bottom: 1px solid var(--primary-100);
  transition: var(--transition-colors);
  text-align: center;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--accent-600);
  transform: translateX(4px);
}

.mobile-nav-cta {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--primary-200);
}

.mobile-phone-btn {
  width: 100%;
  justify-content: center;
  padding: var(--space-4) var(--space-6);
  font-size: 1.125rem;
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(
    135deg,
    var(--primary-50) 0%,
    var(--primary-100) 100%
  );
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="%23000" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.5;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  padding: var(--space-24) var(--space-6);
  z-index: 1;
}

.hero-title {
  margin-bottom: var(--space-6);
  animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: var(--space-12);
  color: var(--primary-600);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-all);
  min-height: 48px;
}

.btn-primary {
  background: var(--accent-600);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--accent-700);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: var(--transform-press);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-800);
  border-color: var(--primary-300);
}

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

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

.btn-outline:hover {
  background: var(--accent-50);
}


.btn-large {
  padding: var(--space-4) var(--space-8);
  font-size: 1.125rem;
}

.btn-small {
  padding: var(--space-2) var(--space-4);
  font-size: 0.875rem;
}

/* ===== CARDS ===== */
.card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-all);
  border: 1px solid var(--primary-200);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-all);
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  padding: var(--space-6);
}

.card-title {
  font-size: 1.375rem;
  margin-bottom: var(--space-2);
  color: var(--primary-900);
}

.card-description {
  color: var(--primary-600);
  margin-bottom: var(--space-4);
  line-height: 1.6;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-4);
  border-top: 1px solid var(--primary-200);
}

.card-price {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent-600);
}

/* ===== FORMS ===== */
.form-group {
  margin-bottom: var(--space-4);
}

.form-label {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: 500;
  color: var(--primary-800);
  font-size: 0.875rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--primary-300);
  border-radius: var(--radius-md);
  font-size: 1rem;
  background: white;
  transition: var(--transition-colors);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-500);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: flex;
  gap: var(--space-4);
  align-items: end;
}

.form-row .form-group {
  flex: 1;
  margin-bottom: 0;
}

/* ===== SECTIONS ===== */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-16);
}

.section-header h2 {
  margin-bottom: var(--space-4);
}

.section-header p {
  font-size: 1.25rem;
  color: var(--primary-600);
}

/* ===== SUBPAGE LAYOUT ===== */

/* Add extra top spacing to all subpages */
body.subpage .main-content {
  padding-top: var(--space-20);
}

/* Ensure the first section has proper spacing */
body.subpage .main-content > section:first-child {
  padding-top: var(--space-12);
}

/* ===== GLASS EFFECT ===== */
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
  background: rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

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

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .container {
    padding: 0 var(--space-4);
  }
  
  .section {
    padding: var(--space-20) 0;
  }
  
  .navbar-container {
    padding: var(--space-3) var(--space-4);
  }
  
  .desktop-nav .nav-link {
    padding: var(--space-1) var(--space-2);
    font-size: 0.85rem;
  }
  
  .phone-button {
    padding: var(--space-1) var(--space-2);
    font-size: 0.75rem;
  }
}

/* Show mobile menu for tablets and phones */
@media (max-width: 1024px) {
  .desktop-nav {
    display: none !important;
  }
  
  .navbar-toggle {
    display: flex !important;
  }
}

@media (max-width: 768px) {
  .navbar-container {
    padding: var(--space-3) var(--space-4);
    height: 70px;
  }
  
  .navbar-brand {
    font-size: 1.2rem;
  }
  
  .mobile-menu {
    width: 280px;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .form-row {
    flex-direction: column;
    gap: var(--space-4);
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  /* Adjust main content padding for mobile */
  body.subpage .main-content {
    padding-top: 70px;
  }
}

/* For very small screens */
@media (max-width: 480px) {
  .navbar-container {
    padding: var(--space-2) var(--space-3);
  }
  
  .mobile-menu {
    width: 100vw;
    max-width: none;
  }
  
  .mobile-menu-content {
    padding: var(--space-4);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-3);
  }
  
  .section {
    padding: var(--space-16) 0;
  }
  
  .hero-content {
    padding: var(--space-16) var(--space-4);
  }
  
  .btn {
    width: 100%;
    max-width: 280px;
  }
}

/* ===== ADDITIONAL MINIMALIST STYLES ===== */
.hero-visual {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-100), var(--accent-200));
  opacity: 0.3;
  clip-path: polygon(20% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.section-divider {
  height: 1px;
  background: var(--primary-200);
  margin: var(--space-24) 0;
}

.minimal-card {
  background: white;
  border: 1px solid var(--primary-200);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: var(--transition-all);
}

.minimal-card:hover {
  border-color: var(--accent-300);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-8);
}

.feature-item {
  text-align: center;
  padding: var(--space-8);
}

.feature-number {
  font-size: 3rem;
  font-weight: 300;
  color: var(--accent-400);
  font-family: var(--font-serif);
  margin-bottom: var(--space-4);
}

.cta-section {
  background: var(--primary-100);
  border-radius: var(--radius-2xl);
  padding: var(--space-16);
  text-align: center;
}

.footer-minimal {
  border-top: 1px solid var(--primary-200);
  padding: var(--space-12) 0;
  text-align: center;
  color: var(--primary-600);
}
