﻿:root {
  --emerald: #0f3d2e;
  --sapphire: #1f3a5c;
  --amethyst: #4b2c5e;
  --ruby: #7a1f2b;
  --stone: #f4f1ec;
  --warm-white: #fffdf9;
  --charcoal: #2b2b2b;
  --soft-gold: #c8b36a;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  font-family: Georgia, serif;
  background: var(--stone);
  color: var(--charcoal);
  min-height: 100vh;
}

main {
  width: 100%;
  background:
    linear-gradient(
      rgba(255, 253, 249, 0.8),
      rgba(255, 253, 249, 0.8)
    ),
    url('images/Interior/shustoke_xmas.jpg') no-repeat center center;
  background-size: cover;
  padding-bottom: 2rem;
}

.main-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
  text-align: center;
}

.header-content,
.footer-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
}

header,
.site-footer {
  min-height: 55vh;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

header::after,
.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.10);
}

.header-content {
  position: relative;
  color: white;
  text-align: center;
  padding: 2rem 0.75rem;
}

.header-content h1 {
  font-size: 2.4rem;
  letter-spacing: 0.04em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.header-content h2,
.header-content h3,
.main-content h4,
.main-content h5,
.gallery-section h3 {
  margin: 0.75rem 0;
}

.header-content h2 {
  font-size: 1.3rem;
}

.header-content h3,
.main-content h4,
.main-content h5 {
  font-size: 1rem;
}

.header-content p,
.main-content p {
  font-size: 1rem;
  margin: 0.75rem auto;
  max-width: 40rem;
}

.footer-content {
  position: relative;
  color: white;
  text-align: center;
  padding: 2rem 1.25rem;
}

.footer-content p {
  margin: 0.5rem 0;
  font-size: 1rem;
}

.topnav {
  background-color: #333;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.topnav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 140px;
  min-width: 120px;
  padding: 0.85rem 1rem;
  color: #f2f2f2;
  text-align: center;
  text-decoration: none;
  font-size: 1rem;
  font-family: Garamond, sans-serif;
  line-height: 1.2;
}

.topnav a:hover {
  color: #99ddff;
}

.active {
  background-color: #99ddff;
  color: black !important;
  border-radius: 0.25rem;
}

.divider {
  width: 4rem;
  height: 3px;
  margin: 1.5rem auto;
  background: linear-gradient(
    to right,
    var(--emerald),
    var(--sapphire),
    var(--amethyst),
    var(--ruby)
  );
}

.countdown-container {
  width: 100%;
  max-width: 900px;
  margin: 2rem auto;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
  color: var(--charcoal);
  background: rgba(255, 255, 255, 0.95);
}

.countdown-container h3 {
  color: var(--charcoal);
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.25rem 0;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 90px;
  flex: 1 1 100px;
}

.countdown-value {
  font-size: 2.2rem;
  font-weight: bold;
  color: var(--ruby);
}

.countdown-label {
  font-size: 0.9rem;
  color: var(--charcoal);
  margin-top: 0.25rem;
  text-transform: uppercase;
}

.gallery-section {
  margin-top: 2rem;
}

.gallery-section h3 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: 0.75rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.gallery-item img,
.gallery-item video,
iframe {
  width: 100%;
  max-width: 100%;
  display: block;
}

.gallery-item img,
.gallery-item video {
  object-fit: cover;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.gallery-item video {
  height: auto;
}


iframe {
  min-height: 360px;
  border: none;
}

form {
  max-width: 500px;
  margin: 2rem auto;
}

label {
  font-weight: bold;
  display: block;
  margin-top: 1.2rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 0.35rem;
}

button {
  margin-top: 1.5rem;
  padding: 0.9rem;
  width: 100%;
  background: var(--emerald);
  color: white;
  border: none;
  border-radius: 0.35rem;
  cursor: pointer;
}

button:hover,
button:focus {
  opacity: 0.95;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  padding-top: 80px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  margin: auto;
  display: block;
  width: min(90%, 700px);
  max-width: 700px;
}

.close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: #f1f1f1;
  font-size: 2.5rem;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

@media (min-width: 640px) {
  .main-content {
    padding: 3rem 2rem;
  }

  .header-content {
    padding: 3rem 1.5rem;
  }

  .divider {
    width: 6rem;
  }

  .countdown-value {
    font-size: 3rem;
  }
}

@media (min-width: 960px) {
  .header-content h1 {
    font-size: 3.2rem;
  }

  .header-content h2 {
    font-size: 1.6rem;
  }

  .topnav a {
    font-size: 1rem;
  }
}
