/* =========================================================
   GLOBAL STYLE
   ========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Playfair Display", serif;
  background: #000;
  color: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.58) 100%),
    url("../images/Crownsy193.jpg") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.12),
    transparent 50%,
    rgba(0, 0, 0, 0.12)
  );
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: 1000px;
  margin: 0 auto 22px;
  font-family: "Libre Baskerville", serif;
  font-size: clamp(42px, 7vw, 78px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -1.5px;
}

.hero p {
  max-width: 680px;
  margin: 0 auto;
  font-family: "Playfair Display", serif;
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 400;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.82);
}

.hero-btn {
  display: inline-block;
  margin-top: 42px;
  padding: 15px 42px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  transition:
    background 0.35s ease,
    color 0.35s ease,
    border-color 0.35s ease,
    transform 0.35s ease;
}

.hero-btn:hover {
  background: #fff;
  border-color: #fff;
  color: #000;
  transform: translateY(-2px);
}

/* =========================================================
   SOCIAL SECTION
   ========================================================= */

.social-section {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 130px 6%;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.72)),
    url("../images/crownsy149.jpg") center / cover no-repeat;
}

.social-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.08);
  pointer-events: none;
}

.social-section > * {
  position: relative;
  z-index: 1;
}

/* =========================================================
   SECTION HEADER
   ========================================================= */

.section-header {
  max-width: 760px;
  margin: 0 auto 80px;
  text-align: center;
}

.section-header h2 {
  margin-bottom: 22px;
  font-family: "Libre Baskerville", serif;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.section-header p {
  max-width: 620px;
  margin: 0 auto;
  font-family: "Playfair Display", serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.68);
}

/* =========================================================
   SOCIAL GRID
   ========================================================= */

.social-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.social-card {
  position: relative;
  min-height: 270px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  text-align: center;
  overflow: hidden;
  transition:
    transform 0.45s cubic-bezier(0.2, 0.6, 0.2, 1),
    border-color 0.45s ease,
    background 0.45s ease;
}

.social-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 20%,
    rgba(255, 255, 255, 0.08) 100%
  );
  opacity: 0.65;
  transition: opacity 0.45s ease;
}

.social-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.06),
    transparent
  );
  transform: skewX(-20deg);
  transition: left 0.7s ease;
}

.social-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.025);
}

.social-card:hover::before {
  opacity: 1;
}

.social-card:hover::after {
  left: 140%;
}

.social-card > div {
  position: relative;
  z-index: 1;
}

.social-card h3 {
  margin-bottom: 12px;
  font-family: "Libre Baskerville", serif;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.3;
}

.social-card span {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
}

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition:
    opacity 0.9s ease,
    transform 0.9s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   INSTAGRAM SECTION
   ========================================================= */

.ig-section {
  width: 100%;
  padding: 120px 20px;
  background: #fff;
  color: #000;
}

.ig-container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
}

.ig-header {
  max-width: 720px;
  margin: 0 auto 60px;
  text-align: center;
}

.ig-subtitle {
  display: inline-block;
  margin-bottom: 16px;
  color: #555;
  font-family: "Montserrat", sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.ig-title {
  margin-bottom: 20px;
  color: #030303;
  font-family: "Libre Baskerville", serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.ig-description {
  max-width: 650px;
  margin: 0 auto;
  color: #333;
  font-family: "Playfair Display", serif;
  font-size: 16px;
  line-height: 1.85;
}

/* =========================================================
   INSTAGRAM FEED
   ========================================================= */

.ig-feed {
  width: 100%;
  padding: 20px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 2px;
  background: #0b0b0b;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.sk-instagram-profile-feed,
.sk-instagram-feed {
  width: 100%;
}

.sk-instagram-feed {
  min-height: 500px;
}

.ig-feed iframe,
.sk-instagram-feed iframe {
  width: 100% !important;
  border: none !important;
}

/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 1200px) {
  .social-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
}

/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 768px) {
  .hero {
    min-height: 100svh;
    padding: 110px 20px 70px;
  }

  .hero h1 {
    font-size: clamp(34px, 10vw, 48px);
    letter-spacing: -0.8px;
  }

  .hero p {
    max-width: 500px;
    font-size: 14px;
    line-height: 1.8;
  }

  .hero-btn {
    margin-top: 32px;
    padding: 14px 32px;
    font-size: 10px;
  }

  .social-section {
    padding: 90px 20px;
  }

  .section-header {
    margin-bottom: 55px;
  }

  .section-header h2 {
    font-size: 29px;
  }

  .section-header p {
    font-size: 14px;
    line-height: 1.8;
  }

  .social-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .social-card {
    min-height: 210px;
  }

  .ig-section {
    padding: 85px 16px;
  }

  .ig-header {
    margin-bottom: 45px;
  }

  .ig-title {
    font-size: 32px;
  }

  .ig-description {
    font-size: 14px;
    line-height: 1.8;
  }

  .ig-feed {
    padding: 10px;
  }

  .floating-wa {
    right: 16px;
    bottom: 16px;
    min-width: auto;
    padding: 12px 17px;
    font-size: 9px;
    letter-spacing: 1.2px;
  }

  .wa-box {
    padding: 32px 22px;
  }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {
  .hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero p {
    font-size: 13px;
  }

  .social-section {
    padding: 75px 16px;
  }

  .section-header h2 {
    font-size: 27px;
  }

  .social-card {
    min-height: 190px;
    padding: 24px;
  }

  .social-card h3 {
    font-size: 19px;
  }

  .ig-section {
    padding: 70px 12px;
  }

  .ig-title {
    font-size: 29px;
  }
}

/* =========================================================
   ACCESSIBILITY / REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
