/* ===================================================
   KALOPSIA — Luxury Men's Fashion Design System
   =================================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
  --bg: #0A0A0A;
  --fg: #F5F3EE;
  --card: #121212;
  --primary: #C8A96A;
  --primary-fg: #0A0A0A;
  --secondary: #2B2B2B;
  --secondary-fg: #F5F3EE;
  --muted: #1F1F1F;
  --muted-fg: #9A8E7A;
  --cream: #F5F3EE;
  --charcoal: #2B2B2B;
  --gold: #C8A96A;
  --deep-black: #0A0A0A;
  --border: #242424;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --radius: 0.25rem;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  font-family: inherit;
}

/* ---------- Utilities ---------- */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 1024px) {
  .container {
    padding: 0 3rem;
  }
}

.text-gold {
  color: var(--gold);
}

/* ---------- Section Shared ---------- */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: clamp(1.875rem, 5vw, 3.25rem);
  margin-bottom: 1.5rem;
  color: var(--fg);
}

.section-title--dark {
  color: var(--deep-black);
}

.section-title--large {
  font-size: clamp(1.875rem, 5vw, 3.75rem);
}

.section-divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto;
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2.5rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn--hero {
  background-color: var(--gold);
  color: var(--deep-black);
}

.btn--hero:hover {
  background-color: #b89855;
}

.btn--hero-outline {
  background: transparent;
  color: var(--fg);
  border: 1px solid rgba(245, 243, 238, 0.3);
}

.btn--hero-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ===================================================
   NAVBAR
   =================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background-color 0.5s ease, border-color 0.5s ease, backdrop-filter 0.5s ease;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background-color: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

.navbar__logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  letter-spacing: 0.3em;
  color: var(--fg);
}

.navbar__links {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .navbar__links {
    display: flex;
  }
}

.navbar__link {
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ffffff;
  transition: color 0.3s ease;
}

.navbar__link:hover {
  color: var(--gold);
}

.navbar__toggle {
  display: block;
  padding: 0.5rem;
}

@media (min-width: 768px) {
  .navbar__toggle {
    display: none;
  }
}

.navbar__mobile {
  display: none;
  background-color: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.navbar__mobile.open {
  display: block;
  max-height: 400px;
  padding: 1.5rem 0;
}

.navbar__mobile .container {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.navbar__mobile-link {
  display: block;
  padding: 0.75rem 0;
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-fg);
  border-bottom: 1px solid rgba(36, 36, 36, 0.5);
  transition: color 0.3s ease;
}

.navbar__mobile-link:last-child {
  border-bottom: none;
}

.navbar__mobile-link:hover {
  color: var(--gold);
}

/* ===================================================
   HERO
   =================================================== */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(10, 10, 10, 0.1) 0%,
      rgba(10, 10, 10, 0.45) 45%,
      rgba(10, 10, 10, 0.85) 75%,
      #0A0A0A 100%);
}

.hero__content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 56rem;
}

.hero__title {
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: 0.2em;
  color: var(--fg);
  margin-bottom: 1rem;
}

.hero__subtitle {
  font-size: clamp(0.65rem, 1.5vw, 0.875rem);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
}

.hero__desc {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--muted-fg);
  max-width: 32rem;
  margin: 0 auto 3rem;
  font-weight: 300;
  line-height: 1.7;
}

.hero__buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

@media (min-width: 640px) {
  .hero__buttons {
    flex-direction: row;
  }
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted-fg);
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* ===================================================
   ABOUT
   =================================================== */
.about {
  padding: 6rem 0 8rem;
  background-color: var(--cream);
}

.about__text {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.8;
  font-weight: 300;
  color: var(--charcoal);
}

/* ===================================================
   COLLECTIONS
   =================================================== */
.collections {
  padding: 6rem 0 8rem;
}

.collections__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .collections__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .collections__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.collection-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.collection-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(200, 169, 106, 0.08);
}

.collection-card__image {
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.collection-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.collection-card:hover .collection-card__image img {
  transform: scale(1.1);
}

.collection-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 40%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

.collection-card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.collection-card__desc {
  font-size: 0.875rem;
  color: rgba(245, 243, 238, 0.6);
  transform: translateY(1rem);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.collection-card:hover .collection-card__desc {
  transform: translateY(0);
  opacity: 1;
}

/* ===================================================
   WHY CHOOSE US
   =================================================== */
.why-us {
  padding: 6rem 0 8rem;
  background-color: var(--secondary);
}

.why-us__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .why-us__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .why-us__grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.feature {
  text-align: center;
}

.feature__icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  border: 1px solid rgba(200, 169, 106, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  transition: border-color 0.5s ease, background-color 0.5s ease;
}

.feature:hover .feature__icon {
  border-color: var(--gold);
  background-color: rgba(200, 169, 106, 0.05);
}

.feature__title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  color: var(--fg);
}

.feature__desc {
  font-size: 0.875rem;
  color: var(--muted-fg);
  line-height: 1.6;
}

/* ===================================================
   STYLE STATEMENT
   =================================================== */
.style-statement {
  padding: 6rem 0 8rem;
  background-color: var(--cream);
}

.style-statement__content {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}

.style-statement__text {
  max-width: 40rem;
  margin: 2.5rem auto 0;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.8;
  font-weight: 300;
  color: var(--charcoal);
}

/* ===================================================
   CONTACT + MAP
   =================================================== */
.contact {
  padding: 6rem 0 8rem;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .contact__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid rgba(200, 169, 106, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
}

.contact__item-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.contact__item-text {
  color: var(--muted-fg);
  line-height: 1.7;
}

.contact__item-small {
  color: var(--muted-fg);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.contact__link {
  color: var(--muted-fg);
  transition: color 0.3s ease;
}

.contact__link:hover {
  color: var(--gold);
}

.contact__map {
  height: 400px;
  min-height: 400px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

@media (min-width: 1024px) {
  .contact__map {
    height: auto;
  }
}

/* ===================================================
   CTA
   =================================================== */
.cta {
  position: relative;
  padding: 6rem 0 8rem;
  overflow: hidden;
}

.cta__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--secondary), var(--bg), var(--secondary));
}

.cta__glow {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background: radial-gradient(circle at 30% 50%, var(--gold) 0%, transparent 50%);
}

.cta__content {
  position: relative;
  text-align: center;
}

.cta__desc {
  color: var(--muted-fg);
  font-size: 1.125rem;
  max-width: 32rem;
  margin: 0 auto 2.5rem;
}

.cta__buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

@media (min-width: 640px) {
  .cta__buttons {
    flex-direction: row;
  }
}

/* ===================================================
   FOOTER
   =================================================== */
.footer {
  background-color: var(--card);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  letter-spacing: 0.3em;
  color: var(--fg);
  margin-bottom: 1rem;
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer__text {
  color: var(--muted-fg);
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer__inline-icon {
  display: inline;
  vertical-align: middle;
  margin-right: 0.25rem;
  color: var(--gold);
}

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--gold);
}

.footer__link {
  color: var(--muted-fg);
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer__link:hover {
  color: var(--gold);
}

.footer__social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer__social-link {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-fg);
  transition: color 0.3s ease, border-color 0.3s ease;
}

/* ===================================================
   WHATSAPP FLOATING BUTTON
   =================================================== */
.whatsapp-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3.75rem;
  height: 3.75rem;
  background-color: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all 0.3s ease;
  animation: whatsapp-pulse 2s infinite;
}

.whatsapp-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2), 0 0 0 10px rgba(37, 211, 102, 0);
  background-color: #20ba5a;
}

.whatsapp-btn svg {
  width: 1.75rem;
  height: 1.75rem;
}

@keyframes whatsapp-pulse {
  0% {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(37, 211, 102, 0.4);
  }

  70% {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 15px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@media (max-width: 768px) {
  .whatsapp-btn {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 3.25rem;
    height: 3.25rem;
  }

  .whatsapp-btn svg {
    width: 1.5rem;
    height: 1.5rem;
  }
}

/* ===================================================
   INSTAGRAM FEED
   =================================================== */
.instagram {
  padding: 6rem 0 8rem;
}

.instagram__grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .instagram__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.instagram__post {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius);
  display: block;
}

.instagram__image {
  width: 100%;
  height: 100%;
}

.instagram__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.instagram__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(10, 10, 10, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  opacity: 0;
  transition: opacity 0.4s ease;
  color: #fff;
}

.instagram__overlay span {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
}

.instagram__post:hover .instagram__image img {
  transform: scale(1.1);
}

.instagram__post:hover .instagram__overlay {
  opacity: 1;
}

.instagram__footer {
  text-align: center;
}

.instagram__footer .btn {
  padding-left: 3rem;
  padding-right: 3rem;
}

.footer__bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer__bottom p {
  color: var(--muted-fg);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--muted-fg);
}