:root {
    --primary: #1C4C90;
    --secondary: #F4F1F2;
    --accent: #2B5A96;
    --text-dark: #222;
}

/* Make header fixed at the top */
header {
  background-color: var(--primary);
  color: white;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;       /* key line */
  top: 0;                /* stick to top */
  left: 0;
  width: 100%;           /* span full width */
  z-index: 1000;         /* ensure it stays above content */
}

/* Add padding to body so content isn't hidden under header */
body {
  margin: 0;
  font-family: 'Goldman', sans-serif;
  background-color: var(--secondary);
  color: var(--text-dark);
  line-height: 1.6;
  padding-top: 80px;     /* accounts for fixed header height */
  padding-bottom: 60px;  /* accounts for sticky footer height */
}

footer {
  background-color: var(--primary);
  color: white;
  padding: 1rem 2rem;       /* ensures space on both left and right */
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-sizing: border-box;   /* ensures padding is respected */
}

footer > div:last-child {
  display: flex;
  gap: 1.5rem;              /* even spacing between links */
  align-items: center;
}

footer a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

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


header img {
    max-height: 60px;
}

.headline {
    text-align: center;
    padding: 3rem 1rem;
    background: var(--primary);
    color: white;
    font-size: 2.5rem;
}

/* Universal section spacing */
section {
  padding: 4rem 2rem;
  position: relative;
}

.quad-sail-meaning {
  display: flex;
  flex-wrap: wrap;
  padding: 2rem;
  background: var(--secondary); /* light gray band */
}

.quad-sail-meaning > div {
  flex: 1;
  padding: 1rem;
  min-width: 250px;
}

.overview {
  background: white;
  padding: 1.5rem 2rem;
  text-align: left;
}


.headline {
  background: var(--accent);
}

.services {
  background: var(--secondary);
}

.clients-band {
  background: white;
}

.testimonials {
  background: var(--secondary);
}

.founder {
  background: white;
}

.cta {
  background: var(--accent);
  color: white;
  text-align: center;
}

/* Divider line between sections */
section::after {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 1px;
  background: rgba(0,0,0,0.08);
}

section:last-of-type::after {
  content: none;
}

.overview-content {
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}

.overview h2.section-title {
  font-size: 1.8rem;
  margin-bottom: 0.2rem;
  color: var(--primary);
  text-align: left;
}

.overview p {
  margin-bottom: 0.3rem;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--text-dark);
}

.section-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 1rem;
}

.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 3rem 2rem;
  background: var(--secondary);
}

.service {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.service-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 1rem;
  border-left: 4px solid var(--accent);
  padding-left: 0.5rem;
}

.service-title span {
  display: block;   /* forces each word onto a new line */
}

.service ul {
  list-style-type: disc;
  padding-left: 1.2rem;
  margin: 0;
  flex-grow: 1;
}

.service li {
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-size: 0.95rem;
  line-height: 1.5;
}

.clients-band {
  background: white;
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(7, 1fr); /* 7 logos per row on large screens */
  gap: 1.5rem; /* space between logos */
  justify-items: center;
  align-items: center;
}

.clients-band img {
  height: 50px;
  max-width: 100px;
  object-fit: contain;
}

/* Large tablets / medium desktops: 5 per row */
@media (max-width: 1200px) {
  .clients-band {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Tablets in portrait: 3 per row */
@media (max-width: 900px) {
  .clients-band {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile: 2 per row */
@media (max-width: 600px) {
  .clients-band {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Very small screens: stack vertically */
@media (max-width: 400px) {
  .clients-band {
    grid-template-columns: 1fr;
  }
}

.testimonials {
  padding: 3rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  background: var(--secondary);
}

.testimonial {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  flex: 1 1 calc(25% - 1rem);
  min-width: 260px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Quote styling */
.quote {
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-style: normal; /* keep quotes readable */
  line-height: 1.4;
}

/* Author styling (distinct visual line below) */
.author {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--accent);  /* makes it stand out subtly */
  margin-top: auto;      /* anchors at bottom if space allows */
  text-align: right;     /* visually separate from quote */
}


.testimonials, .articles {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.testimonial, .article {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  flex: 1 1 calc(25% - 1rem);
  min-width: 240px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Ensure section headers span across and align nicely */
.clients-band .section-title,
.testimonials .section-title {
  grid-column: 1 / -1;       /* span full width in grid (clients) */
  width: 100%;              /* force full width for flex layouts */
  text-align: center;       /* center align for better readability */
  margin-bottom: 2rem;      /* space below heading */
}

.founder {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.founder-photo {
  flex: 1;
  min-width: 220px;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding-top: 1rem;
}

.founder-photo img {
  max-width: 220px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.founder-info {
  flex: 2;
  min-width: 300px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.founder-name {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 0;
}

.founder-title {
  font-size: 1.2rem;
  color: var(--accent);
  margin-top: 0;
  margin-bottom: 0.8rem;
  line-height: 1.2;
}

.founder-bio p {
  margin-bottom: 0.8rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dark);
}

.cta a {
  color: white;
  text-decoration: none;
}

.cta button {
  background: white;
  color: var(--accent);
  border: none;
  padding: 0.75rem 1.5rem;
  margin: 0.5rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}

.cta button:hover {
  background: var(--secondary);
}

@media (max-width: 768px) {
  .service {
    flex: 1 1 45%;
  }
  .testimonial, .article {
    flex: 1 1 45%;
  }
  .founder {
    flex-direction: column;
    text-align: center;
  }
  .founder-photo {
    justify-content: center;
    padding-top: 0;
    margin-bottom: 1.5rem;
  }
  .founder-info {
    text-align: center;
  }
  .founder img {
    margin: 0 auto 1.5rem auto;
  }
}

@media (max-width: 480px) {
  .service, .testimonial, .article {
    flex: 1 1 100%;
  }
}

/* Medium screens: 2 per row */
@media (max-width: 1199px) {
  .services {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Small screens: 1 per row */
@media (max-width: 768px) {
  .services {
    grid-template-columns: 1fr;
  }
}
