* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #222;
  background-color: #f5f5f8;
  line-height: 1.6;
}

a {
  color: #0b4f9c;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  background-color: #0b2340;
  color: #fff;
  background-image: url("images/tartan_light.jpg");
  background-repeat: repeat;
  background-size: auto;
  background-position: top left;
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  width: 101px;
  height: 101px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #fff;
  flex-shrink: 0;
}

.brand-logo a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text h1 {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  color: #ffd700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.brand-text span {
  font-size: 0.9rem;
  opacity: 0.95;
  color: #fffbe6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.main-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
}

.main-nav .nav-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.main-nav .nav-members {
  justify-content: flex-end;
}

.main-nav a {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffd700;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background-color: rgba(0, 0, 0, 0.35);
}

.main-nav a:hover {
  background: #143968;
  border-color: rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

.main-nav a.active {
  background: #f4f4f4;
  color: #0b2340;
}

.hero {
  position: relative;
  color: #fff;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #030712, #0b2340);
  z-index: -1;
}

.hero-inner {
  max-width: 720px;
}

.hero-title {
  font-size: 2.1rem;
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}

.hero-meta {
  font-size: 0.95rem;
  opacity: 0.94;
}

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.section {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.75rem 1.75rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.section-header {
  margin-bottom: 0.75rem;
}

.section-header h2 {
  margin: 0;
  font-size: 1.35rem;
  color: #0b2340;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.9rem;
  margin-top: 0.75rem;
}

.photo-card {
  border-radius: 10px;
  overflow: hidden;
  background: #020617;
  position: relative;
}

.photo-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

.photo-caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 0.4rem 0.6rem;
  font-size: 0.8rem;
  color: #f9fafb;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85), transparent);
}

.columns {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.75rem;
}

@media (max-width: 800px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-text h1 {
    font-size: 1.2rem;
  }

  .hero {
    padding: 2.5rem 1.5rem;
  }

  .hero-title {
    font-size: 1.7rem;
  }

  .columns {
    grid-template-columns: 1fr;
  }
}

.section p {
  margin: 0 0 0.9rem;
}

.section ul {
  margin: 0.3rem 0 0.9rem 1.2rem;
  padding: 0;
}

.section li + li {
  margin-top: 0.25rem;
}

.gallery-year {
  margin: 1.25rem 0 0.4rem;
  font-size: 1.1rem;
  color: #0b2340;
}

.gallery-year:first-of-type {
  margin-top: 0.5rem;
}

.gallery-list {
  list-style: none;
  margin: 0 0 0.5rem;
  padding: 0;
}

.gallery-list li {
  margin: 0.2rem 0;
}

.links-list p {
  margin-top: 1.1rem;
}

.links-list p:first-of-type {
  margin-top: 0.5rem;
}

.events-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

.events-table th,
.events-table td {
  border: 1px solid #d4d4dc;
  padding: 0.5rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.events-table th {
  background: #0b2340;
  color: #fff;
  font-weight: 700;
}

.events-table tr:nth-child(even) {
  background: #f8fafc;
}

.events-table a {
  word-break: break-all;
}

.dance-list-table .dance-list-date {
  background: #e2e8f0;
  font-weight: 700;
  padding: 0.6rem 0.75rem;
}

/* Contact compose form */
.tofindus-map {
  max-width: 100%;
  height: auto;
  display: block;
}

.contact-compose {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid #d4d4dc;
  border-radius: 8px;
  max-width: 32rem;
}

.contact-compose h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: #0b2340;
}

.contact-compose p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: #4b5563;
}

.contact-form .form-row {
  margin-bottom: 1rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.5rem 0.6rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid #c4c4cc;
  border-radius: 4px;
  background: #fff;
}

.contact-form textarea {
  resize: vertical;
  min-height: 6rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #0b4f9c;
  box-shadow: 0 0 0 2px rgba(11, 79, 156, 0.2);
}

.contact-form .form-actions {
  margin-bottom: 0;
  margin-top: 1.25rem;
}

.contact-submit {
  padding: 0.5rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: #0b2340;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.contact-submit:hover {
  background: #0d5aa7;
}

.site-footer {
  border-top: 1px solid #d4d4dc;
  padding: 1rem 1.5rem 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: #4b5563;
}

