/* Base Styles and Variables */
:root {
  /* Monochromatic color scheme */
  --primary-color: #333333;
  --primary-light: #4d4d4d;
  --primary-dark: #1a1a1a;
  --secondary-color: #666666;
  --secondary-light: #999999;
  --secondary-dark: #444444;
  --accent-color: #888888;
  --text-color: #2a2a2a;
  --light-text: #f5f5f5;
  --dark-text: #222222;
  --light-bg: #f0f0f0;
  --white: #ffffff;
  --black: #000000;
  
  /* Shadows and effects */
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --card-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  --hover-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
  
  /* Animation speeds */
  --transition-fast: 0.2s;
  --transition-medium: 0.4s;
  --transition-slow: 0.6s;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 5rem;
  
  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 999px;
}

/* Typography */
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--light-bg);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

p {
  margin-bottom: var(--spacing-md);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all var(--transition-fast) ease;
}

a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

/* Container and Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

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

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.column {
  padding: 0 15px;
  flex: 1;
}

/* Button Styles */
.button, .btn, button, input[type="submit"] {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast) ease;
  text-align: center;
  text-decoration: none;
}

.button:hover, .btn:hover, button:hover, input[type="submit"]:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--hover-shadow);
  text-decoration: none;
}

.button.is-light, .btn.is-light {
  background-color: var(--white);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.button.is-light:hover, .btn.is-light:hover {
  background-color: var(--light-bg);
  color: var(--primary-dark);
}

.button.is-large, .btn.is-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.button.is-primary, .btn.is-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.button.is-primary:hover, .btn.is-primary:hover {
  background-color: var(--primary-light);
}

/* Header and Navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--white);
  box-shadow: var(--box-shadow);
  padding: var(--spacing-sm) 0;
}

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

.navbar-item {
  padding: var(--spacing-sm) var(--spacing-md);
  color: var(--primary-color);
  font-weight: 500;
  transition: color var(--transition-fast) ease;
}

.navbar-item:hover {
  color: var(--primary-light);
}

.navbar-menu {
  display: flex;
}

.navbar-burger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.navbar-burger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 5px 0;
  transition: all var(--transition-fast) ease;
}

/* Hero Section */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7));
  z-index: 1;
}

.hero-body {
  position: relative;
  z-index: 2;
  padding: var(--spacing-xxl) 0;
}

.hero-text {
  color: var(--white);
  max-width: 600px;
  margin-top: var(--spacing-lg);
  font-size: 1.25rem;
}

.hero .title,
.hero .subtitle,
.hero p {
  color: var(--white);
}

.hero .buttons {
  margin-top: var(--spacing-xl);
}

/* Mission Section */
.mission-section {
  background-color: var(--white);
}

.mission-content {
  margin-bottom: var(--spacing-lg);
}

.mission-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
}

/* Services Section */
.services-section {
  background-color: var(--light-bg);
}

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: transform var(--transition-medium) ease, box-shadow var(--transition-medium) ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.card-image {
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

.card-content {
  padding: var(--spacing-lg);
  flex-grow: 1;
  text-align: center;
  width: 100%;
}

.price-tag {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: var(--spacing-md) 0;
}

/* Process Section */
.process-section {
  background-color: var(--white);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing-lg) 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background-color: var(--secondary-color);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--spacing-xl);
  display: flex;
  align-items: center;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  z-index: 1;
}

.timeline-content {
  width: 45%;
  margin-left: auto;
  padding: var(--spacing-md);
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--box-shadow);
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 0;
  margin-right: auto;
}

.process-image {
  text-align: center;
  margin-top: var(--spacing-xl);
}

.process-image img {
  max-width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
}

/* Innovation Section */
.innovation-section {
  background-color: var(--light-bg);
}

/* Testimonials */
.testimonials-section {
  background-color: var(--white);
}

.testimonial-card {
  text-align: center;
  padding: var(--spacing-lg);
}

.testimonial-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto var(--spacing-md);
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rating {
  color: var(--primary-color);
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
}

/* Stories Section */
.stories-section {
  background-color: var(--light-bg);
}

.story-card {
  margin-bottom: var(--spacing-lg);
}

.story-image {
  margin: var(--spacing-md) 0;
  text-align: center;
}

.story-image img {
  max-width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
}

.customer-quote {
  font-style: italic;
  border-left: 3px solid var(--primary-color);
  padding-left: var(--spacing-md);
  margin: var(--spacing-md) 0;
}

/* Partners Section */
.partners-section {
  background-color: var(--white);
}

.partner-logo {
  text-align: center;
  padding: var(--spacing-md);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.partner-logo img {
  max-width: 100%;
  height: auto;
  margin-bottom: var(--spacing-sm);
}

.partner-name {
  font-weight: 500;
}

/* Insights Section */
.insights-section {
  background-color: var(--light-bg);
}

/* Press Section */
.press-section {
  background-color: var(--white);
}

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

.press-logo {
  margin-bottom: var(--spacing-md);
}

.press-date {
  color: var(--secondary-color);
  font-size: 0.9rem;
}

/* Contact Section */
.contact-section {
  background-color: var(--light-bg);
}

.contact-info {
  margin-bottom: var(--spacing-lg);
}

.map-container {
  margin-top: var(--spacing-md);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.map-container img {
  width: 100%;
  height: auto;
}

.contact-form {
  padding: var(--spacing-lg);
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--box-shadow);
}

.field {
  margin-bottom: var(--spacing-md);
}

.label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
}

.input, .textarea, .select select {
  width: 100%;
  padding: var(--spacing-sm);
  border: 1px solid var(--secondary-light);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
}

.checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.checkbox input {
  margin-right: var(--spacing-xs);
}

/* Contact Details */
.contact-details-section {
  background-color: var(--white);
}

.contact-card {
  text-align: center;
  padding: var(--spacing-lg);
  background-color: var(--light-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--box-shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-icon {
  margin-bottom: var(--spacing-md);
}

/* Map Section */
.map-section {
  background-color: var(--light-bg);
}

.map-container img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

/* FAQ Section */
.faq-section {
  background-color: var(--white);
}

.faq-item {
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-lg);
  background-color: var(--light-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--box-shadow);
}

/* Certificate Section */
.certificates-section {
  background-color: var(--light-bg);
}

.certificate-card {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.certificate-card img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: var(--spacing-sm);
}

/* Team Section */
.team-section {
  background-color: var(--white);
}

/* Values Section */
.values-section {
  background-color: var(--light-bg);
}

/* Facilities Section */
.facilities-section {
  background-color: var(--white);
}

.gallery {
  display: grid;
  grid-gap: var(--spacing-md);
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.gallery img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--box-shadow);
}

/* Page Header */
.page-header {
  position: relative;
  height: 300px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: var(--white);
  text-align: center;
}

.page-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7));
}

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

.page-header .title,
.page-header .subtitle {
  color: var(--white);
}

/* Success Page */
.success-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-message {
  text-align: center;
  background-color: var(--white);
  padding: var(--spacing-xxl);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
}

.success-icon {
  margin-bottom: var(--spacing-lg);
}

/* Next Steps */
.next-steps-section {
  background-color: var(--light-bg);
}

.next-step-icon {
  text-align: center;
  margin-bottom: var(--spacing-md);
}

/* Recommendations */
.recommendations-section {
  background-color: var(--white);
}

/* Privacy and Terms */
.privacy-policy-section,
.terms-section {
  padding-top: 100px;
}

.updated-date {
  color: var(--secondary-color);
  margin-bottom: var(--spacing-lg);
}

.privacy-policy-section .content h3,
.terms-section .content h3 {
  margin-top: var(--spacing-xl);
}

/* Footer */
.footer {
  background-color: var(--primary-dark);
  color: var(--light-text);
  padding: var(--spacing-xxl) 0;
}

.footer .title {
  color: var(--white);
}

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

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--spacing-xs);
}

.footer-links a {
  color: var(--light-text);
}

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

.social-links {
  margin-bottom: var(--spacing-md);
}

.social-links a {
  display: inline-block;
  color: var(--light-text);
  margin-right: var(--spacing-md);
  transition: color var(--transition-fast) ease, transform var(--transition-fast) ease;
}

.social-links a:hover {
  color: var(--white);
  transform: translateY(-2px);
}

.copyright {
  margin-top: var(--spacing-xl);
  text-align: center;
  color: var(--light-text);
}

/* Retro Design Elements */
.retro-border {
  border: 3px solid var(--primary-color);
  padding: 2px;
  background-color: var(--white);
}

.retro-pattern {
  background-image: url('data:image/svg+xml;utf8,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><rect width="20" height="20" fill="none" stroke="%23333333" stroke-width="1"/></svg>');
  background-repeat: repeat;
}

/* Hyperrealistic Texture Elements */
.texture-paper {
  background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/><feColorMatrix type="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.5 0"/></filter><rect width="100" height="100" filter="url(%23noise)" opacity="0.1"/></svg>');
  background-repeat: repeat;
}

/* Read More Links */
.read-more {
  display: inline-block;
  font-weight: 500;
  color: var(--primary-color);
  position: relative;
  padding-right: 20px;
}

.read-more:after {
  content: '→';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: transform var(--transition-fast) ease;
}

.read-more:hover {
  color: var(--primary-light);
}

.read-more:hover:after {
  transform: translate(5px, -50%);
}

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

.has-text-white {
  color: var(--white);
}

.mt-4 {
  margin-top: var(--spacing-md);
}

.mt-5 {
  margin-top: var(--spacing-lg);
}

.mt-6 {
  margin-top: var(--spacing-xl);
}

/* Columns for Bulma compatibility */
.columns {
  display: flex;
  flex-wrap: wrap;
  margin-left: -0.75rem;
  margin-right: -0.75rem;
  margin-top: -0.75rem;
}

.columns:last-child {
  margin-bottom: -0.75rem;
}

.columns.is-centered {
  justify-content: center;
}

.columns.is-multiline {
  flex-wrap: wrap;
}

.column {
  display: block;
  flex-basis: 0;
  flex-grow: 1;
  flex-shrink: 1;
  padding: 0.75rem;
}

.column.is-one-third {
  flex: none;
  width: 33.3333%;
}

.column.is-half {
  flex: none;
  width: 50%;
}

.column.is-one-quarter {
  flex: none;
  width: 25%;
}

.column.is-two-thirds {
  flex: none;
  width: 66.6666%;
}

/* Responsive Adjustments */
@media (max-width: 1023px) {
  .column.is-one-third,
  .column.is-half,
  .column.is-one-quarter,
  .column.is-two-thirds {
    width: 100%;
  }

  .timeline:before {
    left: 30px;
  }
  
  .timeline-marker {
    left: 30px;
  }
  
  .timeline-content {
    width: calc(100% - 60px);
    margin-left: 60px;
  }
  
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 60px;
    margin-right: 0;
  }

  .navbar-menu {
    display: none;
  }

  .navbar-menu.is-active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    padding: var(--spacing-md);
    box-shadow: var(--box-shadow);
  }

  .navbar-end {
    display: flex;
    flex-direction: column;
  }

  .navbar-burger {
    display: block;
  }

  .navbar-burger.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .navbar-burger.is-active span:nth-child(2) {
    opacity: 0;
  }

  .navbar-burger.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* Animation Effects */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.8s ease forwards;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/* Table styles for Privacy and Terms */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--spacing-lg);
}

.table th, 
.table td {
  padding: var(--spacing-sm) var(--spacing-md);
  text-align: left;
  border: 1px solid var(--secondary-light);
}

.table th {
  background-color: var(--light-bg);
  font-weight: 600;
}

.table.is-bordered {
  border: 1px solid var(--secondary-light);
}

.table.is-fullwidth {
  width: 100%;
}