/* Main CSS File - Walkrik Website */

/* Variables */
:root {
  /* Color Palette */
  --primary-dark: #0E2148;
  --primary: #483AA0;
  --primary-light: #7965C1;
  --accent: #E3D095;
  
  /* Extended color palette */
  --white: #ffffff;
  --black: #000000;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  
  /* Functional colors */
  --text-dark: #212529;
  --text-light: #f8f9fa;
  --text-muted: #6c757d;
  --link-color: var(--primary);
  --link-hover: var(--primary-light);
  
  /* Success, warning, error colors */
  --success: #28a745;
  --warning: #ffc107;
  --error: #dc3545;
  
  /* Spacing system (in pixels) */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 80px;
  --space-8: 96px;
  
  /* Font sizes */
  --fs-xs: 0.75rem;    /* 12px */
  --fs-sm: 0.875rem;   /* 14px */
  --fs-base: 1rem;     /* 16px */
  --fs-lg: 1.125rem;   /* 18px */
  --fs-xl: 1.25rem;    /* 20px */
  --fs-2xl: 1.5rem;    /* 24px */
  --fs-3xl: 1.875rem;  /* 30px */
  --fs-4xl: 2.25rem;   /* 36px */
  --fs-5xl: 3rem;      /* 48px */
  
  /* Line heights */
  --lh-tight: 1.2;
  --lh-base: 1.5;
  --lh-loose: 1.8;
  
  /* Font weights */
  --fw-light: 300;
  --fw-regular: 400;
  --fw-semibold: 600;
  --fw-bold: 700;
  
  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
  
  /* Z-index levels */
  --z-below: -1;
  --z-normal: 1;
  --z-above: 10;
  --z-fixed: 100;
  --z-modal: 1000;
  --z-toast: 2000;
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--text-dark);
  background-color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--link-color);
  text-decoration: none;
  transition: color var(--transition-normal);
}

a:hover, 
a:focus {
  color: var(--link-hover);
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: var(--space-2);
  line-height: var(--lh-tight);
  font-weight: var(--fw-bold);
  color: var(--primary-dark);
}

h1 {
  font-size: var(--fs-4xl);
}

h2 {
  font-size: var(--fs-3xl);
}

h3 {
  font-size: var(--fs-2xl);
}

h4 {
  font-size: var(--fs-xl);
}

h5 {
  font-size: var(--fs-lg);
}

h6 {
  font-size: var(--fs-base);
}

p {
  margin-top: 0;
  margin-bottom: var(--space-2);
}

ul, ol {
  margin-top: 0;
  margin-bottom: var(--space-2);
  padding-left: var(--space-3);
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  padding: 0;
}

button:focus {
  outline: none;
}

/* Container & Layout */
.wrapper {
  display: flex;
  min-height: 100vh;
}

.main-content {
  flex: 1;
  padding: var(--space-3);
  overflow-x: hidden;
  transition: margin-left var(--transition-normal);
  width: 100%;
}

@media (min-width: 768px) {
  .main-content {
    padding: var(--space-4);
  }
}

@media (min-width: 1024px) {
  .main-content {
    padding: var(--space-5);
  }
}

/* Page Header */
.page-header {
  margin-bottom: var(--space-4);
  position: relative;
}

.page-title {
  font-size: var(--fs-4xl);
  color: var(--primary-dark);
  position: relative;
  display: inline-block;
}

.page-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--accent);
  border-radius: var(--radius-full);
}

/* Section Styling */
.section-title {
  font-size: var(--fs-3xl);
  margin-bottom: var(--space-3);
  color: var(--primary-dark);
  position: relative;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  text-align: center;
  text-decoration: none;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  white-space: nowrap;
  height: 44px;
}

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

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
}

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

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: var(--primary-light);
  color: var(--white);
  border-color: var(--primary-light);
}

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

.btn-accent:hover,
.btn-accent:focus {
  background-color: #d6c278;
  border-color: #d6c278;
  color: var(--primary-dark);
}

/* Cards */
.card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

/* Grids */
.grid {
  display: grid;
  gap: var(--space-3);
}

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

/* Forms */
.form-group {
  margin-bottom: var(--space-3);
}

.form-label {
  display: block;
  margin-bottom: var(--space-1);
  font-weight: var(--fw-semibold);
  color: var(--text-dark);
}

.form-control {
  display: block;
  width: 100%;
  padding: var(--space-1) var(--space-2);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--text-dark);
  background-color: var(--white);
  border: 1px solid var(--gray-400);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-normal);
}

.form-control:focus {
  border-color: var(--primary);
  outline: none;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

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

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

.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }

.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }

.py-1 { padding-top: var(--space-1); padding-bottom: var(--space-1); }
.py-2 { padding-top: var(--space-2); padding-bottom: var(--space-2); }
.py-3 { padding-top: var(--space-3); padding-bottom: var(--space-3); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-5 { padding-top: var(--space-5); padding-bottom: var(--space-5); }

.px-1 { padding-left: var(--space-1); padding-right: var(--space-1); }
.px-2 { padding-left: var(--space-2); padding-right: var(--space-2); }
.px-3 { padding-left: var(--space-3); padding-right: var(--space-3); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-5 { padding-left: var(--space-5); padding-right: var(--space-5); }

/* Responsive Utilities */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }

@media (min-width: 576px) {
  .d-sm-none { display: none !important; }
  .d-sm-block { display: block !important; }
  .d-sm-flex { display: flex !important; }
  .d-sm-grid { display: grid !important; }
}

@media (min-width: 768px) {
  .d-md-none { display: none !important; }
  .d-md-block { display: block !important; }
  .d-md-flex { display: flex !important; }
  .d-md-grid { display: grid !important; }
}

@media (min-width: 992px) {
  .d-lg-none { display: none !important; }
  .d-lg-block { display: block !important; }
  .d-lg-flex { display: flex !important; }
  .d-lg-grid { display: grid !important; }
}

@media (min-width: 1200px) {
  .d-xl-none { display: none !important; }
  .d-xl-block { display: block !important; }
  .d-xl-flex { display: flex !important; }
  .d-xl-grid { display: grid !important; }
}

/* Common sections styling */
.hero-section {
  position: relative;
  height: 70vh;
  min-height: 400px;
  background-image: url('https://i.pinimg.com/736x/5a/85/04/5a8504f77585c2b297c3fd3dcab323ea.jpg');
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-5);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(14, 33, 72, 0.8), rgba(72, 58, 160, 0.4));
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding: var(--space-5);
  max-width: 600px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-title {
  font-size: var(--fs-4xl);
  margin-bottom: var(--space-2);
  color: var(--white);
}

.hero-subtitle {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-3);
  color: var(--gray-100);
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.featured-section,
.services-highlight,
.testimonials,
.newsletter {
  margin-bottom: var(--space-6);
}

.featured-grid,
.services-grid {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

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

@media (min-width: 992px) {
  .featured-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.featured-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.featured-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

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

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

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

.card-title {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-1);
  color: var(--primary-dark);
}

.card-description {
  color: var(--gray-700);
  margin-bottom: var(--space-2);
}

.card-link {
  font-weight: var(--fw-semibold);
  color: var(--primary);
}

.card-link:hover {
  color: var(--primary-light);
}

.service-item {
  text-align: center;
  padding: var(--space-3);
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: var(--space-2);
}

.service-title {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-1);
  color: var(--primary-dark);
}

.service-description {
  color: var(--gray-700);
}

.services-cta {
  margin-top: var(--space-4);
  text-align: center;
}

.testimonial-slider {
  position: relative;
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: var(--space-4);
  margin-top: var(--space-3);
}

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

.testimonial-text {
  font-size: var(--fs-lg);
  font-style: italic;
  color: var(--gray-800);
  margin-bottom: var(--space-3);
}

.testimonial-author {
  margin-top: var(--space-2);
}

.author-name {
  font-weight: var(--fw-semibold);
  color: var(--primary);
  margin-bottom: 0;
}

.author-location {
  color: var(--gray-600);
  font-size: var(--fs-sm);
  margin-bottom: 0;
}

.slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.slider-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: var(--white);
  border: 1px solid var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
}

.slider-btn:hover {
  background-color: var(--primary);
  color: var(--white);
}

.slider-dots {
  display: flex;
  gap: var(--space-1);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background-color: var(--gray-300);
  cursor: pointer;
  transition: background-color var(--transition-normal);
}

.dot.active {
  background-color: var(--primary);
}

.newsletter {
  background-color: var(--primary-dark);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  text-align: center;
}

.newsletter-title {
  color: var(--white);
  margin-bottom: var(--space-1);
}

.newsletter-description {
  color: var(--gray-300);
  margin-bottom: var(--space-3);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: 500px;
  margin: 0 auto;
}

@media (min-width: 576px) {
  .newsletter-form {
    flex-direction: row;
  }
}

.newsletter-input {
  flex: 1;
  height: 44px;
  padding: 0 var(--space-2);
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--fs-base);
}

.newsletter-btn {
  width: 100%;
}

@media (min-width: 576px) {
  .newsletter-btn {
    width: auto;
  }
}

/* Footer */
.footer {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: var(--space-4) var(--space-3);
}

.cta-section {
  background-color: var(--gray-100);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  text-align: center;
  margin-top: var(--space-5);
}

.cta-title {
  color: var(--primary-dark);
  margin-bottom: var(--space-2);
}

.cta-text {
  color: var(--gray-700);
  margin-bottom: var(--space-3);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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