/* =========================================
   HER LITTLE RITUALS
   Responsive Editorial Stylesheet
========================================= */

/* TABLETS AND SMALL LAPTOPS */

@media (max-width: 1000px) {
  :root {
    --section-space: 78px;
  }

  .navbar {
    gap: 18px;
  }

  .brand-logo {
    width: 58px;
    height: 58px;
  }

  .logo-main {
    font-size: 23px;
  }

  .nav-links {
    gap: 18px;
  }

  .hero {
    grid-template-columns: 1fr 1fr;
    min-height: 530px;
  }

  .hero-content {
    padding: 60px 7%;
  }

  .hero h1 {
    font-size: clamp(3rem, 5.2vw, 4.5rem);
  }

  .hero-image,
  .editorial-hero .hero-image {
    min-height: 530px;
  }

  .benefits-grid {
    gap: 18px;
  }

  .benefit {
    justify-content: flex-start;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 35px 24px;
  }

  .editorial-product-grid {
    gap: 35px 24px;
  }

  .product-info h3 {
    font-size: 21px;
  }

  .product-description {
    min-height: 0;
  }

  .about-grid {
    gap: 42px;
  }

  .about-image {
    height: 440px;
  }

  .why-grid {
    gap: 16px;
  }

  .why-card {
    padding: 30px 20px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 38px 30px;
  }
}


/* MOBILE PHONES */

@media (max-width: 700px) {
  :root {
    --section-space: 65px;
  }

  html {
    scroll-padding-top: 85px;
  }

  .container {
    width: 90%;
  }

  .announcement-bar {
    padding: 8px 12px;
    font-size: 9px;
    letter-spacing: 0.6px;
  }

  .navbar {
    position: relative;
    min-height: 76px;
    gap: 12px;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .logo-main {
    font-size: 21px;
  }

  .logo-subtitle {
    font-size: 7px;
    letter-spacing: 2px;
  }

  .menu-toggle {
    display: block;
    flex-shrink: 0;
    margin-left: auto;
    padding: 5px;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: -5.55%;
    left: -5.55%;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 10px 5% 22px;
    border-top: 1px solid var(--border-light);
    background: var(--white);
    box-shadow: 0 15px 30px rgba(73, 54, 47, 0.07);
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
  }

  .nav-link {
    display: block;
    padding: 13px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 12px;
  }

  .nav-link::after {
    display: none;
  }

  .cart-link {
    justify-content: space-between;
    padding-top: 16px;
    font-size: 12px;
  }

  /* HERO */

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-content {
    padding: 65px 6% 55px;
  }

  .hero h1 {
    max-width: 540px;
    font-size: clamp(3.15rem, 11vw, 4.6rem);
    line-height: 1.02;
  }

  .hero-description {
    max-width: 470px;
    font-size: 12px;
  }

  .hero-buttons {
    gap: 10px;
  }

  .hero-buttons .button {
    min-height: 47px;
    padding-inline: 17px;
    font-size: 9px;
  }

  .hero-note {
    margin-top: 25px;
    font-size: 10px;
  }

  .hero-image,
  .editorial-hero .hero-image {
    min-height: 390px;
  }

  .image-note {
    bottom: 18px;
    left: 18px;
    max-width: calc(100% - 36px);
    padding: 13px 16px;
  }

  .image-note strong {
    font-size: 15px;
  }

  .image-note p {
    font-size: 9px;
  }

  .hero-image-label {
    top: 17px;
    right: 17px;
    font-size: 8px;
  }

  /* BENEFITS */

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-block: 26px;
  }

  .benefit {
    justify-content: flex-start;
    gap: 14px;
  }

  .benefit-icon {
    width: 30px;
    text-align: center;
  }

  /* SECTION HEADINGS */

  .section-heading {
    margin-bottom: 35px;
  }

  .section-heading h2 {
    font-size: clamp(2.4rem, 8vw, 3.3rem);
  }

  .section-heading>p:last-child,
  .products-intro {
    font-size: 11px;
  }

  /* PRODUCTS */

  .products-section {
    padding-bottom: 75px;
  }

  .product-grid,
  .editorial-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 14px;
  }

  .product-image {
    aspect-ratio: 4 / 4.8;
  }

  .product-label {
    top: 9px;
    left: 9px;
    padding: 5px 7px;
    font-size: 7px;
  }

  .product-info {
    padding-top: 13px;
  }

  .product-info h3 {
    font-size: 17px;
    line-height: 1.3;
  }

  .product-description {
    min-height: 0;
    margin-bottom: 10px;
    font-size: 9px;
    line-height: 1.7;
  }

  .product-price {
    margin-bottom: 12px;
    font-size: 12px;
  }

  .add-to-cart {
    min-height: 42px;
    padding: 10px 6px;
    font-size: 8px;
    letter-spacing: 0.6px;
  }

  .center-button {
    margin-top: 35px;
  }

  /* ABOUT */

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-image {
    height: 380px;
  }

  .about-content h2 {
    font-size: clamp(2.5rem, 8vw, 3.4rem);
  }

  .about-content p {
    font-size: 11px;
  }

  .about-image-caption {
    max-width: 90%;
    padding: 11px 14px;
    font-size: 13px;
  }

  /* BRAND VALUES */

  .why-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .why-card {
    padding: 30px 24px;
  }

  .why-card h3 {
    font-size: 21px;
  }

  /* NEWSLETTER */

  .newsletter-section {
    padding: 70px 5%;
  }

  .newsletter-content h2 {
    font-size: clamp(2.5rem, 8vw, 3.4rem);
  }

  .newsletter-content>p:not(.eyebrow) {
    font-size: 11px;
  }

  .newsletter-form {
    flex-direction: column;
    gap: 10px;
  }

  .newsletter-form input,
  .newsletter-form .button {
    width: 100%;
    min-height: 49px;
  }

  .newsletter-form input {
    border-right: 1px solid var(--color-border);
  }

  /* FOOTER */

  .site-footer {
    padding-top: 55px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 22px;
    padding-bottom: 35px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    padding-block: 18px;
  }
}


/* SMALL PHONES */

@media (max-width: 380px) {
  :root {
    --section-space: 55px;
  }

  .container {
    width: 92%;
  }

  .brand-logo {
    width: 44px;
    height: 44px;
  }

  .logo {
    gap: 10px;
  }

  .brand-name {
    font-size: 18px;
  }

  .navbar {
    min-height: 70px;
  }

  .hero-content {
    padding: 52px 6% 45px;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 12vw, 3.5rem);
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-buttons .button {
    width: 100%;
  }

  .hero-image,
  .editorial-hero .hero-image {
    min-height: 320px;
  }

  .product-grid,
  .editorial-product-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .product-image {
    aspect-ratio: 4 / 3.8;
  }

  .product-info h3 {
    font-size: 20px;
  }

  .product-description {
    font-size: 10px;
  }

  .product-price {
    font-size: 13px;
  }

  .add-to-cart {
    font-size: 9px;
  }

  .about-image {
    height: 320px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-brand {
    grid-column: auto;
  }
}


/* ACCESSIBILITY: TOUCH DEVICES AND REDUCED MOTION */

@media (hover: none) {

  .product-card:hover .product-image img,
  .hero-image:hover>img,
  .about-image:hover img {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
