/* ========================================
   Fairhall & Brett — Global Styles
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

/* --- Custom Properties --- */
:root {
  --maroon: #8f2d35;
  --maroon-dark: #6e222a;
  --maroon-light: #a33a43;
  --white: #ffffff;
  --off-white: #f5f5f5;
  --light-grey: #eeeeee;
  --dark: #222222;
  --text-dark: #333333;
  --text-light: #ffffff;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: Verdana, Geneva, sans-serif;
  --max-width: 1100px;
  --section-padding: 80px 20px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--maroon);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--maroon-dark);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
}

/* --- Top Bar --- */
.top-bar {
  background: var(--maroon);
  color: var(--text-light);
  padding: 8px 20px;
  font-size: 13px;
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.top-bar span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-bar svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* --- Header --- */
.site-header {
  background: var(--white);
  padding: 25px 20px;
  text-align: center;
  border-bottom: 1px solid var(--light-grey);
}

.site-header img {
  max-height: 100px;
  margin: 0 auto;
}

/* --- Footer --- */
.site-footer {
  background: var(--dark);
  color: var(--text-light);
  text-align: center;
  padding: 30px 20px;
  font-size: 13px;
}

.site-footer a {
  color: var(--text-light);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
}

.site-footer a:hover {
  text-decoration-color: var(--text-light);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.75);
}

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

.hero h1 {
  font-size: clamp(28px, 5vw, 56px);
  color: var(--maroon);
  margin-bottom: 10px;
}

.hero .subtitle {
  font-size: clamp(16px, 2.5vw, 22px);
  color: var(--text-dark);
  font-family: var(--font-heading);
}

.hero .page-title {
  font-size: clamp(36px, 6vw, 64px);
  color: var(--maroon);
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.hero .page-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--maroon);
}

/* --- Section Dividers --- */
.divider-down {
  position: relative;
}

.divider-down::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: 0;
  width: 100%;
  height: 40px;
  background: inherit;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  z-index: 2;
}

.divider-up {
  position: relative;
}

.divider-up::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 0;
  width: 100%;
  height: 40px;
  background: inherit;
  clip-path: polygon(50% 0, 0 100%, 100% 100%);
  z-index: 2;
}

/* --- Sections --- */
.section {
  padding: var(--section-padding);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-maroon {
  background: var(--maroon);
  color: var(--text-light);
}

.section-white {
  background: var(--white);
  color: var(--text-dark);
}

.section-grey {
  background: var(--off-white);
  color: var(--text-dark);
}

.section h2 {
  font-size: clamp(24px, 4vw, 40px);
  margin-bottom: 20px;
}

.section p {
  margin-bottom: 16px;
  max-width: 750px;
}

.section p:last-child {
  margin-bottom: 0;
}

.text-center {
  text-align: center;
}

.text-center p {
  margin-left: auto;
  margin-right: auto;
}

/* --- Game Buttons Grid --- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  max-width: var(--max-width);
  margin: 30px auto 0;
}

.game-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: var(--maroon);
  border: 2px solid var(--maroon);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 22px 20px;
  border-radius: 4px;
  text-align: center;
  transition: background 0.25s ease, color 0.25s ease, transform 0.15s ease;
}

.game-btn:hover {
  background: var(--maroon);
  color: var(--text-light);
  transform: translateY(-2px);
}

/* --- Accordion / Toggle --- */
.accordion-group {
  max-width: var(--max-width);
  margin: 0 auto;
}

.accordion-item {
  border: 1px solid var(--light-grey);
  border-radius: 4px;
  margin-bottom: 8px;
  overflow: hidden;
}

.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 18px;
  background: var(--off-white);
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  text-align: left;
  transition: background 0.2s ease;
}

.accordion-trigger:hover {
  background: var(--light-grey);
}

.accordion-trigger::after {
  content: '+';
  font-size: 20px;
  font-weight: 400;
  color: var(--maroon);
  transition: transform 0.25s ease;
  flex-shrink: 0;
  margin-left: 12px;
}

.accordion-trigger[aria-expanded="true"]::after {
  content: '−';
}

.accordion-panel {
  display: none;
  padding: 14px 18px;
  background: var(--white);
  font-size: 14px;
  line-height: 1.7;
  border-top: 1px solid var(--light-grey);
}

.accordion-panel.is-open {
  display: block;
}

/* --- Hint Page --- */
.hint-page {
  padding: 40px 20px 80px;
}

.hint-page .section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.hint-box-title {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3.5vw, 32px);
  color: var(--maroon);
  margin-top: 40px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--maroon);
}

.hint-section-title {
  font-family: var(--font-heading);
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--text-dark);
  margin-top: 24px;
  margin-bottom: 10px;
  font-weight: 700;
}

.hint-intro {
  font-style: italic;
  color: #666;
  margin-bottom: 30px;
}

/* --- About / Reveal Section --- */
.about-section {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 100px 20px;
}

.about-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(143, 45, 53, 0.85);
}

.about-section .section-inner {
  position: relative;
  z-index: 1;
  color: var(--text-light);
  text-align: center;
}

/* --- Estate Section Two-Col --- */
.estates-row {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.estates-text {
  flex: 1 1 55%;
}

.estates-text h2 {
  font-size: clamp(22px, 3.5vw, 32px);
  line-height: 1.35;
}

.estates-image {
  flex: 1 1 40%;
}

.estates-image img {
  width: 100%;
  border-radius: 4px;
  object-fit: cover;
}

.estate-list {
  list-style: disc;
  padding-left: 22px;
  margin: 20px 0 30px;
}

.estate-list li {
  padding: 6px 0;
  font-size: 16px;
  line-height: 1.5;
}

/* --- CosyKiller CTA Button --- */
.btn-hints {
  display: inline-block;
  background: var(--maroon);
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 16px 36px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.15s ease;
}

.btn-hints:hover {
  background: var(--maroon-dark);
  color: var(--text-light);
  transform: translateY(-2px);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .top-bar {
    font-size: 12px;
    gap: 15px;
  }

  .hero {
    min-height: 300px;
  }

  .section {
    padding: 50px 16px;
  }

  .estates-row {
    flex-direction: column;
  }

  .estates-image {
    order: -1;
  }

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

  .divider-down::after,
  .divider-up::before {
    height: 25px;
  }
}