/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Open+Sans:wght@400&display=swap');

/* CSS Variables */
:root {
  --bg-color: #F8F5EE;       /* Light neutral background */
  --accent-color: #F9CC48;   /* Accent colour for small highlights */
  --cta-color: #52B774;      /* Call-to-action colour */
  --heading-color: #14467C;  /* Deep blue for headings */
  --text-color: #333;        /* Dark text for body */
  --white: #fff;
  --font-family-heading: 'Montserrat', sans-serif;
  --font-family-body: 'Open Sans', sans-serif;
}

/* Global Reset & Body */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family-body);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
  font-size: 1rem;
}

/* Skip Link (Accessibility) */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--cta-color);
  color: var(--white);
  padding: 8px 16px;
  z-index: 100;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* Top Navigation */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: var(--white);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.top-nav .brand a {
  font-family: var(--font-family-heading);
  font-size: 1.5rem;
  color: var(--heading-color);
  text-decoration: none;
}

.top-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.top-nav ul li a {
  text-decoration: none;
  color: var(--heading-color);
  font-family: var(--font-family-heading);
  font-size: 1.1rem;
  transition: color 0.3s;
}

.top-nav ul li a:hover {
  color: var(--cta-color);
}

/* Hero Section */
.hero-section {
  background-color: var(--white);
  padding: 60px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.hero-content {
  flex: 1 1 500px;
}

.hero-content h1 {
  font-family: var(--font-family-heading);
  font-size: 3.5rem;
  color: var(--heading-color);
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 30px;
}

.hero-cta {
  display: flex;
  gap: 15px;
}

.contact-btn {
  background-color: var(--cta-color);
  color: var(--white);
  padding: 12px 20px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: filter 0.3s;
  font-family: var(--font-family-heading);
}

.contact-btn:hover {
  filter: brightness(90%);
}

/* Profile Photo (circular or oval) */
.profile-pic {
  width: 250px;             /* Adjust as needed */
  height: 250px;            /* Keep equal width/height for a circle */
  object-fit: cover;
  border-radius: 50%;       /* 50% = perfect circle; adjust for oval if desired */
  border: 5px solid var(--white);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* BACP Logo (retain original shape) */
.bacp-img {
  width: 200px;
  height: auto;
  border-radius: 0;
  box-shadow: none;
}

.hero-image {
  flex: 1 1 300px;
  text-align: center;
}

/* Main Content Styling */
main {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

main section {
  background-color: var(--white);
  padding: 30px;
  margin-bottom: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

main section h2 {
  font-family: var(--font-family-heading);
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--heading-color);
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 10px;
}

main section h3 {
  font-family: var(--font-family-heading);
  font-size: 1.8rem;
  margin: 20px 0 10px;
  color: var(--heading-color);
}

main section p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  max-width: 900px;
}

/* Lists */
ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

/* Services List */
.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.service {
  flex: 1;
  min-width: 250px;
}

/* Table Styling */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

table,
th,
td {
  border: 1px solid var(--bg-color);
}

th,
td {
  padding: 12px;
  text-align: center;
}

th {
  background-color: var(--accent-color);
}

/* Footer Styling */
footer {
  background-color: var(--text-color);
  color: var(--white);
  text-align: center;
  padding: 25px 20px;
  font-size: 0.95rem;
}

footer nav a {
  color: var(--white);
  text-decoration: none;
  margin: 0 5px;
}

footer nav a:hover {
  text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .top-nav {
    flex-direction: column;
  }

  .top-nav ul {
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
  }

  .hero-section {
    flex-direction: column;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2.8rem;
  }

  main section h2 {
    font-size: 2rem;
  }

  .hero-image {
    order: -1;
  }
}
