:root {
  --deep-blue: #123b52;
  --reef-blue: #2f80b7;
  --soft-teal: #6fb3a8;
  --sand: #e6c48f;
  --light-bg: #f7f9fb;
  --text-dark: #1c1c1c;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: #1c1c1c;
}

a:focus,
button:focus {
  outline: 3px solid #e6c48f;
  outline-offset: 3px;
}

section {
  scroll-margin-top: 100px;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

/* NAVBAR */
.navbar {
  position: sticky;
  width: 100%;
  background: white;
  padding: 0.5rem 2rem;
  border-bottom: 1px solid #eee;
  top: 0;
  left: 0;
  z-index: 1000;
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease,
    padding 0.3s ease;
}

/* When scrolled */
.navbar.scrolled {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1300px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 90px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: #111;
  font-weight: 500;
}

.nav-links li:last-child a {
  color: white;
}

.btn-primary {
  display: inline-block;
  background: var(--reef-blue);
  color: white;
  padding: 0.6rem 1.2rem;
  font-size: 1.1rem;
  text-decoration: none;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

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

.btn-primary:focus {
  outline: 3px solid #e6c48f;
  outline-offset: 3px;
}

/* LANGUAGE SWITCH */
.lang-switch {
  display: flex;
  align-items: flex-end; /* pushes it slightly lower */
  gap: 0.4rem;
  margin-left: 1rem;
  padding-top: 0.4rem;
  font-size: 0.8rem; /* smaller than nav */
  font-weight: 500;
}

.lang-switch a {
  text-decoration: none;
  color: #555;
  transition: color 0.2s ease;
}

.lang-switch a:hover {
  color: var(--reef-blue);
}

.lang-divider {
  color: #bbb;
}

.lang-switch a.active {
  color: var(--deep-blue);
  font-weight: 700;
}

/* ************ */
/* HERO SECTION */
/* ************ */
.hero {
  position: relative;
  background: url("https://fii.kaust.edu.sa/wp-content/uploads/2022/10/Probiotic-Lab-Testing.jpg")
    center/cover no-repeat;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(18, 59, 82, 0.8),
    rgba(47, 128, 183, 0.5)
  );
}

.hero-container {
  position: relative;
  text-align: center;
  max-width: 800px;
  padding: 0 1rem;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* **************** */
/* SERVICES SECTION */
/* **************** */
.services-preview {
  background-color: white;
  padding: 5rem 0;
  text-align: center;
}

.services-preview h2 {
  font-size: 2rem;
  font-weight: 600;
}

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

.card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.09);
  text-align: left;
  transition: all 0.3s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.card h3 {
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.card p {
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
  color: #444;
}

.card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.card ul li {
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.2rem;
}

.card ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--reef-blue);
}

/* ************* */
/* ABOUT SECTION */
/* ************* */
.about-section {
  padding: 6rem 0;
  background: var(--light-bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image img {
  width: 100%;
  border-radius: 16px;
  display: block;
}

.about-container h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
  font-weight: 600;
}

.about-lead {
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
  color: var(--deep-blue);
}

.about-text {
  margin-bottom: 1rem;
  color: #444;
}

.about-highlights {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.about-highlights li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  position: relative;
  padding-left: 1.4rem;
}

.about-highlights li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--reef-blue);
  font-size: 0.9rem;
}

/* ******************* */
/* BRAND LOGOS SECTION */
/* ******************* */
.heading-brand-logos {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
  color: #777;
  margin: 1.6rem 0 1.6rem 0;
}

.logos {
  display: flex;
  justify-content: space-around;
}

.logos img {
  height: 2.2rem;
  filter: brightness(0);
  opacity: 50%;
}

/* ******************** */
/* SERVICE AREA SECTION */
/* ******************** */
.service-area-section {
  padding: 6rem 0;
  background: white;
}

.service-area-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.service-area-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.service-area-lead {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--deep-blue);
}

.service-area-list {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.service-area-list li {
  margin-bottom: 0.6rem;
  padding-left: 1.4rem;
  position: relative;
  font-size: 0.95rem;
}

.service-area-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--reef-blue);
  font-size: 0.9rem;
}

.service-area-note {
  font-size: 0.9rem;
  color: #555;
}

.service-area-map iframe {
  border-radius: 16px;
  min-height: 350px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

/* CONTACT FORM */
.contact-section {
  padding: 6rem 0;
  background: var(--light-bg);
}

.contact-container {
  max-width: 700px;
  text-align: center;
}

.contact-intro h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.contact-intro p {
  margin-bottom: 3rem;
  color: #444;
}

.contact-form {
  background: var(--reef-blue);
  color: var(--deep-blue);
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.hidden {
  display: none;
}

.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.9rem 1rem;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 1rem;
  font-family: inherit;
  transition:
    border 0.2s ease,
    box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--reef-blue);
  box-shadow: 0 0 0 3px rgba(47, 128, 183, 0.15);
  outline: none;
}

.btn-form {
  background-color: var(--deep-blue);
  font-weight: 500;
  font-size: 1rem;
}

.btn-form:hover {
  background-color: var(--light-bg);
  color: var(--deep-blue);
}

.contact-form button {
  margin-top: 0.5rem;
  width: 100%;
}

.form-message {
  margin-bottom: 1rem;
}

/* FOOTER */
.site-footer {
  background: var(--deep-blue);
  padding: 2.5rem 0;
  color: white;
}

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

.footer-left p {
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-link {
  text-decoration: none;
  color: white;
  font-size: 0.9rem;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.footer-link:hover {
  opacity: 1;
}

.footer-social {
  color: var(--sand);
  display: flex;
  align-items: center;
  transition:
    transform 0.2s ease,
    color 0.2s ease;
}

.footer-social:hover {
  color: white;
  transform: translateY(-2px);
}

/* MOBILE */
button,
a.btn-primary {
  min-height: 44px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--deep-blue);
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Media Querries */
@media (max-width: 768px) {
  .logo img {
    height: 70px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    width: 100%;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    gap: 1.5rem;
    display: none;
  }

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

  .menu-toggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .service-area-grid {
    grid-template-columns: 1fr;
  }

  .service-area-map iframe {
    min-height: 280px;
  }
}
