/*
  ================================================================
  JUPITER HOTEL — TYPOGRAPHY SYSTEM
  File: jupiter-typography.css
  Mục tiêu: Thay thế Barlow + Gilda Display bằng Montserrat
            cho toàn bộ 4 trang. Chỉ chỉnh font/size/hierarchy.
  ================================================================
*/

/* ── 1. FONT IMPORT ── */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

/* ── 2. CSS VARIABLES ── */
:root {
  --font-primary: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;

  /* Type scale — desktop defaults */
  --fs-h1-hero:    56px;
  --fs-h1-page:    44px;
  --fs-h2-section: 38px;
  --fs-h3-card:    24px;
  --fs-h4-card:    20px;
  --fs-h5-meta:    18px;
  --fs-h6-label:   15px;
  --fs-body:       16px;
  --fs-body-sm:    15px;
  --fs-nav:        14px;
  --fs-btn:        14px;
  --fs-form-label: 13px;
  --fs-form-input: 15px;
  --fs-footer:     14px;

  /* Line heights */
  --lh-heading: 1.12;
  --lh-body:    1.72;

  /* Letter spacing */
  --ls-heading: -0.01em;
  --ls-nav:      0.04em;
  --ls-btn:      0.06em;
  --ls-label:    0.08em;
}

/* ── 3. BASE — body & paragraphs ── */
body {
  font-family: var(--font-primary) !important;
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
}

p {
  font-family: var(--font-primary);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
}

/* ── 4. HEADINGS ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary) !important;
  letter-spacing: var(--ls-heading);
  line-height: var(--lh-heading);
  word-break: keep-all !important;   /* Không bẻ đôi từ */
  overflow-wrap: normal !important;  /* Không cho phép wrap giữa từ */
  hyphens: none !important;          /* Tắt gạch nối tự động */
}

/* Global text wrapping guard: only wrap at whitespace between words. */
body,
p,
li,
a,
span,
strong,
em,
label,
button,
input,
textarea,
select,
.theme-btn,
.sub-title,
.sec-title,
.breadcrumb-items li,
.room-card-premium,
.facility-item-minimal,
.jupiter-about-section,
.jupiter-story-section,
.jupiter-location-section,
.jupiter-faq-section {
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.sec-title,
.hero-title,
.breadcrumb-wrapper h1 {
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}

/* H1 — hero / breadcrumb banner */
h1 {
  font-size: var(--fs-h1-hero) !important;
  font-weight: 800 !important;
  line-height: 1.08 !important;
}

/* H2 — section titles */
h2 {
  font-size: var(--fs-h2-section) !important;
  font-weight: 700 !important;
  line-height: 1.14 !important;
}

/* H3 — feature / card titles (large) */
h3 {
  font-size: var(--fs-h3-card) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

/* H4 — room card / news card title */
h4 {
  font-size: var(--fs-h4-card) !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
}

/* H5 — testimonial title / author */
h5 {
  font-size: var(--fs-h5-meta) !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
}

/* H6 — service label / sub-info */
h6 {
  font-size: var(--fs-h6-label) !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
}

/* ── 5. NAV & LINKS ── */
.main-menu nav ul li a {
  font-family: var(--font-primary) !important;
  font-size: var(--fs-nav) !important;
  font-weight: 600 !important;
  letter-spacing: var(--ls-nav) !important;
  text-transform: uppercase !important;
}

/* Header top bar */
.header-top-section-3 .list li,
.header-top-section-3 .list li a {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 500;
}

/* ── 6. BUTTONS ── */
.theme-btn {
  font-family: var(--font-primary) !important;
  font-size: var(--fs-btn) !important;
  font-weight: 700 !important;
  letter-spacing: var(--ls-btn) !important;
}

/* ── 7. SECTION TITLES ── */
.section-title .sub-title,
.sub-title {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section-title .sec-title,
.sec-title {
  font-family: var(--font-primary) !important;
  font-weight: 700 !important;
  letter-spacing: var(--ls-heading) !important;
}

/* ── 8. FORMS (all pages) ── */
input,
textarea,
select,
.form-clt span,
.form-group label,
.nice-select,
.nice-select .option {
  font-family: var(--font-primary) !important;
}

input,
textarea,
select,
.form-control-custom {
  font-size: var(--fs-form-input) !important;
  font-weight: 400 !important;
}

.form-group label {
  font-size: var(--fs-form-label) !important;
  font-weight: 700 !important;
  letter-spacing: var(--ls-label) !important;
}

.form-clt span {
  font-size: var(--fs-form-label) !important;
  font-weight: 600 !important;
  letter-spacing: var(--ls-label) !important;
}

/* ── 9. FOOTER ── */
footer,
footer p,
footer li,
footer a,
.single-footer-widget .list li a,
.footer-section .date-list li,
.footer-list li a {
  font-family: var(--font-primary) !important;
  font-size: var(--fs-footer) !important;
}

.single-footer-widget .widget-title h5 {
  font-family: var(--font-primary) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
}

.footer-bottom p {
  font-size: 13px !important;
}

/* ── 10. BREADCRUMB ── */
.breadcrumb-wrapper h1 {
  font-weight: 800 !important;
}

.breadcrumb-items li,
.breadcrumb-items li a {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 500;
}

/* ── 11. OFFCANVAS / SIDEBAR ── */
.offcanvas__contact h4 {
  font-family: var(--font-primary) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
}

.offcanvas__contact-text a,
.offcanvas__contact-text {
  font-family: var(--font-primary) !important;
  font-size: 14px !important;
}

/* ── 12. ROOM CARDS (index) ── */
.room-box-items-3 .room-content h4 a {
  font-family: var(--font-primary) !important;
  font-weight: 600 !important;
}

.room-box-items-3 .room-content h6 {
  font-family: var(--font-primary) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
}

.room-box-items-3 .room-content .list li,
.room-box-items-3 .more-btn {
  font-family: var(--font-primary) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
}

/* ── 13. SERVICE BOX (index — 6 amenities) ── */
.service-box-items h6 {
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
}

/* ── 14. OFFER / SPECIAL BOX (index) ── */
.offer-bg-box .offer-list li {
  font-family: var(--font-primary);
  font-size: var(--fs-body-sm);
  font-weight: 500;
}

/* ── 15. HOTEL OVERVIEW (index) ── */
.approach-box {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
}

/* ── 16. TESTIMONIAL ── */
.testimonial-box p,
.testimonial-box h5,
.testimonial-box h6 {
  font-family: var(--font-primary) !important;
}

.testimonial-box p {
  font-size: var(--fs-body-sm) !important;
  font-weight: 400 !important;
  line-height: 1.75 !important;
}

.testimonial-box h5 {
  font-weight: 600 !important;
}

.testimonial-box h6 {
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}

/* about page testimonial */
.testimonial-card-item .content p {
  font-family: var(--font-primary) !important;
  font-size: var(--fs-body-sm) !important;
  line-height: 1.75 !important;
}

/* ── 17. ABOUT PAGE — facilities ── */
.hotel-facilities-items .facilities-content h3 {
  font-size: 22px !important;
  font-weight: 700 !important;
}

.hotel-facilities-items .facilities-content p {
  font-size: var(--fs-body-sm) !important;
  font-weight: 400 !important;
  line-height: 1.72 !important;
}

/* ── 18. CONTACT PAGE — info box ── */
.info-block h3 {
  font-family: var(--font-primary) !important;
  font-size: 26px !important;
  font-weight: 700 !important;
}

.contact-card h2 {
  font-family: var(--font-primary) !important;
  font-size: 28px !important;
  font-weight: 700 !important;
}

.contact-info-item .text h5 {
  font-family: var(--font-primary) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
}

.contact-info-item .text p,
.contact-info-item .text a {
  font-family: var(--font-primary) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
}

.hotline-sub {
  font-family: var(--font-primary) !important;
  font-size: 14px !important;
}

/* ── 19. LOCATIONS PAGE — cards & spotlight ── */
.loc-card h4 {
  font-family: var(--font-primary) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
}

.loc-card p {
  font-family: var(--font-primary) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
}

.loc-distance {
  font-family: var(--font-primary) !important;
  font-weight: 700 !important;
}

.spotlight-content h3 {
  font-family: var(--font-primary) !important;
  font-weight: 800 !important;
}

.spotlight-content p {
  font-family: var(--font-primary) !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.78 !important;
}

.spotlight-meta-top {
  font-family: var(--font-primary) !important;
  font-weight: 700 !important;
}

.meta-item label {
  font-family: var(--font-primary) !important;
  font-weight: 700 !important;
}

.meta-item span {
  font-family: var(--font-primary) !important;
  font-weight: 600 !important;
}

.section-header h2 {
  font-family: var(--font-primary) !important;
  font-weight: 800 !important;
}

.section-header .sub-title {
  font-family: var(--font-primary) !important;
  font-weight: 700 !important;
}

/* ── 20. HOTEL BOOKING (index quick-form) ── */
.hotel-booking-wrapper .hotel-booking-box .section-title h2,
.from-box h2.sec-title {
  font-weight: 700 !important;
}

.hotel-booking-wrapper .hotel-booking-box p.text {
  font-size: var(--fs-body) !important;
  line-height: var(--lh-body) !important;
}

.call-item .content span {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 500;
}

/* ── 21. NEWS CARDS ── */
.news-card-items-2 .news-content h4 a {
  font-family: var(--font-primary) !important;
  font-weight: 600 !important;
}

.news-meta li {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 500;
}

.link-btn {
  font-family: var(--font-primary) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
}

/* ── 22. PORTFOLIO / ROOMS SECTION LARGE TITLE ── */
.portfolio__text {
  font-family: "Gilda Display", serif !important;
  font-size: clamp(40px, 8vw, 120px) !important; /* To cực đại và co giãn theo màn hình */
  font-weight: 400 !important;
  text-transform: uppercase !important;
  text-align: center !important;
  line-height: 1 !important;
  letter-spacing: 0.05em !important;
  color: #1a1f24 !important;
  margin-bottom: 60px !important;
  display: block !important;
  width: 100% !important;
}

/* ── 23. PRELOADER ── */
#preloader p {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 500;
}

/* ── 24. BACK TO TOP ── */
.back-to-top {
  font-family: var(--font-primary);
}

/* ════════════════════════════════════════════════
   RESPONSIVE TYPOGRAPHY
   ════════════════════════════════════════════════ */

/* Laptop ~1199px */
@media (max-width: 1199px) {
  :root {
    --fs-h1-hero:    46px;
    --fs-h1-page:    38px;
    --fs-h2-section: 34px;
    --fs-h3-card:    22px;
  }

  .spotlight-content h3 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem) !important;
  }
}

/* Tablet ~991px */
@media (max-width: 991px) {
  :root {
    --fs-h1-hero:    40px;
    --fs-h1-page:    34px;
    --fs-h2-section: 30px;
    --fs-h3-card:    20px;
    --fs-h4-card:    18px;
    --fs-body:       16px;
  }

  h1 {
    font-size: 40px !important;
    line-height: 1.12 !important;
  }

  h2 {
    font-size: 30px !important;
  }

  .contact-card h2,
  .info-block h3 {
    font-size: 24px !important;
  }
}

/* Mobile ~767px */
@media (max-width: 767px) {
  :root {
    --fs-h1-hero:    32px;
    --fs-h1-page:    28px;
    --fs-h2-section: 26px;
    --fs-h3-card:    20px;
    --fs-h4-card:    18px;
    --fs-body:       15px;
    --fs-body-sm:    15px;
  }

  h1 {
    font-size: 32px !important;
    line-height: 1.14 !important;
  }

  h2 {
    font-size: 26px !important;
  }

  h3 {
    font-size: 20px !important;
  }

  h4 {
    font-size: 18px !important;
  }

  .hotel-facilities-items .facilities-content h3 {
    font-size: 20px !important;
  }

  .contact-card h2 {
    font-size: 22px !important;
  }

  .info-block h3 {
    font-size: 22px !important;
  }

  .spotlight-content h3 {
    font-size: 26px !important;
  }

  /* Ensure nav stays tight on mobile */
  .main-menu nav ul li a {
    font-size: 14px !important;
  }

  /* Button không bị quá to */
  .theme-btn {
    font-size: 13px !important;
  }

  p {
    font-size: 15px !important;
  }
}

/* Small mobile ~479px */
@media (max-width: 479px) {
  h1 {
    font-size: 28px !important;
  }

  h2 {
    font-size: 22px !important;
  }

  .breadcrumb-wrapper h1 {
    font-size: 28px !important;
  }
}


/* ═══════════════════════════════════════════════════════
   JUPITER HOTEL — HERO MOBILE LAYOUT FIX
   Scope: index_jupiter.html hero only
   Reason: override main.css .hero-3 mobile card effect safely
   ═══════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  .hero-3 {
    margin: 0 !important;
    border-radius: 0 !important;
    padding-top: 118px !important;
    padding-bottom: 36px !important;
    min-height: 800px !important;
    overflow: hidden !important;
    background-position: center top !important;
    background-size: cover !important;
  }

  .hero-3::before {
    background: linear-gradient(
      to bottom,
      rgba(16, 22, 34, 0.52) 0%,
      rgba(16, 22, 34, 0.76) 48%,
      rgba(16, 22, 34, 0.9) 100%
    ) !important;
  }

  .hero-3 .container-fluid {
    padding-left: 22px !important;
    padding-right: 22px !important;
  }

  .hero-3 .row {
    --bs-gutter-y: 18px;
    align-items: center !important;
  }

  .hero-3 .hero-content {
    position: relative;
    z-index: 2;
    max-width: 100% !important;
  }

  .hero-3 .hero-content h1,
  .hero-3 .hero-title {
    max-width: 100% !important;
    margin-bottom: 24px !important;
    line-height: 1.12 !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }

  .hero-3 .hero-content .hero-button {
    display: flex !important;
    align-items: center !important;
    justify-content: flex !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
    margin-top: 0 !important;
  }

  .hero-3 .hero-content .hero-button .theme-btn {
    min-width: 145px !important;
    padding: 15px 18px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  .hero-3 .hero-image {
    position: relative;
    z-index: 2;
    margin-left: 0 !important;
    text-align: center !important;
  }

  .hero-3 .hero-image img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 350px !important;
    object-fit: contain !important;
  }
}

@media (max-width: 575px) {
  .hero-3 {
    padding-top: 104px !important;
    padding-bottom: 30px !important;
  }

  .hero-3 .container-fluid {
    padding-left: 16px !important;
    padding-right: 16px !important;
    padding-top: 10rem !important;
  }

  .hero-3 .hero-content h1,
  .hero-3 .hero-title {
    margin-bottom: 22px !important;
  }

  .hero-3 .hero-content .hero-button {
    gap: 10px !important;
  }

  .hero-3 .hero-content .hero-button .theme-btn {
    min-width: 142px !important;
    padding: 14px 14px !important;
    font-size: 11.5px !important;
  }

  .hero-3 .hero-image img {
    max-width: 94% !important;
    max-height: 320px !important;
  }
}

@media (max-width: 390px) {
  .hero-3 .hero-content .hero-button .theme-btn {
    width: 100% !important;
    min-width: 100% !important;
  }

  .hero-3 .hero-image img {
    max-height: 290px !important;
  }
}

/* ── 11. DESKTOP TYPOGRAPHY FIXES ── */
/* Sửa lỗi ngắt chữ "Jupiter" trên Desktop/Tablet (1366px) */
.hotel-booking-section .sec-title {
  word-break: keep-all !important;
  overflow-wrap: normal !important;
}

@media (min-width: 1200px) and (max-width: 1399px) {
  .hotel-booking-section .sec-title {
    font-size: 34px !important; /* Giảm nhẹ từ 38px để fit container 1366px */
  }
}
