/* =========================================================
   COWABUNGA TATTOO — home page sections
   Loaded last (after main / modern / bootstrap). Every rule is
   scoped to its own class prefix (hp-, works-, paint-, about-,
   svc-, faq-, contacts-, lb-) so legacy globals don't leak in.
   ========================================================= */

:root {
  --hp-ink: #12403c;
  --hp-ink-deep: #0f3532;
  --hp-ink-soft: rgba(18, 64, 60, 0.74);
  --hp-ink-muted: rgba(18, 64, 60, 0.58);
  --hp-accent: #2b7480; /* teal that passes contrast on light backgrounds */
  --hp-teal: #57a7b3;
  --hp-gold: #e5dec2;
  --hp-cream: #fff8dc;
  --hp-bg: #fafaf4;
  --hp-tint: #f2eee1;
  --hp-line: rgba(18, 64, 60, 0.1);
  --hp-radius: 16px;
  --hp-radius-lg: 24px;
  --hp-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Section shell ---------- */
.hp-section {
  position: relative;
  padding: 72px 0;
  font-family: Nunito, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--hp-ink);
  background: var(--hp-bg);
}

.hp-section [hidden] {
  display: none !important;
}

.hp-wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

@media screen and (min-width: 768px) {
  .hp-section {
    padding: 96px 0;
  }

  .hp-wrap {
    padding: 0 32px;
  }
}

@media screen and (min-width: 1200px) {
  .hp-section {
    padding: 120px 0;
  }

  .hp-wrap {
    padding: 0 40px;
  }
}

.hp-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 48px;
  margin-bottom: 36px;
}

@media screen and (min-width: 1200px) {
  .hp-head {
    margin-bottom: 52px;
  }
}

.hp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hp-accent);
}

.hp-eyebrow::before {
  content: "";
  flex-shrink: 0;
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.hp-title {
  margin: 0;
  font-family: Nunito, sans-serif;
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-align: left;
  text-transform: none;
  color: var(--hp-ink);
}

.hp-title--sm {
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.15;
}

.hp-lead {
  max-width: 520px;
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--hp-ink-soft);
}

@media screen and (min-width: 1200px) {
  .hp-lead {
    font-size: 17px;
  }
}

.i18n-pre {
  white-space: pre-line;
}

/* ---------- Buttons ---------- */
.hp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 28px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none !important;
  cursor: pointer;
  transition:
    transform 0.25s var(--hp-ease),
    background-color 0.25s var(--hp-ease),
    border-color 0.25s var(--hp-ease),
    color 0.25s var(--hp-ease),
    box-shadow 0.25s var(--hp-ease);
}

.hp-btn svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.hp-btn:hover,
.hp-btn:focus-visible {
  transform: translateY(-2px);
}

.hp-btn:active {
  transform: translateY(0);
}

.hp-btn--dark {
  background-color: var(--hp-ink);
  box-shadow: 0 10px 24px rgba(18, 64, 60, 0.18);
  color: var(--hp-gold);
}

.hp-btn--dark:hover,
.hp-btn--dark:focus-visible {
  background-color: #0b2e2b;
  color: #ffffff;
}

.hp-btn--ghost {
  border-color: rgba(18, 64, 60, 0.25);
  background-color: transparent;
  color: var(--hp-ink);
}

.hp-btn--ghost:hover,
.hp-btn--ghost:focus-visible {
  border-color: var(--hp-ink);
  background-color: rgba(18, 64, 60, 0.05);
  color: var(--hp-ink);
}

.hp-btn--light {
  background-color: var(--hp-gold);
  color: var(--hp-ink);
}

.hp-btn--light:hover,
.hp-btn--light:focus-visible {
  background-color: #ffffff;
  color: var(--hp-ink);
}

.hp-btn--ghost-light {
  border-color: rgba(229, 222, 194, 0.5);
  background-color: transparent;
  color: var(--hp-cream);
}

.hp-btn--ghost-light:hover,
.hp-btn--ghost-light:focus-visible {
  border-color: var(--hp-gold);
  background-color: rgba(229, 222, 194, 0.08);
  color: #ffffff;
}

/* ---------- Hero additions ---------- */
/* The subtitle is the page h1 (studio + city): neutralise legacy global h1 rules */
.hero__subtitle {
  max-width: 560px;
  margin: 14px 0 0;
  font-family: Nunito, sans-serif;
  text-transform: none;
  text-wrap: balance;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-align: center;
  color: rgba(255, 248, 220, 0.9);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
  animation: heroFadeIn 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.15s both;
}

@media screen and (min-width: 768px) {
  .hero__subtitle {
    font-size: 18px;
  }
}

/* Second hero button now scrolls down to the paintings section */
.hero__btn--down::after {
  transform: translateY(-2px) rotate(45deg);
}

.hero__btn--down:hover::after,
.hero__btn--down:focus-visible::after {
  transform: translateY(1px) rotate(45deg);
}

/* =========================================================
   OUR WORK — portfolio grid
   ========================================================= */
#gallery.hp-works {
  overflow: visible;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media screen and (min-width: 768px) {
  .works-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
}

@media screen and (min-width: 1100px) {
  .works-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
}

.works-item {
  margin: 0;
}

.works-item.is-collapsed {
  display: none;
}

.works-item.is-new {
  animation: hpFadeUp 0.6s var(--hp-ease) both;
}

.works-link {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 14px;
  background-color: #e7e3d6;
}

.works-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--hp-ease);
}

/* bottom shade + "zoom" badge on hover / keyboard focus */
.works-link::before,
.works-link::after {
  content: "";
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transition:
    opacity 0.35s var(--hp-ease),
    transform 0.35s var(--hp-ease);
}

.works-link::before {
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 50%, rgba(10, 34, 32, 0.55));
}

.works-link::after {
  right: 12px;
  bottom: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 248, 220, 0.94) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312403c' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l4 4M11 8.5v5M8.5 11h5'/%3E%3C/svg%3E") center / 20px no-repeat;
  transform: translateY(6px) scale(0.9);
}

.works-link:focus-visible::before,
.works-link:focus-visible::after {
  opacity: 1;
  transform: none;
}

@media (hover: hover) {
  .works-link:hover img {
    transform: scale(1.06);
  }

  .works-link:hover::before,
  .works-link:hover::after {
    opacity: 1;
    transform: none;
  }
}

.works-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.works-count {
  font-weight: 700;
  opacity: 0.6;
}

.works-count:empty {
  display: none;
}

@media screen and (max-width: 479px) {
  .works-actions .hp-btn {
    width: 100%;
  }
}

/* ---------- Lightbox ---------- */
.lb {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 16px 88px;
  background: rgba(6, 22, 21, 0.95);
  opacity: 0;
  visibility: hidden;
  /* closing: fade out first, then hide */
  transition:
    opacity 0.3s var(--hp-ease),
    visibility 0s linear 0.3s;
}

.lb.is-open {
  opacity: 1;
  visibility: visible;
  /* opening: visible at once so focus can move into the dialog */
  transition:
    opacity 0.3s var(--hp-ease),
    visibility 0s;
}

@media screen and (min-width: 768px) {
  .lb {
    padding: 64px 96px;
  }
}

.lb__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
}

.lb__img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  user-select: none;
  -webkit-user-drag: none;
  transition:
    opacity 0.25s var(--hp-ease),
    transform 0.25s var(--hp-ease);
}

.lb__img.is-loading {
  opacity: 0;
  transform: scale(0.98);
}

.lb__counter {
  position: absolute;
  bottom: 30px;
  left: 50%;
  margin: 0;
  font-family: Nunito, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(255, 248, 220, 0.75);
  transform: translateX(-50%);
}

.lb__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: rgba(255, 248, 220, 0.1);
  color: var(--hp-cream);
  cursor: pointer;
  transition: background-color 0.2s var(--hp-ease);
}

.lb__btn:hover,
.lb__btn:focus-visible {
  background-color: rgba(255, 248, 220, 0.24);
}

.lb__btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lb__close {
  top: 14px;
  right: 14px;
}

.lb__prev,
.lb__next {
  bottom: 18px;
}

.lb__prev {
  left: calc(50% - 120px);
}

.lb__next {
  right: calc(50% - 120px);
}

@media screen and (min-width: 768px) {
  .lb__prev,
  .lb__next {
    top: 50%;
    bottom: auto;
    width: 56px;
    height: 56px;
    transform: translateY(-50%);
  }

  .lb__prev {
    left: 24px;
  }

  .lb__next {
    right: 24px;
  }

  .lb__close {
    top: 20px;
    right: 24px;
  }

  .lb__counter {
    top: 32px;
    bottom: auto;
  }
}

html.lb-open,
html.lb-open body {
  overflow: hidden;
}

/* =========================================================
   PAINTINGS
   ========================================================= */
.hp-paintings {
  overflow: hidden;
  background:
    radial-gradient(1100px 560px at 90% -10%, rgba(87, 167, 179, 0.22), transparent 60%),
    radial-gradient(900px 520px at -10% 110%, rgba(229, 222, 194, 0.1), transparent 60%),
    var(--hp-ink-deep);
  color: var(--hp-cream);
}

.hp-paintings .hp-eyebrow {
  color: var(--hp-gold);
}

.hp-paintings .hp-title {
  color: var(--hp-cream);
}

.hp-paintings .hp-lead {
  max-width: 580px;
  margin-top: 20px;
  color: rgba(255, 248, 220, 0.76);
}

.paint-intro {
  display: grid;
  gap: 32px;
  margin-bottom: 40px;
}

@media screen and (min-width: 992px) {
  .paint-intro {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: end;
    gap: 64px;
    margin-bottom: 56px;
  }
}

.paint-facts {
  display: grid;
  /* the price ("from $250") is the widest value */
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(229, 222, 194, 0.16);
  border-radius: var(--hp-radius);
  background-color: rgba(229, 222, 194, 0.16);
  list-style: none;
}

.paint-facts li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 18px 14px;
  background-color: #123a37;
}

@media screen and (min-width: 768px) {
  .paint-facts li {
    padding: 22px 20px;
  }
}

.paint-facts__value {
  font-size: clamp(19px, 2.2vw, 28px);
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
  color: var(--hp-gold);
}

.paint-facts__label {
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 248, 220, 0.7);
}

/* Carousel track: native horizontal scroll with snap points */
.paint-carousel {
  position: relative;
}

.paint-track {
  display: grid;
  grid-auto-columns: 72%;
  grid-auto-flow: column;
  gap: 16px;
  margin: 0 -20px;
  padding: 4px 20px 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-padding: 0 20px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  list-style: none;
  -webkit-overflow-scrolling: touch;
}

.paint-track::-webkit-scrollbar {
  display: none;
}

.paint-track:focus-visible {
  outline: 2px solid var(--hp-gold);
  outline-offset: 6px;
}

@media screen and (min-width: 600px) {
  .paint-track {
    grid-auto-columns: 42%;
  }
}

@media screen and (min-width: 768px) {
  .paint-track {
    margin: 0 -32px;
    padding: 4px 32px 8px;
    scroll-padding: 0 32px;
  }
}

@media screen and (min-width: 992px) {
  .paint-track {
    grid-auto-columns: calc((100% - 3 * 24px) / 4);
    gap: 24px;
    margin: 0;
    padding: 4px 0 8px;
    scroll-padding: 0;
  }
}

.paint-slide {
  margin: 0;
  scroll-snap-align: start;
}

.paint-card,
.paint-more {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none !important;
}

.paint-card:hover,
.paint-card:focus,
.paint-more:hover,
.paint-more:focus {
  color: inherit;
}

.paint-card__frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 5;
  padding: 22px;
  overflow: hidden;
  border-radius: var(--hp-radius);
  background: linear-gradient(160deg, #f6f1e3 0%, #e2d9c0 100%);
}

.paint-card__frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 16px rgba(20, 30, 28, 0.35));
  transition: transform 0.6s var(--hp-ease);
}

.paint-card:hover .paint-card__frame img,
.paint-card:focus-visible .paint-card__frame img {
  transform: translateY(-4px) scale(1.02);
}

.paint-card__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 11px;
  border-radius: 999px;
  background-color: var(--hp-ink);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hp-gold);
}

.paint-card__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  padding: 16px 4px 0;
}

.paint-card__name {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  font-family: Nunito, sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--hp-cream);
}

.paint-card__price {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
  color: var(--hp-gold);
}

.paint-card.is-sold .paint-card__price {
  color: rgba(255, 248, 220, 0.45);
  text-decoration: line-through;
}

.paint-card.is-sold .paint-card__frame img {
  opacity: 0.75;
}

.paint-card__meta {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255, 248, 220, 0.62);
}

/* last slide: link to the full collection */
.paint-more {
  align-items: center;
  justify-content: center;
  gap: 16px;
  aspect-ratio: 4 / 5;
  height: auto;
  border: 1.5px dashed rgba(229, 222, 194, 0.35);
  border-radius: var(--hp-radius);
  transition:
    border-color 0.25s var(--hp-ease),
    background-color 0.25s var(--hp-ease);
}

.paint-more:hover,
.paint-more:focus-visible {
  border-color: var(--hp-gold);
  background-color: rgba(229, 222, 194, 0.06);
}

.paint-more__icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--hp-gold);
  color: var(--hp-ink);
  transition: transform 0.25s var(--hp-ease);
}

.paint-more:hover .paint-more__icon {
  transform: translateX(4px);
}

.paint-more__icon svg,
.paint-nav__btn svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.paint-more__text {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hp-cream);
}

.paint-footer {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
}

.paint-progress {
  position: relative;
  flex: 1;
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background-color: rgba(229, 222, 194, 0.18);
}

.paint-progress span {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 30%;
  border-radius: 2px;
  background-color: var(--hp-gold);
  transition: transform 0.15s linear;
}

.paint-nav {
  display: none;
  gap: 10px;
}

@media screen and (min-width: 768px) {
  .paint-nav {
    display: flex;
  }
}

.paint-nav__btn {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1.5px solid rgba(229, 222, 194, 0.35);
  border-radius: 50%;
  background-color: transparent;
  color: var(--hp-cream);
  cursor: pointer;
  transition:
    background-color 0.25s var(--hp-ease),
    border-color 0.25s var(--hp-ease),
    color 0.25s var(--hp-ease),
    opacity 0.25s var(--hp-ease);
}

.paint-nav__btn:hover:not(:disabled),
.paint-nav__btn:focus-visible:not(:disabled) {
  border-color: var(--hp-gold);
  background-color: var(--hp-gold);
  color: var(--hp-ink);
}

.paint-nav__btn:disabled {
  cursor: default;
  opacity: 0.3;
}

.paint-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

@media screen and (max-width: 599px) {
  .paint-actions .hp-btn {
    flex: 1 1 100%;
  }
}

/* =========================================================
   ABOUT + WHY US
   ========================================================= */
.about-grid {
  display: grid;
  align-items: center;
  gap: 44px;
}

@media screen and (min-width: 992px) {
  .about-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 72px;
  }
}

.about-media {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.about-media::before {
  content: "";
  position: absolute;
  inset: 22px -14px -14px 22px;
  z-index: -1;
  border: 2px solid rgba(18, 64, 60, 0.14);
  border-radius: var(--hp-radius-lg);
}

/* overrides the legacy global `video { width: 400px; height: 700px }` from main.css */
.about-media .about-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 45%;
  border-radius: var(--hp-radius-lg);
  background-color: #2a2420;
}

.about-video-toggle {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: rgba(10, 34, 32, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--hp-cream);
  cursor: pointer;
  opacity: 0.75;
  transition:
    opacity 0.25s var(--hp-ease),
    background-color 0.25s var(--hp-ease);
}

.about-video-toggle:hover,
.about-video-toggle:focus-visible {
  background-color: rgba(10, 34, 32, 0.8);
  opacity: 1;
}

.about-video-toggle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-video-toggle__play,
.about-video-toggle[aria-pressed="true"] .about-video-toggle__pause {
  display: none;
}

.about-video-toggle[aria-pressed="true"] .about-video-toggle__play {
  display: block;
}

.about-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 240px;
  padding: 14px 18px;
  border-radius: 18px;
  background-color: var(--hp-ink);
  box-shadow: 0 18px 40px rgba(18, 64, 60, 0.3);
  color: var(--hp-cream);
}

@media screen and (min-width: 768px) {
  .about-badge {
    bottom: 32px;
    left: -20px;
  }
}

.about-badge__num {
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  color: var(--hp-gold);
}

.about-badge__text {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.about-content .hp-lead {
  max-width: 620px;
  margin-top: 20px;
}

.about-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.about-chips li {
  margin: 0;
  padding: 8px 14px;
  border: 1px solid var(--hp-line);
  border-radius: 999px;
  background-color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--hp-ink);
}

.about-features {
  display: grid;
  gap: 14px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

@media screen and (min-width: 600px) {
  .about-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.about-feature {
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius);
  background-color: #ffffff;
  transition:
    border-color 0.25s var(--hp-ease),
    box-shadow 0.25s var(--hp-ease),
    transform 0.25s var(--hp-ease);
}

.about-feature:hover {
  border-color: rgba(18, 64, 60, 0.22);
  box-shadow: 0 14px 30px rgba(18, 64, 60, 0.08);
  transform: translateY(-2px);
}

.about-feature__icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background-color: rgba(87, 167, 179, 0.14);
  color: var(--hp-ink);
}

.about-feature__icon svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.about-feature__title {
  margin: 0 0 6px;
  font-family: Nunito, sans-serif;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--hp-ink);
}

.about-feature__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--hp-ink-soft);
}

.about-feature__text a {
  font-weight: 800;
  color: var(--hp-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================================================
   SERVICES
   ========================================================= */
.hp-services {
  background-color: var(--hp-tint);
}

.svc-grid {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media screen and (min-width: 700px) {
  .svc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (min-width: 1100px) {
  .svc-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 28px 26px;
  overflow: hidden;
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius-lg);
  background-color: #ffffff;
  transition:
    transform 0.3s var(--hp-ease),
    box-shadow 0.3s var(--hp-ease),
    border-color 0.3s var(--hp-ease);
}

.svc-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--hp-ink), var(--hp-teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--hp-ease);
}

.svc-card:hover {
  border-color: transparent;
  box-shadow: 0 20px 40px rgba(18, 64, 60, 0.08);
  transform: translateY(-4px);
}

.svc-card:hover::after {
  transform: scaleX(1);
}

@media screen and (min-width: 1200px) {
  .svc-card {
    padding: 34px 32px;
  }
}

.svc-card__num {
  display: block;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--hp-accent);
}

.svc-card__title {
  margin: 0 0 10px;
  font-family: Nunito, sans-serif;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--hp-ink);
}

.svc-card__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--hp-ink-soft);
}

.svc-card__link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hp-ink);
  text-decoration: none !important;
}

.svc-card__link:hover,
.svc-card__link:focus {
  color: var(--hp-accent);
}

.svc-card__link::after {
  content: "→";
  font-size: 15px;
  letter-spacing: 0;
  transition: transform 0.25s var(--hp-ease);
}

.svc-card__link:hover::after {
  transform: translateX(4px);
}

/* =========================================================
   FAQ — two columns on desktop, CTA under the list on mobile
   ========================================================= */
#FAQ.hp-faq {
  padding: 72px 0;
  background-color: var(--hp-bg);
}

@media screen and (min-width: 768px) {
  #FAQ.hp-faq {
    padding: 96px 0;
  }
}

@media screen and (min-width: 1200px) {
  #FAQ.hp-faq {
    padding: 120px 0;
  }
}

.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.faq-aside {
  display: contents;
}

.faq-head {
  order: 1;
}

.hp-faq .accordion {
  order: 2;
  margin: 0;
}

.faq-cta {
  order: 3;
  padding: 26px 24px;
  border-radius: var(--hp-radius-lg);
  background-color: var(--hp-ink);
  color: var(--hp-cream);
}

.faq-cta p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 248, 220, 0.82);
}

.faq-cta .hp-btn {
  width: 100%;
}

@media screen and (min-width: 992px) {
  .faq-grid {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    align-items: start;
    gap: 64px;
  }

  .faq-aside {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 32px;
  }
}

/* =========================================================
   CONTACTS (map + review)
   ========================================================= */
#contacts.hp-contacts {
  max-width: none !important;
  background-color: var(--hp-tint);
}

.contacts-grid {
  display: grid;
  gap: 20px;
}

@media screen and (min-width: 992px) {
  .contacts-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: stretch;
    gap: 28px;
  }
}

.contacts-card {
  padding: 32px 24px;
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius-lg);
  background-color: #ffffff;
}

@media screen and (min-width: 768px) {
  .contacts-card {
    padding: 44px 40px;
  }
}

.contacts-info {
  display: grid;
  gap: 18px;
  margin: 28px 0 32px;
  padding: 0;
  list-style: none;
}

.contacts-info__item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
}

.contacts-info__icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background-color: rgba(87, 167, 179, 0.14);
  color: var(--hp-ink);
}

.contacts-info__icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.contacts-info__label {
  margin: 0 0 2px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hp-ink-muted);
}

.contacts-info__value {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--hp-ink);
  text-decoration: none !important;
}

.contacts-info__value:hover,
.contacts-info__value:focus {
  color: var(--hp-accent);
}

@media screen and (max-width: 479px) {
  .contacts-card .hp-btn {
    width: 100%;
  }
}

.contacts-review {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--hp-line);
}

.contacts-review__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--hp-ink-soft);
}

.contacts-review__link {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hp-ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.contacts-review__link:hover,
.contacts-review__link:focus {
  color: var(--hp-accent);
}

.contacts-map {
  min-height: 340px;
  overflow: hidden;
  border-radius: var(--hp-radius-lg);
  background-color: #e7e3d6;
}

.contacts-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
}

/* =========================================================
   Back to top
   ========================================================= */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 150;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: var(--hp-ink);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  color: var(--hp-gold);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.3s var(--hp-ease),
    visibility 0.3s,
    transform 0.3s var(--hp-ease),
    background-color 0.25s var(--hp-ease),
    color 0.25s var(--hp-ease);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover,
.to-top:focus-visible {
  background-color: var(--hp-gold);
  color: var(--hp-ink);
}

.to-top svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.menu-open .to-top {
  opacity: 0;
  visibility: hidden;
}

/* ---------- Motion ---------- */
@keyframes hpFadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hp-section *,
  .lb,
  .lb *,
  .to-top {
    animation: none !important;
    transition: none !important;
  }
}
