/*
 * Servion App Landing Website Styles
 *
 * This stylesheet defines a clean, modern design inspired by
 * contemporary app landing pages. It makes extensive use of CSS
 * variables for easy theme tweaks and emphasizes generous
 * spacing, crisp typography and subtle shadows. Sections are
 * modular so they can be mixed and matched across pages.
 */

/* Theme variables */
:root {
  --primary: #00a573;
  --primary-dark: #1a322f; /* A darker shade used on hover states */
  --bg-light: #f7fafc;      /* Light background for section contrast */
  --text-dark: #243b53;     /* Dark text colour for readability */
  --text-light: #6b7c93;    /* Muted text colour for supporting copy */
  --max-width: 1200px;      /* Max content width */
}

/* Global reset and typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Tahoma, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: white;
}

img {
  max-width: 100%;
  display: block;
}

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

/* Layout container */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Header and navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

header .nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

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

nav ul li a {
  color: var(--text-dark);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}
nav ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}
nav ul li a:hover::after,
nav ul li a.active::after {
  opacity: 1;
}

/* Mobile navigation */
.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}
.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  border-radius: 3px;
}

@media (max-width: 768px) {
  nav ul {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    flex-direction: column;
    width: 200px;
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  nav ul.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-toggle {
    display: flex;
  }
}

/* Hero section */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  color: white;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 0;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: -1;
}

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

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

.hero p {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  color: #e2e8f0;
}

.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 32px;
  font-weight: 600;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease;
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--primary-dark);
}

/* Generic sections */
.section {
  padding: 4rem 0;
  background: var(--bg-light);
}
.section.invert {
  background: white;
}
.section .title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
}
.section .subtitle {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 1rem;
  color: var(--text-light);
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.feature {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.feature svg {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  fill: var(--primary);
}

/* Circular text icon used when SVG icons are unavailable */
.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-weight: 600;
  font-size: 1.2rem;
  margin: 0 auto 1rem auto;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.feature h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}
.feature p {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* Timeline / evolution */
.timeline {
  position: relative;
  margin-top: 2rem;
  padding-left: 2rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--primary);
}
.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 3rem;
}
.timeline-item:last-child {
  margin-bottom: 0;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  border: 4px solid var(--primary);
}
.timeline-item h4 {
  margin-bottom: 0.25rem;
  font-size: 1.2rem;
  color: var(--text-dark);
}
.timeline-item p {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* Cards grid used for services, partnerships etc. */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  color: var(--text-dark);
}
.card p {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
.member {
  text-align: center;
}
.member img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}
.member h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: var(--text-dark);
}
.member span {
  display: block;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}
.member p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Blog grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.blog-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.blog-card .content {
  padding: 1.5rem;
}
.blog-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}
.blog-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}
.blog-card a.btn-link {
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}
.blog-card a.btn-link:hover {
  text-decoration: underline;
}

/* Contact page */
.contact-info {
  text-align: center;
  margin-bottom: 2rem;
}
.contact-info p {
  margin: 0.5rem 0;
  color: var(--text-dark);
  font-size: 1rem;
}
.contact-info a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}
.contact-info a:hover {
  text-decoration: underline;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  font-size: 1rem;
  color: var(--text-dark);
}
.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}
.contact-form button {
  padding: 0.75rem;
  border: none;
  background: var(--primary);
  color: white;
  font-size: 1rem;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  align-self: center;
  width: 200px;
  transition: background 0.3s ease;
}
.contact-form button:hover {
  background: var(--primary-dark);
  color: var( --bg-light)
}
 /* Footer */
footer {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 4rem 0 2rem;
    text-align: center;
}

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

footer .footer-nav a {
    color: white;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

footer .footer-nav a:hover {
    transform: translateY(-2px);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

footer p {
    font-size: 0.95rem;
    margin-top: 2rem;
    color: #e6fffa;
}

/* Utility */
.cta {
  text-align: center;
  margin-top: 2rem;
}
.cta a {
  margin-top: 1rem;
}

/* Responsive text sizing */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  .hero p {
    font-size: 0.95rem;
  }
  .section {
    padding: 3rem 0;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
}