/*
 * Stylesheet for the Ekonoms website
 *
 * This CSS file defines the core styling for the updated Ekonoms web
 * presence. The palette is inspired by the cool blues and greens of the
 * generated hero artwork. Typography is handled via the Montserrat font
 * family and icons are provided via Font‑Awesome. The layout makes
 * generous use of Flexbox and CSS Grid to remain responsive across
 * devices. Sections are given plenty of breathing room to improve
 * readability and visual appeal.
 */

/* CSS variables define the colour scheme and are reused
   throughout the site for easy maintenance. */
:root {
  --primary: #0a192f;      /* deep navy for backgrounds and headers */
  --secondary: #0077b6;    /* vibrant blue accent colour */
  --accent: #00c49a;       /* fresh green accent used sparingly */
  --light-bg: #f8f9fa;     /* light grey backgrounds for cards */
  --dark-bg: #0d1b2a;      /* darker footer background */
  --text: #1f2937;         /* standard dark text colour */
  --muted-text: #555;      /* muted text used in subtitles */
}

/* Base resets and global typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Navigation and header */
header {
  background: var(--primary);
  color: #fff;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .logo {
  font-size: 1.5rem;
  font-weight: 700;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}

nav a {
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: background 0.3s ease;
  font-weight: 500;
}

nav a:hover,
nav a.active {
  background: var(--secondary);
  color: #fff;
}

/* Hero section */
#hero {
  position: relative;
  background-image: url('images/hero.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  min-height: 450px;
}

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

#hero .container {
  position: relative;
  z-index: 1;
  padding: 150px 2rem;
  text-align: center;
}

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

#hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

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

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

/* Section headings and subtitles */
.section-title {
  text-align: center;
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--muted-text);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

section {
  padding: 4rem 2rem;
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--light-bg);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card i {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  color: var(--secondary);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.service-card p {
  font-size: 0.95rem;
  color: var(--muted-text);
}

/* Projects section */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--light-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

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

.project-card .content {
  padding: 1.5rem;
}

.project-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.project-card p {
  font-size: 0.95rem;
  color: var(--muted-text);
}

/* Testimonials */
.testimonials {
  background: var(--primary);
  color: #fff;
  padding: 4rem 2rem;
  text-align: center;
}

.testimonials .testimonial {
  max-width: 700px;
  margin: 0 auto 2rem;
}

.testimonials p {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  font-style: italic;
}

.testimonials .author {
  font-weight: 600;
  opacity: 0.9;
}

/* Footer */
footer {
  background: var(--dark-bg);
  color: #fff;
  padding: 3rem 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-col {
  flex: 1 1 200px;
}

.footer-col h4 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: #fff;
}

.footer-col p {
  font-size: 0.95rem;
  line-height: 1.4;
  color: #ddd;
}

.footer-col .social-links {
  display: flex;
  gap: 1rem;
}

.footer-col .social-links a {
  color: #fff;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.footer-col .social-links a:hover {
  color: var(--secondary);
}

.footer-col .newsletter {
  margin-top: 1rem;
}

.newsletter input[type="email"] {
  padding: 0.5rem;
  border: none;
  border-radius: 4px;
  margin-right: 0.5rem;
  width: 60%;
}

.newsletter button {
  background: var(--secondary);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.newsletter button:hover {
  background: var(--accent);
}

/* Responsive tweaks */
@media (max-width: 768px) {
  #hero .container {
    padding: 100px 1rem;
  }
  #hero h1 {
    font-size: 2rem;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .footer-col {
    flex: 1 1 100%;
  }
}