
/* ==========================================
   NEATLY CLIP MARKETPLACE
   PREMIUM HOMEPAGE

   File: css/index.css

   Apple-inspired editorial layout
   Responsive desktop, tablet and mobile
========================================== */

:root {
  --home-black: #000000;
  --home-white: #ffffff;
  --home-text: #111111;
  --home-muted: #666666;
  --home-border: #e8e8e8;
  --home-surface: #f5f5f7;
  --home-content-width: 1440px;
  --home-radius: 16px;
}

.home-hero,
.home-hero *,
.featured-experiences,
.featured-experiences *,
.services,
.services * {
  box-sizing: border-box;
}

/* ==========================================
   HERO FOUNDATION
========================================== */

.home-hero {
  width: 100%;
  margin: 0;
  padding: 0 0 12px;
  overflow: hidden;
}

.home-hero--primary {
  background: #000;
  color: #fff;
}

.home-hero--secondary {
  background: #f5f5f7;
  color: #111;
}

.hero-heading {
  position: relative;
  z-index: 1;
  padding: 52px 20px 22px;
  text-align: center;
}

.hero-heading .eyebrow,
.featured-heading .eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero-heading h1,
.hero-heading h2 {
  margin: 0;
  font-size: clamp(38px, 4.5vw, 64px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.045em;
}

.hero-subtitle {
  margin: 14px 0 0;
  font-size: clamp(17px, 1.6vw, 24px);
  line-height: 1.4;
}

.home-hero--primary .hero-heading {
  background: #000;
  color: #fff;
}

.home-hero--secondary .hero-heading {
  background: #f5f5f7;
  color: #111;
}

/* ==========================================
   FULL-WIDTH HERO IMAGES
========================================== */

.home-banner {
  position: relative;
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.home-banner--primary {
  height: clamp(440px, 42vw, 690px);
  background: #000;
}

.home-banner--secondary {
  height: clamp(440px, 43vw, 720px);
  background: #f5f5f7;
}

.home-banner .home-banner-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

.home-banner--primary .home-banner-image {
  object-fit: contain;
  object-position: center bottom;
}

.home-banner--secondary .home-banner-image {
  object-fit: cover;
  object-position: center 48%;
}

/* ==========================================
   FEATURED EXPERIENCES
========================================== */

.featured-experiences {
  width: 100%;
  padding: 76px 12px 88px;
  background: #fff;
}

.featured-heading {
  max-width: 900px;
  margin: 0 auto 44px;
  padding: 0 16px;
  text-align: center;
}

.featured-heading .eyebrow {
  color: #666;
}

.featured-heading h2 {
  margin: 0 0 14px;
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.045em;
  color: #111;
}

.featured-heading > p:last-child {
  margin: 0;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.5;
  color: #666;
}

/* Two promotional panels on desktop */

.experience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 1600px;
  margin: 0 auto;
}

.experience-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  background: #f5f5f7;
  overflow: hidden;
}

.experience-media {
  position: relative;
  width: 100%;
  min-width: 0;
  aspect-ratio: 4 / 4.4;
  overflow: hidden;
  background: #111;
}

.experience-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transition: transform .6s ease;
}

.experience-card:hover .experience-image {
  transform: scale(1.025);
}

/* Gradient ensures readable button contrast */

.experience-overlay {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 28px 20px;
  background: linear-gradient(
    to bottom,
    transparent 65%,
    rgba(0, 0, 0, .50) 100%
  );
  pointer-events: none;
}

/* Button stays INSIDE the image */

.experience-button {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 24px;
  border: 1px solid #fff;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  pointer-events: auto;
  transition:
    background .2s ease,
    color .2s ease,
    transform .2s ease;
}

.experience-button:hover {
  background: #111;
  border-color: #111;
  color: #fff;
  transform: translateY(-2px);
}

.experience-button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.experience-button i {
  font-size: 12px;
}

.experience-details {
  flex: 1;
  padding: 24px 20px 28px;
  text-align: center;
}

.experience-details h3 {
  margin: 0 0 8px;
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.025em;
  color: #111;
}

.experience-details p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #666;
}

/* ==========================================
   SERVICES SECTION
========================================== */

.services {
  width: 100%;
  padding: 78px 0;
  background: #fff;
}

.services > .container {
  width: 100%;
  max-width: var(--home-content-width);
  margin: 0 auto;
  padding: 0 32px;
}

.services .section-heading {
  margin-bottom: 34px;
}

.services .section-heading h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  color: #111;
}

.services .section-heading p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #666;
}

.services .services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.services .services-grid > .service-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: var(--home-radius);
  box-shadow: none;
  transition:
    transform .25s ease,
    box-shadow .25s ease;
}

.services .service-card .service-img {
  display: block;
  width: 100%;
  height: 220px;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}

.services .service-card .service-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  padding: 22px;
  text-align: left;
}

.services .service-card .service-content h3 {
  margin: 0 0 12px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
  color: #111;
}

.services .service-card .service-content p {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.7;
  color: #555;
}

.services .service-card .service-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: auto;
  min-height: 44px;
  padding: 10px 20px;
  background: #111;
  color: #fff;
  border: 1px solid #111;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background .2s ease,
    color .2s ease;
}

.services .service-card .service-btn:hover {
  background: #333;
  color: #fff;
}

.services .service-card .service-btn:focus-visible {
  outline: 3px solid #555;
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .services .service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
  }
}

/* ==========================================
   PRODUCTS
   Existing product layout remains global.
========================================== */

.products .product-img-wrapper--empty {
  display: block;
  width: 100%;
  background: #f5f5f7;
}

/* ==========================================
   LARGE DESKTOP
========================================== */

@media (min-width: 1440px) {
  .home-banner--primary {
    height: 700px;
  }

  .home-banner--secondary {
    height: 720px;
  }

  .services .services-grid {
    gap: 24px;
  }

  .services .service-card .service-img {
    height: 240px;
  }
}

/* ==========================================
   LAPTOP
========================================== */

@media (min-width: 901px) and (max-width: 1439px) {
  .home-banner--primary,
  .home-banner--secondary {
    height: clamp(440px, 46vw, 640px);
  }

  .experience-media {
    aspect-ratio: 4 / 4.3;
  }

  .services > .container {
    padding: 0 24px;
  }

  .services .services-grid {
    gap: 16px;
  }

  .services .service-card .service-img {
    height: 190px;
  }

  .services .service-card .service-content {
    padding: 18px;
  }

  .services .service-card .service-content h3 {
    font-size: 17px;
  }
}

/* ==========================================
   TABLET
========================================== */

@media (min-width: 641px) and (max-width: 900px) {
  .hero-heading {
    padding: 40px 20px 22px;
  }

  .home-banner--primary,
  .home-banner--secondary {
    height: clamp(380px, 60vw, 520px);
  }

  .home-banner--primary .home-banner-image {
    object-fit: contain;
  }

  .home-banner--secondary .home-banner-image {
    object-fit: cover;
  }

  .featured-experiences {
    padding: 56px 12px 64px;
  }

  .experience-grid {
    gap: 12px;
  }

  .experience-media {
    aspect-ratio: 3 / 4;
  }

  .experience-overlay {
    padding: 22px 12px;
  }

  .experience-details {
    padding: 20px 14px;
  }

  .services {
    padding: 56px 0;
  }

  .services > .container {
    padding: 0 24px;
  }

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

  .services .service-card .service-img {
    height: 220px;
  }
}

/* ==========================================
   MOBILE
   Preserve natural hero image proportions
========================================== */

@media (max-width: 640px) {
  .home-hero {
    padding-bottom: 10px;
  }

  .hero-heading {
    padding: 30px 16px 22px;
  }

  .hero-heading .eyebrow {
    font-size: 10px;
    letter-spacing: .12em;
  }

  .hero-heading h1,
  .hero-heading h2 {
    font-size: clamp(30px, 8vw, 42px);
  }

  .hero-subtitle {
    margin-top: 10px;
    font-size: 16px;
  }

  .home-banner--primary,
  .home-banner--secondary {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: auto;
  }

  .home-banner .home-banner-image {
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center;
    transform: none;
  }

  .featured-experiences {
    padding: 46px 0 56px;
  }

  .featured-heading {
    margin-bottom: 28px;
    padding: 0 20px;
  }

  .featured-heading .eyebrow {
    font-size: 10px;
  }

  .featured-heading h2 {
    font-size: 34px;
  }

  .featured-heading > p:last-child {
    font-size: 15px;
  }

  .experience-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .experience-card {
    width: 100%;
  }

  /* Preserve full image on mobile */
  .experience-media {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
  }

  .experience-image {
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    transform: none;
  }

  /* Overlay remains inside the image */
  .experience-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 18px 16px;
    background: linear-gradient(
      to bottom,
      transparent 72%,
      rgba(0, 0, 0, .45) 100%
    );
  }

  .experience-button {
    min-height: 42px;
    padding: 10px 20px;
    font-size: 13px;
  }

  .experience-details {
    padding: 20px 16px 24px;
  }

  .experience-details h3 {
    font-size: 24px;
  }

  .experience-details p {
    font-size: 14px;
  }

  .services {
    padding: 44px 0;
  }

  .services > .container {
    padding: 0 16px;
  }

  .services .section-heading {
    margin-bottom: 24px;
  }

  .services .section-heading h2 {
    font-size: 28px;
  }

  .services .section-heading p {
    font-size: 14px;
  }

  .services .services-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .services .service-card .service-img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: #f5f5f7;
  }

  .services .service-card .service-content {
    padding: 20px;
  }

  .services .service-card .service-btn {
    min-height: 44px;
  }
}

/* ==========================================
   SMALL MOBILE
========================================== */

@media (max-width: 380px) {
  .hero-heading {
    padding: 26px 12px 18px;
  }

  .hero-heading h1,
  .hero-heading h2 {
    font-size: 29px;
  }

  .experience-overlay {
    padding: 14px 12px;
  }

  .experience-button {
    min-height: 40px;
    padding: 9px 16px;
    font-size: 12px;
  }

  .services > .container {
    padding: 0 12px;
  }

  .services .service-card .service-content {
    padding: 16px;
  }
}

/* ==========================================
   REDUCED MOTION
========================================== */

@media (prefers-reduced-motion: reduce) {
  .experience-image,
  .experience-button,
  .services .service-card,
  .services .service-btn {
    transition: none;
  }

  .experience-card:hover .experience-image,
  .services .service-card:hover {
    transform: none;
  }
}


/* ==========================================
   NEATLY CLIP — PREMIUM PRODUCT COLLECTION
   Scoped to homepage products only
========================================== */

.neatly-products {
  width: 100%;
  padding: 88px 0 100px;
  background: #f5f5f7;
  box-sizing: border-box;
}

.neatly-products *,
.neatly-products *::before,
.neatly-products *::after {
  box-sizing: border-box;
}

.neatly-products > .container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Heading */

.neatly-products .neatly-products-heading {
  max-width: 820px;
  margin: 0 auto 46px;
  text-align: center;
}

.neatly-products .neatly-products-eyebrow {
  margin: 0 0 14px;
  color: #666;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.5;
}

.neatly-products .neatly-products-heading h2 {
  margin: 0 0 16px;
  color: #111;
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.1;
}

.neatly-products .neatly-products-heading > p:last-child {
  max-width: 620px;
  margin: 0 auto;
  color: #666;
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.6;
}

/* Three-column product layout */

.neatly-products .neatly-products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 22px;
  width: 100%;
}

.neatly-products .neatly-product-link {
  display: block;
  min-width: 0;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.neatly-products .neatly-product-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e8e8e8;
  border-radius: 18px;
  background: #fff;
  box-shadow: none;
  transition:
    transform .25s ease,
    box-shadow .25s ease;
}

/* Product image */

.neatly-products .neatly-product-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #ececef;
  border-radius: 0;
}

.neatly-products .neatly-product-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  object-fit: contain;
  object-position: center;
  transition: transform .4s ease;
}

/* Temporary branded placeholders
   Replace with product photography later */

.neatly-products .neatly-product-placeholder {
  background: linear-gradient(
    145deg,
    #171717 0%,
    #333333 100%
  );
}

.neatly-products .neatly-product-placeholder i {
  color: #fff;
  font-size: clamp(52px, 6vw, 84px);
  opacity: .88;
}

/* Product descriptions */

.neatly-products .neatly-product-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  padding: 28px 26px 30px;
  text-align: left;
}

.neatly-products .neatly-product-category {
  margin: 0 0 12px;
  color: #777;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .14em;
}

.neatly-products .neatly-product-content h3 {
  margin: 0 0 14px;
  color: #111;
  font-size: clamp(21px, 2vw, 27px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.neatly-products .neatly-product-content > p:not(.neatly-product-category) {
  margin: 0 0 26px;
  color: #666;
  font-size: 14px;
  line-height: 1.7;
}

.neatly-products .neatly-product-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  margin-top: auto;
  color: #111;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.neatly-products .neatly-product-action i {
  font-size: 12px;
  transition: transform .2s ease;
}

/* Interactions */

@media (hover: hover) and (pointer: fine) {
  .neatly-products .neatly-product-link:hover .neatly-product-card {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, .09);
  }

  .neatly-products .neatly-product-link:hover img {
    transform: scale(1.04);
  }

  .neatly-products .neatly-product-link:hover .neatly-product-action i {
    transform: translateX(4px);
  }
}

.neatly-products .neatly-product-link:focus-visible {
  outline: 3px solid #111;
  outline-offset: 4px;
  border-radius: 18px;
}

/* Tablet */

@media (min-width: 641px) and (max-width: 900px) {
  .neatly-products {
    padding: 64px 0 76px;
  }

  .neatly-products > .container {
    padding: 0 24px;
  }

  .neatly-products .neatly-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .neatly-products .neatly-product-content {
    padding: 24px 20px;
  }
}

/* Mobile */

@media (max-width: 640px) {
  .neatly-products {
    padding: 52px 0 64px;
  }

  .neatly-products > .container {
    padding: 0 16px;
  }

  .neatly-products .neatly-products-heading {
    margin-bottom: 30px;
  }

  .neatly-products .neatly-products-heading h2 {
    font-size: 34px;
  }

  .neatly-products .neatly-products-heading > p:last-child {
    font-size: 15px;
  }

  .neatly-products .neatly-products-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .neatly-products .neatly-product-media {
    aspect-ratio: 4 / 3;
  }

  .neatly-products .neatly-product-content {
    padding: 24px 22px 28px;
  }

  .neatly-products .neatly-product-content h3 {
    font-size: 24px;
  }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  .neatly-products .neatly-product-card,
  .neatly-products .neatly-product-media img,
  .neatly-products .neatly-product-action i {
    transition: none;
  }

  .neatly-products .neatly-product-link:hover .neatly-product-card,
  .neatly-products .neatly-product-link:hover img,
  .neatly-products .neatly-product-link:hover .neatly-product-action i {
    transform: none;
  }
}

