/* CSS variables for colours and sizing */
:root {
  --primary-color: #0055a5;
  --accent-color: #007acc;
  --light-color: #f5f9fc;
  --dark-color: #0d2a55;
  --text-color: #333;
  --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --transition-speed: 0.3s;
}

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

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--text-color);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-speed);
}

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

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

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

.logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.2rem;
}
.logo-symbol {
  font-size: 1.5rem;
  margin-right: 0.5rem;
}
.nav-list {
  list-style: none;
  display: flex;
  gap: 2rem;
}
.nav-list li a {
  font-weight: 500;
  color: var(--dark-color);
}
.nav-list li a.active {
  color: var(--primary-color);
  font-weight: 600;
}
.nav-list li a:hover {
  color: var(--primary-color);
}

/* Hero Section (used in all pages) */
.hero,
.page-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #fff;
  height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1rem;
}
.hero h1,
.page-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}
.hero p,
.page-hero p {
  max-width: 700px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  color: #e0e8f1;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--accent-color);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-speed);
}
.btn-primary:hover {
  background: var(--primary-color);
}

.btn-secondary {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: transparent;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  border-radius: 4px;
  font-weight: 600;
  transition: all var(--transition-speed);
}
.btn-secondary:hover {
  background: var(--accent-color);
  color: #fff;
}

/* Sections */
.section {
  padding: 4rem 0;
}
.section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--dark-color);
}
.section p {
  font-size: 1.05rem;
  color: #555;
}

/* About Cards */
.about-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}
.about-card {
  flex: 1 1 260px;
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform var(--transition-speed);
}
.about-card:hover {
  transform: translateY(-4px);
}
.about-card .icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
}
.about-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}
.about-card p {
  font-size: 0.95rem;
  color: #555;
}

/* Services Section */
.services-section {
  background: var(--light-color);
}
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.service-card {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}
.service-card h3 {
  margin-bottom: 0.75rem;
  color: var(--dark-color);
}
.service-card p {
  font-size: 0.95rem;
  color: #555;
}

/* Testimonials */
.testimonials-section {
  background: #fff;
}
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.testimonial-card {
  background: var(--light-color);
  padding: 1.5rem;
  border-radius: 8px;
  font-style: italic;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}
.testimonial-card h4 {
  margin-top: 1rem;
  font-weight: bold;
  color: var(--dark-color);
}

/* Process Steps */
.process-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}
.step {
  flex: 1 1 250px;
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
}
.step-number {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 50%;
  background: var(--accent-color);
  color: #fff;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Contact */
.contact-section {
  background: var(--light-color);
}
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.form-row input {
  flex: 1 1 250px;
}
.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}
.contact-form button {
  align-self: flex-start;
}

/* Footer */
footer {
  background: var(--dark-color);
  color: #fff;
  padding: 2rem 0;
}
.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.footer-nav {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.footer-nav li a {
  color: #cbd6e2;
  font-size: 0.95rem;
}
.footer-nav li a:hover {
  color: #fff;
}
.footer-nav li a.active {
  color: #fff;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-list {
    gap: 1rem;
  }
  .hero h1, .page-hero h1 {
    font-size: 2rem;
  }
  .about-cards,
  .service-cards,
  .process-steps,
  .testimonials {
    display: flex;
    flex-direction: column;
  }
  .contact-form {
    width: 100%;
  }
  .form-row input {
    flex: 1 1 100%;
  }
}

/* Home page key services layout */
.key-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  align-items: start;
}

.key-service-item {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.key-service-item h4 {
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

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

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

/* Agent message section */
.message-container {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.message-text {
  flex: 2;
}

.message-image {
  flex: 1;
  text-align: center;
}

.message-image img {
  max-width: 300px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Agent message section */
.agent-message {
  background: var(--light-color);
  padding: 4rem 0;
}

.agent-message h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--dark-color);
}

.agent-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.agent-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.agent-text {
  flex: 1 1 400px;
  text-align: left;
}

.agent-text p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.agent-text .agent-name {
  font-style: italic;
  margin-bottom: 1rem;
  color: var(--dark-color);
  font-weight: 600;
}

.logo-img {
  height: 40px; /* adjust depending on your logo size */
  width: auto;
  margin-right: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .agent-content {
    flex-direction: column;
    text-align: center;
  }
  .agent-text {
    text-align: center;
  }
  .agent-photo {
    width: 150px;
    height: 150px;
  }
}
