/* VMH Insurance Agency ? static site styles */

:root {
  --primary-color: #315862;
  --secondary-color: #719988;
  --accent-color: #c3b28e;
  --accent-hover: #c6bb98;
  --text-color: #333333;
  --bg-white: #ffffff;
  --bg-light: #f4f5f4;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  color: var(--text-color);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: var(--bg-white);
  color: var(--primary-color);
  z-index: 10001;
  border: 2px solid var(--secondary-color);
  border-radius: 4px;
}

header {
  background-color: var(--bg-white);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
}

.logo img {
  max-height: 65px;
  width: auto;
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--secondary-color);
}

main {
  flex: 1;
}

.page-header {
  background-color: var(--primary-color);
  color: var(--bg-white);
  text-align: center;
  padding: 4rem 2rem;
}

.content-section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero {
  background: linear-gradient(
      rgba(49, 88, 98, 0.85),
      rgba(113, 153, 136, 0.85)
    ),
    url("https://images.unsplash.com/photo-1450101499163-c8848c66ca85?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80")
      center/cover;
  color: var(--bg-white);
  text-align: center;
  padding: 6rem 2rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

/* Lines of Business grid */
.lob-section {
  width: 100%;
  max-width: none;
}

.lob-heading {
  text-align: center;
  color: var(--primary-color);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 1.25rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.3;
}

.lob-intro {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.lob-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.75rem;
  max-width: 1200px;
  margin: 0 auto;
}

.lob-card {
  flex: 0 1 calc((100% - 3.5rem) / 3);
  max-width: calc((1200px - 3.5rem) / 3);
  display: flex;
  flex-direction: column;
  background: var(--bg-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.lob-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.lob-card__image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  background-color: #dde3e4;
}

.lob-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.5rem 1.5rem;
}

.lob-card__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.lob-card__icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  color: var(--secondary-color);
}

.lob-card__text {
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
  flex: 1;
}

.lob-card__link {
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  align-self: flex-start;
  transition: color 0.3s;
}

.lob-card__link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Team */
.team-section {
  background-color: var(--bg-light);
  padding-top: 2rem;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.founder-card {
  background: var(--bg-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.founder-card__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 8px 8px 0 0;
  background-color: #dde3e4;
}

.founder-card__body {
  padding: 1.5rem;
}

.founder-card__name {
  color: var(--primary-color);
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.founder-card .title {
  display: block;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.founder-card__bio {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-color);
}

/* Brand carousel (matches landing BrandCarousel.js) */
.carriers-section.brand-carousel {
  padding: 4rem 0;
  background-color: var(--bg-white);
  overflow: hidden;
}

.carriers-heading {
  text-align: center;
  color: var(--primary-color);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  margin-bottom: 2.5rem;
  padding: 0 2rem;
}

.brand-carousel__viewport {
  width: 80%;
  margin: 0 auto;
  position: relative;
  height: 200px;
  overflow: hidden;
}

.brand-carousel__fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.brand-carousel__fade--left {
  left: 0;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
}

.brand-carousel__fade--right {
  right: 0;
  background: linear-gradient(
    to left,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
}

.brand-carousel__track {
  display: flex;
  align-items: center;
  height: 100%;
  width: fit-content;
  animation: scroll-carousel 30s linear infinite;
}

.brand-carousel__slide {
  flex: 0 0 auto;
  width: 250px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2rem;
}

.brand-carousel__slide img {
  max-width: 100%;
  max-height: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
}

@keyframes scroll-carousel {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-100% / 3));
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-carousel__track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    height: auto;
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .brand-carousel__slide:nth-child(n + 11) {
    display: none;
  }

  .brand-carousel__viewport {
    width: 100%;
    height: auto;
    padding: 0 2rem;
  }

  .brand-carousel__fade {
    display: none;
  }
}

@media (max-width: 768px) {
  .brand-carousel__viewport {
    width: 100%;
  }
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 8px;
}

.contact-form label {
  font-weight: 600;
  color: var(--primary-color);
}

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

.form-note {
  font-size: 0.95rem;
  color: var(--text-color);
  text-align: center;
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--bg-white);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
  display: inline-block;
  text-align: center;
}

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

footer {
  background-color: #1a2f34;
  color: #e0e0e0;
  text-align: center;
  padding: 2rem;
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .nav-links {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .lob-grid {
    gap: 1.25rem;
  }

  .lob-card {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .lob-intro {
    margin-bottom: 2rem;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
