/* ============ Reset ============ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Thuộc tính hidden luôn ẩn thật sự (kể cả nút .btn dùng inline-flex) */
[hidden] { display: none !important; }

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  background: #F5F6EA;
  font-family: "Cabin", sans-serif;
  color: #272727;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
}

img {
  display: block;
  max-width: 100%;
  object-fit: contain;
}

/* ============ Biến tỉ lệ (gốc 1920 -> 1440 = 0.75) ============ */
:root {
  --hero-s: 0.75;   /* tỉ lệ 2 hoa lớn ở trang 1 */
  --icon-s: 0.75;   /* tỉ lệ icon hoa ở nội dung trang 2 */
}

/* Container 1440px, nền vẫn full 100% */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 150px;
}

/* ============ Button ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FF936F;
  color: #20201F;
  font-family: "Cabin", sans-serif;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 17.25px;
  padding: 7.5px 15px;
  border-radius: 999px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 147, 111, 0.4);
}

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

/* ============ Pages ============ */
.page {
  display: none;
}

.page.active {
  display: block;
  animation: fade 0.4s ease;
}

@keyframes fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============ PAGE 1 : Hero ============ */
#page1.active {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
}

.hero-text {
  flex: 1;
  max-width: 540px;
}

.hero-title {
  color: #6F5BD3;
  font-family: "Crimson Pro", serif;
  font-size: 90px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.hero-sub {
  color: #272727;
  font-family: "Crimson Pro", serif;
  font-size: 33.75px;
  font-weight: 700;
  line-height: 41.25px;
  margin-top: -3px;
}

.hero-desc {
  color: #272727;
  font-size: 16.5px;
  font-weight: 400;
  line-height: 17.25px;
  margin-top: 30px;
  max-width: 540px;
}

.hero .btn {
  margin-top: 75px;
}

/* Khung chứa 2 hoa: hoa xanh trên-trái, hoa tím dưới-phải, cách nhau 40px */
.hero-art {
  position: relative;
  width: calc(671.521px * var(--hero-s));   /* 395.374 + 236.147 + 40 */
  height: calc(544.446px * var(--hero-s));  /* 409.82 + 244.775 * 0.55 */
  flex-shrink: 0;
}

.flower {
  position: absolute;
}

.flower.big {
  width: calc(395.374px * var(--hero-s));
  height: calc(409.82px * var(--hero-s));
  left: 0;
  top: 0;
}

.flower.small {
  width: calc(236.147px * var(--hero-s));
  height: calc(244.775px * var(--hero-s));
  right: 0;
  bottom: 0;
}

/* ============ PAGE 2 : About ============ */
.about {
  max-width: 1440px;
  margin: 0 auto;
  padding: 91px 150px 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-inner {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 85px;
}

.sec h2 {
  display: flex;
  align-items: center;
  gap: 21px;
  font-family: "Crimson Pro", serif;
  font-size: 41.25px;
  font-weight: 700;
  line-height: 41.25px;
  margin-bottom: 26px;
  white-space: nowrap;
}

.sec h2 img {
  width: calc(41.413px * var(--icon-s));
  height: calc(42.926px * var(--icon-s));
  flex-shrink: 0;
}

.sec.orange h2 { color: #FF936F; }
.sec.purple h2 { color: #6F5BD3; }
.sec.rose h2   { color: #C47785; }

.sec p {
  color: #272727;
  font-size: 16.5px;
  font-weight: 500;
  line-height: 17.25px;
  max-width: 480px;
}

.sec p + p {
  margin-top: 21px;
}

.sec ul {
  margin: 8px 0 0 44px;
  max-width: 400px;
  color: #272727;
  font-size: 16.5px;
  font-weight: 500;
  line-height: 19.5px;
}

.sec li::marker {
  font-size: 10px;
}

/* ============ ≤ 1439px ============ */
@media (max-width: 1439px) {
  :root {
    --hero-s: 0.7;
    --icon-s: 0.75;
  }

  .container,
  .about {
    padding-left: 120px;
    padding-right: 120px;
  }

  .hero-title { font-size: 84px; }
  .hero-sub { font-size: 31px; line-height: 38px; }
  .hero-desc { font-size: 16px; line-height: 18px; }
  .hero .btn { margin-top: 65px; }

  .sec h2 { font-size: 38px; line-height: 38px; }
}

/* ============ ≤ 1200px ============ */
@media (max-width: 1200px) {
  :root {
    --hero-s: 0.6;
    --icon-s: 0.72;
  }

  .container,
  .about {
    padding-left: 80px;
    padding-right: 80px;
  }

  .hero-title { font-size: 72px; }
  .hero-sub { font-size: 28px; line-height: 34px; }
  .hero-desc { font-size: 16px; line-height: 20px; margin-top: 24px; }
  .hero .btn { margin-top: 50px; }

  .about { padding-top: 80px; }
  .about-inner { gap: 75px; }
  .sec h2 { font-size: 36px; line-height: 36px; }
  .sec p { line-height: 20px; }
}

/* ============ ≤ 1024px ============ */
@media (max-width: 1024px) {
  :root {
    --hero-s: 0.5;
    --icon-s: 0.7;
  }

  .container,
  .about {
    padding-left: 60px;
    padding-right: 60px;
  }

  .hero-title { font-size: 64px; }
  .hero-sub { font-size: 26px; line-height: 32px; }
  .hero-desc { margin-top: 20px; }
  .hero .btn { margin-top: 40px; }

  .sec h2 { font-size: 34px; line-height: 34px; gap: 18px; }
  .sec p { line-height: 21px; }
  .sec ul { line-height: 22px; }
}

/* ============ ≤ 768px ============ */
@media (max-width: 768px) {
  :root {
    --hero-s: 0.45;
    --icon-s: 0.65;
  }

  #page1.active { padding: 50px 0; }

  .container,
  .about {
    padding-left: 40px;
    padding-right: 40px;
  }

  .hero {
    flex-direction: column-reverse;
    text-align: center;
    gap: 36px;
  }

  .hero-text {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-title { font-size: 64px; }
  .hero-sub { font-size: 28px; line-height: 34px; }
  .hero-desc { font-size: 17px; line-height: 22px; max-width: 480px; }
  .hero .btn { margin-top: 32px; }

  .btn { font-size: 16px; line-height: 20px; padding: 8px 16px; }

  .about { padding-top: 60px; padding-bottom: 80px; }
  .about-inner { gap: 60px; }
  .sec h2 { font-size: 30px; line-height: 32px; gap: 14px; margin-bottom: 20px; white-space: normal; }
  .sec p,
  .sec ul { font-size: 17px; line-height: 23px; }
  .sec ul { margin-left: 32px; }
}

/* ============ ≤ 480px ============ */
@media (max-width: 480px) {
  :root {
    --hero-s: 0.32;
    --icon-s: 0.6;
  }

  .container,
  .about {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-title { font-size: 48px; }
  .hero-sub { font-size: 22px; line-height: 28px; }
  .hero-desc { font-size: 16px; line-height: 21px; margin-top: 16px; }
  .hero .btn { margin-top: 26px; }

  .btn { font-size: 14px; line-height: 18px; padding: 7px 12px; gap: 6px; }
  .btn svg { width: 15px; height: 15px; }

  .about { padding-top: 40px; padding-bottom: 60px; }
  .about-inner { gap: 46px; }
  .sec h2 { font-size: 24px; line-height: 28px; gap: 10px; margin-bottom: 16px; }
  .sec p,
  .sec ul { font-size: 16px; line-height: 22px; }
  .sec p + p { margin-top: 16px; }
  .sec ul { margin-left: 24px; }
}