/* Main component styles for OpScale website */

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
}

/* Header & Navigation */
header {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.75em;
  text-decoration: none;
  color: var(--white);
}

.logo-icon {
  color: var(--accent);
  display: flex;
  align-items: center;
}

.logo-accent {
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5em 0.2em;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-links a:hover, 
.nav-links a:focus {
  color: var(--accent);
  border-bottom-color: var(--accent);
  outline: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: rgba(31, 41, 55, 0.7);
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 4rem 1.5rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-btn {
  background-color: var(--accent);
  color: var(--white);
  text-decoration: none;
  border: none;
  padding: 1em 2.5em;
  font-size: 1.1rem;
  border-radius: 2em;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: background-color 0.2s, transform 0.2s;
  display: inline-block;
}

.cta-btn:hover, 
.cta-btn:focus {
  background-color: var(--white);
  color: var(--accent);
  transform: translateY(-3px);
  outline: none;
  text-decoration: none;
}

/* General Section Styling */
.section {
  padding: 4rem 1.5rem;
}

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

.section-title {
  text-align: center;
  font-size: 2.25rem;
  margin-bottom: 3rem;
  color: var(--primary);
  font-weight: 700;
}

/* Problems Section */
.problem-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.problem-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.problem-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 1.5rem;
  background-color: var(--accent);
  border-radius: 50%;
  color: var(--white);
}

.problem-card h3 {
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--primary);
  font-weight: 700;
}

.problem-card p {
  font-size: 1rem;
  color: var(--secondary);
  margin: 0;
}

/* Solutions Section */
.solution-item {
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto 4rem auto;
}

.solution-item:nth-child(even) {
  flex-direction: row-reverse;
}

.solution-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background-color: var(--accent);
  border-radius: 50%;
  color: var(--white);
}

.solution-item h3 {
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.solution-item p {
  font-size: 1.1rem;
  color: var(--secondary);
  margin: 0;
}

/* Solution Examples Section */
.solution-examples-container {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-light);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.examples-title {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 2.5rem;
  font-weight: 600;
  color: var(--primary);
}

.examples-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.example-item {
  background-color: var(--background-alt);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--border-light);
}

.example-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.example-icon {
  color: var(--accent);
  flex-shrink: 0;
}

.example-item span {
  font-size: 1rem;
  color: var(--primary);
  font-weight: 500;
}

/* Process Section */
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.process-step {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.process-step-number {
  background-color: var(--accent);
  color: var(--white);
  font-weight: 700;
  font-size: 1.5rem;
  width: 2.5em;
  height: 2.5em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 1.5rem;
}

.process-step h3 {
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.process-step p {
  color: var(--secondary);
  margin: 0;
}

/* Tools Section */
.tools-subtitle {
  text-align: center;
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: var(--secondary);
  font-weight: 500;
}

.tools-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.tool-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--secondary);
  padding: 0.75rem 1.5rem;
  background-color: var(--background-alt);
  border-radius: var(--border-radius);
  border: 2px solid var(--border-light);
  transition: color 0.3s, border-color 0.3s, background-color 0.3s;
}

.tool-name:hover {
  color: var(--accent);
  border-color: var(--accent);
  background-color: var(--white);
}

/* Contact Section */
.contact-container {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.contact-subtitle {
  font-size: 1.2rem;
  color: var(--secondary);
  margin-top: -2.5rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-form-wrapper {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.contact-form {
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary);
  text-align: left;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--border-light);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .cta-btn {
  width: 100%;
  margin-top: 1rem;
}

/* Footer */
footer {
  background: var(--primary);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.9rem;
}

/* Skip link styles */
.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--primary);
  color: var(--white);
  padding: 0.5rem 1rem;
  text-decoration: none;
  z-index: 1001;
}

.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
}

/* Animations */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
  }
  
  .fade-in.delay-1 { animation-delay: 0.1s; }
  .fade-in.delay-2 { animation-delay: 0.2s; }
  .fade-in.delay-3 { animation-delay: 0.3s; }
  .fade-in.delay-4 { animation-delay: 0.4s; }
  
  @keyframes fadeInUp {
    to {
      opacity: 1;
      transform: none;
    }
  }
}

/* Responsive Adjustments */
@media (max-width: 900px) {
  .problem-list, 
  .process-steps {
    grid-template-columns: 1fr;
  }
  
  .solution-item, 
  .solution-item:nth-child(even) {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 800px) {
  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--primary);
    flex-direction: column;
    width: 100%;
    padding: 1rem 0;
    display: none;
    box-shadow: var(--shadow);
  }
  
  .nav-links.open {
    display: flex;
    align-items: center;
  }
  
  .nav-toggle {
    display: block;
  }
}

@media (max-width: 600px) {
  .hero h1 { 
    font-size: 2.25rem; 
  }
  
  .hero p { 
    font-size: 1.1rem; 
  }
  
  .section { 
    padding: 3rem 1rem; 
  }
  
  .section-title { 
    font-size: 1.75rem; 
  }
  
  .examples-grid { 
    grid-template-columns: 1fr; 
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .nav-container {
    padding: 0.75rem 1rem;
  }
}

/* Privacy Policy Page Styles */
.privacy-container {
  display: grid;
  grid-template-columns: 1fr minmax(auto, 700px) 1fr;
  min-height: 60vh;
  background: var(--background-alt);
}

.privacy-content {
  grid-column: 2;
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  padding: 2.5rem 2rem;
  margin: 2.5rem 0;
}

.privacy-content h1 {
  color: var(--primary);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.privacy-content h2 {
  color: var(--primary);
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.5rem;
}

.privacy-content p {
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.privacy-content ul {
  margin-bottom: 1rem;
  color: var(--text-light);
}

.privacy-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.privacy-content a {
  color: var(--accent);
  text-decoration: underline;
}

.privacy-content a:hover,
.privacy-content a:focus {
  color: var(--primary);
}

@media (max-width: 900px) {
  .privacy-container {
    grid-template-columns: 1fr;
    background: var(--white);
  }
  
  .privacy-content {
    grid-column: 1;
    margin: 1.5rem;
    padding: 1.5rem;
    box-shadow: none;
    border-radius: 0;
  }
}

@media (max-width: 600px) {
  .privacy-content {
    margin: 1rem;
    padding: 1rem;
  }
  
  .privacy-content h1 {
    font-size: 2rem;
  }
  
  .privacy-content h2 {
    font-size: 1.25rem;
  }
}