:root {
  --primary-color: #782a31;
  /* dark wine red */
  --secondary-color: #5c3639;
  /* warm brownish red */
  --background-light: #ffe4e6;
  /* soft rose */
  --background-dark: #2C0B0E;
  /* dark wine tone */
  --text-dark: #2e2e2e;
}

/* Structure */
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background-color: var(--primary-color);
  font-family: "Merriweather", serif;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

/* Header styling */
header {
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("images/cologne-city.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  color: var(--secondary-color);
  text-align: center;
  height: 100vh;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

header h1 {
  font-weight: 700;
  font-size: 120px;
  line-height: 1;
  margin: 30px 0;
  color: var(--primary-color);
  text-shadow:
    -1px -1px 0 var(--background-light),
    1px -1px 0 var(--background-light),
    -1px 1px 0 var(--background-light),
    1px 1px 0 var(--background-light);
}

header h2,
header h3 {
  color: var(--background-light);
}

header h2 {
  font-weight: 400;
  font-size: 40px;
  margin: 0;
}

header h3 {
  font-weight: 200;
  font-size: 24px;
  letter-spacing: 5px;
  margin: 0;
}

/* CTA button in header */
header a {
  font-weight: 700;
  font-size: 14px;
  padding: 16px 32px;
  margin-top: 32px;
  display: inline-block;
  letter-spacing: 3px;
  text-decoration: none;
  text-transform: uppercase;
  background-color: var(--primary-color);
  color: var(--background-light);
  border-radius: 4px;
}

/* Main section styling */
main {
  background-color: var(--background-light);
}

main h2,
main h3,
main h4,
main h5 {
  color: var(--primary-color);
}

main p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-dark);
  opacity: 0.8;
}

/* Introduction grid */
.cologne-introduction {
  padding: 100px;
}

.img-responsive {
  width: 100%;
  display: block;
}

/* Grid layouts */
.grid {
  display: grid;
  grid-gap: 64px;
}

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

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

.grid-3-columns-with-first-narrow {
  grid-template-columns: 1fr 2fr 2fr;
}

/* Secondary section (cards) */
section.secondary {
  background-color: var(--background-light);
  padding: 70px 30px;
}

section.secondary h2 {
  text-align: center;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--primary-color);
  opacity: 0.4;
  margin-bottom: 8px;
}

section.secondary h3 {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 48px;
  color: var(--primary-color);
}

/* Card component */
.card {
  background-color: var(--background-light);
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-header.grid {
  grid-gap: 0;
}

.card-body {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-body h4 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.card-body h5 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--secondary-color);
  opacity: 0.6;
  margin-top: 16px;
  margin-bottom: 4px;
}

.card-body p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  opacity: 0.8;
  margin: 0;
}

.card-footer {
  padding: 0 30px 30px;
}

/* Google Maps Embed */
.embed {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: none;
  display: block;
}

/* CTA Buttons */
.btn {
  display: block;
  color: var(--background-light);
  background-color: var(--primary-color);
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  text-transform: uppercase;
  padding: 14px;
  letter-spacing: 2px;
  text-decoration: none;
  border-radius: 4px;
  margin-top: 20px;
}

/* Image table (gallery) */
.image-gallery {
  padding: 30px 20px;
  background-color: var(--background-light);
}

.image-gallery h2 {
  font-size: 32px;
  margin-bottom: 40px;
  color: var(--primary-color);
  text-align: center;
}

.image-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
}

.image-table td {
  padding: 10px;
  text-align: center;
}

.image-table img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease, filter 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.image-table img:hover {
  transform: scale(1.4);
  filter: brightness(1.1) saturate(1.2);
}

/* Footer */
footer {
  background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
    url("images/cologne-locks.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--primary-color);
  padding: 60px;
}

footer h3 {
  font-weight: 700;
  font-size: 20px;
}

footer p,
footer a {
  opacity: 0.7;
  font-size: 16px;
  color: var(--background-light);
}

footer ul {
  padding: 0;
  list-style: none;
}

/* Responsive layout */
@media (max-width: 900px) {
  header {
    padding: 60px 0;
    height: auto;
  }

  header h1 {
    font-size: 48px;
  }

  header h2 {
    font-size: 20px;
  }

  header h3 {
    font-size: 12px;
  }

  .grid {
    grid-template-columns: 1fr;
    grid-gap: 32px;
  }

  .cologne-introduction {
    padding: 30px;
  }

  .image-table td {
    display: block;
    width: 100%;
    margin-bottom: 16px;
  }

  .image-table {
    display: block;
    width: 100%;
  }

  .image-table img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }
}