/* Page-owned styles for Tips & Strategies */

.tips-strategies-main {
  display: block;
}

/* Hero */
.tips-hero {
  background-color: var(--color-sky-blue);
  padding-block: var(--space-3xl);
  position: relative;
  overflow: hidden;
}

.tips-hero::before,
.tips-hero::after {
  content: "";
  position: absolute;
  background-color: var(--color-charcoal);
  opacity: 0.15;
  pointer-events: none;
}

.tips-hero::before {
  width: 120px;
  height: 2px;
  top: 20%;
  left: 5%;
  transform: rotate(-15deg);
}

.tips-hero::after {
  width: 80px;
  height: 2px;
  bottom: 25%;
  right: 8%;
  transform: rotate(20deg);
}

.tips-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: var(--space-2xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.tips-hero__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  align-items: flex-start;
  text-align: left;
}

.tips-hero__text h1 {
  margin-block-end: 0;
  max-width: 800px;
}

.tips-hero__intro {
  max-width: 800px;
  margin-block-end: 0;
  font-size: 1.125rem;
  line-height: 1.7;
}

.tips-hero__cta {
  margin-block-start: var(--space-sm);
}

.tips-hero__figure {
  min-width: 0;
  background-color: var(--color-warm-cream);
  border: var(--border-image-frame);
  padding: 2px;
  box-shadow: var(--shadow-taped);
}

.tips-hero__figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

.tips-hero__figure figcaption {
  padding: var(--space-sm);
  font-family: var(--font-handwritten);
  text-align: center;
}

/* Shared section styling */
.tips-section {
  padding-block: var(--space-3xl);
}

.tips-section--cream {
  background-color: var(--color-warm-cream);
}

.tips-section--sky {
  background-color: var(--color-sky-blue);
}

.tips-section__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.tips-section__inner h2 {
  margin-block-end: 0;
}

.tips-section__lead {
  max-width: 70ch;
  margin-block-end: 0;
}

/* Why Reflexes Matter */
.tips-why-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-lg);
}

.tips-why-fact,
.tips-why-editorial,
.tips-why-control {
  min-width: 0;
}

.tips-why-fact h3,
.tips-why-editorial h3,
.tips-why-control h3 {
  margin-block-end: var(--space-sm);
}

.tips-why-control ul {
  list-style: none;
  padding-inline-start: 0;
  margin-block-end: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.tips-why-control li {
  margin-block-end: 0;
}

/* Foundational Techniques */
.tips-technique-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
}

.tips-technique-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.tips-technique-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-taped-hover);
}

.tips-technique-card h3 {
  margin-block-end: 0;
}

.tips-technique-card p {
  margin-block-end: 0;
  max-width: 60ch;
}

/* Concentration and Focus */
.tips-focus-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: var(--space-xl);
  align-items: start;
}

.tips-focus-left {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.tips-focus-unit {
  min-width: 0;
}

.tips-focus-unit h3 {
  margin-block-end: var(--space-sm);
}

.tips-focus-unit p {
  margin-block-end: 0;
  max-width: 70ch;
}

.tips-focus-editorial {
  min-width: 0;
  padding: var(--space-lg);
  background-color: var(--color-warm-cream);
  border-inline-start: 4px solid var(--color-red-accent);
  border-radius: var(--radius-input);
  font-family: var(--font-handwritten);
  box-shadow: var(--shadow-taped);
}

.tips-focus-editorial h3 {
  margin-block-end: var(--space-sm);
}

.tips-focus-editorial p {
  margin-block-end: 0;
}

/* Movement Patterns */
.tips-patterns-flow {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  position: relative;
}

.tips-patterns-flow::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 24px;
  bottom: 24px;
  border-left: var(--border-dashed);
  opacity: 0.4;
}

.tips-pattern-unit,
.tips-pattern-editorial {
  min-width: 0;
  padding-inline-start: var(--space-xl);
}

.tips-pattern-unit h3,
.tips-pattern-editorial h3 {
  margin-block-end: var(--space-sm);
}

.tips-pattern-unit p,
.tips-pattern-editorial p {
  margin-block-end: 0;
  max-width: 70ch;
}

.tips-pattern-editorial {
  background-color: var(--color-warm-cream);
  border-inline-start: 4px solid var(--color-red-accent);
  border-radius: var(--radius-input);
  padding: var(--space-md);
  font-family: var(--font-handwritten);
  margin-inline-start: auto;
  max-width: 70%;
}

/* Avoiding Rushed Inputs */
.tips-rushed-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  gap: var(--space-xl);
  align-items: start;
}

.tips-rushed-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.tips-rushed-unit {
  min-width: 0;
}

.tips-rushed-unit h3 {
  margin-block-end: var(--space-sm);
}

.tips-rushed-unit p {
  margin-block-end: 0;
  max-width: 70ch;
}

.tips-rushed-figure {
  min-width: 0;
  background-color: var(--color-warm-cream);
  border: var(--border-image-frame);
  padding: 2px;
  box-shadow: var(--shadow-taped);
}

.tips-rushed-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

.tips-rushed-figure figcaption {
  padding: var(--space-sm);
  font-family: var(--font-handwritten);
  text-align: center;
}

/* Practising Difficult Sequences */
.tips-practice-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: var(--space-xl);
  align-items: start;
}

.tips-practice-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.tips-practice-unit {
  min-width: 0;
}

.tips-practice-unit h3 {
  margin-block-end: var(--space-sm);
}

.tips-practice-unit p {
  margin-block-end: 0;
  max-width: 70ch;
}

.tips-practice-figure {
  min-width: 0;
  background-color: var(--color-warm-cream);
  border: var(--border-image-frame);
  padding: 2px;
  box-shadow: var(--shadow-taped);
}

.tips-practice-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

.tips-practice-figure figcaption {
  padding: var(--space-sm);
  font-family: var(--font-handwritten);
  text-align: center;
}

/* Developing Consistency */
.tips-consistency-flow {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.tips-consistency-unit,
.tips-consistency-editorial {
  min-width: 0;
}

.tips-consistency-unit h3,
.tips-consistency-editorial h3 {
  margin-block-end: var(--space-sm);
}

.tips-consistency-unit p,
.tips-consistency-editorial p {
  margin-block-end: 0;
  max-width: 70ch;
}

.tips-consistency-editorial {
  background-color: var(--color-warm-cream);
  border-inline-start: 4px solid var(--color-red-accent);
  border-radius: var(--radius-input);
  padding: var(--space-md);
  font-family: var(--font-handwritten);
  max-width: 70%;
}

.tips-progress {
  width: 100%;
  max-width: 600px;
  height: 24px;
  background-color: var(--color-warm-cream);
  border: var(--border-structural);
  border-radius: var(--radius-input);
  overflow: hidden;
  margin-block-start: var(--space-sm);
}

.tips-progress__bar {
  width: 0;
  height: 100%;
  background-color: var(--color-carrot-orange);
  transition: width 1.2s ease;
}

.tips-progress__bar.is-filled {
  width: 75%;
}

/* Applying Strategies */
.tips-apply-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: var(--space-xl);
  align-items: start;
}

.tips-apply-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.tips-apply-fact,
.tips-apply-editorial {
  min-width: 0;
}

.tips-apply-fact h3,
.tips-apply-editorial h3 {
  margin-block-end: var(--space-sm);
}

.tips-apply-fact p,
.tips-apply-editorial p {
  margin-block-end: 0;
  max-width: 70ch;
}

.tips-apply-editorial {
  background-color: var(--color-warm-cream);
  border-inline-start: 4px solid var(--color-red-accent);
  border-radius: var(--radius-input);
  padding: var(--space-md);
  font-family: var(--font-handwritten);
}

.tips-apply-figure {
  min-width: 0;
  background-color: var(--color-warm-cream);
  border: var(--border-image-frame);
  padding: 2px;
  box-shadow: var(--shadow-taped);
}

.tips-apply-icon-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: var(--color-sky-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.tips-apply-icon-placeholder::before {
  content: "";
  width: 40%;
  height: 40%;
  background-color: var(--color-carrot-orange);
  border-radius: 50%;
  position: relative;
}

.tips-apply-icon-placeholder::after {
  content: "";
  position: absolute;
  width: 20%;
  height: 20%;
  background-color: var(--color-charcoal);
  border-radius: 50%;
  top: 30%;
  left: 40%;
}

.tips-apply-figure figcaption {
  padding: var(--space-sm);
  font-family: var(--font-handwritten);
  text-align: center;
}

/* Final CTA */
.tips-final-cta {
  background-color: var(--color-sky-blue);
  padding-block: var(--space-3xl);
  position: relative;
  overflow: hidden;
}

.tips-final-cta::before,
.tips-final-cta::after {
  content: "";
  position: absolute;
  width: 100px;
  height: 2px;
  background-color: var(--color-charcoal);
  opacity: 0.2;
  pointer-events: none;
}

.tips-final-cta::before {
  top: 20%;
  left: 10%;
  transform: rotate(-10deg);
}

.tips-final-cta::after {
  bottom: 20%;
  right: 10%;
  transform: rotate(15deg);
}

.tips-final-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  text-align: center;
  position: relative;
  z-index: 1;
}

.tips-final-cta__inner h2 {
  margin-block-end: 0;
}

.tips-final-cta__inner p {
  max-width: 600px;
  margin-block-end: 0;
}

.tips-final-cta__button {
  max-width: 300px;
  width: 100%;
}

/* Tablet */
@media (max-width: 1199px) and (min-width: 768px) {
  .tips-hero__inner {
    gap: var(--space-xl);
  }

  .tips-focus-grid,
  .tips-rushed-grid,
  .tips-practice-grid,
  .tips-apply-grid {
    gap: var(--space-lg);
  }

  .tips-pattern-editorial,
  .tips-consistency-editorial {
    max-width: 80%;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .tips-hero {
    padding-block: var(--space-2xl);
  }

  .tips-hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-xl);
  }

  .tips-hero__text {
    align-items: stretch;
    text-align: left;
  }

  .tips-hero__text h1 {
    font-size: 1.9rem;
    line-height: 1.25;
  }

  .tips-hero__intro {
    font-size: 1rem;
    line-height: 1.6;
  }

  .tips-hero__cta {
    width: 100%;
  }

  .tips-section {
    padding-block: var(--space-2xl);
  }

  .tips-section__inner {
    gap: var(--space-lg);
  }

  .tips-technique-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-md);
  }

  .tips-focus-grid,
  .tips-rushed-grid,
  .tips-practice-grid,
  .tips-apply-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-lg);
  }

  .tips-focus-editorial,
  .tips-rushed-figure,
  .tips-practice-figure,
  .tips-apply-figure {
    width: 100%;
  }

  .tips-patterns-flow::before {
    left: 8px;
  }

  .tips-pattern-unit,
  .tips-pattern-editorial {
    padding-inline-start: var(--space-lg);
  }

  .tips-pattern-editorial,
  .tips-consistency-editorial {
    max-width: 100%;
    margin-inline-start: 0;
  }

  .tips-progress {
    max-width: 100%;
  }

  .tips-final-cta {
    padding-block: var(--space-2xl);
  }

  .tips-final-cta__inner {
    gap: var(--space-md);
  }

  .tips-final-cta__button {
    max-width: 100%;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .tips-technique-card:hover {
    transform: none;
  }

  .tips-progress__bar {
    transition: none;
  }
}
