/* Google Fonts: Poppins (primary font), Inter (fallback/utility) & Cinzel (headings) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&family=Cinzel:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Brand Colors */
  --color-primary: #0e3d8b;
  /* Robbialac Blue */
  --color-secondary: #ff5e14;
  /* Orange/Red highlight */
  --color-accent: #ffb800;
  /* Warm yellow */
  --color-text-dark: #1e293b;
  /* Dark neutral slate-800 */
  --color-text-muted: #64748b;
  /* Muted slate-500 */
  --color-bg-light: #f8fafc;
  /* Light section backgrounds slate-50 */
  --color-border: #e2e8f0;
  /* Divider slate-200 */

  /* Fonts */
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Inter', sans-serif;
  --font-heading: 'Cinzel', serif;

  /* Rainbow line colors */
  --rainbow-gradient: linear-gradient(to right,
      #0e3d8b,
      #2ea64f,
      #ffd000,
      #ff5e14,
      #e61a27,
      #7a3194,
      #0e3d8b);
}

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

body {
  font-family: var(--font-primary);
  color: var(--color-text-dark);
  background-color: #f5eee9;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.site-picker-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
}

/* Site Picker Popup */
.site-picker-popup {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(28px, 4.4vw, 58px);
  background: #07112f url('../section/popup/bg.jpg') center center / cover no-repeat;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.65s ease, visibility 0s linear 0.65s;
}

.site-picker-popup.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.site-picker-panel {
  position: relative;
  width: min(100%, 1636px);
}

.site-picker-close {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  color: #000000;
  font-family: var(--font-secondary);
  font-size: 36px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.site-picker-close:hover,
.site-picker-close:focus-visible {
  transform: scale(1.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
  outline: none;
}

.site-picker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: clamp(24px, 3.2vw, 56px);
}

.site-picker-card {
  display: block;
  width: 100%;
  text-decoration: none;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.site-picker-card:hover,
.site-picker-card:focus-visible {
  transform: translateY(-6px);
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.22));
  outline: none;
}

.site-picker-card-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 508 / 723;
  object-fit: cover;
}

@media (max-width: 900px) {
  .site-picker-popup {
    align-items: flex-start;
    overflow-y: auto;
    padding: 76px 22px 32px;
  }

  .site-picker-panel {
    width: min(100%, 380px);
  }

  .site-picker-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .site-picker-card:hover,
  .site-picker-card:focus-visible {
    transform: translateY(-3px);
  }
}

/* Rainbow Line at Very Top */
.rainbow-top-bar {
  height: 5px;
  width: 100%;
  background: var(--rainbow-gradient);
  background-size: 200% 100%;
  animation: rainbow-flow 8s linear infinite;
  position: fixed;
  z-index: 1050;
}

@keyframes rainbow-flow {
  0% {
    background-position: 0% 0%;
  }

  100% {
    background-position: -200% 0%;
  }
}

/* Header Styles */
.site-header {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  position: fixed;
  width: 100%;
  z-index: 1000;
}

.header-container {
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 105px;
  /* Adjust header height to fit double-bar */
}

.header-left {
  display: flex;
  align-items: center;
}

.logo-link {
  display: inline-block;
}

.logo {
  height: 95px;
  width: auto;
  display: block;
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  flex-grow: 1;
  padding-left: 30px;
  gap: 30px;
}

.header-nav-column {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.header-top-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 28px;
  width: 100%;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}

.top-link {
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
}

.top-link i {
  font-size: 14px;
  color: var(--color-text-muted);
  transition: color 0.3s ease;
}

.top-link:hover,
.top-link:hover i {
  color: var(--color-primary);
}

.header-main-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  padding-top: 10px;
  gap: 12px;
}

.header-actions {
  display: flex;
  align-items: center;
}

/* Main Navigation */
.main-nav ul {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 24px;
}

.main-nav a {
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text-dark);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  transition: color 0.3s ease;
}

.main-nav a i {
  font-size: 10px;
  color: var(--color-text-muted);
  transition: transform 0.3s ease, color 0.3s ease;
}

.main-nav a:hover {
  color: var(--color-primary);
}

.main-nav a:hover i {
  color: var(--color-primary);
  transform: rotate(180deg);
}

/* Search Button */
.search-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-dark);
  font-size: 16px;
  transition: color 0.3s ease, transform 0.2s ease;
}

.search-btn:hover {
  color: var(--color-primary);
  transform: scale(1.1);
}

/* Primary Button (Header & Hero) */
.btn-primary {
  display: inline-flex;
  align-items: center;
  background: #0b3495;
  color: #ffffff;
  padding: 8px 8px 8px 28px;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(11, 52, 149, 0.2);
  gap: 12px;
  border: 2px solid transparent;
}

.btn-primary:hover {
  background: #082670;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(11, 52, 149, 0.3);
}

.btn-primary-circle {
  width: 26px;
  height: 26px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  overflow: hidden;
}

.btn-primary-circle svg {
  width: 12px;
  height: 12px;
  stroke: #0b3495;
  stroke-width: 3;
}

.btn-primary:hover .btn-primary-circle {
  transform: scale(1.05);
}

/* Premium fly-out, fly-in animation for hover */
.btn-primary:hover .btn-primary-circle svg {
  animation: arrow-fly 0.4s ease forwards;
}

@keyframes arrow-fly {
  0% {
    transform: translate(0, 0);
    opacity: 1;
  }

  49% {
    transform: translate(15px, -15px);
    opacity: 0;
  }

  50% {
    transform: translate(-15px, 15px);
    opacity: 0;
  }

  100% {
    transform: translate(0, 0);
    opacity: 1;
  }
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .header-container {
    padding: 0 20px;
    height: 90px;
  }

  .logo {
    height: 55px;
  }

  .main-nav ul {
    gap: 16px;
  }

  .header-main-bar {
    gap: 15px;
  }

  .btn-primary {
    padding: 8px 8px 8px 18px;
    font-size: 13px;
    gap: 1rem;
  }

  .btn-primary-circle {
    width: 32px;
    height: 32px;
  }
}
/* Hero Section Styles */
.hero-section {
  width: 100%;
  background-color: #f5eee9;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1920 / 1140;
  max-width: 1920px;
  display: block;
}

/* About Section Styles */
.about-section {
  width: 100%;
  background: #ffffff;
  padding: 64px 0 42px;
  overflow: hidden;
  position: relative;
}

.about-section::before,
.about-section::after {
  content: "";
  position: absolute;
  pointer-events: none;
  opacity: 0.9;
}

.about-section::before {
  top: -54px;
  left: -8px;
  width: 165px;
  height: 78px;
  background: radial-gradient(ellipse at top left, rgba(252, 197, 82, 0.8) 0 35%, transparent 36%);
}

.about-section::after {
  top: -58px;
  right: 0;
  width: 250px;
  height: 100px;
  background:
    radial-gradient(ellipse at 63% 0%, rgba(250, 128, 34, 0.28) 0 38%, transparent 39%),
    radial-gradient(ellipse at 100% 0%, rgba(160, 129, 215, 0.18) 0 36%, transparent 37%);
}

.about-container {
  max-width: 1500px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(28px, 4vw, 72px);
  padding: 90px 40px 0;
}

.about-content {
  flex: 0 1 46%;
  min-width: 0;
  padding-bottom: 42px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.about-title-img {
  width: min(100%, 713px);
  height: auto;
  display: block;
}

.about-copy {
  max-width: 560px;
  margin: 0 0 18px;
  color: #5f6370;
  font-size: 10px;
  line-height: 1.55;
  font-weight: 400;
}

.btn-more-about {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 30px;
  background-color: #ffffff;
  color: #0f294a;
  text-decoration: none;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 5px 4px 14px;
  border: 1px solid #dce3f0;
  border-radius: 999px;
  margin-bottom: 52px;
  box-shadow: 0 4px 12px rgba(15, 41, 74, 0.04);
  transition: background-color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.btn-more-about .arrow-circle {
  width: 20px;
  height: 20px;
  background-color: #0f2f6f;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: transform 0.3s ease;
}

.btn-more-about .arrow-circle i {
  font-size: 8px;
  transition: transform 0.3s ease;
}

.btn-more-about:hover {
  background-color: #f8fbff;
  border-color: #c9d4e7;
  transform: translateY(-1px);
}

.btn-more-about:hover .arrow-circle i {
  transform: translateX(2px);
}

.about-features {
  width: 100%;
  max-width: 713px;
  margin-top: 55px;
}

.about-features img {
  width: 100%;
  height: auto;
  display: block;
}

.about-feature-img {
  width: 165px;
  height: auto;
  display: block;
}

.about-image-wrap {
  flex: 1 1 54%;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

.about-right-img {
  width: min(100%, 873px);
  height: auto;
  display: block;
}

/* About Section Responsive */
@media (max-width: 1100px) {
  .about-container {
    flex-direction: column;
    align-items: center;
    gap: 28px;
    padding: 0 32px;
  }

  .about-content {
    width: 100%;
    min-width: 0;
    padding-bottom: 0;
  }

  .btn-more-about {
    margin-bottom: 34px;
  }

  .about-image-wrap {
    width: 100%;
    justify-content: center;
  }

  .about-right-img {
    width: min(700px, 100%);
  }
}

@media (max-width: 700px) {
  .about-section {
    padding: 46px 0 34px;
  }

  .about-container {
    padding: 0 20px;
  }

  .about-copy {
    font-size: 11px;
  }

  .about-features {
    margin-top: 32px;
  }

  .about-feature-img {
    max-width: 116px;
  }
}

/* Expert Services Section */
.expert-services-section {
  width: 100%;
  padding: 80px 0;
  background-color: #ffffff;
}

.expert-services-container {
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 40px;
}

.expert-services-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
  margin-top: 50px;
}

.expert-right-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.expert-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@media (max-width: 1024px) {
  .expert-services-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .expert-right-grid {
    grid-template-columns: 1fr;
  }
}

/* Solutions Section Styles */
.solutions-section {
  width: 100%;
  background-color: #c7dbf4;
  padding: 80px 0 40px 0;
}

.solutions-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-header {
  text-align: center;
  margin-bottom: 45px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 55px;
  font-weight: 400;
  color: #0E2157;
  line-height: 1.2;
  margin-bottom: 20px;
}

.section-subtitle {
  font-family: var(--font-primary);
  font-size: 24px;
  font-weight: 400;
  color: #252B37;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .solutions-section {
    padding: 50px 0 30px 0;
  }

  .section-title {
    font-size: 38px;
  }

  .section-subtitle {
    font-size: 18px;
  }
}

/* Solutions Swiper Slider Styles */
.solutions-swiper-container {
  position: relative;
  width: 100%;
  padding: 0;
  overflow: visible;
  /* Ensure arrows sitting outside container borders are visible */
}

.solutions-swiper {
  width: 100%;
  overflow: hidden;
  /* Hide cards overflowing the active slide area */
  padding: 15px 0 25px 0;
  /* Space for the slide-up animation */
}

.solutions-swiper .swiper-wrapper {
  overflow: visible;
  /* Swiper needs wrapper overflow visible to load items */
}

.solutions-swiper .swiper-slide {
  height: auto;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: 24px;
  display: flex;
  justify-content: center;
}

/* Lift on Hover Animation */
.solutions-swiper .swiper-slide:hover {
  transform: translateY(-10px);
}

.solution-card-img {
  width: 100%;
  height: auto;
  aspect-ratio: 340 / 679;
  display: block;
  border-radius: 24px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

/* Custom Navigation Buttons */
.solutions-swiper-container .swiper-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: #ffffff;
  color: #0e3d8b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  z-index: 10;
  cursor: pointer;
  border: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.solutions-swiper-container .swiper-nav-btn i {
  font-size: 16px;
}

/* Keep arrows visible while the section or controls are hovered/focused */
.solutions-section:hover .solutions-swiper-container .swiper-nav-btn,
.solutions-swiper-container:hover .swiper-nav-btn,
.solutions-swiper-container:focus-within .swiper-nav-btn {
  opacity: 1;
  pointer-events: auto;
}

.solutions-swiper-container .swiper-nav-btn:hover {
  background-color: #0e3d8b;
  color: #ffffff;
}

.solutions-swiper-container .swiper-nav-btn.prev-btn {
  left: 16px;
}

.solutions-swiper-container .swiper-nav-btn.next-btn {
  right: 16px;
}

/* Responsive adjustments for Navigation */
@media (max-width: 768px) {
  .solutions-swiper-container {
    padding: 0;
  }

  .solutions-swiper-container .swiper-nav-btn {
    opacity: 1 !important;
    pointer-events: auto !important;
    width: 42px;
    height: 42px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .solutions-swiper-container .swiper-nav-btn.prev-btn {
    left: 10px;
  }

  .solutions-swiper-container .swiper-nav-btn.next-btn {
    right: 10px;
  }
}

/* Visualizer Section Styles */
/* Colour Tools Section (Visualizer, BOQ Tool & Paint Calculator) */
.tools-section {
  width: 100%;
  background: #ffffff;
  padding: 48px 0 90px;
}

.tools-container {
  max-width: 1760px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: clamp(20px, 1.8vw, 35px);
}

.tools-card {
  display: block;
  border-radius: 24px;
  transition: transform 0.3s ease;
}

.tools-card:hover {
  transform: translateY(-6px) scale(1.01);
}

.tools-card-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
}

.tools-card-main {
  flex: 1 1 50%;
  min-width: 0;
}

.tools-column {
  flex: 1 1 50%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 1.7vw, 33px);
}

/* Tools Section Responsive */
@media (max-width: 900px) {
  .tools-section {
    padding: 32px 0 56px;
  }

  .tools-container {
    flex-direction: column;
    padding: 0 20px;
    gap: 20px;
  }

  .tools-card-main,
  .tools-column {
    width: 100%;
  }

  .tools-column {
    gap: 20px;
  }
}

/* Perfect Colour Section Styles */
.perfect-colour-section {
  width: 100%;
  background-color: #fdd8d2;
  padding: 80px 0 65px 0;
  overflow: hidden;
}

.perfect-colour-intro {
  max-width: 1760px;
  margin: 0 auto 62px;
  padding: 0 40px;
}

.perfect-colour-intro-img {
  width: min(100%, 1681px);
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Slider starts at the shared content left edge and bleeds off the right edge */
.perfect-colour-container {
  margin-left: max(40px, calc((100% - 1760px) / 2 + 40px));
}

/* Perfect Colour Swiper Slider Styles */
.perfect-colour-swiper-container {
  position: relative;
  width: 100%;
  padding: 0;
  overflow: visible;
  /* Ensure arrows sitting outside container borders are visible */
}

.perfect-colour-swiper {
  width: 100%;
  overflow: hidden;
  /* Hide cards overflowing the active slide area */
  padding: 15px 0 25px 0;
  /* Space for the slide-up animation */
}

.perfect-colour-swiper .swiper-wrapper {
  overflow: visible;
}

.perfect-colour-swiper .swiper-slide {
  height: auto;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: 24px;
  display: flex;
  justify-content: center;
}

/* Lift on Hover Animation */
.perfect-colour-swiper .swiper-slide:hover {
  transform: translateY(-10px);
}

.perfect-colour-card {
  display: block;
  width: 100%;
}

.perfect-colour-card-img {
  width: 100%;
  height: auto;
  aspect-ratio: 572 / 427;
  object-fit: cover;
  display: block;
  border-radius: 24px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

/* Custom Navigation Buttons */
.perfect-colour-swiper-container .swiper-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: #ffffff;
  color: #0e3d8b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  z-index: 10;
  cursor: pointer;
  border: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.perfect-colour-swiper-container .swiper-nav-btn i {
  font-size: 16px;
}

/* Hover State to show Arrows */
.perfect-colour-swiper-container:hover .swiper-nav-btn {
  opacity: 1;
  pointer-events: auto;
}

.perfect-colour-swiper-container .swiper-nav-btn:hover {
  background-color: #0e3d8b;
  color: #ffffff;
}

.perfect-colour-swiper-container .swiper-nav-btn.prev-btn {
  left: -25px;
  /* Offset to overlap the edge of the container slightly */
}

.perfect-colour-swiper-container .swiper-nav-btn.next-btn {
  right: 95px;
  /* Keep the arrow inside the viewport since the slider bleeds off-screen */
}

/* Responsive adjustments for Navigation */
@media (max-width: 768px) {
  .perfect-colour-intro {
    padding: 0 20px;
    margin-bottom: 36px;
  }

  .perfect-colour-container {
    margin-left: 20px;
  }

  .perfect-colour-swiper-container .swiper-nav-btn {
    opacity: 1 !important;
    pointer-events: auto !important;
    width: 42px;
    height: 42px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .perfect-colour-swiper-container .swiper-nav-btn.prev-btn {
    left: 10px;
  }

  .perfect-colour-swiper-container .swiper-nav-btn.next-btn {
    right: 10px;
  }
}

/* Shop Online Section Styles */
.shop-online-section {
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 0;
}

.shop-online-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1919 / 609;
  max-width: 1400px;
  display: block;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .shop-online-section {
    padding: 30px 0;
  }

  .shop-online-img {
    padding: 0 20px;
  }
}

/* Follow Us Section Styles */
.follow-us-section {
  width: 100%;
  padding: 90px 0 100px 0;
}

.follow-us-container {
  max-width: 1700px;
  margin: 0 auto;
  padding: 0 40px;
}

.follow-us-intro {
  margin-bottom: 46px;
}

.follow-us-intro-img {
  width: 384px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.follow-us-swiper-container {
  position: relative;
  width: 100%;
  padding: 0;
}

.follow-us-swiper {
  width: 100%;
  overflow: hidden;
  padding: 10px 0 20px 0;
}

.follow-us-card {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.follow-us-card:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.follow-us-card-img {
  width: 100%;
  height: auto;
  aspect-ratio: 300 / 375;
  display: block;
  border-radius: 24px;
  transition: transform 0.5s ease;
}

.follow-us-card:hover .follow-us-card-img {
  transform: scale(1.05);
}

.follow-us-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(14, 61, 139, 0.6);
  /* Brand blue overlay */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.follow-us-card:hover .follow-us-overlay {
  opacity: 1;
}

.follow-us-overlay i {
  color: #ffffff;
  font-size: 32px;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.follow-us-card:hover .follow-us-overlay i {
  transform: scale(1);
}

@media (max-width: 768px) {
  .follow-us-section {
    padding: 40px 0 60px 0;
  }

  .follow-us-container {
    padding: 0 20px;
  }

  .prefooter-section {
    padding: 40px 0 60px 0;
  }

  .prefooter-container {
    padding: 0 20px;
  }
}

/* Prefooter Section Styles */
.prefooter-section {
  width: 100%;
  /*! background-color: #f5eee9; */
  background-image: url('../imgs/prefooter/foooter.png');
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: 100% auto;
  min-height: 48.4vw;
  /* Aspect ratio of foooter.png */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 80px 0 100px 0;
  box-sizing: border-box;
  margin-top: -352px;
  /*   z-index: -7; */
  position: relative;
}

.prefooter-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.prefooter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  justify-content: center;
  align-items: center;
}

.prefooter-card {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.prefooter-card:hover {
  transform: translateY(-6px) scale(1.02);
}

.prefooter-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
}

/* Aspect ratios for prefooter images to avoid layout shifts */
.prefooter-grid .prefooter-card:nth-child(1) .prefooter-img {
  aspect-ratio: 335 / 156;
}

.prefooter-grid .prefooter-card:nth-child(2) .prefooter-img {
  aspect-ratio: 362 / 156;
}

.prefooter-grid .prefooter-card:nth-child(3) .prefooter-img {
  aspect-ratio: 335 / 156;
}

.prefooter-grid .prefooter-card:nth-child(4) .prefooter-img {
  aspect-ratio: 354 / 156;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .prefooter-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 576px) {
  .prefooter-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    max-width: 380px;
    margin: 0 auto;
  }
}

/* Back to Top Button Styles */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--color-primary);
  /* Brand blue */
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(14, 61, 139, 0.3);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.back-to-top i {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--color-secondary);
  /* Highlight orange on hover */
  box-shadow: 0 6px 18px rgba(255, 94, 20, 0.4);
}

.back-to-top:hover i {
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }

  .back-to-top i {
    font-size: 16px;
  }
}