/* ============================================
   TrueCare Hospitality - Common Base Styles
   Shared across all pages
   ============================================ */

/* ---------- CSS Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  color: #222222;
  background-color: #f4f8fb;
  line-height: 1.7;
  overflow-x: hidden;
  opacity: 0;
  animation: fadeInPage 0.4s ease-out forwards;
}

body.fade-out {
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Large monitor — give content a comfortable reading width */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

@media (min-width: 1800px) {
  .container {
    max-width: 1500px;
  }
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.3;
}

.section-title {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 0.5rem;
  color: #1e3a5f;
}

.section-subtitle {
  text-align: center;
  color: #555;
  font-size: 1.05rem;
  margin-bottom: 3rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 25px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #4fb6c2, #7bc67b);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(79, 182, 194, 0.4);
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(79, 182, 194, 0.5);
}

.btn-light {
  background: #ffffff;
  color: #1e3a5f;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-light:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

/* ---------- Page Banner (About & Contact) ---------- */
.page-banner {
  background: linear-gradient(135deg, #1e3a5f 0%, #2f6da5 50%, #4fb6c2 100%);
  color: #ffffff;
  text-align: center;
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  top: -80px;
  right: -80px;
}

.page-banner::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  bottom: -60px;
  left: -60px;
}

.page-banner h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.page-banner p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* ---------- Scroll Animations ---------- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Common Responsive ---------- */

/* Tablet (768px – 991px) */
@media (max-width: 991px) {
  .section-title {
    font-size: 1.9rem;
  }

  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 2.5rem;
  }

  .page-banner {
    padding: 140px 0 60px;
  }

  .page-banner h1 {
    font-size: 2rem;
  }
}

/* Mobile (481px – 767px) */
@media (max-width: 767px) {
  .section-title {
    font-size: 1.7rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }

  .page-banner {
    padding: 130px 0 50px;
  }

  .page-banner h1 {
    font-size: 1.7rem;
  }

  .page-banner p {
    font-size: 1rem;
  }
}

/* Small mobile (≤ 480px) */
@media (max-width: 480px) {
  .section-title {
    font-size: 1.4rem;
  }

  .section-subtitle {
    font-size: 0.9rem;
  }

  .page-banner {
    padding: 120px 0 44px;
  }

  .page-banner h1 {
    font-size: 1.4rem;
  }

  .page-banner p {
    font-size: 0.9rem;
  }

  .btn {
    padding: 12px 26px;
    font-size: 0.9rem;
  }
}

/* Heading Font overriding */
h1,
h2,
h3,
h4,
h5,
h6,
.section-title {
  font-family: "Playfair Display", serif;
}
