/* Hide the internal close (hamburger) button by default (desktop) */
.nav-close-item { display: none; }
/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

/* Color Palette */
:root {
  --primary: #0A192F; /* deep navy used for headings and footer */
  --secondary: #007C82; /* teal for accents */
  --tertiary: #16A8C7; /* light teal used in gradients */
  --accent: #F28C28; /* orange accent */
  --light: #F7F9FA; /* very light background */
  --dark-text: #041E42; /* dark text color */
}

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

.section {
  padding: 4rem 0;
}

h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--primary);
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Top Bar */
.top-bar {
  background: var(--primary);
  color: #fff;
  font-size: 0.85rem;
}

.top-bar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.contact-info span {
  margin-right: 1rem;
}

/* Icons in the top contact bar */
.contact-info .icon {
  margin-right: 0.35rem;
  color: var(--accent);
  display: inline-block;
}

.social-icons a {
  color: #fff;
  margin-left: 0.75rem;
  transition: color 0.3s ease;
}

/* Set a consistent size for social media emoji icons */
.social-icons .icon {
  font-size: 1.1rem;
  display: inline-block;
  line-height: 1;
  color: inherit;
}

.social-icons a:hover {
  color: var(--accent);
}

/* Navigation */
header {
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo {
  display: flex;
  align-items: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  font-size: 1.25rem;
}

.logo img {
  width: 40px;
  height: 40px;
  margin-right: 0.5rem;
}

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

.nav-menu li a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-menu li a:hover {
  color: var(--secondary);
}

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

/* Language selector in the navigation */
.language-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 1rem;
}

.language-selector .lang-btn {
  background: none;
  border: 1px solid var(--primary);
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  color: var(--primary);
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.3s ease, color 0.3s ease;
}

.language-selector .lang-btn.active,
.language-selector .lang-btn:hover {
  background: var(--secondary);
  color: #fff;
}

/* Style for language dropdown */
.language-selector select#language-select {
  border: 1px solid var(--primary);
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  color: var(--primary);
  background: #fff;
  font-size: 0.9rem;
}

/* Style for the emoji inside the mobile navigation toggle */
.nav-toggle .icon {
  color: var(--primary);
  font-size: 1.5rem;
  line-height: 1;
}

/* Hero Section */
.hero {
  background: linear-gradient(90deg, #fff 50%, var(--light) 50%);
  padding: 4rem 0;
}

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

.hero-text {
  flex: 1 1 45%;
}

.hero-text h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--dark-text);
}

.btn {
  display: inline-block;
  background: var(--secondary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn:hover {
  background: var(--tertiary);
}

.hero-image {
  flex: 1 1 45%;
  text-align: center;
}

.hero-image img {
  width: 100%;
  max-width: 500px;
}

/* About Section */
.about p {
  max-width: 800px;
  margin: 0 auto 2rem;
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.feature {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Styles for emoji icons in the features grid */
.feature .icon {
  font-size: 2rem;
  /* Remove explicit colour to allow full-colour emoji rendering */
  margin-bottom: 0.75rem;
  display: inline-block;
}

.feature h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.feature p {
  font-size: 0.95rem;
  color: var(--dark-text);
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Market Section */
.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.market-card {
  background: #fff;
  border-left: 6px solid var(--secondary);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.market-card h3 {
  font-family: 'Poppins', sans-serif;
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
}

.market-card ul {
  list-style: disc inside;
  color: var(--dark-text);
  line-height: 1.5;
  padding-left: 0.5rem;
}

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

.product-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.product-card .redlight-icon {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #f87171 0%, #b91c1c 100%);
  /* colours removed from parent; the icon inside will define its own colour */
}

/* Styling the red light therapy emoji icon */
.redlight-icon .icon {
  font-size: 4rem;
  color: #fff;
  display: inline-block;
}

.product-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  color: var(--primary);
  margin: 1rem;
}

.product-card p {
  flex: 1;
  margin: 0 1rem 1rem;
  font-size: 0.95rem;
  color: var(--dark-text);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Customers Section */
.customers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.customer {
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Styles for emoji icons in the customers grid */
.customer .icon {
  font-size: 2rem;
  /* Remove explicit colour to allow full-colour emoji rendering */
  margin-bottom: 0.5rem;
  display: inline-block;
}

.customer p {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark-text);
}

.customer:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Clinic Section */
/* Display the clinic photographs in a responsive grid */
.clinic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Ensure clinic images fill their grid cells and have subtle styling */
.clinic-grid img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Focus Countries Section */
/* Layout the map and country lists side‑by‑side on larger screens */
.focus-content {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
}

.focus-content .map {
  flex: 1 1 50%;
  text-align: center;
  min-width: 0;
}

/* Style the map image */
.focus-content .map img {
  width: 100%;
  max-width: 550px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.focus-content .country-list {
  flex: 1 1 50%;
  min-width: 0;
}

/* On smaller devices, stack map and country list vertically */
@media (max-width: 768px) {
  /* Hide top bar on mobile */
  .top-bar { display: none; }
    
       .navbar ul#nav-menu li {
    padding-left: 30px;
}

  .focus-content {
    flex-direction: column;
  }
  .focus-content .map,
  .focus-content .country-list {
    flex: 1 1 100%;
  }
  .focus-content .map img {
    max-width: 100%;
  }
}

/* Focus Countries */
.country-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.country-list ul {
  list-style: none;
  line-height: 1.8;
}

.country-list li::before {
  content: '\2022';
  color: var(--secondary);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

/* Make country list easier to read and visually balanced with map */
.country-list li {
  font-size: 1.1rem;
  font-weight: 500;
}

.country-list {
  gap: 3rem;
}

/* Contact Section */
.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.contact-info-block {
  flex: 1 1 45%;
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.contact-info-block h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.contact-info-block p {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--dark-text);
}

/* Icons in the contact information block */
.contact-info-block .icon {
  margin-right: 0.5rem;
  color: var(--secondary);
  display: inline-block;
}

.contact-form {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: inherit;
}

.contact-form button {
  align-self: flex-start;
  background: var(--secondary);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: var(--tertiary);
}

/* Footer */
.footer {
  background: var(--primary);
  color: #fff;
  padding: 1.5rem 0;
  text-align: center;
}

.footer .social-icons {
  margin-top: 0.5rem;
}

.footer .social-icons a {
  color: #fff;
  margin: 0 0.5rem;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
  /* Make hero background solid on mobile to avoid half-screen gradient */
  .hero {
    background: #fff;
  }
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    padding-top: 4rem;
    gap: 1.5rem;
    box-shadow: -2px 0 6px rgba(0,0,0,0.05);
    transition: right 0.3s ease;
  }
  .nav-menu.active {
    right: 0;
  }
  /* Overlay behind the slide-in mobile nav */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }
  .nav-toggle {
    display: block;
  }
  .nav-menu li a {
    font-size: 1.2rem;
  }

  /* Close button inside the slide-in nav */
  .nav-close-item {
    display: flex;
    justify-content: flex-end;
    padding: 0 1rem;
  }
  #nav-close.nav-close {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1.5rem;
    cursor: pointer;
  }
  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
  }
  .hero-text {
    flex: none;
    margin-top: 2rem;
  }
  .contact-content {
    flex-direction: column;
  }
}

/* Desktop: make hero sides symmetrical with backgrounds matching image width/height */
@media (min-width: 769px) {
  .hero { background: none; }
  .hero-content { justify-content: center; align-items: stretch; }
  .hero-text { flex: 1 1 50%; background: #fff; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-left: 2rem; }
  .hero-image { flex: 1 1 50%; background: transparent; }
}