/* ========================================
   Custom Design - Professional Services
   Classic & Elegant Design System
   ======================================== */

/* CSS Custom Properties */
:root {
  /* Plum Palette */
  --plum-50: #faf5f7;
  --plum-100: #f3e8ed;
  --plum-200: #e8d2d9;
  --plum-300: #d4adba;
  --plum-400: #c07a96;
  --plum-500: #a85577;
  --plum-600: #933757;
  --plum-700: #701a75;
  --plum-800: #5c1560;
  --plum-900: #4a114e;
  --plum-950: #2d0a30;
  
  /* Amber Palette */
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --amber-900: #78350f;
  
  /* Neutrals */
  --neutral-50: #fafafa;
  --neutral-100: #f5f5f5;
  --neutral-200: #e5e5e5;
  --neutral-300: #d4d4d4;
  --neutral-400: #a3a3a3;
  --neutral-500: #737373;
  --neutral-600: #525252;
  --neutral-700: #404040;
  --neutral-800: #262626;
  --neutral-900: #171717;
  --neutral-950: #0a0a0a;
  
  /* Typography */
  --font-serif: 'Playfair Display', Georgia, Cambria, 'Times New Roman', serif;
  --font-sans: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;
  
  /* Layout */
  --container-max: 1200px;
  --header-height: 80px;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 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);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--neutral-800);
  background-color: var(--neutral-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

ul {
  list-style: none;
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--plum-700);
  color: white;
  padding: 8px;
  z-index: 100;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
}

/* ========================================
   Header
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(250, 250, 250, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--neutral-200);
  z-index: 50;
  transition: box-shadow var(--transition-base);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.logo-mark {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--plum-700);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--plum-700);
  border-radius: 4px;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--neutral-900);
  letter-spacing: 0.02em;
}

/* Navigation */
.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--neutral-700);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--plum-700);
  transition: width var(--transition-base);
}

.nav-link:hover {
  color: var(--plum-700);
}

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

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-xs);
  color: var(--neutral-800);
}

.mobile-menu-btn .icon-close {
  display: none;
}

.mobile-menu-btn.active .icon-menu {
  display: none;
}

.mobile-menu-btn.active .icon-close {
  display: block;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.875rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 4px;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background: var(--plum-700);
  color: white;
  border: 2px solid var(--plum-700);
}

.btn-primary:hover {
  background: var(--plum-800);
  border-color: var(--plum-800);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.btn-outline:hover {
  background: var(--plum-700);
  color: white;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-full {
  width: 100%;
}

.btn-large {
  padding: 1.125rem 2.25rem;
  font-size: 1rem;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--plum-950) 0%,
    var(--plum-800) 25%,
    var(--plum-700) 50%,
    var(--plum-600) 75%,
    var(--amber-700) 100%
  );
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.pexels.com/photos/7433853/pexels-photo-7433853.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(45, 10, 48, 0.85) 0%,
    rgba(112, 26, 117, 0.75) 50%,
    rgba(180, 83, 9, 0.65) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 800px;
  padding: var(--space-4xl) var(--space-md);
}

.hero-tag {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: rgba(251, 191, 36, 0.2);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: var(--amber-200);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 50px;
  margin-bottom: var(--space-lg);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: white;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
}

.hero-title em {
  font-style: italic;
  color: var(--amber-300);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: float 2s ease-in-out infinite;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6), transparent);
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ========================================
   Section Styles
   ======================================== */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-3xl);
}

.section-tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--plum-600);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--neutral-900);
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

.section-desc {
  font-size: 1.125rem;
  color: var(--neutral-600);
  line-height: 1.7;
}

/* ========================================
   Services Section
   ======================================== */
.services {
  padding: var(--space-4xl) 0;
  background: var(--neutral-50);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.service-card {
  background: white;
  padding: var(--space-xl);
  border-radius: 8px;
  border: 1px solid var(--neutral-200);
  transition: all var(--transition-base);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--plum-200);
}

.service-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--plum-50), var(--plum-100));
  border-radius: 12px;
  color: var(--plum-700);
  margin-bottom: var(--space-md);
}

.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--neutral-900);
  margin-bottom: var(--space-sm);
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--neutral-600);
  line-height: 1.7;
}

/* ========================================
   About Section
   ======================================== */
.about {
  padding: var(--space-4xl) 0;
  background: white;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.about-image-wrapper {
  position: relative;
}

.about-image {
  width: 100%;
  height: 700px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow-xl);
}

.about-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, var(--plum-200), var(--amber-200));
  border-radius: 8px;
  z-index: -1;
}

.about-content {
  padding: var(--space-lg);
}

.about-text {
  font-size: 1.0625rem;
  color: var(--neutral-600);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin: var(--space-xl) 0;
  padding: var(--space-lg);
  background: var(--plum-50);
  border-radius: 8px;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--plum-700);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--neutral-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ========================================
   Process Section
   ======================================== */
.process {
  padding: var(--space-4xl) 0;
  background: linear-gradient(135deg, var(--plum-950), var(--plum-800));
}

.process .section-header {
  margin-bottom: var(--space-3xl);
}

.process .section-tag {
  color: var(--amber-300);
}

.process .section-title {
  color: white;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-xl);
}

.process-step {
  text-align: center;
  padding: var(--space-xl);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all var(--transition-base);
}

.process-step:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.step-number {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--amber-400);
  margin-bottom: var(--space-sm);
  opacity: 0.8;
}

.process-step h3 {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 600;
  color: white;
  margin-bottom: var(--space-sm);
}

.process-step p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

/* ========================================
   CTA Section
   ======================================== */
.cta {
  padding: var(--space-4xl) 0;
  background: var(--neutral-100);
}

.cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--neutral-900);
  margin-bottom: var(--space-md);
}

.cta-text {
  font-size: 1.125rem;
  color: var(--neutral-600);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

.cta-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
  padding: var(--space-4xl) 0;
  background: white;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
}

.contact-info {
  padding: var(--space-lg);
}

.contact-desc {
  font-size: 1.0625rem;
  color: var(--neutral-600);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.contact-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.contact-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--plum-50);
  border-radius: 8px;
  color: var(--plum-700);
  flex-shrink: 0;
}

.contact-item h4 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--neutral-900);
  margin-bottom: 0.25rem;
}

.contact-item p,
.contact-item a {
  font-size: 0.9375rem;
  color: var(--neutral-600);
  line-height: 1.6;
}

.contact-item a:hover {
  color: var(--plum-700);
}

.map-container {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--neutral-200);
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--neutral-50);
  padding: var(--space-xl);
  border-radius: 8px;
  border: 1px solid var(--neutral-200);
}

.contact-form-wrapper h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--neutral-900);
  margin-bottom: var(--space-lg);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--neutral-700);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--neutral-800);
  background: white;
  border: 1px solid var(--neutral-300);
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--plum-500);
  box-shadow: 0 0 0 3px rgba(112, 26, 117, 0.1);
}

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

.form-success {
  display: none;
  text-align: center;
  padding: var(--space-xl);
}

.form-success svg {
  color: var(--plum-600);
  margin-bottom: var(--space-md);
}

.form-success h4 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--neutral-900);
  margin-bottom: var(--space-sm);
}

.form-success p {
  color: var(--neutral-600);
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--neutral-950);
  color: var(--neutral-400);
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand .logo {
  margin-bottom: var(--space-md);
}

.footer-brand .logo-mark {
  background: var(--plum-700);
  border-color: var(--plum-700);
  color: white;
}

.footer-brand .logo-text {
  color: white;
}

.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--neutral-400);
}

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
  margin-bottom: var(--space-md);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.9375rem;
  color: var(--neutral-400);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--amber-400);
}

.footer-contact p {
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.footer-contact a:hover {
  color: var(--amber-400);
}

.footer-bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid var(--neutral-800);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-bottom p {
  font-size: 0.875rem;
  color: var(--neutral-500);
}

.footer-legal {
  font-size: 0.8125rem !important;
  color: var(--neutral-600) !important;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
  .about-container {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  
  .about-image {
    height: 500px;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  .mobile-menu-btn {
    display: flex;
    z-index: 60;
  }
  
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: white;
    box-shadow: var(--shadow-xl);
    transition: right var(--transition-base);
    padding: calc(var(--header-height) + var(--space-xl)) var(--space-xl) var(--space-xl);
  }
  
  .nav.active {
    right: 0;
  }
  
  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-lg);
  }
  
  .nav-link {
    font-size: 1.125rem;
  }
  
  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-large {
    width: 100%;
  }
  
  .about-stats {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .process-steps {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-sm);
  }
  
  .service-card {
    padding: var(--space-md);
  }
  
  .contact-form-wrapper {
    padding: var(--space-md);
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}
