/* GROUPIN TECHNOLOGY LTD — burgundy + warm paper, light header */
:root {
  --ink: #2c3e50;
  --muted: rgba(44, 62, 80, 0.68);
  --paper: #f7f4f0;
  --card: #ffffff;
  --line: rgba(44, 62, 80, 0.1);
  --accent: #8b2942;
  --accent-soft: rgba(139, 41, 66, 0.12);
  --shadow: 0 18px 42px rgba(44, 62, 80, 0.1);
  --radius: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 480px at 8% 0%, var(--accent-soft), transparent 55%),
    radial-gradient(700px 420px at 100% 12%, rgba(44, 62, 80, 0.05), transparent 50%),
    var(--paper);
  line-height: 1.55;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.site-header__inner {
  width: min(1180px, calc(100% - 2.5rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-decoration: none;
}
.site-logo:hover {
  text-decoration: none;
  opacity: 0.9;
}
.site-logo img {
  width: 176px;
  height: auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.35rem;
}
.site-nav a {
  color: var(--ink);
  font-weight: 650;
  font-size: 0.95rem;
  text-decoration: none;
}
.site-nav a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.container {
  width: min(1140px, calc(100% - 2.5rem));
  margin: 0 auto;
}

/* ----- Hero carousel ----- */
.hero {
  position: relative;
  margin: 1.35rem auto 0;
  width: min(1180px, calc(100% - 2rem));
  border-radius: var(--radius);
  overflow: hidden;
  min-height: min(560px, 82vh);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease;
  z-index: 0;
}
.carousel__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    115deg,
    rgba(44, 62, 80, 0.72) 0%,
    rgba(44, 62, 80, 0.35) 45%,
    rgba(139, 41, 66, 0.45) 100%
  );
  pointer-events: none;
}

.hero__copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  max-width: 640px;
  color: #fff;
}

.hero__kicker {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.88;
}

.hero__title {
  margin: 0 0 0.55rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 3.4vw, 2.45rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero__lead {
  margin: 0 0 1rem;
  max-width: 46ch;
  opacity: 0.92;
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.2rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn--primary {
  background: #fff;
  color: var(--accent);
}
.btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

.carousel__ui {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}

.carousel__arrow {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.carousel__arrow:hover {
  background: rgba(255, 255, 255, 0.2);
}

.carousel__dots {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}
.carousel__dot.is-active {
  background: #fff;
  transform: scale(1.15);
}

/* ----- Sections ----- */
.section {
  padding: clamp(2.75rem, 5vw, 4rem) 0;
}
.section__head {
  margin-bottom: 1.35rem;
}
.section__head--center {
  text-align: center;
}
.section__kicker {
  margin: 0 0 0.4rem;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.section__title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.3vw, 1.95rem);
  letter-spacing: -0.02em;
}

/* Product grid — 4 equal columns; 5th card leaves one empty cell */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.card__img-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #ece8e2;
}
.card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__body {
  padding: 1rem 1.1rem 1.15rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  border-top: 3px solid var(--accent);
}

.card__title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}
.card__desc {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* About strip on home */
.about-strip {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-strip__media img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}
.about-strip__text {
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2rem) 0;
}

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.review {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow);
}
.review__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}
.review__avatar {
  border-radius: 50%;
  flex-shrink: 0;
}
.review__name {
  font-weight: 700;
}
.review__role {
  font-size: 0.85rem;
  color: var(--muted);
}
.review__stars {
  color: #c9a227;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}
.review__text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Split message */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  align-items: stretch;
}
.split__media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-height: 320px;
}
.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow);
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}
.field__label {
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--muted);
}
.field__input,
.field__textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  background: #faf9f7;
}
.field__textarea {
  resize: vertical;
  min-height: 140px;
}
.form__hint {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Contact page */
.page-banner {
  width: 100%;
  max-height: min(420px, 52vh);
  overflow: hidden;
}
.page-banner img {
  width: 100%;
  height: min(420px, 52vh);
  object-fit: cover;
}

.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  align-items: start;
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(3rem, 5vw, 4rem);
}
.contact-split__media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.contact-split__panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow);
}
.contact-split__panel h2 {
  margin: 0 0 0.75rem;
  font-family: Georgia, "Times New Roman", serif;
}
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.contact-list li {
  margin-bottom: 0.65rem;
  color: var(--muted);
}
.contact-list a {
  font-weight: 650;
}

/* About page only */
.about-hero {
  width: min(1180px, calc(100% - 2rem));
  margin: 1.35rem auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.about-hero img {
  width: 100%;
  max-height: min(420px, 50vh);
  object-fit: cover;
}
.about-body {
  padding: clamp(2.25rem, 4vw, 3.25rem) 0 clamp(3rem, 5vw, 4rem);
}
.about-body__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: center;
}
.about-body__media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.about-body__text p {
  color: var(--muted);
  margin: 0 0 1rem;
}

/* Footer */
.footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 0;
  margin-top: 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
  padding-bottom: 2rem;
}
.footer__logo img {
  width: 200px;
  height: auto;
}
.footer__desc {
  margin: 0.75rem 0 1rem;
  color: var(--muted);
  max-width: 40ch;
  font-size: 0.95rem;
}
.footer__title {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer__list li {
  margin-bottom: 0.45rem;
}
.footer__social {
  display: flex;
  gap: 0.65rem;
}
.footer__social a {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}
.footer__social a:hover {
  text-decoration: none;
  background: rgba(139, 41, 66, 0.2);
}
.footer__social svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
}
.footer__bottom {
  border-top: 1px solid var(--line);
  padding: 1rem 0 1.5rem;
  font-size: 0.88rem;
  color: var(--muted);
}

@media (max-width: 980px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonials {
    grid-template-columns: 1fr;
  }
  .about-strip,
  .split,
  .contact-split,
  .about-body__grid {
    grid-template-columns: 1fr;
  }
  .about-strip__text {
    padding: 0 1.25rem 1.25rem;
  }
  .form__row {
    grid-template-columns: 1fr;
  }
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .carousel__ui {
    width: calc(100% - 2rem);
    justify-content: center;
  }
}
