/* Import font Italianno */
@import url("https://fonts.googleapis.com/css2?family=Italianno&display=swap");

/* Apply Italianno ke semua heading */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 400; /* medium, tidak tipis tidak tebal */

  font-family: "Italianno";
}

body {
  font-family: "Inter", sans-serif;
  background-color: #f4f6f4;
  margin: 0;
  color: #283128;
}
:root {
  --primary: #1c221c;
  --bg: #c5cfc5;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  text-decoration: none;
}
/* Navbar */
.navbar {
  font-family: "Inter", sans-serif;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.2rem 7%;
  background-color: #708871;
  border-bottom: 1px #f6b7b7;
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  z-index: 9999;
}
.navbar img {
  width: 5rem;
}
.navbar .navbar-nav a {
  color: #fff;
  display: inline-block;
  font-size: 1.4rem;
  margin: 0 1rem;
}
.navbar .navbar-nav a:hover {
  color: var(--primary);
}
.navbar .navbar-nav a::after {
  content: "";
  display: block;
  padding-bottom: 0.5rem;
  border-bottom: 0.1rem solid var(--primary);
  transform: scaleX(0);
  transition: 0.2s linear;
}
.navbar .navbar-nav a:hover::after {
  transform: scaleX(0.5);
}

.navbar .navbar-extra a {
  color: #fff;
  display: inline-block;
  font-size: 1.4rem;
  margin: 0 1rem;
}
.navbar .navbar-extra a:hover {
  color: var(--primary);
}
.navbar .navbar-extra a::after {
  content: "";
  display: block;
  padding-bottom: 0.5rem;
  border-bottom: 0.1rem solid var(--primary);
  transform: scaleX(0);
  transition: 0.2s linear;
}
.navbar .navbar-extra a:hover::after {
  transform: scaleX(0.5);
}
#menu {
  color: #fff;
  display: inline-block;
  font-size: 1.4rem;
  margin: 0 1rem;
  display: none;
}

.navbar #menu:hover {
  color: var(--primary);
}
.navbar #menu::after {
  content: "";
  display: block;
  padding-bottom: 0.5rem;
  border-bottom: 0.1rem solid var(--primary);
  transform: scaleX(0);
  transition: 0.2s linear;
}
.navbar #menu:hover::after {
  transform: scaleX(0.5);
}
/* media queries */
/* laptop */
@media (max-width: 1366px) {
  html {
    font-size: 75%;
  }
  #menu {
    display: inline-block;
  }
  .navbar .navbar-nav {
    position: absolute;
    top: 100%;
    right: -100%;
    background-color: #708871;
    width: 30rem;
    height: 100vh;
    transition: 0.3s;
  }
  .navbar .navbar-nav.active {
    right: 0;
  }
  .navbar .navbar-nav a {
    color: var(--bg);
    display: block;
    margin: 1.5rem;
    padding: 0.5rem;
    font-size: 2rem;
  }
  .navbar .navbar-nav a::after {
    transform-origin: 0 0;
  }
  .navbar .navbar-nav a:hover::after {
    transform: scaleX(0.2);
  }
}

/* tablet */
@media (max-width: 768px) {
  html {
    font-size: 62.8%;
  }
}
/* mobile */
@media (max-width: 450px) {
  html {
    font-size: 55%;
  }
}
/* Hero */
.hero {
  padding: 250px 200px;
  background: #f4f6f4;
  text-align: center; /* konten di tengah */
}
.hero h1 {
  font-size: 120px;
  margin-bottom: 10px;
  line-height: 1.2;
}
.hero-img {
  display: block;
  margin: 20px auto;
  width: 250px;
  max-width: 80%; /* biar tidak overflow */
  border-radius: 50%;
}
.left {
  text-align: left;
}
.right {
  text-align: right;
}

/* ===================== */
/* RESPONSIVE SECTION    */
/* ===================== */

/* Tablet */
@media (max-width: 1024px) {
  .hero {
    padding: 0 80px; /* reset padding */
    min-height: 100vh; /* full layar */
    display: flex; /* aktifkan flex */
    flex-direction: column; /* susun vertikal */
    justify-content: center; /* tengah vertikal */
    align-items: center; /* tengah horizontal */
  }
  .hero h1 {
    font-size: 100px;
  }
  .hero-img {
    width: 200px;
  }
}

/* HP landscape & potrait */
@media (max-width: 768px) {
  .hero {
    padding: 0 40px;
    min-height: 100vh; /* tetap full layar */
  }
  .hero h1 {
    font-size: 80px;
  }
  .hero-img {
    width: 150px;
  }
}

/* HP kecil */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 60px;
  }
  .hero-img {
    width: 120px;
  }
}

/* Collection */
.collection {
  background-color: #f4f6f4;
  width: 100%;
  margin: 60px auto;
  text-align: center;
}
.collection-table {
  width: 37, 5%;
  margin: 0 auto;
  border-collapse: collapse;
  text-align: center;
}

.collection-table td {
  padding: 10px;
  font-family: inter, sans-serif;
  font-weight: 500;
}

.collection-table .left {
  text-align: left;
  font-size: 80px;
}

.collection-table .right {
  text-align: right;
  font-size: 80px;
}

.collection-table .center {
  text-align: center;
  font-size: 80px;
  line-height: 1.2;
}

/* Tablet */
@media (max-width: 992px) {
  .collection-table {
    width: 70%;
  }

  .collection-table .left,
  .collection-table .right,
  .collection-table .center {
    font-size: 50px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .collection-table {
    width: 100%;
  }

  .collection-table td {
    display: block;
    width: 100%;
    text-align: center !important; /* paksa center */
  }

  .collection-table .left,
  .collection-table .right,
  .collection-table .center {
    font-size: 36px;
  }
}

.collection-wrapper {
  display: grid;
  grid-template-columns: 1fr 2fr; /* teks kiri, gambar kanan */
  align-items: center;
  gap: 40px;
  margin: 50px auto;
  max-width: 1200px;
  padding: 20px;
}

.collection-text h2 {
  font-size: 80px;
  line-height: 1.2;
}

.collection-text p {
  margin-top: 15px;
  font-size: 30px;
  color: #333;
}

.collection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "left-top right-big"
    "left-bottom right-big";
  gap: 20px;
}

.collection-grid img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}

/* Posisi gambar */
.collection-grid img:nth-child(1) {
  grid-area: left-top;
}

.collection-grid img:nth-child(2) {
  grid-area: left-bottom;
}

.collection-grid img:nth-child(3) {
  grid-area: right-big;
}

/* Tablet */
@media (max-width: 992px) {
  .collection-wrapper {
    grid-template-columns: 1fr; /* stack teks & grid */
    text-align: center;
  }
  .collection-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "left-top right-big"
      "left-bottom right-big";
  }
}

/* Mobile */
@media (max-width: 768px) {
  .collection-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "left-top"
      "left-bottom"
      "right-big";
  }
}

/* Flower Bouquet */
.flower-bouquet {
  background: #708871;
  color: white;
  padding: 60px 20px;
  text-align: center;
}
.flower-bouquet h2 {
  font-size: 100px;
}

.circle-images {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
  flex-wrap: wrap; /* biar otomatis turun ke bawah kalau sempit */
}

.circle-images img {
  width: 100%;
  max-width: 400px;
  border-radius: 50%;
  object-fit: cover;
  transition: 0.3s ease; /* efek halus saat resize */
}

/* Tablet */
@media (max-width: 768px) {
  .circle-images {
    gap: 20px;
    margin-top: 20px;
  }
  .circle-images img {
    max-width: 250px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .circle-images {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  .circle-images img {
    max-width: 200px;
    width: 80%;
  }
}

/* Catalog */
.catalog-item {
  padding: 60px 20px;
  text-align: center;
}

.catalog-item.gray {
  background: #f4f4f4;
}

.catalog-item h3 {
  font-size: 100px;
  margin-bottom: 20px;
}

.catalog-content {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap; /* biar otomatis turun kalau sempit */
}

.catalog-content img {
  width: 340px;
  border-radius: 12px;
  transition: 0.3s ease;
}

.colors {
  margin-top: 15px;
}

.colors span {
  display: inline-block;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin: 0 5px;
  border: 2px solid #ccc;
}

/* Tablet */
@media (max-width: 768px) {
  .catalog-content img {
    width: 250px;
  }

  .colors span {
    width: 40px;
    height: 40px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .catalog-content {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .catalog-content img {
    width: 80%; /* biar menyesuaikan layar */
    max-width: 220px;
  }

  .colors span {
    width: 35px;
    height: 35px;
  }
}

/* Footer */
.footer {
  background: #283128;
  color: white;
  text-align: center;
  padding: 20px;
}
