/*
Theme Name: Sanderson Athletic Club
Description: Sanderson Athletic Club child theme for Twenty Twenty-Five.
Author: Versive Group
Template: twentytwentyfive
Version: 0.1.0
Text Domain: sanderson-athletic-club
*/

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.wp-block-button__link {
  transition: background-color .15s ease;
}

/* SAC layout v1 */
.sac-header {
  padding: 24px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid #e1e6ed;
}
.sac-header .wp-block-site-title {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
}
.sac-header .wp-block-site-title a {
  text-decoration: none;
}
.sac-header .wp-block-navigation {
  font-size: 16px;
}
.sac-home {
  padding: clamp(32px, 6vw, 72px) clamp(20px, 4vw, 64px);
}
.sac-home .wp-block-post-content {
  --wp--style--global--content-size: 1100px;
  --wp--style--global--wide-size: 1200px;
}
.sac-home h1 {
  max-width: 950px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.08;
  font-weight: 700;
  color: #174a8b;
}
.sac-home h2 {
  margin-top: 48px;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
}
.sac-home p {
  line-height: 1.65;
}
.sac-home .wp-block-image {
  margin-top: 32px;
  margin-bottom: 40px;
}
.sac-home .wp-block-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}
.sac-home .wp-block-buttons {
  gap: 16px;
}
.sac-footer {
  padding: 40px clamp(20px, 4vw, 64px);
  background: #174a8b;
  color: #fff;
}
.sac-footer a {
  color: #fff;
}
.sac-footer .wp-block-site-title {
  font-size: 24px;
  font-weight: 700;
}

/* SAC directory cards v1 */
.sac-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 24px;
  margin-block: 24px 48px;
}
.sac-directory-grid > .sac-directory-card {
  margin: 0;
  padding: 24px;
  border: 1px solid #dce3ec;
  border-radius: 12px;
  background: #f2f5f8;
  min-width: 0;
  overflow-wrap: anywhere;
}
.sac-directory-card h3 {
  margin-top: 0;
  color: #174a8b;
  font-size: 24px;
}
.sac-directory-card p {
  margin-block: 10px;
  font-size: 17px;
}

/* SAC About sections v1 */
.sac-about-section {
  margin-block: 32px;
  padding-block: 24px;
  border-top: 1px solid #dce3ec;
}
.sac-about-section > h2:first-child {
  margin-top: 0;
}
.sac-about-section .wp-block-image img {
  max-width: 100%;
  height: auto;
}

/* SAC compact About v1 */
.sac-about-section {
  margin-block: 24px;
  padding-block: 24px;
}
.sac-about-split {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.sac-about-section > .sac-about-copy,
.sac-about-section > .sac-about-media {
  margin: 0;
  min-width: 0;
}
.sac-about-copy > h2:first-child {
  margin-top: 0;
}
.sac-about-copy h2 {
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.2;
}
.sac-about-copy h3 {
  font-size: 23px;
  line-height: 1.3;
}
.sac-about-copy p {
  font-size: 18px;
  line-height: 1.6;
  margin-block: 12px;
}
.sac-about-media figure {
  margin: 0;
}
.sac-about-section .sac-about-media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  border-radius: 12px;
}
@media (max-width: 781px) {
  .sac-about-split {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* SAC shared social links v1 */
.sac-header-links {
  margin: 0;
}
.sac-header-social {
  justify-content: flex-end;
  gap: 10px;
  margin-block: 10px 0;
}
.sac-footer-social {
  gap: 12px;
  margin-block: 20px 0;
}
.sac-header-social .wp-social-link,
.sac-footer-social .wp-social-link {
  background: transparent;
}
.sac-header-social .wp-social-link {
  color: #174a8b;
}
.sac-footer-social .wp-social-link {
  color: #fff;
}
.sac-header-social .wp-social-link a,
.sac-footer-social .wp-social-link a {
  padding: 8px;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.sac-header-social a:hover,
.sac-footer-social a:hover {
  opacity: .75;
}
@media (max-width: 781px) {
  .sac-header-social {
    justify-content: flex-start;
  }
}

/* SAC event archive v1 */
.sac-events-month {
  margin-block: 16px;
  padding: 20px;
  border: 1px solid #dce3ec;
  border-radius: 12px;
}
.sac-events-month > summary {
  cursor: pointer;
  font-size: 22px;
  font-weight: 600;
  color: #174a8b;
}
.sac-events-month .sac-directory-grid {
  margin-bottom: 0;
}

/* SAC sponsor benefits v1 */
.sac-sponsor-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-block: 32px 48px;
}
.sac-sponsor-benefits > .sac-benefit-card {
  margin: 0;
  padding: 28px;
  background: #f2f5f8;
  border-top: 4px solid #174a8b;
  border-radius: 0 0 12px 12px;
  min-width: 0;
}
.sac-benefit-card:nth-child(2) {
  border-top-color: #b52632;
}
.sac-benefit-card h3 {
  margin-top: 0;
  font-size: 25px;
  line-height: 1.25;
  color: #174a8b;
}
.sac-benefit-card p {
  font-size: 17px;
  line-height: 1.6;
  margin-block: 12px;
}
.sac-benefit-card > p:first-of-type {
  font-weight: 600;
}
@media (max-width: 781px) {
  .sac-sponsor-benefits {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* SAC shared polish v1 */
main > .wp-block-post-title {
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.15;
  margin-block: 32px 24px;
}
main .wp-block-post-content > h2 {
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.25;
  margin-block: 32px 20px;
}
.sac-directory-card .wp-block-image {
  margin: 0 0 18px;
}
.sac-directory-card .wp-block-image img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: contain;
  border-radius: 8px;
}
main a:not(.wp-block-button__link) {
  text-underline-offset: .2em;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #b52632;
  outline-offset: 4px;
}
@media (max-width: 781px) {
  main > .wp-block-post-title {
    margin-block: 24px 20px;
  }
  .sac-directory-grid {
    gap: 16px;
    margin-block: 20px 32px;
  }
  .sac-directory-grid > .sac-directory-card {
    padding: 20px;
  }
  .sac-about-section {
    margin-block: 20px;
    padding-block: 20px;
  }
  .sac-about-copy h2 {
    font-size: 27px;
  }
  .sac-benefit-card {
    padding: 22px;
  }
}
