/*
Theme Name: Survivor Space
Author: Hut Six Digital
Author URI: https://www.hutsixdigital.co.uk
Version: 1.0
*/

/* --------------------------------------------------------------
# VARIABLES — Colours, type, spacing, radii, shadows, transitions
-------------------------------------------------------------- */
:root {
  /* Brand Colours */
  --black: #000;
  --white: #fff;
  --pink: #d91b5c;
  --lightpink: #fbe8ee;
  --orange: #f7941d;
  --lightorange: #fef4e8;
  --blue: #14598e;
  --lightblue: #e7eef3;

  /* Typography */
  --font-body: "circe-rounded", sans-serif;
  --font-heading: "news-gothic-std", sans-serif;
  --fs-base: 1rem;
  --fs-sm: 0.875rem;
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.75rem, 3vw, 2.25rem);
  --fs-xxl: clamp(2rem, 4vw, 3rem);

  --h1-size: var(--fs-xxl);
  --h2-size: var(--fs-xl);
  --h3-size: clamp(1.5rem, 2.5vw, 1.9rem);

  /* Spacing Scale */
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4rem;
  --space-8: 5rem;

  /* Shape */
  --radius: 20px;

  /* Shadows */
  --shadow-soft: 0 0 10px rgba(0,0,0,0.08);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 600ms ease;

  /* Splide */
  --splide-offset: 20px;
}

/* --------------------------------------------------------------
# ACCESSIBILITY & BASE TYPOGRAPHY
-------------------------------------------------------------- */
.screen-reader-text {
  border: 0;
  clip: rect(1px,1px,1px,1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  position: absolute!important;
  width: 1px;
}

.skip-link:focus {
  top: 0; left: 0;
  padding: var(--space-2);
  background: var(--white);
  position: absolute;
  z-index: 9999;
}

body,
p,
ul,
li,
.dropdown-item {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--black);
}

a { color: var(--black); transition: var(--transition-base); }
a:hover { color: var(--black); }

h1, h2, h3, h4, .h1, .h2, .h3, .h4 {
  font-weight: 700;
  margin-bottom: var(--space-3);
}
h1 { 
  font-family: var(--font-heading);
  font-size: var(--h1-size); 
}
.home h1 { font-family: var(--font-body); }
h2, .h2 { font-size: var(--h2-size); }
h3, .h3 { font-size: var(--h3-size); }

/* --------------------------------------------------------------
# GENERAL LAYOUT
-------------------------------------------------------------- */
.wrapper {
  position: relative;
  width: 100%;
}

hr {
  margin: var(--space-6) 0;
  border-width: 1px;
  opacity: 1;
  border-color: var(--lightblue);
}

.rounded,
img {
  border-radius: var(--radius)!important;
}

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

.aligncenter { margin-left: auto; margin-right: auto; display: block; }
.alignright { margin-left: auto; display: block; }

/* Shadow helpers */
.box-shadow { box-shadow: var(--shadow-soft); }

/* Smooth transitions */
a,
.link-box,
.news-box img,
.gi-box img,
.team-member img,
.document-link img {
  transition: var(--transition-base);
}

/* --------------------------------------------------------------
# SECTION BACKGROUNDS
-------------------------------------------------------------- */
.white { background: var(--white); }
.light-blue { background: var(--lightblue); }
.light-orange { background: var(--lightorange); }
.light-pink { background: var(--lightpink); }
.blue { background: var(--blue); }
.pink { background: var(--pink); }

/* Section dividers */
.wrapper.white:before,
.wrapper.light-blue:before,
.wrapper.light-orange:before,
.wrapper.light-pink:before,
.blue:before,
.footer:before {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 20px;
  background-repeat: repeat-x;
}

.wrapper.white:before { background-image: url('img/section-dividers/white.png'); }
.wrapper.light-blue:before { background-image: url('img/section-dividers/light-blue.png'); }
.wrapper.light-orange:before { background-image: url('img/section-dividers/light-orange.png'); }
.wrapper.light-pink:before { background-image: url('img/section-dividers/light-pink.png'); }
.blue:before { background-image: url('img/section-dividers/blue.png'); }
.footer:before { background-image: url('img/section-dividers/footer.png'); }

/* --------------------------------------------------------------
# HEADER
-------------------------------------------------------------- */
.logo {
  width: 120px;
}
@media (min-width: 992px) { .logo { width: 130px; } }
@media (min-width: 1600px) { .logo { width: 150px; } }

.navbar .nav-link {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--black);
}

.navbar-toggler {
  font-size: 36px;
  border: 1px solid var(--black);
}

/* Search */
.header-search { position: relative; display: inline-block; }

.search-form {
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%) scaleX(0);
  transform-origin: right center;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  background: none;
}

.search-form.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) scaleX(1);
}

.search-field {
  background: var(--lightorange);
  padding: var(--space-2);
  border: none;
  outline: none;
  min-width: 200px;
  font-size: 16px;
}

/* --------------------------------------------------------------
# SPLIDE - ALL CAROUSELS
-------------------------------------------------------------- */
.splide__slide { height: auto; }
.splide__arrow {
  background: var(--black);
  color: var(--white);
}

/* SERVICES carousel */
.services-splide .splide__slide img { 
  border-radius: var(--radius); 
  transition: var(--transition-fast);
}
.services-splide .splide__slide:hover img { opacity: 0.9; }

/* PARTNERS carousel */
.partner-logo {
  max-height: 100px;
  object-fit: contain;
}

/* QUOTES carousel */
.rq-splide {
  position: relative;
  padding: var(--space-5);
  background-image: url(img/bubble-quotes.png);
  background-repeat: no-repeat;
  background-size: contain;
  aspect-ratio: 725 / 668;
  display: flex;
  justify-content: center;
  align-items: center;
}

.rq-splide .splide__track {
  transform: translateY(-20px);
}

.rq-slide blockquote {
  max-width: 90%;
  margin: 0 auto;
  color: var(--white);
}

.rq-slide cite {
  margin-top: .75rem;
  opacity: .7;
}

/* Pagination dots */
.splide__pagination__page {
  background: var(--blue);
  opacity: 1!important;
}
.splide__pagination__page.is-active {
  background: var(--orange);
}

/* --------------------------------------------------------------
# CONTENT BLOCKS
-------------------------------------------------------------- */
.link-box {
  background: var(--blue);
  text-decoration: none;
}
.link-box:hover { transform: scale(1.05); }
.link-box-icon {
  position: absolute;
  bottom: var(--space-3);
  right: var(--space-3);
}

.team-member { text-decoration: none; }
.team-member:hover img { transform: scale(1.05); }

.gi-box { text-decoration: none; }
.gi-box img { width: 130px; }
.gi-box:hover img { transform: scale(1.1); }

.img-donate {
  border-radius: var(--radius) var(--radius) 0 0!important;
}
@media (min-width: 1200px) {
  .img-donate {
    border-radius: 0 var(--radius) var(--radius) 0!important;
  }
}

.news-box { text-decoration: none; }
.news-box:hover img { transform: scale(1.05); }

.document-link { text-decoration: none; }
.document-link:hover img { transform: scale(1.05); }

.list-group-item.active { 
  background-color: var(--lightblue)!important; 
  color: var(--black)!important;
}

.list-group-item,
.list-group-item.active { border-color: var(--lightblue)!important; }

.list-group-item-action:focus, .list-group-item-action:hover { background-color: var(--lightblue)!important; }

/* --------------------------------------------------------------
# FOOTER
-------------------------------------------------------------- */
.footer i { font-size: 2rem; }

.footer-menu {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}
.footer-menu li {
  flex: 100%;
}
@media (min-width: 992px) {
  .footer-menu li { flex: 50%; }
}

@media (max-width: 992px) {
  .social-media {
    display: flex;
    justify-content: center;
    margin: 0 auto;
    padding: 0;
  }
}

.social-media {
  list-style: none;
  display: inline-flex;
  gap: 16px;
}

.back-to-top {
  background: transparent;
  border: none;
  color: var(--white);
}

/* --------------------------------------------------------------
# FORMS / BUTTONS
-------------------------------------------------------------- */
input,
textarea {
  font-size: clamp(1.125rem, 2vw, 1.25rem)!important;
  font-family: var(--font-body);
}

.btn {
  font-family: var(--font-heading);
  font-weight: 900;
  padding: var(--space-2) var(--space-3);
  border-radius: 30px;
  text-transform: uppercase;
  transition: var(--transition-base);
}

.mobile-header-btn {
  border-radius: 0;
  text-align: center;
  padding: 1rem;
}

.btn-orange {
  background: var(--orange);
  color: var(--black);
}
.btn-orange:hover {
  background: var(--pink);
  color: var(--white);
}

.btn-pink {
  background: var(--pink);
  color: var(--white);
}
.btn-pink:hover {
  background: var(--orange);
  color: var(--black);
}

.btn-blue {
  background: var(--blue);
  color: var(--white);
}
.btn-blue:hover {
  background: var(--orange);
  color: var(--black);
}

.mc4wp-form-fields input[type="email"] {
  background: var(--lightblue);
  border-radius: 30px 0 0 30px!important;
  padding: var(--space-2) var(--space-4);
}
.mc4wp-form-fields .btn {
  border-radius: 0 30px 30px 0!important;
}

.gform_wrapper.gravity-theme .gf_progressbar_percentage.percentbar_blue { background-color: var(--pink)!important; }

.escape-button {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    background: var(--blue);
    color: var(--white) !important;
    padding: .75rem 1.25rem;
    font-family: var(--font-heading);
    font-weight: 900;
    border-radius: 30px;
    text-transform: uppercase;
    font-size: 1rem;
    transition: var(--transition-base);
    text-decoration: none;
}

.escape-button:hover,
.escape-button:focus {
    background: var(--orange);
    color: var(--black) !important;
    outline: none;
}

/* --------------------------------------------------------------
# WOOCOMMERCE
-------------------------------------------------------------- */

.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product p.price, 
.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product span.price,
.woocommerce:where(body:not(.woocommerce-uses-block-theme)) ul.products li.product .price { 
  color: var(--blue)!important; 
  font-weight: 700!important;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce #review_form #submit,
.woocommerce .button,
.woocommerce input[type="submit"],
.single_add_to_cart_button,
.add_to_cart_button,
.product_type_simple,
.product_type_variable {
  font-family: var(--font-heading) !important;
  font-size: var(--fs-base)!important;
  font-weight: 900 !important;
  padding: var(--space-2) var(--space-3) !important;
  border-radius: 30px !important;
  text-transform: uppercase !important;
  transition: var(--transition-base) !important;
  line-height: normal!important;
  background: var(--orange) !important;
  color: var(--black) !important;
  border: none !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce #review_form #submit:hover,
.woocommerce .button:hover,
.woocommerce input[type="submit"]:hover,
.single_add_to_cart_button:hover,
.add_to_cart_button:hover {
  background: var(--pink) !important;
  color: var(--white) !important;
}

.woocommerce-loop-product__title { 
  font-size: var(--h2-size)!important;
  padding: 0!important;
}

/* --------------------------------------------------------------
# DARK SECTIONS
-------------------------------------------------------------- */
.text-white,
.text-white a:not(.btn),
.text-white p, 
.text-white h1,
.text-white h2,
.text-white h3,
.text-white h4 { color: var(--white); }