/*
 * Stylesheet for MGT Pro single‑page website
 * Author: ChatGPT
 * Description: Defines the visual presentation for the MGT Pro site.  Styles
 * leverage CSS variables for consistent colours and spacing, ensure a
 * responsive layout, and create a professional look consistent with modern
 * corporate websites.
 */

/* CSS Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

/* Colour palette variables */
:root {
  --primary-color: #01315d;       /* dark blue */
  --secondary-color: #0077b6;     /* mid blue used for hover accents */
  --accent-color: #00a6e7;        /* vibrant blue for buttons */
  --light-color: #ffffff;         /* white */
  --background-color: #f9fafc;     /* very light grey for sections */
  --text-color: #333333;          /* dark grey for body text */
  --muted-color: #6c757d;         /* muted grey for secondary text */
  --border-radius: 4px;
  --transition-speed: 0.3s;
  --max-width: 1200px;
}

/* Utility classes */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Each section is given a scroll margin so anchored links don’t hide under the fixed header. */
.section {
  padding: 4rem 0;
  position: relative;
  scroll-margin-top: 80px;
}

.light-bg {
  background-color: #f1f5f9;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.section-description {
  max-width: 800px;
  margin: 0 auto 2rem auto;
  text-align: center;
  color: var(--muted-color);
  font-size: 1.1rem;
}

/* Navigation bar */
#header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background-color: rgba(1, 49, 93, 0.95); /* semi‑transparent dark blue */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--light-color);
  text-decoration: none;
  letter-spacing: 1px;
}

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

.nav-list a {
  color: var(--light-color);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-speed);
}

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

/* Hero section */
#hero {
  position: relative;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-color);
  text-align: center;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('hero.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.6);
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(1, 49, 93, 0.7), rgba(0, 118, 182, 0.5));
  z-index: -1;
}

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

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

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  transition: background-color var(--transition-speed), transform var(--transition-speed);
}

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

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

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

.domain-card {
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  padding: 2rem 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

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

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

.domain-card ul {
  list-style: none;
  padding-left: 0;
  margin-top: 0.5rem;
}

.domain-card li {
  padding-left: 1.2rem;
  position: relative;
  margin-bottom: 0.5rem;
  color: var(--text-color);
  font-size: 0.95rem;
}

.domain-card li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
}

.icon-wrapper {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 0.75rem;
}

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

.why-item {
  text-align: center;
  padding: 2rem 1.5rem;
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.why-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

.why-item h3 {
  font-size: 1.3rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

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

/* Contact Section */
.contact-container {
  max-width: 1000px;
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.contact-info {
  flex: 1 1 250px;
  color: var(--text-color);
}

.contact-info h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.contact-info p {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-form {
  flex: 1 1 450px;
  background-color: var(--light-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 1rem;
  width: 100%;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 500;
  color: var(--primary-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #ced4da;
  border-radius: var(--border-radius);
  font-size: 1rem;
  color: var(--text-color);
  background-color: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(0, 166, 231, 0.2);
}

.contact-form button {
  margin-top: 1rem;
  display: inline-block;
  width: auto;
  border: none;
  cursor: pointer;
}

/* Footer */
.footer {
  background-color: #0c2547;
  color: var(--light-color);
  padding: 1rem 0;
  text-align: center;
  font-size: 0.9rem;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  #hero {
    height: 70vh;
  }
  .nav-list {
    gap: 1rem;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
}