/* Main CSS for City Press Mechelen - Professional Edition */

/* ======================================
   TABLE OF CONTENTS:
   
   1. CSS Variables & Reset
   2. Typography
   3. Layout & Containers
   4. Components
      4.1 Buttons
      4.2 Cards
      4.3 Forms
      4.4 Lists
   5. Header & Navigation
   6. Hero Section
   7. Main Content Sections
   8. Footer
   9. Utilities
   10. Media Queries
   ====================================== */

/* ====================================== 
   1. CSS Variables & Reset
   ====================================== */
:root {
  /* Brand Colors */
  --primary: #689dda;
  --primary-dark: #4a7eb9;
  --primary-light: #d1e1f5;
  --secondary: #a7c6ea;
  --secondary-dark: #8ab0de;
  --secondary-light: #e6f0fa;
  
  /* Neutral Colors */
  --neutral-100: #ffffff;
  --neutral-200: #f8f9fa;
  --neutral-300: #e9ecef;
  --neutral-400: #dee2e6;
  --neutral-500: #adb5bd;
  --neutral-600: #6c757d;
  --neutral-700: #495057;
  --neutral-800: #343a40;
  --neutral-900: #2b2d42;
  
  /* Semantic Colors */
  --text: var(--neutral-900);
  --text-light: var(--neutral-600);
  --text-lighter: var(--neutral-500);
  --background: var(--neutral-100);
  --background-alt: var(--neutral-300);
  
  /* UI Elements */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --border-radius-sm: 4px;
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --border-radius-xl: 20px;
  --border-radius-full: 9999px;
  
  /* Typography */
  --font-primary: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --font-accent: 'Merriweather', Georgia, serif;
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.8;
  
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-10: 4rem;
  --space-12: 5rem;
  --space-16: 8rem;
  
  /* Layout */
  --container-width: 1200px;
  --header-height: 70px;
  --section-spacing: var(--space-12);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition: 300ms ease;
  --transition-slow: 500ms ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  line-height: var(--line-height-normal);
  color: var(--text);
  background-color: var(--background);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, svg {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* ====================================== 
   2. Typography
   ====================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-accent);
  color: var(--text);
  margin-bottom: var(--space-5);
  line-height: var(--line-height-tight);
  font-weight: 700;
}

h1 {
  font-size: 2.8rem;
  color: var(--primary);
  margin-bottom: var(--space-6);
}

h2 {
  font-size: 2.2rem;
  position: relative;
  padding-bottom: var(--space-4);
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 3px;
  background-color: var(--primary);
}

h3 {
  font-size: 1.6rem;
  color: var(--primary);
  margin-top: var(--space-6);
}

p {
  margin-bottom: var(--space-5);
  font-size: 1.1rem;
  color: var(--text);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
  font-weight: 500;
}

a:hover {
  color: var(--primary-dark);
}

ul, ol {
  margin-left: var(--space-5);
  margin-bottom: var(--space-5);
}

li {
  margin-bottom: var(--space-2);
}

strong, b {
  font-weight: 700;
  color: var(--text);
}

/* ====================================== 
   3. Layout & Containers
   ====================================== */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.site-main {
  flex: 1;
}

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

.section-title {
  text-align: center;
  margin-bottom: var(--space-8);
}

.section-title h2 {
  display: inline-block;
  position: relative;
  margin-top: 0;
}

.section-title h2::after {
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
}

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

.grid-3 {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* ====================================== 
   4. Components
   ====================================== */

/* 4.1 Buttons */
.btn,
.btn-large,
.btn-submit {
  display: inline-block;
  background-color: var(--primary);
  color: var(--neutral-100);
  text-decoration: none;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--border-radius);
  transition: all var(--transition);
  border: none;
  cursor: pointer;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  line-height: 1.4;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-large {
  padding: var(--space-4) var(--space-6);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn:hover,
.btn-large:hover,
.btn-submit:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  color: var(--neutral-100);
}

.btn:active,
.btn-large:active,
.btn-submit:active {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  color: var(--text);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

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

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--neutral-100);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 4.2 Cards */
.card {
  background-color: var(--neutral-100);
  padding: var(--space-6);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--neutral-400);
  position: relative;
  overflow: hidden;
}

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

.card-accent {
  position: relative;
}

.card-accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background-color: var(--primary);
}

.card-accent-bottom {
  border-bottom: 3px solid var(--secondary);
}

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

.form-group label {
  display: block;
  margin-bottom: var(--space-3);
  font-weight: 500;
  color: var(--text);
}

.form-control {
  width: 100%;
  padding: var(--space-4);
  border: 1px solid var(--neutral-400);
  border-radius: var(--border-radius-sm);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

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

/* 4.4 Lists */
.list-unstyled {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

.list-unstyled li {
  padding: var(--space-2) 0;
}

.list-hours {
  max-width: 500px;
  margin: var(--space-6) auto;
}

.list-hours li {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--neutral-400);
  font-size: 1.1rem;
}

.list-hours li:last-child {
  border-bottom: none;
}

.day {
  font-weight: 700;
  color: var(--text);
}

/* ====================================== 
   5. Header & Navigation
   ====================================== */
.site-header {
  background-color: var(--neutral-100);
  padding: var(--space-4) 0;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--primary);
}

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

.logo a {
  display: flex;
  align-items: center;
  color: var(--primary);
  font-size: 1.8rem;
  font-weight: bold;
  font-family: var(--font-accent);
  text-decoration: none;
}

.logo-icon {
  margin-right: var(--space-3);
  display: flex;
  align-items: center;
}

.logo-icon .material-icons {
  font-size: 2rem;
}

.main-nav {
  display: flex;
  align-items: center;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.5rem;
  cursor: pointer;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
}

.nav-item {
  margin-left: var(--space-6);
  margin-bottom: 0;
}

.nav-item a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  padding: var(--space-2) 0;
  position: relative;
  font-size: 1.1rem;
}

.nav-item a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary);
  transition: width var(--transition);
}

.nav-item a:hover, 
.nav-item a.active {
  color: var(--primary);
}

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

/* ====================================== 
   6. Hero Section
   ====================================== */
.hero {
  background-color: var(--primary);
  background-image: linear-gradient(rgba(43, 45, 66, 0.7), rgba(43, 45, 66, 0.7)), url('/images/mechelen-background.jpg');
  background-size: cover;
  background-position: center;
  color: var(--neutral-100);
  padding: var(--space-16) 0;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: var(--space-5);
  color: var(--neutral-100);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
  font-size: 1.4rem;
  max-width: 700px;
  margin: 0 auto var(--space-6);
  color: var(--neutral-100);
}

/* ====================================== 
   7. Main Content Sections
   ====================================== */
.home-content {
  padding: var(--section-spacing) 0;
}

.intro {
  text-align: center;
  margin-bottom: var(--space-12);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.intro p {
  font-size: 1.2rem;
  line-height: var(--line-height-relaxed);
}

/* Services Section */
.services-preview {
  margin-bottom: var(--section-spacing);
}

.service-icon {
  margin-bottom: var(--space-5);
}

.service-icon .material-icons {
  font-size: 3rem;
  color: var(--primary);
  background-color: var(--primary-light);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto;
}

.service-card h3 {
  margin-top: 0;
}

.service-card p {
  color: var(--text-light);
}

/* Values Section */
.values-section {
  padding: var(--section-spacing) 0;
  background-color: var(--neutral-100);
  position: relative;
  overflow: hidden;
}

.values-section::before {
  content: '';
  position: absolute;
  top: -50px;
  left: 0;
  right: 0;
  height: 100px;
  background-color: var(--background);
  transform: skewY(-2deg);
}

.value-card {
  text-align: center;
}

.value-card .material-icons {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: var(--space-4);
}

.value-card h3 {
  position: relative;
  padding-bottom: var(--space-4);
}

.value-card h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background-color: var(--secondary);
}

/* Opening Hours */
.opening-hours-preview {
  background-color: var(--background);
  padding: var(--space-10);
  border-radius: var(--border-radius);
  margin: var(--space-10) 0;
  box-shadow: var(--shadow);
  text-align: center;
  border: 1px solid var(--neutral-400);
  position: relative;
}

.opening-hours-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
}

.contact-preview {
  margin-top: var(--space-8);
}

/* Page Content */
.page-content {
  padding: var(--section-spacing) 0;
}

.page-content h1 {
  text-align: center;
  margin-bottom: var(--space-8);
  position: relative;
  padding-bottom: var(--space-5);
}

.page-content h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background-color: var(--primary);
}

.content {
  max-width: 800px;
  margin: 0 auto;
}

/* Contact Form */
.contact-form {
  max-width: 700px;
  margin: var(--space-8) auto;
  padding: var(--space-8);
  background-color: var(--background);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--neutral-400);
}

/* Map Container */
.map-container {
  margin: var(--space-8) 0;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 450px;
}

.map-container iframe {
  border: none;
  width: 100%;
  height: 100%;
}

/* ====================================== 
   8. Footer
   ====================================== */
.site-footer {
  background-color: var(--neutral-900);
  color: var(--neutral-100);
  padding: var(--space-12) 0 var(--space-6);
  position: relative;
  margin-top: var(--space-12);
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -50px;
  left: 0;
  right: 0;
  height: 100px;
  background-color: var(--neutral-900);
  transform: skewY(-2deg);
}

.footer-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-10);
  margin-bottom: var(--space-10);
  position: relative;
  z-index: 1;
}

.footer-info h3 {
  margin-bottom: var(--space-5);
  color: var(--secondary);
  font-size: 1.4rem;
  margin-top: 0;
  position: relative;
  padding-bottom: var(--space-4);
}

.footer-info h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--secondary);
}

.contact-info address {
  font-style: normal;
  line-height: var(--line-height-relaxed);
}

.contact-info p {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-4);
  color: var(--neutral-100);
}

.contact-info .material-icons {
  margin-right: var(--space-3);
  color: var(--secondary);
}

.contact-info a {
  color: var(--neutral-100);
  transition: color var(--transition);
}

.contact-info a:hover {
  color: var(--secondary);
}

.footer-hours li {
  border-color: rgba(255, 255, 255, 0.1);
  margin-bottom: var(--space-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: var(--space-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-hours .day {
  font-weight: 500;
  color: var(--neutral-200);
  min-width: 100px;
}

.footer-hours li {
  flex-direction: column;
  align-items: flex-start;
}

.footer-hours .hours {
  color: var(--neutral-300);
}

.social-icons {
  display: flex;
  gap: var(--space-4);
}

.social-icons a {
  color: var(--neutral-100);
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.social-icons a:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  z-index: 1;
}

.accessibility {
  margin-top: var(--space-4);
  font-size: 0.8rem;
}

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

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

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

.bg-primary {
  background-color: var(--primary);
  color: var(--neutral-100);
}

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

.bg-light {
  background-color: var(--background-alt);
}

.mb-0 { margin-bottom: 0; }
.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); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.mt-0 { margin-top: 0; }
.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); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.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); }

/* ====================================== 
   10. Media Queries
   ====================================== */
@media (max-width: 992px) {
  html {
    font-size: 15px;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
  
  .opening-hours-preview {
    padding: var(--space-8);
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--background);
    flex-direction: column;
    align-items: center;
    padding: var(--space-4) 0;
    box-shadow: var(--shadow);
    transform: translateY(-150%);
    opacity: 0;
    transition: all var(--transition);
    z-index: 10;
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
  }
  
  .nav-item {
    margin: var(--space-2) 0;
  }
  
  .hero {
    padding: var(--space-12) 0;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.2rem;
  }
  
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .opening-hours-preview {
    padding: var(--space-6);
  }
  
  h1 {
    font-size: 2.3rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .contact-form {
    padding: var(--space-6);
  }
  
  .footer-info {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  
  .site-footer {
    padding: var(--space-8) 0 var(--space-6);
  }
}

@media (max-width: 480px) {
  html {
    font-size: 13px;
  }
  
  .hero {
    padding: var(--space-10) 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .opening-hours-preview {
    padding: var(--space-5);
  }
  
  .footer-info {
    gap: var(--space-6);
  }
  
  .contact-form {
    padding: var(--space-5);
  }
  
  .footer-hours .day {
    min-width: 80px;
  }
  
  .footer-hours li {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .footer-hours .hours {
    margin-top: var(--space-1);
    margin-left: var(--space-4);
  }
}
