/**
 * SG Homepage Opening Title Module - Frontend Styles
 * @author Seldom Group
 * Displays opening title section with optional subtitle and divider
 */

/* Main Section */
.sg-opening-title-section {
  padding: 60px 0 80px;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.sg-opening-title-section .container {
  position: relative;
  z-index: 2;
}

/* Section Subtitle (displayed first) */
.sg-opening-subtitle {
  font-size: 16px;
  font-weight: 400;
  color: #000000;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 25px;
  margin-top: 0;
  line-height: 1.6;
  font-family: 'Graphik', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Title Divider */
.sg-opening-divider {
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #B88452 0%, rgba(184, 132, 82, 0.3) 100%);
  margin: 0 auto 25px;
  border-radius: 2px;
}

/* Section Title (displayed last) */
.sg-opening-title {
  font-size: 42px;
  font-weight: 400;
  color: #000;
  text-align: center;
  margin-bottom: 0;
  margin-top: 0;
  line-height: 1.2;
  font-family: 'Playfair Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  letter-spacing: -0.01em;
  position: relative;
  white-space: pre-line;
}

/* Responsive Design */

/* Large Desktop (1400px and up) */
@media (min-width: 1400px) {
  .sg-opening-title-section {
    padding: 60px 0 50px;
  }

  .sg-opening-title {
    font-size: 48px;
  }

  .sg-opening-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
  }

  .sg-opening-divider {
    width: 90px;
    height: 4px;
    margin-bottom: 30px;
  }
}

/* Desktop (1200px to 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
  .sg-opening-title-section {
    padding: 70px 0 90px;
  }

  .sg-opening-title {
    font-size: 44px;
  }

  .sg-opening-subtitle {
    font-size: 17px;
    margin-bottom: 28px;
  }

  .sg-opening-divider {
    width: 85px;
    margin-bottom: 28px;
  }
}

/* Medium Desktop (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  .sg-opening-title-section {
    padding: 60px 0 80px;
  }

  .sg-opening-title {
    font-size: 40px;
  }

  .sg-opening-subtitle {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .sg-opening-divider {
    width: 80px;
    margin-bottom: 25px;
  }
}

/* Tablet (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .sg-opening-title-section {
    padding: 50px 0 70px;
  }

  .sg-opening-title {
    font-size: 36px;
  }

  .sg-opening-subtitle {
    font-size: 15px;
    margin-bottom: 22px;
  }

  .sg-opening-divider {
    width: 75px;
    margin-bottom: 22px;
  }
}

/* Mobile (up to 767px) */
@media (max-width: 767px) {
  .sg-opening-title-section {
    padding: 40px 0 60px;
  }

  .sg-opening-title {
    font-size: 32px;
  }

  .sg-opening-subtitle {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .sg-opening-divider {
    width: 70px;
    margin-bottom: 20px;
  }
}

/* Extra Small Mobile (up to 480px) */
@media (max-width: 480px) {
  .sg-opening-title-section {
    padding: 35px 0 50px;
  }

  .sg-opening-title {
    font-size: 28px;
  }

  .sg-opening-subtitle {
    font-size: 13px;
    margin-bottom: 18px;
    letter-spacing: 0.08em;
  }

  .sg-opening-divider {
    width: 60px;
    height: 3px;
    margin-bottom: 18px;
  }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  .sg-opening-title-section {
    transition: none !important;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .sg-opening-title {
    color: #000000;
  }

  .sg-opening-subtitle {
    color: #000000;
  }

  .sg-opening-divider {
    background: #000000;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .sg-opening-title-section {
    background: transparent;
  }

  .sg-opening-title {
    color: #f7fafc;
  }

  .sg-opening-subtitle {
    color: #e2e8f0;
  }

  .sg-opening-divider {
    background: linear-gradient(90deg, #B88452 0%, rgba(184, 132, 82, 0.4) 100%);
  }
}

/* Print styles */
@media print {
  .sg-opening-title-section {
    padding: 20px 0;
    background: transparent !important;
  }

  .sg-opening-divider {
    background: #000000;
  }
}
