/*
 * Global styles for the JGittech website.
 *
 * This stylesheet defines the base layout, colors and typography for all pages.
 * The design uses a calming blue palette with generous white space to
 * emphasise professionalism and readability. Breakpoints ensure the
 * layout remains user friendly on mobile devices.
 */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: #f7f7f7;
  color: #333;
}

/* Header and navigation */
header {
  background: #0c3c78; /* deep blue */
  color: #fff;
  padding: 1rem 0;
}

header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
  flex-wrap: wrap;
}

header .logo {
  display: flex;
  align-items: center;
  margin-right: 1rem;
}

header .logo img {
  height: 40px;
  width: auto;
}

header .logo span {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  margin-left: 0.5rem;
}

header .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

header .nav-links a {
  color: #fff;
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: background 0.2s;
  font-weight: bold;
}

header .nav-links a:hover {
  background: rgba(255,255,255,0.2);
}

/* Hero section */
.hero {
  background: #e0e8f0;
  padding: 4rem 1rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #0c3c78;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero .buttons a {
  display: inline-block;
  margin: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  background: #0c3c78;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.2s;
}

.hero .buttons a.secondary {
  background: #4b77be;
}

.hero .buttons a:hover {
  background: #084073;
}

/* Generic section styling */
section {
  padding: 2rem 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
  color: #0c3c78;
  text-align: center;
}

/* Grid for service cards */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.service-card {
  flex: 1 1 280px;
  background: #fff;
  border-radius: 6px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

/* Optional image inside service card */
.service-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 6px 6px 0 0;
  margin-bottom: 0.75rem;
}

/* Founder photo styling */
.founder-photo {
  max-width: 250px;
  width: 100%;
  border-radius: 50%;
  display: block;
  margin: 0 auto 1rem auto;
}

.service-card h3 {
  margin-bottom: 0.75rem;
  color: #0c3c78;
  font-size: 1.25rem;
}

.service-card p {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  flex-grow: 1;
}

.cta {
  text-align: center;
  margin-top: 2rem;
}

.cta a {
  display: inline-block;
  margin: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  background: #0c3c78;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.2s;
}

.cta a:hover {
  background: #084073;
}

/* Footer styling */
footer {
  background: #0c3c78;
  color: #fff;
  padding: 2rem 1rem;
  text-align: center;
}

footer .footer-links {
  margin-bottom: 1rem;
}

footer .footer-links a {
  color: #fff;
  margin: 0 0.5rem;
  text-decoration: none;
  font-weight: bold;
}

footer .footer-links a:hover {
  text-decoration: underline;
}

footer p {
  font-size: 0.85rem;
  margin-top: 1rem;
}

/* Contact form styles */
form.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

form.contact-form label {
  font-weight: bold;
  color: #0c3c78;
}

form.contact-form input,
form.contact-form textarea {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

form.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

form.contact-form button {
  padding: 0.75rem;
  background: #0c3c78;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

form.contact-form button:hover {
  background: #084073;
}

/* Table styling for plans */
.plans-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.95rem;
}

.plans-table th,
.plans-table td {
  border: 1px solid #ddd;
  padding: 0.75rem;
  text-align: left;
}

.plans-table th {
  background: #e0e8f0;
  color: #0c3c78;
}

.plans-table tr:nth-child(even) {
  background: #f5f5f5;
}

/* Responsive design */
@media (max-width: 768px) {
  header nav {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .services-grid {
    flex-direction: column;
  }
  .service-card {
    flex: 1 1 100%;
  }
}