/* -------------------- */
/* Base Styles          */
/* -------------------- */

:root {
  /* Brand Colors */
  --brand-primary: linear-gradient(
    135deg,
    #eaf6f7 0%,
    #3b7383 35%,
    #326872 100%
  ); /* header, buttons */
  --brand-accent: #64a499; /* h2 border, dropdown button bg */
  --brand-accent-hover: #51837b; /* hover on links/buttons */

  /* Neutrals */
  --color-bg: #a5c2c9; /* page background */
  --color-text: #373737; /* body and headings */
  --color-light: linear-gradient(
    135deg,
    #eaf6f7 0%,
    #3b7383 35%
  ); /* cards, dropdowns */
  --color-muted: #efefef; /* footer text */
  --color-footer: #326872; /* footer background */
  --color-hero: #a5c2c9; /* hero section background */
  --color-border: #ccc; /* subtle lines */

  /* Typography */
  --font-main: Calibri;

  /* Layout / Spacing */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --shadow-sm: 0 0 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);

  /* Transitions */
  --transition-fast: 0.3s ease;
}

html,
body {
  font-family: var(--font-main);
  margin: 0;
  padding: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: var(--font-main);
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.4rem;
}

p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

ul,
li {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
  text-align: left;
}

a {
  color: var(--brand-accent);
  text-decoration: none;
  font-weight: 500;
}

a:hover {
  color: var(--brand-accent-hover);
  text-decoration: underline;
}

img {
  left: 50px;
}

/* -------------------- */
/* Header Styles        */
/* -------------------- */
header {
  background: var(--brand-primary);
  color: var(--color-light);
  padding: 0.5rem 1.5rem;
  border-bottom: 2px solid var(--brand-accent);
  display: flex;
  align-items: center;
  min-width: 0;
}

header .logo {
  display: flex;
  align-items: center;
}

header nav {
  margin-left: auto; /* force nav to the far right */
}

/* -------------------- */
/* Navigation Styles    */
/* -------------------- */
.headNav {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
  margin-right: 0;
  flex-wrap: wrap;
}
.dropbtn {
  font-size: 1.5rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  background-color: var(--brand-accent);
  color: var(--color-text);
  border: none;
  cursor: default;
  white-space: nowrap;
  transition:
    background var(--transition-fast),
    color var(--transition-fast);
}

.dropbtn:hover {
  background-color: var(--brand-accent-hover);
  color: var(--color-light);
}

/* Hide dropdown menu by default */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--color-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 1;
  padding: 0.5rem;
  border: 1px solid var(--color-accent); /* optional: debug, replace/remove */
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

/* -------------------- */
/* Footer Styles        */
/* -------------------- */
footer {
  background-color: var(--color-footer);
  color: var(--color-muted);
  padding: 2rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 2rem;
}

.footer-content h4 {
  margin-bottom: 0.5rem;
}

.footer-bottom-bar {
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.hr-bottom-footer {
  width: 100%;
  background: linear-gradient(
    to right,
    transparent,
    var(--color-border),
    transparent
  );
  margin-top: 2rem;
  margin-bottom: 1rem;
  border: none;
  height: 1px;
}

/* -------------------- */
/* Hero Section         */
/* -------------------- */
.heroSection {
  background-color: var(--color-hero);
  padding: 2rem;
  text-align: center;
}

/* -------------------- */
/* Homepage Layout      */
/* -------------------- */
#homeOne {
  max-width: 1500px;
  margin: 0 auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#Home2to6 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem;
  padding: 1rem;
  max-width: 1525px;
  margin: 0 auto;
  align-items: stretch;
}

#Home2to6 > div {
  background: var(--color-light);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 320px;
}

#Home2to6 > div:hover {
  transform: translateY(-4px);
}

#Home2to6 > div h2 {
  margin: 0 0 0.75rem 0;
  min-height: 3.2rem;
  line-height: 1.3;
}

#Home2to6 > div p,
#Home2to6 > div ul {
  margin-top: 0;
}

#Home2to6 > div p:last-child {
  margin-top: auto;
}

/* -------------------- */
/* Buttons / CTA        */
/* -------------------- */
button,
.cta {
  background: var(--brand-primary);
  color: var(--color-light);
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: bold;
  cursor: pointer;
  transition: background var(--transition-fast);
}

button:hover,
.cta:hover {
  background: #394956; /* could make another variable if you like */
}

/* -------------------- */
/* Responsive / Media   */
/* -------------------- */

/* Large tablets / small laptops */
@media (max-width: 1024px) {
  header {
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
    gap: 1rem;
  }

  header nav {
    width: 100%;
    margin-left: 0;
  }

  .headNav {
    justify-content: flex-start;
    gap: 0.75rem;
    margin-left: 0;
  }

  .heroSection {
    padding: 1.75rem 1.25rem;
  }

  #homeOne {
    padding: 0 1rem;
  }

  #Home2to6 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
  }

  #Home2to6 > div {
    min-height: 280px;
  }
}

/* Tablets / large mobiles */
@media (max-width: 768px) {
  h2 {
    font-size: 1.25rem;
  }

  p {
    font-size: 0.98rem;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
  }

  header .logo {
    width: 100%;
  }

  header nav {
    width: 100%;
  }

  .headNav {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .dropdown {
    width: 100%;
  }

  .dropbtn {
    width: 100%;
    font-size: 1.1rem;
    text-align: left;
    cursor: pointer;
  }

  .dropdown-content {
    position: static;
    display: none;
    width: 100%;
    box-sizing: border-box;
    margin-top: 0.35rem;
  }

  .dropdown:hover .dropdown-content {
    display: block;
  }

  .heroSection {
    padding: 1.5rem 1rem;
  }

  #Home2to6 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
  }

  #Home2to6 > div {
    min-height: auto;
    padding: 1.25rem;
  }

  #Home2to6 > div h2 {
    min-height: auto;
  }

  .footer-content {
    justify-content: center;
    gap: 1.5rem;
  }

  .footer-bottom-bar {
    gap: 0.75rem;
  }
}

/* Mobiles */
@media (max-width: 600px) {
  html,
  body {
    font-size: 15px;
  }

  header {
    padding: 0.75rem;
  }

  .heroSection {
    padding: 1.25rem 0.9rem;
    text-align: left;
  }

  #homeOne {
    padding: 0 0.75rem;
  }

  #Home2to6 {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0.75rem;
  }

  #Home2to6 > div {
    padding: 1rem;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-bottom-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .headNav {
    flex-direction: column;
    align-items: stretch;
  }

  .dropbtn {
    width: 100%;
  }

  img {
    max-width: 100%;
    height: auto;
    left: 0;
  }

  button,
  .cta {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }
}