/*
Theme Name: Pause Pilates & Yoga - GeneratePress Child
Theme URI: https://www.pauseyogapilates.com.au/
Description: Faithful Gutenberg-friendly rebuild of the legacy Pause Pilates & Yoga site on GeneratePress.
Author: OpenAI migration build
Template: generatepress
Version: 0.1.0
Text Domain: pause-gp-child
*/

:root {
  --pause-orange: #f05223;
  --pause-orange-dark: #a22e0b;
  --pause-text: #231f20;
  --pause-muted: #6d6e71;
  --pause-max: 1100px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  color: var(--pause-text);
  background: #fff url("assets/images/bg-body.jpg") repeat;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
}

a { color: var(--pause-orange); text-decoration: none; }
a:hover, a:focus { color: var(--pause-orange-dark); }
img { max-width: 100%; height: auto; }

/* Hide GeneratePress shell; child templates supply the public shell. */
.site-header, .main-navigation, .site-footer { display: none !important; }

.pause-wrap { min-height: 100vh; }
.pause-container {
  width: min(var(--pause-max), calc(100% - 40px));
  margin: 0 auto;
}

/* Header */
.pause-header {
  min-height: 158px;
  background: #fff;
  box-shadow: 0 3px 6px rgba(0,0,0,.12);
  position: relative;
  z-index: 20;
}
.pause-header-inner {
  min-height: 158px;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 30px;
  align-items: start;
}
.pause-logo {
  display: block;
  width: 360px;
  max-width: 100%;
  margin-top: 18px;
}
.pause-header-right { min-width: 0; }
.pause-social {
  min-height: 58px;
  padding-top: 12px;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}
.pause-social img { width: 30px; height: 30px; display: block; }
.pause-social a { opacity: 1; transition: opacity .15s ease; }
.pause-social a:hover { opacity: .72; }

.pause-menu-toggle {
  display: none;
  width: 100%;
  border: 0;
  padding: 11px 15px;
  background: var(--pause-orange);
  color: #fff;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.pause-primary-nav { padding-top: 40px; }
.pause-primary-nav ul { margin: 0; padding: 0; list-style: none; }
.pause-primary-nav > div > ul,
.pause-primary-nav > ul {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.pause-primary-nav .menu-item { position: relative; }
.pause-primary-nav > div > ul > li,
.pause-primary-nav > ul > li { border-right: 1px solid #ccc; }
.pause-primary-nav > div > ul > li:last-child,
.pause-primary-nav > ul > li:last-child { border-right: 0; }
.pause-primary-nav > div > ul > li > a,
.pause-primary-nav > ul > li > a {
  display: block;
  margin: 0 13px;
  color: var(--pause-orange);
  font-size: 18px;
  line-height: 18px;
  white-space: nowrap;
}
.pause-primary-nav > div > ul > li:last-child > a,
.pause-primary-nav > ul > li:last-child > a { margin-right: 0; }
.pause-primary-nav .current-menu-item > a,
.pause-primary-nav .current-menu-ancestor > a,
.pause-primary-nav a:hover { color: var(--pause-orange-dark); }

.pause-primary-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 190px;
  padding: 17px 5px 4px;
  z-index: 50;
  background: #fff;
  border-bottom: 2px solid #eee;
  box-shadow: 0 5px 12px rgba(0,0,0,.08);
}
.pause-primary-nav li:hover > .sub-menu,
.pause-primary-nav li:focus-within > .sub-menu { display: block; }
.pause-primary-nav .sub-menu a {
  display: block;
  margin: 0 0 3px;
  padding: 7px 12px;
  background: #f5f5f5;
  color: var(--pause-text);
  font-size: 13px;
}
.pause-primary-nav .sub-menu a:hover { color: var(--pause-orange); }

/* Main Gutenberg area */
.pause-main { padding: 30px 0 36px; }
.pause-content-shell {
  min-height: 540px;
}
.pause-entry-content {
  font-size: 14px;
  line-height: 1.45;
}
.pause-entry-content > *:first-child { margin-top: 0; }
.pause-entry-content h1,
.pause-entry-content h2,
.pause-entry-content h3 {
  font-family: "Arial Narrow", Arial, Helvetica, sans-serif;
  font-weight: 700;
}
.pause-entry-content h1 {
  margin: 20px 0 20px -20px;
  padding: 10px 20px;
  font-size: 26px;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--pause-orange);
  background: #fff;
}
.pause-entry-content h2 { font-size: 22px; line-height: 1.2; }
.pause-entry-content h3 { font-size: 18px; }

/* Standard legacy content pages: wide content, optional sidebar can be added later. */
.pause-standard-panel {
  width: 75%;
  min-height: 520px;
  padding: 0 25px 30px;
}
.pause-standard-panel .pause-entry-content { width: 100%; }

/* Utility styles for Gutenberg content migrated from the old site. */
.pause-white-panel { background: #fff; }
.pause-image-left { float: left; margin: 10px 12px 10px 0; }
.pause-image-right { float: right; margin: 10px 0 10px 12px; }
.pause-entry-content::after { content: ""; display: table; clear: both; }

/* Footer */
.pause-footer {
  min-height: 90px;
  background: url("assets/images/bg-footer.png") no-repeat top center;
  color: var(--pause-muted);
  font-size: 14px;
}
.pause-footer-inner {
  min-height: 90px;
  display: grid;
  grid-template-columns: 1.2fr 1.6fr .7fr;
  align-items: center;
  gap: 20px;
}
.pause-footer-nav ul { margin: 0; padding: 0; display: flex; list-style: none; }
.pause-footer-nav li { position: relative; }
.pause-footer-nav li:not(:last-child)::after { content: "."; position: absolute; right: -1px; top: 0; }
.pause-footer-nav a { display: block; margin: 0 7px; color: var(--pause-muted); }
.pause-footer-nav a:hover { color: #47484a; }
.pause-digerati { justify-self: end; }
.pause-digerati img { display: block; width: 120px; height: auto; }

/* WordPress admin bar adjustment is automatic through WP. */

@media (max-width: 900px) {
  .pause-header { min-height: 145px; }
  .pause-header-inner {
    min-height: 145px;
    grid-template-columns: 310px 1fr;
  }
  .pause-logo { width: 300px; }
  .pause-primary-nav > div > ul > li > a,
  .pause-primary-nav > ul > li > a { margin: 0 8px; font-size: 16px; }
}

@media (max-width: 767px) {
  .pause-container { width: min(100% - 28px, var(--pause-max)); }
  .pause-header { min-height: 0; padding-bottom: 10px; }
  .pause-header-inner { display: block; min-height: 0; }
  .pause-logo { width: 320px; margin: 0 auto; padding-top: 10px; }
  .pause-social { display: none; }
  .pause-menu-toggle { display: block; margin-top: 6px; }
  .pause-primary-nav { display: none; padding-top: 0; }
  .pause-primary-nav.is-open { display: block; }
  .pause-primary-nav > div > ul,
  .pause-primary-nav > ul { display: block; }
  .pause-primary-nav > div > ul > li,
  .pause-primary-nav > ul > li { border: 0; }
  .pause-primary-nav > div > ul > li > a,
  .pause-primary-nav > ul > li > a,
  .pause-primary-nav > div > ul > li:last-child > a,
  .pause-primary-nav > ul > li:last-child > a {
    margin: 0;
    padding: 9px 16px;
    background: var(--pause-orange);
    border-bottom: 1px solid rgba(255,255,255,.18);
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
  }
  .pause-primary-nav .sub-menu {
    display: block;
    position: static;
    width: auto;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .pause-primary-nav .sub-menu a {
    margin: 0;
    padding: 9px 16px 9px 28px;
    background: #f37853;
    border-bottom: 1px solid rgba(255,255,255,.18);
    color: #fff;
    font-size: 12px;
  }
  .pause-main { padding: 20px 0 26px; }
  .pause-standard-panel { width: 100%; padding: 0 15px 25px; }
  .pause-entry-content h1 { margin-left: -15px; padding-left: 15px; }
  .pause-footer { min-height: 0; padding: 18px 0; text-align: center; }
  .pause-footer-inner { min-height: 0; display: block; }
  .pause-footer-nav { margin: 12px 0; }
  .pause-footer-nav ul { justify-content: center; }
  .pause-digerati { margin-top: 10px; }
  .pause-digerati img { margin: 0 auto; }
}


/* =========================================================
   Pause homepage Gutenberg slider
   ========================================================= */

.pause-home-slides {
	position: relative;
	display: block !important;
	width: 100%;
	overflow: hidden;
	margin: 0 !important;
	aspect-ratio: 680 / 450;
}

.pause-home-slides > .wp-block-image {
	position: absolute !important;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.8s ease;
}

.pause-home-slides > .wp-block-image.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 2;
}

.pause-home-slides > .wp-block-image img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
}

/* Don't let Gutenberg's gallery sizing interfere */
.pause-home-slides.has-nested-images figure.wp-block-image {
	flex-grow: 0 !important;
}

/* Original-site style previous/next controls */
.pause-slider-prev,
.pause-slider-next {
	position: absolute;
	z-index: 10;
	top: 50%;
	transform: translateY(-50%);
	width: 52px;
	height: 76px;
	padding: 0;
	border: 0;
	background: rgba(20, 20, 20, 0.65);
	color: #fff;
	font-size: 44px;
	font-family: Arial, sans-serif;
	font-weight: 300;
	line-height: 1;
	cursor: pointer;
}

.pause-slider-prev {
	left: 0;
}

.pause-slider-next {
	right: 0;
}

.pause-slider-prev:hover,
.pause-slider-next:hover,
.pause-slider-prev:focus,
.pause-slider-next:focus {
	background: rgba(20, 20, 20, 0.85);
	color: #fff;
}

@media (max-width: 768px) {
	.pause-home-slides {
		aspect-ratio: 680 / 450;
	}

	.pause-slider-prev,
	.pause-slider-next {
		width: 42px;
		height: 60px;
		font-size: 36px;
	}
}