/*
Theme Name: Fitness in the Park Child
Template: astra
*/

:root {
  --header-border: #ececec;
  --banner-bg: #f6f8fa;
  --muted: #909090;
}

/* =========================================================
   ASTRA HEADER + MENU (REPLACES your custom header/nav layout)
   ========================================================= */

/* Header background + border (Customizer can do bg; keep border here if you like) */
.ast-primary-header-bar {
  border-bottom: 1px solid var(--header-border);
}

/* Logo sizing */
.custom-logo-link img,
.site-logo-img img {
  height: 44px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

/* Desktop menu spacing + link style */
.ast-primary-header-bar .main-header-menu {
  gap: 2.2rem;
}

.ast-primary-header-bar .main-header-menu > .menu-item > a {
  color: #232323;
  font-weight: 500;
  font-size: 1.1rem;
  padding: 8px 6px;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
}

.ast-primary-header-bar .main-header-menu > .menu-item > a:hover,
.ast-primary-header-bar .main-header-menu > .menu-item > a:focus {
  background: #f3f4f7;
  color: var(--ast-global-color-0, #2471a3); /* Astra accent fallback */
}

/* Mobile toggle styling (Astra’s toggle button) */
.ast-mobile-menu-trigger-fill .ast-button-wrap .menu-toggle {
  font-size: 2.2rem;
}

/* =========================================================
   BANNER (CUSTOM COMPONENT)
   ========================================================= */
/* --- Desktop & Base Styles --- */
.site-content .ast-article-image-container--full {
	position: relative; /* Changed from sticky to relative for better layout flow */
	width: 100vw;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	aspect-ratio: 16 / 5;
	min-height: 250px; /* Increased for desktop visibility */
	max-height: 450px;
	overflow: hidden;
	background: var(--banner-bg);
	display: flex;
	align-items: center;
	justify-content: center;
}

header.entry-header .post-thumb img, 
.ast-single-post-featured-section.post-thumb img,
.ast-article-image-container--full img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

/* --- Mobile Fixes --- */
@media (max-width: 800px) {
	.site-content .ast-article-image-container--full {
		aspect-ratio: 4 / 3; /* Better ratio for vertical screens */
		min-height: 200px;   /* Forces the minimum height you requested */
		max-height: none;    /* Allows it to respect the aspect ratio/min-height */
	}

	.wp-post-image {
		padding: 0; /* Removed padding to ensure image touches screen edges */
	}
}


/* =========================================================
   CONTENT DECORATION (Astra owns width/padding; we keep polish)
   ========================================================= */

/* Astra already handles container width and padding via Customizer.
   Keep only the “card” look. */
.entry-content {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 14px rgba(36, 113, 163, 0.06);
}

/* Images – these are nice; keep them */
.entry-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.6rem auto;
  margin-top: 0;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(36,113,163,0.09);
  object-fit: cover;
}

@media (max-width: 800px) {
  .entry-content {
    box-shadow: none;
    border-radius: 0;
  }
  .entry-content img {
    margin: 1.2rem 0;
    border-radius: 7px;
  }
}

/* Links – keep your underline/hover behaviour */
.entry-content a {
  color: var(--ast-global-color-0, #2471a3);
  text-decoration: underline;
  transition: color 0.16s;
}
.entry-content a:hover,
.entry-content a:focus {
  color: var(--ast-global-color-1, #185281);
  text-decoration: none;
}

.entry-content blockquote {
  border-left: 4px solid var(--ast-global-color-0, #2471a3);
  padding-left: 1.2rem;
  margin: 1.4rem 0;
  color: #4a4a4a;
  background: #f8fafc;
  font-style: italic;
  font-size: 1.07rem;
}

.entry-content hr {
  border: none;
  border-top: 1px solid #ececec;
  margin: 2.2rem 0;
}

/* =========================================================
   SERVICES CARDS (CUSTOM)
   ========================================================= */
.section.services {
  display: grid;
  margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: 1100px;
  padding: 2rem 1rem;
  justify-content: center;
  gap: 2rem;
}

.card {
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: 1rem;
  overflow: hidden;
  min-height: 300px;
  width: 100%;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.card-overlay {
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  align-items: center;
  box-sizing: border-box;
}

.card-overlay h3 {
	margin: 0 0 0.5rem 0;
	font-size: 1.25rem;
	text-align: center;
	color: white;
}

.card-overlay p {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  text-align: center;
}

.cta-button {
  padding: 0.5rem 1rem;
  background: #ff009e;
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: bold;
  align-self: center;
  transition: background 0.2s ease;
}
.cta-button:hover { background: #e6008f; }

/* =========================================================
   VIDEO GRID (CUSTOM)
   ========================================================= */
.video-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  justify-content: center;
  padding: 2rem 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

.video-responsive {
  max-width: 100%;
  overflow: hidden;
  border-radius: 1rem;
}

.video-responsive video {
  height: 500px;
  width: 100%;
  object-fit: cover;
  border-radius: 1rem;
}

.home-testimonial { font-style: italic; margin-bottom: 1rem; }

@media (max-width: 700px) {
  .video-responsive { max-width: 98vw; min-width: 0; }
}

/* =========================================================
   CONTACT FORM 7 (PLUGIN SKIN)
   ========================================================= */
.wpcf7 {
  max-width: 600px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.wpcf7 label {
  display: block;
  font-weight: 500;
  color: #222;
  margin-bottom: 0.5rem;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  line-height: 1.4;
  color: #222;
  background: #f9f9f9;
  transition: border-color 0.2s ease, background 0.2s ease;
  box-sizing: border-box;
  max-width: 100%;
  display: block;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
  outline: none;
  border-color: #ff009e;
  background: #fff;
}

.wpcf7 input[type="submit"] {
  background: #ff009e;
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}
.wpcf7 input[type="submit"]:hover { background: #e6008b; }

.wpcf7-response-output {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
}

.wpcf7 form.invalid .wpcf7-response-output {
  background: #ffe6e6;
  border: 1px solid #ff6b6b;
  color: #a60000;
}

.wpcf7 form.sent .wpcf7-response-output {
  background: #e6ffe6;
  border: 1px solid #4caf50;
  color: #1b5e20;
}

/* iOS/Safari */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 input[type="date"],
.wpcf7 select {
  -webkit-appearance: none;
  appearance: none;
}

.wpcf7 .wpcf7-form-control-wrap {
  display: block;
  max-width: 100%;
}

/* =========================================================
   FOOTER (LET ASTRA HANDLE LAYOUT; WE SKIN YOUR CLASSES)
   ========================================================= */
.main-footer {
  width: 100%;
  background: #fff;
  border-top: 1px solid #ececec;
  padding: 1.2rem 0 1rem 0;
  font-size: 1rem;
  color: var(--muted);
}

.footer-testimonials {
  width: 100%;
  max-width: 1200px;
  margin: 2rem auto 1.5rem auto;
  text-align: left;
}

.footer-testimonials h4 {
  margin-bottom: 0.9rem;
  font-size: 1.13rem;
  color: var(--ast-global-color-0, #2471a3);
  font-weight: 700;
  letter-spacing: 0.2px;
  text-align: left;
}

.testimonial-grid {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: space-between;
}

.testimonial {
  background: none;
  border-radius: 0;
  box-shadow: none;
  font-size: 0.75rem;
  text-align: left;
  max-width: 450px;
  min-width: 150px;
  flex: 1 1 170px;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.testimonial-author {
  margin-top: 0.5rem;
  margin-right: 3rem;
  font-weight: 600;
  color: var(--ast-global-color-0, #2471a3);
  font-size: 0.85rem;
  text-align: right;
  font-style: normal;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-logo .logo-img {
  height: 34px;
  width: auto;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(34,34,34,0.06);
  transition: box-shadow 0.15s;
}

.footer-logo:hover .logo-img,
.footer-logo:focus .logo-img {
  box-shadow: 0 2px 8px rgba(36,113,163,0.15);
}

.footer-socials a:hover .footer-icon,
.footer-socials a:focus .footer-icon {
  fill: var(--ast-global-color-0, #2471a3);
}

.footer-icon {
  height: 35px;
  display: inline-block;
  vertical-align: middle;
}

.footer-links a {
  color: var(--ast-global-color-0, #2471a3);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.16s;
}
.footer-links a:hover {
  color: var(--ast-global-color-1, #185281);
  text-decoration: underline;
}

.footer-copyright {
  text-align: center;
  color: var(--muted);
  font-size: 0.75rem;
  min-width: 120px;
  line-height: 1.2;
}

@media (max-width: 800px) {
  .footer-testimonials { max-width: 98vw; padding: 0 2vw; }
  .testimonial-grid { flex-direction: column; gap: 1rem; }
  .testimonial { max-width: 96vw; width: 100%; }
}

/* =========================================================
   IFRAMES / EMBEDS
   ========================================================= */
.custom-bookings-content iframe,
.responsive-iframe-container iframe {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  width: 100% !important;
  background: transparent;
}

.responsive-iframe-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.custom-bookings-content iframe,
.responsive-iframe-container iframe,
.responsive-iframe-container {
  min-height: 1100px !important;
  height: auto;
}

@media (max-width: 800px) {
  .custom-bookings-content iframe { min-height: 1850px !important; }
}

.ast-container {
    display: block !important;
}

