/*
 * OptiCore Website Styles
 * This stylesheet defines typography, layout, colour palette and
 * responsive behaviours for the OptiCore business optimisation site.
 */

/* Colour palette */
:root {
  --primary: #0a60d0;
  --primary-dark: #084895;
  --secondary: #ffffff;
  --light-bg: #f5f9ff;
  --dark-bg: #0f2a4a;
  --text-dark: #1e2a36;
  --text-light: #f2f6fa;
  --border-radius: 6px;
  --transition-speed: 0.3s;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  color: var(--text-dark);
  background-color: var(--secondary);
  line-height: 1.6;
}

h1, h2, h3 {
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-speed);
}
a:hover {
  color: var(--primary-dark);
}

/* Utility */
.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

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

.section-dark {
  background-color: var(--dark-bg);
  color: var(--text-light);
}

.section-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.section-text {
  max-width: 700px;
  margin: 0 auto 2rem auto;
  text-align: center;
  font-size: 1.1rem;
}

/* Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--secondary);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

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

.logo-link {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.nav {
  display: flex;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-list li a {
  font-weight: 500;
  padding: 0.5rem;
}

.nav-list li a:hover {
  color: var(--primary-dark);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  border: none;
  background: none;
  cursor: pointer;
}
.nav-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: var(--primary);
  border-radius: 2px;
}

/* Hero section */
.hero {
  height: 85vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-image: url('../images/hero.png');
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 96, 208, 0.7);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: white; /* make title white */
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  letter-spacing: 0.5px;
  color: white;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: var(--border-radius);
  text-decoration: none;
  transition: background-color var(--transition-speed), color var(--transition-speed);
}
.btn-primary {
  background-color: var(--primary);
  color: var(--secondary);
  border: none;
}
.btn-primary:hover {
  background-color: var(--primary-dark);
}
/* new white button style */
.btn-white {
  background-color: var(--secondary);
  color: #000;
  border: 1px solid #ddd;
}
.btn-white:hover {
  background-color: #f0f0f0;
}

/* Features grid */
.features-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 2rem;
}

.feature-card {
  background-color: var(--secondary);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  padding: 2rem;
  text-align: center;
}

.feature-img {
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
  object-fit: contain;
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.feature-text {
  font-size: 0.95rem;
  color: #555;
}

/* Process section */
.process-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 2rem;
}

.process-step {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  text-align: center;
}

.section-dark .process-step {
  background-color: rgba(255, 255, 255, 0.05);
}

.step-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.step-title {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.step-text {
  font-size: 0.95rem;
}

/* Pricing section */
.pricing-table {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin-top: 2rem;
}

.pricing-card {
  background-color: var(--secondary);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  text-align: center;
}

.pricing-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.pricing-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.3rem;
}
.pricing-desc {
  font-size: 0.9rem;
  color: #555;
}

/* Results section */
.results-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 2rem;
}

.result-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: var(--border-radius);
}

.section-dark .result-item h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section-dark .result-item p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Footer */
.footer {
  background-color: var(--dark-bg);
  color: var(--text-light);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .nav {
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    background-color: var(--secondary);
    border-left: 1px solid #e4e4e4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform var(--transition-speed);
    flex-direction: column;
  }
  .nav.open {
    transform: translateX(0);
  }
  .nav-list {
    flex-direction: column;
    gap: 0;
  }
  .nav-list li {
    border-bottom: 1px solid #f0f0f0;
  }
  .nav-list li a {
    display: block;
    padding: 1rem;
  }
  .nav-toggle {
    display: flex;
  }
}
