/*
 * Main stylesheet for the St. Nicholas single page site.
 *
 * Colours, typography and layout draw inspiration from the
 * Antiochian Orthodox Church design system. A deep burgundy
 * primary hue pairs with liturgical gold accents and soft
 * neutrals to evoke reverence and tradition while remaining
 * welcoming and accessible.
 */

/* CSS custom properties to define the colour palette and fonts */
:root {
  --primary: #580b25;    /* deep burgundy for headings, headers and buttons */
  --accent: #d4af37;     /* liturgical gold used for highlights and secondary buttons */
  --muted: #f5f0e6;      /* warm beige for background areas */
  --card: #ffffff;       /* pure white for content cards and sections */
  --text: #333333;       /* dark grey for body text */
  --heading-font: 'Playfair Display', serif;
  --body-font: 'Open Sans', sans-serif;
}

/* Global resets and base styling */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--body-font);
  line-height: 1.6;
  background-color: var(--muted);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

/* Container to constrain content width and provide horizontal padding */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header styles */
.site-header {
  background-color: var(--primary);
  color: var(--card);
  padding: 1rem 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-title {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  font-weight: 600;
}

.site-nav {
  display: flex;
  gap: 1rem;
}

/* Button base styles */
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--card);
}

.btn-primary:hover {
  background-color: #40081b; /* slightly darker than primary */
}

.btn-secondary {
  background-color: var(--accent);
  color: var(--primary);
}

.btn-secondary:hover {
  background-color: #b9962e; /* darker gold on hover */
}

/* Hero section */
.hero {
  position: relative;
  background-image: url('https://images.stnicholasgr.com/st-nicholasgr-dome.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--card);
}

/* Dark overlay to improve text contrast on the hero image */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  /*background: rgba(88, 11, 37, 0.6);*/
  background: rgba(0, 0, 0, 0.6);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content h2 {
  font-family: var(--heading-font);
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hero-content p {
  font-size: 1.25rem;
  font-weight: 300;
}

/* Event section styling */
.event {
  background-color: var(--card);
  color: var(--text);
  padding: 4rem 0;
  text-align: center;
}

.event-date-label {
  display: inline-block;
  background-color: var(--primary);
  color: var(--card);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.event-title {
  font-family: var(--heading-font);
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.event-description {
  max-width: 700px;
  margin: 0 auto 1.5rem;
}

.event-time {
  font-weight: 600;
  margin-bottom: 2rem;
}

/* Contact section */
.contact {
  background-color: var(--muted);
  padding: 3rem 0;
  text-align: center;
}

.contact h3 {
  font-family: var(--heading-font);
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.contact p {
  margin-bottom: 0.5rem;
}

/* Quick links section */
.quick-links {
  background-color: var(--card);
  padding: 3rem 0;
}

.quick-links h3 {
  font-family: var(--heading-font);
  font-size: 1.75rem;
  margin-bottom: 1rem;
  text-align: center;
  color: var(--primary);
}

.quick-links ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.quick-links li {
  font-weight: 600;
}

.quick-links li a {
  color: var(--primary);
  border-bottom: 2px solid transparent;
  padding-bottom: 0.2rem;
  transition: border-color 0.3s ease;
}

.quick-links li a:hover {
  border-color: var(--accent);
}

/* Footer styles */
.site-footer {
  background-color: var(--primary);
  color: var(--card);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.875rem;
}

.site-footer a {
  color: var(--accent);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-content h2 {
    font-size: 2.25rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
  .site-title {
    font-size: 1.25rem;
  }
  .event-title {
    font-size: 1.5rem;
  }
}
