/*
Theme Name: Bluehost Blueprint Child
Theme URI: https://example.com/
Description: Child theme for Bluehost Blueprint
Author: Your Name
Template: bluehost-blueprint
Version: 1.0.0
Text Domain: bluehost-blueprint-child
*/

/* =========================================
   BRAND TOKENS
========================================= */
:root{
  --brand-rose:#DB535F;
  --brand-yellow:#f7da79;
  --brand-white:#FFFFFF;
  --brand-text:#4a3a34;
  --brand-font-heading:"Shrikhand", cursive;
  --brand-font-body:"Lato", sans-serif;
}

/* =========================================
   GLOBAL TYPOGRAPHY
========================================= */
body, p, li, a, span, input, textarea, select, label {
  font-family: var(--brand-font-body) !important;
}

h1, h2, h3, h4, h5, h6,
.wp-block-button__link,
figcaption,
caption,
button {
  font-family: var(--brand-font-heading) !important;
}

/* =========================================
   GLOBAL COLORS
========================================= */
html,
body,
.wp-site-blocks,
.wp-site-blocks > main,
main.wp-block-group {
  background-color: var(--brand-yellow);
}

/* Basic Lato text uses warm dark neutral for readability */
body, p, li, span, label, a {
  color: var(--brand-text);
}

/* Headings/captions stay rose */
h1, h2, h3, h4, h5, h6,
figcaption, caption {
  color: var(--brand-rose);
}

/* Button 1: rose background + rose outline + yellow text */
.wp-block-button__link,
button,
input[type="submit"] {
  background-color: var(--brand-rose);
  color: var(--brand-yellow);
  border-radius: 8px;
  border: 2px solid var(--brand-rose);
}

/* Button 2: yellow background + rose outline + rose text */
.wp-block-button.is-style-outline .wp-block-button__link,
.wp-block-button.is-style-fill.is-style-outline .wp-block-button__link {
  background: var(--brand-yellow);
  color: var(--brand-rose);
  border: 2px solid var(--brand-rose);
}

/* Ensure button text remains readable in all link states */
.wp-block-button .wp-block-button__link,
.wp-block-button .wp-block-button__link:link,
.wp-block-button .wp-block-button__link:visited,
.wp-block-button .wp-block-button__link:hover,
.wp-block-button .wp-block-button__link:focus {
  color: var(--brand-yellow) !important;
}

.wp-block-button.is-style-outline .wp-block-button__link,
.wp-block-button.is-style-outline .wp-block-button__link:link,
.wp-block-button.is-style-outline .wp-block-button__link:visited,
.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:focus {
  color: var(--brand-rose) !important;
  background: var(--brand-yellow) !important;
  border-color: var(--brand-rose) !important;
}

/* Keep registration plugin heading text white inside rose cards */
.crf-wrapper h1,
.crf-wrapper h2,
.crf-wrapper h3,
.crf-wrapper h4,
.crf-wrapper h5,
.crf-wrapper h6,
.crf-wrapper .crf-title,
.crf-wrapper .crf-sub,
.crf-wrapper .crf-marketing h3,
.crf-wrapper .crf-marketing p,
.crf-wrapper .crf-marketing li,
.crf-wrapper .crf-bottom-info {
  color: var(--brand-white) !important;
}

/* =========================================
   GLOBAL SPACING FIXES (migrated)
========================================= */

/* Remove top and bottom gap from main container */
.wp-site-blocks > main.wp-block-group {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Remove top margin from first block and bottom margin from last block inside main */
.wp-site-blocks > main.wp-block-group > *:first-child {
  margin-top: 0 !important;
}

.wp-site-blocks > main.wp-block-group > *:last-child {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Remove extra space above the footer */
footer.wp-block-template-part {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* =========================================
   CUSTOM REGISTRATION FORM (migrated)
========================================= */
.cur-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 800px;
  margin: 2rem auto;
}

.cur-form p {
  margin: 0;
}

/* Make inputs full-width inside their cell */
.cur-form input[type="text"],
.cur-form input[type="email"],
.cur-form input[type="password"],
.cur-form select {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
}

/* Checkbox & label inline */
.cur-form input[type="checkbox"] {
  margin-right: 0.5rem;
}

/* Submit button style */
.cur-form input[type="submit"] {
  grid-column: 1 / -1;
  background: var(--brand-rose);
  color: var(--brand-yellow);
  border: 2px solid var(--brand-rose);
  padding: 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: filter 0.3s ease;
}
.cur-form input[type="submit"]:hover {
  filter: brightness(0.95);
}

/* Force large fields (like address) to span full width */
.cur-form .full {
  grid-column: 1 / -1;
}

/* Mobile: collapse to single column */
@media (max-width: 768px) {
  .cur-form {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   CLASSES PAGE LAYOUT (migrated)
========================================= */
.classes-section {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1rem;
  gap: 2rem;
}

/* Text (left) */
.classes-content {
  flex: 1;
  padding-right: 2rem;
}

.classes-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.classes-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.class-info {
  list-style: none;
  padding: 0;
  margin: 0;
}

.class-info li {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

/* Image (right) */
.classes-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.classes-image img {
  max-width: 100%;
  max-height: 400px;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: cover;
}

/* ===== Mobile layout ===== */
@media (max-width: 768px) {
  .classes-section {
    flex-direction: column;
    text-align: center;
  }

  .classes-content {
    padding-right: 0;
  }

  .classes-image {
    margin-top: 1.5rem;
  }

  .classes-image img {
    max-height: none;
  }
}