/* Styles for shared/services (app/sections/).
   Every rule is scoped to #services-section, so none of it reaches other
   parts of the page. */

#services-section {
    --color-brand-primary: #001e53;
    --color-brand-secondary: #f1ae22;
  }

  #services-section {
    position: relative;
    background: linear-gradient(180deg, #001a47 0%, #001e53 50%, #000d29 100%);
    padding: 70px 0;
    overflow: hidden;
    z-index: 1;
  }

  #services-section::before {
    content: "";
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.05), transparent 60%);
    pointer-events: none;
    z-index:0;
  }

  #services-section .section-header {
    display: flex;
    flex-direction: column;
    margin-left: 5%;
    margin-bottom: 45px;
    position: relative;
    z-index: 2;
  }

  #services-section .section-header h2 {
    color: var(--color-brand-secondary);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
  }

  #services-section .section-header p {
    color: rgba(255,255,255,0.85);
    max-width: 460px;
  }

  #services-section .services-carousel-wrap {
    position: relative;
    z-index: 2;
    overflow: hidden;
  }

  /* A horizontal scroller (so phones can swipe it) with its scrollbar
     hidden; the arrows and the auto-scroll move it too. */
  #services-section .services-carousel {
    display: flex;
    gap: 20px;
    padding: 12px 5%;
    scroll-behavior: smooth;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  #services-section .services-carousel::-webkit-scrollbar {
    display: none;
  }

  #services-section .service-link {
    text-decoration: none;
    color: inherit;
    flex: 0 0 220px;
  }

  #services-section .service-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #001029;
    border: 2px solid rgba(241,174,34,0.6);
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, filter 0.35s ease;
    text-align: center;
    height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  #services-section .service-item:hover {
    transform: translateY(-6px) scale(1.04);
    border-color: var(--color-brand-secondary);
    box-shadow: 0 0 12px rgba(241,174,34,0.4), 0 0 24px rgba(255,255,255,0.15);
    filter: brightness(1.08);
  }

  #services-section .service-img-wrap {
    flex: 1;
    border-radius: 14px 14px 0 0;
    overflow: hidden;
    background: #000;
  }

  #services-section .service-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
  }

  #services-section .service-item:hover img {
    transform: scale(1.08);
  }

  #services-section .service-name {
    color: var(--color-brand-secondary);
    font-size: 1rem;
    padding: 12px 0;
    background: rgba(0,0,0,0.85);
    font-weight: 500;
    letter-spacing: 0.3px;
  }

  /* Arrow buttons */
  #services-section .carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: var(--color-brand-secondary);
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 5;
  }

  #services-section .carousel-arrow:hover {
    background: var(--color-brand-secondary);
    color: #001029;
  }

  #services-section .arrow-left { left: 2%; }
  #services-section .arrow-right { right: 2%; }

  @media (max-width: 768px) {
    #services-section .service-link { flex: 0 0 180px; }
    #services-section .service-item { height: 260px; }
  }

  /* Every name gets room for two lines, so a long one ("Birthday Party
     Packages") does not make its picture shorter than its neighbours'. */
  #services-section .service-name {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(2 * 1.25em + 20px);
    padding: 10px 12px;
    line-height: 1.25;
  }

  /* The text under the heading in the reading face (the page's body font
     is the display face). */
  #services-section .section-header p {
    margin: 0;
    font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.55;
  }

  /* Phones: the heading on the page's 16px margin; the strip is swiped,
     card by card, so the arrows (which sat on top of the cards) go. */
  @media (max-width: 768px) {
    #services-section {
      padding: 56px 0;
    }

    #services-section .section-header {
      margin: 0 16px 28px;
    }

    #services-section .section-header h2 {
      font-size: 1.875rem;
    }

    #services-section .services-carousel {
      gap: 14px;
      padding: 8px 16px 12px;
      scroll-snap-type: x mandatory;
      scroll-padding: 0 16px;
    }

    #services-section .service-link {
      scroll-snap-align: start;
    }

    #services-section .carousel-arrow {
      display: none;
    }

    #services-section .service-item:hover {
      transform: none;
    }
  }
