/*
 * Gravity Group RSA – main stylesheet
 *
 * A simple, responsive theme for the Gravity Group RSA static website.  The
 * palette uses a deep blue primary colour with a warm orange accent.  This
 * file defines basic typography, layout containers, navigation styling,
 * buttons, cards and forms.  It also includes utility classes for
 * spacing and text alignment.
 */

:root {
  --primary-color: #0e4d92; /* deep blue */
  --accent-color: #f26b1d;  /* warm orange */
  --light-bg: #f9f9f9;
  --dark-bg: #0a2540;
  --text-color: #333333;
  --heading-color: #0a2540;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: var(--light-bg);
  color: var(--text-color);
}

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

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

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

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: #ffffff;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

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

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

/* Hero banner */
.hero {
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

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

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

/* Sections */
section {
  padding: 4rem 2rem;
}

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

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

.service-card {
  background-color: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease;
  border-top: 4px solid var(--primary-color);
}

.service-card:hover {
  transform: translateY(-5px);
  border-top-color: var(--accent-color);
}

.service-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

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

.service-card p {
  font-size: 0.95rem;
  color: #555;
}

.about-container,
.contact-container {
  max-width: 900px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary-color);
  outline: none;
}

.contact-form button {
  align-self: flex-start;
}

footer {
  background-color: var(--dark-bg);
  color: #fff;
  padding: 2rem;
}

footer .footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

footer h4 {
  margin-top: 0;
  color: #fff;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer li {
  margin-bottom: 0.5rem;
}

footer a {
  color: #fff;
  font-weight: 400;
  transition: color 0.3s ease;
}

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

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icons a i {
  font-size: 1.5rem;
  color: #fff;
  transition: color 0.3s ease;
}

.social-icons a:hover i {
  color: var(--accent-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero {
    padding: 4rem 1rem;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  nav ul {
    gap: 0.75rem;
  }
}