/* === BASE FOUNDATION === */
body {
  font-family: 'IBM Plex Sans', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #5a1a1a;
  background-image: url("../images/background.jpg");
  background-repeat: repeat;
  color: #222;
}
.main-content {
  max-width: 1000px;
  margin: auto;
  padding: 0 16px;
}
p {
  line-height: 1.6;
  margin: 0.75em 0;
}
a {
  color: #7b1f1f;
  text-decoration: none;
}
a:hover { color: #a33a3a; text-decoration: underline; }

/* === UTILITIES === */
.small  { width: 120px; height: auto; }
.medium { width: 200px; height: auto; }
.large  { width: 300px; height: auto; }
.xlarge { width: 400px; height: auto; }
.left {
  float: left;
  margin: 0 1.2em 0.6em 0;
}
.right {
  float: right;
  margin: 0 0 0.6em 1.2em;
}
.center {
  display: block;
  margin: 0 auto 1em auto;
  float: none;
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 0.45em 1.1em;
  margin: 0.6em 0 1em 0;
  background-color: #7b1f1f;
  border: 1px solid #3a0d0d;
  color: #f0dede;
  font-weight: bold;
  font-size: 1rem;
  text-decoration: none !important;
  border-radius: 6px;
}
.btn:hover {
  background-color: #a33a3a;
  color: #ffffff;
  text-decoration: none !important;
}
.btn.small {
  font-size: 0.8rem;
  padding: 0.3em 0.8em;
  width: fit-content;
}
.btn.centered {
  display: block;
  margin: 0.6em auto 1em auto;
  width: fit-content;
  text-align: center;
}

/* === VIDEO WRAPPER === */
.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 10px;
}
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* === LINKS LIST === */
.links-list {
  list-style: none;
  padding: 0;
  margin: 15px 0 35px;
  text-align: center;
}
.links-list li {
  margin: 12px 0;
}
.links-list a {
  display: inline-block;
  padding: 10px 20px;
  font-size: 1.4em;
  font-weight: 700;
  color: #dedede;
  text-decoration: none;
  background: #b54747;
  border: 2px solid #7b1f1f;
  border-radius: 999px;
  transition: transform 0.2s ease,
              background 0.2s ease,
              box-shadow 0.2s ease;
}
.links-list a:hover {
  background: #e05050;
  color: #ffffff;
  text-decoration: none;
  transform: scale(1.05);
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

/* === HEADER === */
header {
  text-align: center;
  margin: 0;
}
header h1 {
  max-width: 36ch;
  font-family: Georgia, serif;
  margin: 0 auto;
  font-size: 2.5em;
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1;
  color: #ffffff;
  text-shadow: 0 2px 0 rgba(0,0,0,0.6),
  0 4px 10px rgba(0,0,0,0.7);
}
header .logo {
  width: 100%;
  max-width: 700px;
  height: auto;
}
header .tagline {
  font-family: 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 1.1em;
  font-style: italic;
  margin-top: 0.3em;
  text-shadow: 0 2px 0 rgba(0,0,0,0.5),
  0 3px 8px rgba(0,0,0,0.6);
  color: #f0dede;
}

/* === FOOTER === */
footer {
  background: none;
  text-align: center;
  color: #f0dede;
  font-size: 16px;
  line-height: 1.5;
  padding: 0;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}
footer a {
  color: #ffffff;
  font-weight: bold;
  text-decoration: none;
}
footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* === SECTION === */
section {
  background: #ffffff;
  border: 2px solid #3a0d0d;
  border-radius: 14px;
  padding: 1.5em 1.8em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  overflow: auto;
  color: #222;
  line-height: 1.5;
  margin-bottom: 2em;
  margin-top: 0;
}
section h3 {
  color: #7b1f1f;
  font-size: 28px;
  margin-top: 0;
  margin-bottom: 0.4em;
}
section h4 {
  color: #7b1f1f;
  font-size: 22px;
  margin-top: 0;
  margin-bottom: 0.2em;
}
section p {
  margin: 0;
  font-size: 22px;
}
section a {
  color: #7b1f1f;
  font-weight: bold;
  text-decoration: none;
}
section a:hover {
  color: #a33a3a;
  text-decoration: underline;
}
section strong {
  font-weight: bold;
  font-size: 1.05em;
}
section em {
  font-style: italic;
  font-size: 0.9em;
}
section ul li {
  font-size: 1.3em;
}
section:last-of-type {
  margin-bottom: 0;
}
section::after {
  content: "";
  display: block;
  clear: both;
}

/* === CARD === */
.card {
  display: block;
  text-decoration: none;
  background: #f0eeee;
  border: 2px solid #3a0d0d;
  border-radius: 14px;
  padding: 1.5em 1.8em;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  overflow: hidden;
  color: #222;
  line-height: 1.5;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.card.highlight:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 10px rgba(163,58,58,0.4);
  text-decoration: none;
}
.card h3 {
  color: #7b1f1f;
  font-size: 24px;
  margin: 0;
}
.card h4 {
  color: #7b1f1f;
  font-size: 22px;
  margin: 0;
}
.card p {
  margin: 0;
  font-size: 20px;
}
.card p.small {
  font-size: 18px;
}
.card p.summary {
  font-size: 12px;
  line-height: 1.1;
  height: 3.3em;
  overflow: hidden;
  margin: 0.4em 0 0.3em 0;
  color: #7b1f1f;
  font-weight: 600;
}
.card a {
  color: #7b1f1f;
  font-weight: bold;
  text-decoration: none;
}
.card a:hover {
  color: #a33a3a;
  text-decoration: underline;
}
.card strong {
  font-weight: bold;
  font-size: 1.05em;
}
.card em {
  font-style: italic;
  font-size: 18px;
}
.card em.small {
  font-size: 16px;
}
.card.centered {
  text-align: center;
}
.card.centered img {
  margin-left: auto;
  margin-right: auto;
}
.card.centered p,
.card.centered h3,
.card.centered h4 {
  text-align: center;
}
.card::after {
  content: "";
  display: block;
  clear: both;
}

/* === CONTENT IMAGE === */
.content-image {
  display: block;
  border-radius: 18px;
  padding: 3px;
  background: #f4f4f4;
  border: 3px solid #7b1f1f;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}
.content-image.square {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.content-image.dark { border-color: #3a0d0d; }
.content-image.accent { border-color: #a33a3a; }
.content-image.clean {
  border: none;
  padding: 0;
  background: none;
  box-shadow: none;
}
.content-image:hover {
  transform: scale(1.04);
  box-shadow: 0 3px 8px rgba(0,0,0,0.35);
}

/* === PANEL === */
.panel {
  float: right;
  width: 360px;
  max-width: 100%;
  margin: 0 0 20px 30px;
  padding: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
}
.panel h3 {
  font-size: 1.2rem;
  margin-top: 6px;
  margin-bottom: 10px;
}
.panel h4 {
  font-size: 1.1rem;
  margin-top: 4px;
  margin-bottom: 6px;
}
.panel p {
  font-size: 1rem;
  line-height: 1.45;
  margin-bottom: 12px;
}
.panel strong {
  font-weight: bold;
  font-size: 1.05em;
}
.panel em {
  font-style: italic;
  font-size: 0.9em;
}
.panel ul li {
  font-size: 1.3em;
}
.panel img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 10px;
}
.thumbs {
  margin-top: 10px;
  display: flex;
  gap: 6px;
  justify-content: center;
}
.thumbs img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}

/* === PILL BULLET (LISTS) === */
.pill-bullet {
  list-style: none;
  padding: 0;
  margin: 1em 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-start;
  align-items: center;
}
.pill-bullet li {
  margin: 0;
}
.pill-bullet li a {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: #7b1f1f;
  border: 1px solid #3a0d0d;
  color: #f0dede;
  font-weight: bold;
  font-size: 1rem;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease;
}
.pill-bullet li a:hover {
  background: #a33a3a;
  color: #ffffff;
}
.pill-bullet.small li a {
  font-size: 0.85rem;
  padding: 0.3em 0.7em;
}
.pill-bullet.big li a {
  font-size: 1.15rem;
  padding: 0.5em 1.1em;
}
ul.pill-bullet.small,
ul.pill-bullet.big {
  width: auto;
  height: auto;
}

/* === BREADCRUMBS === */
.breadcrumbs {
  font-size: 0.95em;
  margin: 0 0 1em 0;
  padding: 0;
  color: #5a1a1a;
}
.breadcrumbs ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline;
}
.breadcrumbs li {
  display: inline;
  font-weight: 600;
  color: #7b1f1f;
}
/* separator */
.breadcrumbs li + li:before {
  content: " › ";
  color: #999;
  font-weight: normal;
}
.breadcrumbs li a {
  color: #7b1f1f;
  text-decoration: none;
}
.breadcrumbs li a:hover {
  text-decoration: underline;
}
.breadcrumbs li strong {
  color: #222;
  font-weight: bold;
}

/* === NAVIGATION === */
.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end; /* align bottoms evenly */
  margin: 0 2em;
  position: relative;
  z-index: 2; /* ensure tabs stay on top */
}
.navigation {
  font-size: 0.95em;
  padding: 0;
  margin: 0;
  border: 2px solid #3a0d0d;
  border-bottom: none;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  background: #6a1f1f;
}
.navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}
.navigation li {
  padding: 0.4em 1em;
  font-size: 0.95em;
  font-weight: bold;
  color: #222;
  white-space: nowrap;
  background: #7b1f1f;
  border-left: 2px dashed #3a0d0d;
}
.navigation li:first-child {
  border-left: none;
}
.navigation li a {
  color: #f0dede;
  text-decoration: none;
}
.navigation li a:hover {
  text-decoration: underline;
  color: #ffffff;
}
.navigation li.active {
  background: #5a1a1a;
}
.navigation li.active a {
  color: #ffffff;
  cursor: default;
  text-decoration: none;
}
.navigation.left ul {
  justify-content: flex-start;
}
.navigation.right ul {
  justify-content: flex-end;
}

/* === GRID === */
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.grid.cols2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols5 { grid-template-columns: repeat(5, 1fr); }
.grid.cols6 { grid-template-columns: repeat(6, 1fr); }
.grid > * {
  width: 100%;
  box-sizing: border-box;
}
.grid .card img {
  max-width: 100%;
  display: block;
  margin: 0 auto;
  height: auto;
}
.grid.cols2 .card img { max-width: 400px; }
.grid.cols3 .card img { max-width: 240px; }
.grid.cols4 .card img { max-width: 165px; }
.grid.cols5 .card img { max-width: 120px; }
.grid.cols6 .card img { max-width: 90px; }

.grid.cols2 .card h3 { font-size: 1.4em; }
.grid.cols3 .card h3 { font-size: 1.25em; }
.grid.cols4 .card h3 { font-size: 1.1em; }
.grid.cols5 .card h3 { font-size: 1em; }
.grid.cols6 .card h3 { font-size: 0.95em; }

.grid .card h4 {
  margin-bottom: 0.5em;
  line-height: 1.3;
  min-height: 2.6em; /* ~2 lines */
}
.grid.cols2 .card h4 { font-size: 1.2em; }
.grid.cols3 .card h4 { font-size: 1.1em; }
.grid.cols4 .card h4 { font-size: 1em; }
.grid.cols5 .card h4 { font-size: 0.95em; }
.grid.cols6 .card h4 { font-size: 0.9em; }

/* === CONTACT FORM === */
.contact-form-wrapper {
  width: 100%;
  margin-top: 1.5em;
}
.contact-form {
  max-width: 468px;
}
.form-group {
  margin-bottom: 1.2em;
}
.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4em;
  color: #5a1a1a;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: #ffffff;
  border: 2px solid #7b1f1f;
  border-radius: 6px;
  padding: 0.6em;
  color: #222;
  font-size: 1em;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #a33a3a;
}
.contact-form textarea {
  height: 200px;
  resize: vertical;
}
.char-counter {
  font-size: 0.85em;
  margin-top: 0.4em;
  color: #777;
}
.honeypot {
  display: none;
}
.form-feedback {
  width: 100%;
  box-sizing: border-box;
  padding: 0.8em;
  margin-bottom: 1em;
  border-radius: 6px;
  font-weight: 600;
}
.form-feedback.success {
  background: rgba(40,120,60,0.2);
  border: 2px solid #2f8f4a;
  color: #2f8f4a;
}
.form-feedback.error {
  background: rgba(120,40,40,0.2);
  border: 2px solid #a33a3a;
  color: #a33a3a;
}

/* === @MEDIA === */
@media (max-width:1024px) {
    header h1 {
        font-size: 2.1rem;
    }
}

@media (max-width:768px) {
    header h1 {
        font-size: 1.9rem;
    }
    header .logo {
      max-width: 560px;
    }
  .left, .right {
    float: none !important;
    display: block;
    margin: 0 auto 1em auto;
  }
  .small, .medium, .large, .xlarge {
    width: 100%;
    max-width: 90%;
  }
  .breadcrumbs {
    margin: 0.5em auto 0 auto;
  }
  .navigation {
    margin: 0.5em auto 0 auto;
  }
  .navigation ul {
    justify-content: center;
    flex-wrap: wrap;
  }
  .nav-bar {
    flex-direction: column;
    align-items: center;
    margin: 1.5em 0 2em 0;
  }
  .nav-bar .navigation {
    width: 90%;
    max-width: 520px;
    margin: 0;
    border: 2px solid #3a0d0d;
    background: #6a1f1f;
    overflow: hidden;
  }
  .nav-bar .navigation + .navigation {
    border-top: none;
  }
  .nav-bar .navigation:first-child {
    border-radius: 18px 18px 0 0;
  }
  .nav-bar .navigation:last-child {
    border-radius: 0 0 18px 18px;
  }
  .nav-bar .navigation ul {
    display: flex;
  }
  .nav-bar .navigation li {
    flex: 1;
    text-align: center;
    border-left: 2px dashed #3a0d0d;
    background: #7b1f1f;
  }
  .nav-bar .navigation li:first-child {
    border-left: none;
  }
  .nav-bar .navigation a {
    display: block;
    padding: 16px 0;
    font-size: 18px;
  }
  .grid.cols2,
  .grid.cols3,
  .grid.cols4,
  .grid.cols5,
  .grid.cols6 {
    grid-template-columns: 1fr 1fr;
  }
  .panel {
      float: none;
      width: 100%;
      margin: 20px 0;
  }
}

@media (max-width:480px) {
    header h1 {
        font-size: 1.7rem;
    }
    header .logo {
      max-width: 420px;
    }
  .grid.cols2,
  .grid.cols3,
  .grid.cols4,
  .grid.cols5,
  .grid.cols6 {
    grid-template-columns: 1fr;
  }
}
