/* ============================================================
   HERO SECTION — Petentials Hero
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;0,9..144,800;0,9..144,900;1,9..144,400;1,9..144,900&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&display=swap');

:root {
  --ph-bg: oklch(0.955 0.018 85);
  --ph-card: oklch(0.985 0.012 90);
  --ph-dark: oklch(0.26 0.03 55);
  --ph-accent: oklch(0.45 0.085 152);
  --ph-radius: 55%;
  --ph-border: 3px;
}

.petentials-hero {
  min-height: 100vh;
  width: 100%;
  background: var(--ph-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.petentials-hero__image-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.petentials-hero__shadow {
  position: absolute;
  left: 6%; right: 6%;
  top: -0.5rem; bottom: 0;
  background: #fff;
  box-shadow: 0 30px 60px -20px rgba(60,40,20,0.25);
  border-bottom-left-radius: var(--ph-radius);
  border-bottom-right-radius: var(--ph-radius);
}

.petentials-hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-bottom-left-radius: var(--ph-radius);
  border-bottom-right-radius: var(--ph-radius);
  opacity: 0;
  transition: opacity 1200ms ease-out;
  display: block;
}

.petentials-hero__slide.is-active { 
  opacity: 1; 
}

.petentials-hero__headline {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 900;
  line-height: 1.1;
  color: var(--ph-dark);
  margin: 0;
}

.petentials-hero__headline-line1 {
  display: block;
  font-style: normal;
  color: var(--ph-dark);
}

.petentials-hero__headline-line2 {
  display: block;
  font-style: italic;
  color: var(--ph-accent);
}

.petentials-hero__rule {
  height: 1px;
  width: 100%;
  background: oklch(0.26 0.03 55 / 0.70);
}

.petentials-hero__tagline {
  margin-top: 0.75rem;
  color: oklch(0.26 0.03 55 / 0.85);
}

.petentials-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border: 2px solid var(--ph-dark);
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ph-dark);
  transition: background-color 300ms, color 300ms;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  background: transparent;
  padding: 0.75rem 1.75rem;
}

.petentials-hero__cta:hover {
  background-color: var(--ph-dark);
  color: var(--ph-card);
}

.petentials-hero__cta-arrow {
  opacity: 0;
  margin-left: -0.5rem;
  transition: opacity 300ms, margin-left 300ms;
}

.petentials-hero__cta:hover .petentials-hero__cta-arrow {
  opacity: 1;
  margin-left: 0;
}

.petentials-hero__dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.petentials-hero__dot {
  height: 0.5rem;
  width: 0.5rem;
  border-radius: 9999px;
  background: oklch(0.26 0.03 55 / 0.30);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: width 300ms, background-color 300ms;
}

.petentials-hero__dot.is-active {
  width: 2rem;
  background: var(--ph-accent);
}

.petentials-hero__watermark {
  pointer-events: none;
  user-select: none;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  white-space: nowrap;
  position: absolute;
  -webkit-text-stroke: 1px oklch(0.45 0.085 152 / 0.18);
}

/* ============ MOBILE: < 1024px ============ */

.petentials-hero__mobile {
  position: relative;
  width: 100%;
  background: var(--ph-card);
  border: var(--ph-border) solid var(--ph-accent);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.petentials-hero__mobile .petentials-hero__slide {
  transition: opacity 800ms ease-out;
}

.petentials-hero__image-wrap-mobile {
  position: relative;
  width: 100%;
  height: 48vh;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 2rem 1.5rem 0;
}

.petentials-hero__image-wrap-mobile .petentials-hero__image-inner {
  position: relative;
  width: 82%;
  max-width: 310px;
  aspect-ratio: 5 / 7;
  align-self: flex-end;
}

.petentials-hero__circle-deco {
  pointer-events: none;
  position: absolute;
  top: -8rem;
  left: -6rem;
  width: 280px;
  height: 280px;
  border-radius: 9999px;
  border: 1px solid oklch(0.45 0.085 152 / 0.20);
}

.petentials-hero__content {
  position: relative;
  z-index: 10;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.petentials-hero__headline--mobile {
  font-size: clamp(2.5rem, 8vw, 3.75rem);
  line-height: 1.05;
}

.petentials-hero__tagline-wrap--mobile {
  margin-top: 1.25rem;
  max-width: 300px;
}

.petentials-hero__cta--mobile {
  margin-top: 1.75rem;
  align-self: flex-start;
  font-size: 0.75rem;
}

.petentials-hero__dots--mobile {
  margin-top: 1.5rem;
}

.petentials-hero__watermark--mobile {
  font-size: clamp(60px, 18vw, 100px);
  bottom: 0.5rem;
  right: 0.5rem;
}

.petentials-hero__frame { 
  display: none; 
}

/* ============ WIX IFRAME FIX (MOBILE) ============ */
@media (max-width: 1023px) {
  .petentials-hero {
    align-items: stretch !important;
    background: var(--ph-card) !important;
  }
  .petentials-hero__mobile {
    border: none !important;
    flex: 1;
  }
}

/* ============ SMALL DEVICES: 320px - 480px ============ */
@media (max-width: 480px) {
  .petentials-hero__image-wrap-mobile {
    height: 44vh; 
    min-height: 270px;
    padding: 1.5rem 1rem 0;
  }

  .petentials-hero__image-wrap-mobile .petentials-hero__image-inner {
    width: 84%;
    max-width: 290px;
  }

  .petentials-hero__content {
    padding: 1.5rem 1.25rem;
  }

  .petentials-hero__headline--mobile {
    font-size: clamp(2.25rem, 7.5vw, 2.75rem);
  }

  .petentials-hero__tagline-wrap--mobile {
    margin-top: 1rem;
    max-width: 280px;
  }

  .petentials-hero__cta--mobile {
    margin-top: 1.25rem;
    font-size: 0.7rem;
  }

  .petentials-hero__dots--mobile {
    margin-top: 1.25rem;
  }

  .petentials-hero__circle-deco {
    width: 240px;
    height: 240px;
    top: -7rem;
    left: -5rem;
  }

  .petentials-hero__watermark--mobile {
    font-size: clamp(50px, 16vw, 80px);
    bottom: 0.25rem;
    right: 0.25rem;
  }
}

/* ============ MEDIUM DEVICES: 481px - 768px ============ */
@media (min-width: 481px) and (max-width: 768px) {
  .petentials-hero__image-wrap-mobile {
    height: 52vh;
    min-height: 350px;
    padding: 2.5rem 1.75rem 0;
  }

  .petentials-hero__image-wrap-mobile .petentials-hero__image-inner {
    width: 78%;
    max-width: 340px;
  }

  .petentials-hero__content {
    padding: 2.5rem 2rem;
  }

  .petentials-hero__headline--mobile {
    font-size: clamp(2.75rem, 7.5vw, 4rem);
  }

  .petentials-hero__tagline-wrap--mobile {
    margin-top: 1.5rem;
    max-width: 320px;
  }

  .petentials-hero__cta--mobile {
    margin-top: 2rem;
    font-size: 0.8rem;
  }

  .petentials-hero__circle-deco {
    width: 300px;
    height: 300px;
    top: -8.5rem;
    left: -5.5rem;
  }

  .petentials-hero__watermark--mobile {
    font-size: clamp(70px, 20vw, 120px);
  }
}

/* ============ LARGE TABLETS: 769px - 1023px ============ */
@media (min-width: 769px) and (max-width: 1023px) {
  .petentials-hero {
    padding: 2rem 1.5rem;
  }

  .petentials-hero__mobile {
    flex-direction: row;
  }

  .petentials-hero__image-wrap-mobile {
    width: 45%;
    height: auto;
    min-height: unset;
    padding: 2.5rem;
    align-items: center;
    justify-content: center;
    order: 2;
  }

  .petentials-hero__image-wrap-mobile .petentials-hero__image-inner {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 5 / 7;
  }

  .petentials-hero__content {
    width: 55%;
    padding: 3.5rem 2.5rem;
    justify-content: center;
    order: 1;
  }

  .petentials-hero__headline--mobile {
    font-size: clamp(3rem, 7vw, 4.25rem);
  }

  .petentials-hero__tagline-wrap--mobile {
    margin-top: 1.75rem;
    max-width: 100%;
  }

  .petentials-hero__cta--mobile {
    margin-top: 2.25rem;
    font-size: 0.85rem;
  }

  .petentials-hero__watermark--mobile {
    font-size: clamp(100px, 22vw, 160px);
  }

  .petentials-hero__circle-deco {
    width: 350px;
    height: 350px;
    top: -10rem;
    left: -7rem;
  }
}

/* ============ DESKTOP: >= 1024px ============ */
@media (min-width: 1024px) {
  .petentials-hero { 
    padding: 2rem; 
  }
  
  .petentials-hero__mobile { 
    display: none; 
  }

  .petentials-hero__frame {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    width: 100%;
    max-width: 90vw;
    min-height: 86vh;
    background: var(--ph-card);
    border: var(--ph-border) solid var(--ph-accent);
    overflow: hidden;
    margin: 0 auto;
  }

  .petentials-hero__watermark--desktop {
    font-size: clamp(180px, 18vw, 260px);
    bottom: -2.5rem;
    left: 1.5rem;
  }

  .petentials-hero__circle-deco--desktop {
    position: absolute;
    top: -10rem;
    left: -10rem;
    width: 420px;
    height: 420px;
    border-radius: 9999px;
    border: 1px solid oklch(0.45 0.085 152 / 0.15);
  }

  .petentials-hero__image-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    grid-column: 2;
  }

  .petentials-hero__image-panel .petentials-hero__image-inner {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 3 / 4;
  }

  .petentials-hero__shadow--desktop { 
    left: 10%; 
    right: 10%; 
  }

  .petentials-hero__content--desktop {
    position: relative;
    z-index: 10;
    padding: 5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    grid-column: 1;
  }

  .petentials-hero__headline--desktop {
    font-size: clamp(3.5rem, 6vw, 5rem);
    line-height: 1.1;
  }

  .petentials-hero__tagline-wrap--desktop {
    margin-top: 2rem;
    max-width: 340px;
  }

  .petentials-hero__tagline--desktop {
    margin-top: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .petentials-hero__cta--desktop {
    margin-top: 2.5rem;
    align-self: flex-start;
    font-size: 0.875rem;
  }

  .petentials-hero__dots--desktop {
    position: absolute;
    bottom: 2rem;
    right: 2.5rem;
    z-index: 10;
  }
}

/* ============ EXTRA LARGE: >= 1280px ============ */
@media (min-width: 1280px) {
  .petentials-hero { 
    padding: 1.5rem; 
  }

  .petentials-hero__frame {
    max-width: 95vw;
  }

  .petentials-hero__image-panel {
    padding: 3rem;
  }

  .petentials-hero__image-panel .petentials-hero__image-inner { 
    max-width: 450px; 
  }

  .petentials-hero__headline--desktop { 
    font-size: 5rem; 
  }

  .petentials-hero__content--desktop { 
    padding: 5rem 3.5rem; 
  }
}

/* ============ ULTRA LARGE: >= 1920px ============ */
@media (min-width: 1920px) {
  .petentials-hero { 
    padding: 2rem; 
  }

  .petentials-hero__frame {
    max-width: none;
    width: 100%;
    min-height: 85vh;
  }

  .petentials-hero__image-panel {
    padding: 4rem 5rem;
  }

  .petentials-hero__image-panel .petentials-hero__image-inner { 
    max-width: 550px; 
  }

  .petentials-hero__headline--desktop { 
    font-size: 6rem; 
  }

  .petentials-hero__content--desktop { 
    padding: 6rem 5rem; 
    max-width: 700px;
  }

  .petentials-hero__tagline--desktop {
    font-size: 1.05rem;
  }

  .petentials-hero__watermark--desktop { 
    font-size: 300px; 
  }
}

/* ============ LANDSCAPE MODE ============ */
@media (max-height: 600px) and (orientation: landscape) {
  .petentials-hero {
    min-height: auto;
    padding: 1rem;
  }

  .petentials-hero__mobile {
    flex-direction: row;
    min-height: 100vh;
  }

  .petentials-hero__image-wrap-mobile {
    width: 40%;
    height: 100%;
    padding: 1.5rem 1rem;
  }

  .petentials-hero__content {
    width: 60%;
    padding: 1.5rem 1.5rem;
    justify-content: center;
  }

  .petentials-hero__headline--mobile {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
  }

  .petentials-hero__watermark--mobile {
    font-size: clamp(40px, 12vw, 80px);
  }
}

/* ============ VERY SMALL SCREENS: < 320px ============ */
@media (max-width: 319px) {
  .petentials-hero__image-wrap-mobile {
    height: 40vh;
    min-height: 240px;
    padding: 1rem 0.75rem 0;
  }

  .petentials-hero__image-wrap-mobile .petentials-hero__image-inner {
    width: 86%;
    max-width: 250px;
  }

  .petentials-hero__content {
    padding: 1.25rem 1rem;
  }

  .petentials-hero__headline--mobile {
    font-size: clamp(1.85rem, 6vw, 2.25rem);
  }

  .petentials-hero__cta--mobile {
    font-size: 0.65rem;
  }
}
