/*
 * Base styles for Desktop IT Bolton website
 * Designed for responsive one‑page layout with a dark theme and neon green accent.
 */

/* CSS Variables for easy theming */
:root {
  --primary-bg: #041d45; /* deep navy background */
  --secondary-bg: #0d2e6f; /* mid-tone blue for cards */
  --accent: #82ca23; /* neon green from the logo */
  --text-light: #ffffff; /* white text */
  --text-muted: #c8d4e6; /* light grey for secondary text */
  --card-bg: #0e2761; /* darker card background */
  --border-radius: 12px;
}

/* Reset some default margins */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Roboto', sans-serif;
  background-color: var(--primary-bg);
  color: var(--text-light);
  line-height: 1.6;
  scroll-behavior: smooth;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

/* Container class to centralise content */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header and Navigation */
#header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(4, 29, 69, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.logo {
  height: 40px;
}

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

.nav a {
  color: var(--text-light);
  font-weight: 600;
  transition: color 0.3s ease;
}

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

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

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('hero-bg.png');
  background-size: cover;
  background-position: center;
  filter: brightness(0.4);
  z-index: -1;
}

.hero-content {
  max-width: 800px;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--accent);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text-muted);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 30px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.primary-btn {
  background-color: var(--accent);
  color: var(--primary-bg);
}

.primary-btn:hover {
  background-color: #a2dd51;
  transform: translateY(-2px);
}

/* Generic section styling */
.section {
  padding: 4rem 0;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
  color: var(--accent);
}

.section .section-intro {
  text-align: center;
  max-width: 700px;
  margin: 0.5rem auto 2.5rem;
  color: var(--text-muted);
  font-size: 1rem;
}

/* About Section */
.about-section .content {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
  background-color: var(--secondary-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.about-section h2 {
  text-align: left;
}

.about-section p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-top: 1rem;
}

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

.benefit-item {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: left;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.benefit-item:hover {
  transform: translateY(-4px);
}

.benefit-item .icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.benefit-item h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  color: var(--text-light);
}

.benefit-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

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

.service-item {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: left;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.service-item:hover {
  transform: translateY(-4px);
}

.service-item .icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.service-item h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.service-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

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

.contact-form {
  flex: 1 1 350px;
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.contact-form .form-group.full-width {
  width: 100%;
}

.contact-form label {
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-light);
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: none;
  border-radius: var(--border-radius);
  background-color: var(--secondary-bg);
  color: var(--text-light);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

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

.contact-info {
  flex: 1 1 250px;
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  color: var(--text-muted);
}

.contact-info h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: var(--text-light);
}

.contact-info p {
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

.contact-info a {
  color: var(--accent);
  word-break: break-all;
}

/* Footer */
.footer {
  background-color: var(--secondary-bg);
  text-align: center;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
  .nav ul {
    gap: 1rem;
  }
  .contact-wrapper {
    flex-direction: column;
  }
}
