/*
Theme Name: St. Wanas Charity
Theme URI: https://stwanaskidscharity.org.au
Description: Custom WordPress theme for St Wanas Kids Charity, powered by Advanced Custom Fields.
Version: 1.0.0
Author: AIIMS
Text Domain: st-wanas
*/

/* WordPress Core Elements */
.alignnone { margin: 5px 20px 20px 0; }
.aligncenter, div.aligncenter { display: block; margin: 5px auto 5px auto; }
.alignright { float:right; margin: 5px 0 20px 20px; }
.alignleft { float: left; margin: 5px 20px 20px 0; }
a img.alignright { float: right; margin: 5px 0 20px 20px; }
a img.alignnone { margin: 5px 20px 20px 0; }
a img.alignleft { float: left; margin: 5px 20px 20px 0; }
a img.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { background: #fff; border: 1px solid #f0f0f0; max-width: 96%; padding: 5px 3px 10px; text-align: center; }
.wp-caption.alignnone { margin: 5px 20px 20px 0; }
.wp-caption.alignleft { margin: 5px 20px 20px 0; }
.wp-caption.alignright { margin: 5px 0 20px 20px; }
.wp-caption img { border: 0 none; height: auto; margin: 0; max-width: 98.5%; padding: 0; width: auto; }
.wp-caption p.wp-caption-text { font-size: 11px; line-height: 17px; margin: 0; padding: 0 4px 5px; }

/* WP Admin Bar Offset for sticky header */
.admin-bar .site-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

/* Contact Form 7 inside the contact card: fill the card width like the static form */
.ct-form .ct-cf7,
.ct-form .wpcf7,
.ct-form .wpcf7-form { width: 100%; }
.ct-form .wpcf7-form-control-wrap { display: block; width: 100%; }
.ct-form .wpcf7-submit:disabled { opacity: .7; cursor: wait; }

/* Contact details: tap-to-email/call links styled like the static text */
.ct-row .v a { color: inherit; text-decoration: none; }
.ct-row .v a:hover,
.ct-row .v a:focus-visible { text-decoration: underline; }

/* Thank You page (page-thank-you.php) */
.ty-section { justify-content: center; }
.ty-card { background: #fff; border-radius: 24px; width: 100%; max-width: 760px; margin: 0 auto; padding: clamp(32px, 3.3333vw, 64px); display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.ty-icon { width: 80px; height: 80px; border-radius: 50%; background: #e9f5e6; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ty-icon svg { width: 40px; height: 40px; }
.ty-msg { display: flex; flex-direction: column; gap: 16px; width: 100%; }
.ty-msg > * { margin: 0; }
.ty-msg h2,
.ty-msg h3 { font-family: 'Lato', sans-serif; font-weight: 800; font-size: 36px; line-height: 1.2; color: #0a649f; }
.ty-msg p { font-family: 'Lato', sans-serif; font-size: 18px; line-height: 1.6; color: #374151; }
.ty-msg a { color: #0a649f; }
.ty-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; width: 100%; }
.ty-btns .btn { flex: 0 1 260px; }
@media (max-width: 767px) {
  .ty-msg h2, .ty-msg h3 { font-size: 28px; }
  .ty-msg p { font-size: 16px; }
  .ty-btns .btn { flex: 1 1 100%; }
}

/* Contact Form 7 integration inside Contact Page & Cards */
.wpcf7 form.sent .wpcf7-response-output {
  border: 2px solid #75bd66;
  background: #edf7ed;
  color: #1e4620;
  border-radius: 12px;
  padding: 16px;
  font-weight: 600;
  font-size: 15px;
  margin: 16px 0 0;
  font-family: 'Lato', sans-serif;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
  border: 2px solid #ef4444;
  background: #fef2f2;
  color: #991b1b;
  border-radius: 12px;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 15px;
  margin: 16px 0 0;
  font-family: 'Lato', sans-serif;
}
.wpcf7-not-valid-tip {
  color: #dc2626;
  font-size: 13px;
  font-weight: 500;
  margin-top: 4px;
  display: block;
  font-family: 'Lato', sans-serif;
}
.wpcf7 form.invalid input.wpcf7-not-valid,
.wpcf7 form.invalid textarea.wpcf7-not-valid {
  border-color: #ef4444 !important;
  background: #fff8f8 !important;
}
.wpcf7-spinner {
  display: none !important;
}

/* ==========================================================================
   ACF Section Layout, Column & Flex Position Utilities
   ========================================================================== */
/* Column Grids & Widths */
.sec-cols-1, .grid-cols-1 { display: grid !important; grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
.sec-cols-2, .grid-cols-2 { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.sec-cols-3, .grid-cols-3 { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.sec-cols-4, .grid-cols-4 { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }

@media (min-width: 768px) {
  .md\:sec-cols-1, .md\:grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
  .md\:sec-cols-2, .md\:grid-cols-2 { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .md\:sec-cols-3, .md\:grid-cols-3 { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .md\:sec-cols-4, .md\:grid-cols-4 { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}

@media (min-width: 1024px) {
  .lg\:sec-cols-1, .lg\:grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
  .lg\:sec-cols-2, .lg\:grid-cols-2 { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .lg\:sec-cols-3, .lg\:grid-cols-3 { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .lg\:sec-cols-4, .lg\:grid-cols-4 { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .lg\:flex-row-reverse { flex-direction: row-reverse !important; }
  .lg\:flex-row { flex-direction: row !important; }
  .lg\:flex-col-reverse { flex-direction: column-reverse !important; }
}

/* Direction & Reverse */
.flex-col { flex-direction: column !important; }
.flex-row { flex-direction: row !important; }
.flex-col-reverse { flex-direction: column-reverse !important; }
.flex-row-reverse { flex-direction: row-reverse !important; }

/* Flex Position - Justify (Horizontal Alignment) */
.justify-start { justify-content: flex-start !important; }
.justify-center { justify-content: center !important; }
.justify-end { justify-content: flex-end !important; }
.justify-between { justify-content: space-between !important; }
.justify-around { justify-content: space-around !important; }
.justify-evenly { justify-content: space-evenly !important; }

/* Flex Position - Align Items (Vertical Alignment) */
.items-start { align-items: flex-start !important; }
.items-center { align-items: center !important; }
.items-end { align-items: flex-end !important; }
.items-stretch { align-items: stretch !important; }
.items-baseline { align-items: baseline !important; }
