/* Responsive layout overrides. Loaded after the compiled theme stylesheet. */

/* Frontend-only reset, including component states and normal inline styles. */
html:root,
html:root *,
html:root::before,
html:root::after,
html:root *::before,
html:root *::after {
  border-radius: 0 !important;
}

::backdrop,
::file-selector-button,
::placeholder,
::marker,
::first-letter,
::first-line,
::selection {
  border-radius: 0 !important;
}

::-webkit-scrollbar,
::-webkit-scrollbar-track,
::-webkit-scrollbar-thumb,
::-webkit-scrollbar-button,
::-webkit-scrollbar-corner,
::-webkit-resizer {
  border-radius: 0 !important;
}

/* Reduce only the large FAQ-list heading; retain its existing breakpoints. */
#faq-list-title {
  font-size: 66px;
}

@media (max-width: 639px) {
  #faq-list-title {
    font-size: 43.5px;
  }
}

/* The stacked Heritage image needs the same two gutters as its text. */
@media (max-width: 1023.98px) {
  .about-heritage-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-heritage-figure {
    width: 100%;
    max-width: 100%;
    padding-right: 28px;
  }

  .about-heritage-image {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .about-heritage-content {
    max-width: 100%;
  }
}

@media (min-width: 640px) and (max-width: 1023.98px) {
  .about-heritage-figure {
    padding-inline: 48px;
  }
}

@media (max-width: 359px) {
  .about-heritage-figure {
    padding-right: 20px;
  }
}

.category-section {
  padding-bottom: clamp(30px, 3.5vw, 52px);
}

.discover-section {
  padding-top: clamp(30px, 3.5vw, 52px);
}

.about-contact-form {
  height: auto !important;
  min-height: 613px;
  align-content: start;
}

.contact-form-feedback {
  min-height: 44px;
}

.contact-form-feedback:empty::before {
  content: "";
  display: block;
  height: 44px;
}

/* Keep Contact Us feedback and resized fields inside the existing card. */
@media (min-width: 1024px) {
  #contact-us-form {
    height: auto;
    min-height: 705px;
  }
}

@media (max-width: 767px) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  img,
  video,
  svg {
    max-width: 100%;
  }

  .site-container {
    width: 100%;
    max-width: 100%;
    padding-inline: clamp(16px, 5vw, 24px);
  }

  .section-standard,
  .section-large {
    padding-block: clamp(52px, 14vw, 72px);
  }

  .about-contact-form {
    min-height: 0;
  }

  /* Header and expanded mobile navigation. */
  .site-header {
    position: relative;
    top: auto;
    z-index: 1000;
    width: 100%;
  }

  body.admin-bar .site-header {
    top: auto;
  }

  .header-inner {
    min-height: 84px;
    gap: 12px;
  }

  .site-header .custom-logo {
    width: auto;
    max-width: min(44vw, 176px);
    max-height: 62px;
  }

  .menu-toggle {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
  }

  .menu-open .header-navigation {
    max-height: calc(100svh - 84px);
    overflow-y: auto;
    padding: 10px clamp(16px, 5vw, 24px) 24px;
  }

  .menu-open .header-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 12px;
  }

  .menu-open .search-form {
    grid-column: 1 / -1;
    width: 100%;
  }

  .menu-open .header-actions .button {
    width: 100%;
    min-width: 0;
  }

  /* Homepage hero. */
  .hero {
    min-height: min(620px, calc(100svh - 84px));
  }

  .hero-content {
    width: 100%;
    padding-block: 56px;
    text-align: center;
  }

  .hero-title {
    max-width: 100%;
    font-size: clamp(38px, 11vw, 54px);
    line-height: 1.02;
    overflow-wrap: anywhere;
  }

  .hero-title-secondary {
    margin-top: 10px;
  }

  .hero-accent,
  .hero-accent[style] {
    display: block;
    margin-top: 12px;
    padding-left: 0;
    font-size: clamp(62px, 20vw, 82px) !important;
    line-height: .78;
  }

  .hero-actions {
    width: min(100%, 300px);
    margin: 38px auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .hero-actions .button {
    width: 100%;
    min-height: 54px;
  }

  /* Product carousel. */
  .category-heading-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
  }

  .category-heading {
    font-size: clamp(32px, 9vw, 42px);
    line-height: 1.12;
  }

  .category-intro {
    margin-top: 14px;
  }

  .category-view-all {
    width: 100%;
  }

  .category-section {
    padding-bottom: 30px;
  }

  .category-carousel-shell {
    margin-top: 38px;
    padding-inline: 0;
  }

  .category-track {
    gap: 16px;
    padding-inline: 2px;
    scroll-padding-inline: 2px;
  }

  .category-card {
    flex-basis: min(82vw, 310px);
  }

  .category-arrow {
    display: none;
  }

  /* Welcome / Discover section. */
  .discover-section {
    padding-top: 30px;
  }

  .discover-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 42px;
  }

  .discover-content {
    max-width: 100%;
    min-width: 0;
  }

  .discover-kicker {
    display: block;
  }

  .discover-kicker .font-accent,
  .discover-kicker .font-accent[style] {
    display: block;
    font-size: clamp(62px, 20vw, 78px) !important;
  }

  .discover-kicker strong,
  .discover-kicker strong[style] {
    display: block;
    margin-top: 8px;
    font-size: clamp(34px, 10vw, 44px) !important;
    line-height: 1.12;
  }

  .discover-title,
  .discover-title[style] {
    height: auto !important;
    margin-top: 28px;
    font-size: clamp(34px, 9.5vw, 44px) !important;
    line-height: 1.14;
  }

  .discover-copy {
    margin-top: 26px;
    font-size: 16px;
    line-height: 1.65;
  }

  .discover-actions {
    margin-top: 30px;
    align-items: stretch;
  }

  .discover-actions .button {
    width: 100%;
  }

  .discover-figure {
    width: 100%;
  }

  /* Preferred florist and benefit cards. */
  .preferred-section {
    padding-block: clamp(58px, 15vw, 76px);
  }

  .preferred-intro {
    max-width: 100%;
  }

  .preferred-title,
  .preferred-title[style] {
    height: auto !important;
    font-size: clamp(32px, 8.8vw, 42px) !important;
    line-height: 1.18;
  }

  .preferred-accent,
  .preferred-accent[style] {
    display: block;
    margin-block: 12px 16px;
    padding-inline: 0;
    font-size: clamp(62px, 20vw, 78px) !important;
    line-height: .75;
  }

  .preferred-intro > p {
    margin-top: 26px;
    font-size: 16px;
  }

  .preferred-grid {
    height: auto;
    margin-top: 42px;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .benefit-card-quality {
    grid-template-columns: minmax(0, 1fr);
  }

  .benefit-content,
  .benefit-card-expertise {
    min-width: 0;
    padding: 28px 24px 32px;
  }

  .benefit-card h3,
  .benefit-content h3,
  .benefit-content h3[style] {
    height: auto !important;
    margin-top: 18px;
    font-size: clamp(28px, 8vw, 34px) !important;
  }

  .benefit-card p:not(.benefit-label) {
    margin-top: 20px;
    font-size: 16px !important;
  }

  .benefit-content .benefit-link,
  .benefit-content .benefit-link[style] {
    width: auto;
    height: auto !important;
    margin-top: 26px;
    align-self: flex-start;
  }

  .benefit-image-wrap {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .benefit-card-expertise:hover,
  .benefit-card-expertise:focus-within,
  .benefit-card-expertise:hover h3,
  .benefit-card-expertise:focus-within h3 {
    transform: none;
  }

  /* Homepage FAQ. */
  .faq-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 42px;
  }

  .faq-intro h2 {
    font-size: clamp(34px, 9.5vw, 44px);
  }

  .faq-list,
  .faq-item,
  .faq-answer {
    min-width: 0;
  }

  .faq-item summary {
    min-height: 76px;
    gap: 14px;
    padding-block: 18px;
    font-size: 18px;
  }

  .contact-faq-icon {
    width: 38px;
    height: 38px;
  }

  .faq-answer {
    padding-right: 0;
    padding-bottom: 24px;
  }

  .faq-contact {
    margin-top: 48px;
    padding: 26px 22px;
  }

  .faq-contact-button {
    width: 100%;
  }

  /* Testimonials. */
  .testimonial-section {
    padding-block: 58px;
  }

  .testimonial-carousel {
    display: block;
    padding-bottom: 0;
  }

  .testimonial-stage {
    position: relative;
    display: block;
    min-width: 0;
    margin: 0 52px;
    transition: height 450ms ease;
  }

  .testimonial-slide {
    position: absolute;
    inset: 0 0 auto;
    padding-inline: 4px;
  }

  .testimonial-slide.is-active {
    position: relative;
  }

  .testimonial-quote {
    margin-top: 24px;
  }

  .testimonial-quote > p,
  .testimonial-quote > p[style] {
    font-size: 18px !important;
    line-height: 1.6 !important;
  }

  .testimonial-author {
    margin-top: 26px;
    align-items: center;
    gap: 14px;
  }

  .testimonial-avatar {
    width: 54px;
    height: 54px;
  }

  .testimonial-arrow {
    position: absolute !important;
    top: var(--testimonial-arrow-top, 40%) !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    translate: 0 -50%;
    transform: none !important;
  }

  .testimonial-arrow-previous {
    left: 0 !important;
  }

  .testimonial-arrow-next {
    right: 0 !important;
  }

  .testimonial-pagination {
    position: static !important;
    inset: auto !important;
    margin: 30px auto 0 !important;
  }

  @media (prefers-reduced-motion: reduce) {
    .testimonial-stage { transition: none; }
  }

  /* Brand banner and footer. */
  .brand-banner {
    min-height: 164px !important;
  }

  .brand-banner h2 {
    font-size: clamp(38px, 11vw, 54px);
  }

  .footer-main {
    padding-block: 48px;
  }

  .footer-newsletter,
  .footer-navigation {
    grid-template-columns: minmax(0, 1fr);
  }

  .newsletter-control {
    width: 100%;
  }

  .footer-divider {
    margin-block: 34px;
  }

  .footer-social {
    justify-content: flex-start;
  }

  .footer-bottom {
    align-items: flex-start;
  }

  .site-footer .footer-brand .custom-logo {
    max-width: min(60vw, 220px);
  }
}

@media (max-width: 374px) {
  .site-container {
    padding-inline: 15px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-accent,
  .hero-accent[style] {
    font-size: 58px !important;
  }

  .discover-kicker .font-accent,
  .discover-kicker .font-accent[style],
  .preferred-accent,
  .preferred-accent[style] {
    font-size: 58px !important;
  }

  .newsletter-control {
    flex-direction: column;
    gap: 8px;
    overflow: visible;
    background: transparent;
  }

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