/* Base Styles — Nordic Culture Compass brand */
:root {
  --primary-color: #1B2A4A;
  --secondary-color: #132040;
  --accent-color: #D4A843;
  --text-color: #333333;
  --bg-color: #ffffff;
  --light-bg-color: #f5f7fa;
  --border-color: #dddddd;
  --footer-bg-color: #1B2A4A;
  --footer-text-color: #ffffff;
  --success-color: #27ae60;
  --font-size-normal: 16px;
  --font-size-large: 18px;
  --font-size-larger: 20px;
  --font-size-heading-1: 2.5rem;
  --font-size-heading-2: 2rem;
  --font-size-heading-3: 1.5rem;
}

/* High Contrast Mode */
body.high-contrast {
  --primary-color: #00aaff;
  --secondary-color: #ffff00;
  --accent-color: #ffcc00;
  --text-color: #ffffff;
  --bg-color: #000000;
  --light-bg-color: #222222;
  --border-color: #ffffff;
  --footer-bg-color: #000000;
  --footer-text-color: #ffffff;
  --button-text-color: #000000;
}

/* Larger Text Mode */
body.larger-text {
  --font-size-normal: 20px;
  --font-size-large: 22px;
  --font-size-larger: 24px;
  --font-size-heading-1: 3rem;
  --font-size-heading-2: 2.5rem;
  --font-size-heading-3: 2rem;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: var(--font-size-normal);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
  transition: background-color 0.3s, color 0.3s, font-size 0.3s;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s;
}

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-color);
}

h1 {
  font-size: var(--font-size-heading-1);
}

h2 {
  font-size: var(--font-size-heading-2);
}

h3 {
  font-size: var(--font-size-heading-3);
}

p {
  margin-bottom: 1rem;
}

ul, ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header Styles */
.header {
  background-color: var(--bg-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.5rem 0; /* Reduced padding to make header smaller */
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  position: relative; /* Added for absolute positioning of hamburger menu */
}

.logo img {
  height: 40px;
  border-radius: 8px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  padding: 0;
  margin: 0;
}

.main-nav li {
  margin: 0 1rem;
}

.main-nav a {
  color: var(--text-color);
  font-weight: 600;
}

.main-nav a:hover {
  color: var(--primary-color);
}

/* Accessibility Tools */
.accessibility-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.accessibility-btn {
  display: flex;
  align-items: center;
  background: transparent;
  border: 1px solid var(--border-color);
  padding: 0.5rem 0.75rem;
  margin-left: 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  color: var(--text-color);
  font-size: var(--font-size-normal);
  transition: background-color 0.3s, color 0.3s;
}

.accessibility-btn:hover {
  background-color: var(--light-bg-color);
}

body.high-contrast .accessibility-btn {
  background-color: var(--primary-color);
  color: var(--button-text-color);
  border: 2px solid var(--border-color);
  font-weight: bold;
}

body.high-contrast .accessibility-btn:hover {
  background-color: var(--secondary-color);
}

.accessibility-btn i {
  margin-right: 0.5rem;
}

/* Hero Section */
.hero {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--light-bg-color) 0%, #e8eef5 100%);
  text-align: center;
}

.hero h1 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.tagline {
  font-size: var(--font-size-larger);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.description {
  max-width: 800px;
  margin: 0 auto 2rem;
  font-size: var(--font-size-large);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: white;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s;
}

.cta-button:hover {
  background-color: var(--secondary-color);
  text-decoration: none;
  color: white;
}

body.high-contrast .cta-button {
  background-color: var(--primary-color);
  color: var(--button-text-color);
  border: 2px solid var(--border-color);
  font-weight: bold;
}

body.high-contrast .cta-button:hover {
  background-color: var(--secondary-color);
}

.cta-button i {
  margin-right: 0.5rem;
  font-size: 1.25rem;
}

/* Features Section */
.features {
  padding: 4rem 0;
  text-align: center;
}

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

.feature-card {
  background-color: var(--light-bg-color);
  padding: 2rem;
  border-radius: 8px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: var(--font-size-large);
}

/* Download Section */
.download {
  padding: 4rem 0;
  background-color: var(--light-bg-color);
  text-align: center;
}

.app-stores {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.store-button {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background-color: var(--text-color);
  color: white;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s;
}

.store-button:hover {
  background-color: #000;
  text-decoration: none;
  color: white;
}

body.high-contrast .store-button {
  background-color: var(--primary-color);
  color: var(--button-text-color);
  border: 2px solid var(--border-color);
  font-weight: bold;
}

body.high-contrast .store-button:hover {
  background-color: var(--secondary-color);
}

.store-button i {
  margin-right: 0.5rem;
  font-size: 1.25rem;
}

.app-screenshots {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.screenshot {
  width: 250px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
  background-color: var(--footer-bg-color);
  color: var(--footer-text-color);
  padding: 3rem 0 2rem;
  text-align: center;
}

.footer-logo {
  margin-bottom: 1.5rem;
}

.footer-logo img {
  height: 40px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

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

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

.copyright {
  font-size: 0.875rem;
  opacity: 0.8;
}

/* Screenshots Gallery */
.screenshots {
  padding: 4rem 0;
  text-align: center;
  background-color: var(--light-bg-color);
}

.screenshots h2 {
  margin-bottom: 2rem;
}

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

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

.screenshot-card img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.screenshot-card img:hover {
  transform: scale(1.03);
}

@media (max-width: 768px) {
  .screenshots-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .screenshots-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

/* How It Works Section */
.how-it-works {
  padding: 4rem 0;
  background-color: var(--light-bg-color);
  text-align: center;
}

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

.step-card {
  background-color: var(--bg-color);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

.step-card h3 { margin-bottom: 0.5rem; }
.step-card p { color: #666; font-size: 0.95rem; }

/* Free trial banner */
.free-trial-banner {
  margin: 1.5rem auto;
  max-width: 600px;
}

.free-trial-text {
  font-size: var(--font-size-large);
  font-weight: 600;
  color: var(--primary-color);
}

.free-trial-link {
  color: var(--accent-color);
  text-decoration: underline;
  margin-left: 0.5rem;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: var(--bg-color);
  margin: 5% auto;
  padding: 2rem;
  border-radius: 8px;
  width: 80%;
  max-width: 500px;
  position: relative;
}

.close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
}

.language-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.lang-btn {
  padding: 0.75rem 1rem;
  background-color: var(--light-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  cursor: pointer;
  font-size: var(--font-size-normal);
  transition: background-color 0.3s;
}

.lang-btn:hover {
  background-color: var(--primary-color);
  color: white;
}

body.high-contrast .lang-btn {
  background-color: var(--bg-color);
  color: var(--text-color);
  border: 2px solid var(--border-color);
}

body.high-contrast .lang-btn:hover {
  background-color: var(--primary-color);
  color: var(--button-text-color);
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 110;
  position: absolute;
  top: 0;
  right: 0;
}

/* Hamburger icon from Font Awesome is used instead of custom style */

/* Responsive Styles */
@media (max-width: 992px) {
  .header .container {
    padding: 0 1.5rem;
  }
  
  .feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  
  .app-screenshots {
    justify-content: center;
  }
  
  .screenshot {
    width: 200px;
  }
}

  .accessibility-tools-mobile {
    display: none; /* Hide by default on all screens */
    order: 4;
    width: 100%;
    justify-content: center;
    padding: 0.75rem 0;
    border-top: 1px solid var(--border-color);
    background-color: var(--light-bg-color);
  }

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    top: 8px;
    right: 15px;
  }
  
  .header {
    padding: 0.3rem 0;
  }
  
  .header .container {
    justify-content: space-between;
    padding-right: 50px; /* Make space for the hamburger menu */
    flex-wrap: wrap;
  }
  
  .logo {
    order: 1;
    flex: 1;
  }
  
  .accessibility-tools {
    display: none; /* Hide the regular accessibility tools */
  }
    /* Create a mobile version instead that will be shown in the navigation menu */

  
  .main-nav.active .accessibility-tools-mobile {
    display: flex; /* Only show when mobile menu is active */
  }
  
  .main-nav {
    order: 3;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    margin-top: 0.5rem;
  }
  
  .main-nav.active {
    max-height: 350px; /* Increased to accommodate accessibility tools */
  }
  
  .main-nav ul {
    flex-direction: column;
    width: 100%;
  }
  
  .main-nav li {
    margin: 0;
    text-align: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
  }
  
  .accessibility-btn {
    margin: 0 0.5rem;
    font-size: 1rem;
    padding: 0.5rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    justify-content: center;
  }
  
  .accessibility-btn span {
    display: none; /* Hide text on mobile */
  }
  
  .accessibility-btn i {
    margin-right: 0; /* Remove margin as text is hidden */
    font-size: 1.2rem; /* Make icon bigger for touch targets */
  }
  
  .hero {
    padding: 3rem 0;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-button {
    width: 80%;
    justify-content: center;
  }
  
  .features, .download {
    padding: 3rem 0;
  }
  
  .app-stores {
    flex-direction: column;
    align-items: center;
  }
  
  .store-button {
    width: 80%;
    justify-content: center;
  }
  
  .screenshot {
    width: 80%;
    max-width: 250px;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .header .container {
    padding: 0 1rem;
  }
  
  .logo img {
    height: 30px;
  }
  
  .hero h1 {
    font-size: calc(var(--font-size-heading-1) * 0.8);
  }
  
  .tagline {
    font-size: calc(var(--font-size-larger) * 0.9);
  }
  
  .description {
    font-size: var(--font-size-normal);
    padding: 0 1rem;
  }
  
  .modal-content {
    width: 95%;
    padding: 1.5rem;
  }
  
  .language-buttons {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}

.lang-btn.active {
  background-color: var(--primary-color);
  color: white;
}

body.high-contrast .lang-btn.active {
  background-color: var(--primary-color);
  color: var(--button-text-color);
  border: 2px solid var(--secondary-color);
}

/* Privacy Policy Page */
.privacy-policy {
  padding: 4rem 0;
}

.privacy-policy h1 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.last-updated {
  text-align: center;
  margin-bottom: 2rem;
  font-style: italic;
}

.policy-section {
  margin-bottom: 2rem;
}

.policy-section ul {
  margin-top: 0.5rem;
}

.policy-section li {
  margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .main-nav ul {
    justify-content: center;
  }
  
  .accessibility-tools {
    justify-content: center;
    margin-top: 1rem;
  }
  
  .accessibility-btn {
    margin: 0.25rem;
  }
  
  .hero {
    padding: 3rem 0;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
  
  .app-screenshots {
    flex-direction: column;
    align-items: center;
  }
  
  .screenshot {
    width: 80%;
    max-width: 300px;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}
