@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;600&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --color-navy: #1a2a3a;
  --color-charcoal: #2d3748;
  --color-dark-blue: #0f1c2e;
  --color-white: #ffffff;
  --color-off-white: #f8f9fa;
  --color-gold: #c9a961;
  --color-sand: #d4c5a9;
  --color-light-grey: #e2e8f0;
  --color-text-primary: #1a2a3a;
  --color-text-secondary: #4a5568;

  --font-serif: 'Lora', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --spacing-unit: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 calc(var(--spacing-unit) * 3);
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-light-grey);
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo a {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-navy);
  text-decoration: none;
  letter-spacing: 0.8px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: calc(var(--spacing-unit) * 5);
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  letter-spacing: 0.2px;
}

.nav-links a:hover {
  color: var(--color-gold);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--color-navy);
  transition: all 0.3s ease;
}

.hero {
  position: relative;
  min-height: 700px;
  display: flex;
  align-items: center;
  background-image: url('./Carpark2.png');
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  margin-top: 80px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(201, 169, 97, 0.03) 0px, transparent 1px, transparent 40px, rgba(201, 169, 97, 0.03) 41px),
    repeating-linear-gradient(0deg, rgba(201, 169, 97, 0.03) 0px, transparent 1px, transparent 40px, rgba(201, 169, 97, 0.03) 41px);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(15, 28, 46, 0.75) 0%, rgba(26, 42, 58, 0.75) 100%), radial-gradient(circle at 30% 50%, rgba(201, 169, 97, 0.05) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: calc(var(--spacing-unit) * 12) calc(var(--spacing-unit) * 3);
}

.hero-title {
  font-size: 56px;
  color: var(--color-white);
  margin-bottom: calc(var(--spacing-unit) * 3);
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: calc(var(--spacing-unit) * 5);
  line-height: 1.6;
  font-weight: 300;
}

.btn {
  display: inline-block;
  padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 4);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  letter-spacing: 0.5px;
}

.btn-primary {
  background-color: var(--color-gold);
  color: var(--color-navy);
}

.btn-primary:hover {
  background-color: var(--color-sand);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(201, 169, 97, 0.3);
}

.btn-large {
  padding: calc(var(--spacing-unit) * 2.5) calc(var(--spacing-unit) * 6);
  font-size: 16px;
}

.value-proposition {
  padding: calc(var(--spacing-unit) * 12) 0;
  background-color: var(--color-off-white);
}

.value-proposition .section-title {
  margin-bottom: calc(var(--spacing-unit) * 3);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: calc(var(--spacing-unit) * 4);
}

.value-card {
  background-color: var(--color-white);
  padding: calc(var(--spacing-unit) * 5);
  border: 1px solid var(--color-light-grey);
  transition: all 0.3s ease;
}

.value-card:hover {
  border-color: var(--color-gold);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.value-card h3 {
  font-size: 24px;
  color: var(--color-navy);
  margin-bottom: calc(var(--spacing-unit) * 2);
}

.value-card p {
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.how-it-works {
  padding: calc(var(--spacing-unit) * 12) 0;
  background-color: var(--color-white);
}

.section-title {
  font-size: 42px;
  color: var(--color-navy);
  text-align: center;
  margin-bottom: calc(var(--spacing-unit) * 3);
  letter-spacing: -0.5px;
}

.section-intro {
  font-size: 18px;
  color: var(--color-text-secondary);
  text-align: center;
  margin-bottom: calc(var(--spacing-unit) * 6);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  font-weight: 300;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: calc(var(--spacing-unit) * 5);
}

.step-card {
  padding: calc(var(--spacing-unit) * 4);
}

.step-number {
  font-family: var(--font-serif);
  font-size: 48px;
  color: var(--color-gold);
  opacity: 0.5;
  margin-bottom: calc(var(--spacing-unit) * 2);
  font-weight: 400;
}

.step-card h3 {
  font-size: 22px;
  color: var(--color-navy);
  margin-bottom: calc(var(--spacing-unit) * 2);
}

.step-card p {
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.operational-safety {
  padding: calc(var(--spacing-unit) * 12) 0;
  background-color: var(--color-navy);
  color: var(--color-white);
}

.operational-safety .section-title {
  color: var(--color-white);
}

.operational-safety .section-intro {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: calc(var(--spacing-unit) * 6);
}

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

.safety-list {
  list-style: none;
  padding: 0;
}

.safety-list li {
  padding: calc(var(--spacing-unit) * 2.5) 0;
  padding-left: calc(var(--spacing-unit) * 4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  font-size: 17px;
}

.safety-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background-color: var(--color-gold);
  border-radius: 50%;
}

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

.services {
  padding: calc(var(--spacing-unit) * 12) 0;
  background-color: var(--color-off-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: calc(var(--spacing-unit) * 4);
}

.service-item {
  background-color: var(--color-white);
  padding: calc(var(--spacing-unit) * 4);
  border-left: 3px solid var(--color-gold);
  transition: all 0.3s ease;
}

.service-item:hover {
  transform: translateX(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.service-item h4 {
  font-size: 20px;
  color: var(--color-navy);
  margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.service-item p {
  color: var(--color-text-secondary);
  line-height: 1.7;
  font-size: 15px;
}

.cta-section {
  padding: calc(var(--spacing-unit) * 15) 0;
  background: linear-gradient(135deg, var(--color-charcoal) 0%, var(--color-navy) 100%);
  text-align: center;
}

.cta-content h2 {
  font-size: 38px;
  color: var(--color-white);
  margin-bottom: calc(var(--spacing-unit) * 3);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.cta-content p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: calc(var(--spacing-unit) * 5);
}

/* Make CTA behave like hero (background image + overlay) */
.cta-section {
  position: relative;
  background-image: url('./Carpark.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Dark gradient overlay, same idea as hero overlay */
.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(3, 22, 48, 0.75),
    rgba(3, 22, 48, 0.85)
  );
  z-index: 0;
  pointer-events: none;
}

/* Ensure CTA content renders above overlay */
.cta-section .container,
.cta-content {
  position: relative;
  z-index: 1;
}

.contact {
  padding: calc(var(--spacing-unit) * 12) 0;
  background-color: var(--color-white);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: calc(var(--spacing-unit) * 8);
  max-width: 1000px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-unit) * 3);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-unit) * 1);
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-navy);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  padding: calc(var(--spacing-unit) * 2);
  font-family: var(--font-sans);
  font-size: 15px;
  border: 1px solid var(--color-light-grey);
  background-color: var(--color-white);
  color: var(--color-text-primary);
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-unit) * 4);
}

.contact-detail h4 {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-navy);
  margin-bottom: calc(var(--spacing-unit) * 1);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.contact-detail p {
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.contact-detail a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-detail a:hover {
  color: var(--color-navy);
}

.footer {
  background-color: var(--color-dark-blue);
  color: rgba(255, 255, 255, 0.7);
  padding: calc(var(--spacing-unit) * 5) 0;
  font-size: 14px;
}

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

.footer-left p {
  margin-bottom: calc(var(--spacing-unit) * 0.5);
}

.footer-right a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-right a:hover {
  color: var(--color-gold);
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.steps-horizontal {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: calc(var(--spacing-unit) * 6);
  margin-top: calc(var(--spacing-unit) * 8);
}

.steps-horizontal::before {
  content: '';
  position: absolute;
  top: 32px; /* aligns with centre of circles */
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-light-grey);
  z-index: 0;
}

.step-item {
  position: relative;
  flex: 1;
  padding-top: calc(var(--spacing-unit) * 7);
}

.step-number-circle {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--color-gold);
  background-color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--color-gold);
  font-weight: 600;
  z-index: 1;
}

.step-item h3 {
  font-size: 20px;
  color: var(--color-navy);
  margin-bottom: calc(var(--spacing-unit) * 2);
}

.step-item p {
  color: var(--color-text-secondary);
  line-height: 1.7;
  font-size: 15px;
}

.form-status {
  display: none;
  margin-bottom: 20px;
  padding: 16px 18px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  border: 1px solid transparent;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.form-status--visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.form-status--success {
  background-color: #e7f9ed;
  color: #0a7a28;
  border-color: #8ad1a0;
}

.form-status--error {
  background-color: #ffe0e0;
  color: #b30000;
  border-color: #f5a3a3;
}

.global-toast {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  min-width: min(480px, calc(100% - 32px));
  padding: 12px 20px;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 14px;
  text-align: center;
  z-index: 1000;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.global-toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.global-toast--success {
  background-color: #4caf50;
  color: #ffffff;
}

.global-toast--error {
  background-color: #f44336;
  color: #ffffff;
}



@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    flex-direction: column;
    padding: calc(var(--spacing-unit) * 3);
    gap: calc(var(--spacing-unit) * 2);
    border-bottom: 1px solid var(--color-light-grey);
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .section-title {
    font-size: 32px;
  }

  .section-intro {
    font-size: 16px;
  }

  .value-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: calc(var(--spacing-unit) * 5);
  }

  .footer-content {
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 2);
    text-align: center;
  }

  .cta-content h2 {
    font-size: 28px;
  }

  .steps-horizontal {
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 6);
  }

  .steps-horizontal::before {
    display: none;
  }

  .step-item {
    padding-top: 0;
  }

  .step-number-circle {
    position: static;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .logo a {
    font-size: 20px;
  }
}
