/* -------------------------------------------------------------
   Kelvin Scale - New Design
   ------------------------------------------------------------- */
@font-face {
  font-family: 'Ibrand';
  src: url('../fonts/ibrand/Ibrand-Regular.woff2') format('woff2'),
    url('../fonts/ibrand/Ibrand-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --ks-primary: #006e9e;
  --ks-light-bg: #f4fbff;
  --ks-blue-light: #dbeafe;
  --ks-green-light: #d1fae5;
  --ks-pink-light: #fce7f3;
  --ks-yellow: #fde047;
  --font-main: 'Ibrand', sans-serif;
}

html,
body {
  font-family: var(--font-main);
  color: #333;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  padding-top: 10px;
}

body.modal-open,
html.modal-open {
  overflow: hidden !important;
  height: 100vh !important;
  width: 100% !important;
}

p {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 400;
  color: #111;
}

a {
  text-decoration: none;
}

/* NAVBAR */
.navbar {
  background-color: #fff;
  z-index: 1020;
  /* Ensure it stays above bento blobs and images */
  transition: all 0.3s ease;
}

.navbar.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.nav-link {
  font-size: 1rem;
  color: #144157 !important;
}

.nav-link:hover {
  color: var(--ks-primary) !important;
}

.navbar-toggler .close-icon {
  display: none !important;
}

.navbar-toggler[aria-expanded="true"] .hamburger-icon {
  display: none !important;
}

.navbar-toggler[aria-expanded="true"] .close-icon {
  display: block !important;
  font-size: 1.8rem;
  color: #144157;
}

.navbar-toggler .hamburger-icon {
  font-size: 1.8rem;
  color: #144157;
}

.navbar-toggler:hover {
  opacity: 0.8;
}

.product-item.icecreams {
  margin-top: 0;
}

/* ANNOUNCEMENT BAR */
.announcement-bar {
  background-color: #f59e0b;
  /* Kelvin Orange */
  width: 100%;
}

.announcement-text {
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.announcement-bar .text-btn {
  background-color: #fff !important;
  color: #f59e0b !important;
  border: none !important;
  font-weight: bold;
}

/* HERO SECTION */
.hero-section {
  position: relative;
  width: 100%;
  /* margin-top: 76px; Removed fixed nav offset */
  overflow: hidden;
}

.hero-section img {
  width: 100%;
  height: auto;
}

/* Overlay to ensure text readability if needed, though mockup looks bright */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 100%);
  z-index: 1;
}

.hero-subtitle {
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: var(--ks-primary);
  text-transform: uppercase;
  font-weight: 800;
}

.hero-title {
  font-size: 5rem;
  line-height: 1;
  font-weight: 900;
  color: var(--ks-primary);
  /* Mockup has blue title text */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* HERO SECTION */
.hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  /* background: rgba(0,0,0,0.05);  Optional subtle dimming */
}

.hero-title {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 800;
  font-size: 4rem;
  line-height: 0.9;
  color: #003F66;
  text-transform: uppercase;
  letter-spacing: -2px;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #003F66;
  letter-spacing: 4px;
  text-transform: uppercase;
}

@media (min-width: 992px) {
  .hero-title {
    font-size: 7.5rem;
    letter-spacing: -4px;
  }

  .hero-subtitle {
    font-size: 1.4rem;
  }
}

/* TICKER */
.ks-ticker {
  white-space: nowrap;
}

.ks-ticker-light-blue {
  background-color: #E0F2FE !important;
}

.ks-ticker-track {
  animation: scroll 20s linear infinite;
  white-space: nowrap;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.ticker-item {
  color: #006E9E !important;
  /* Primary Blue */
  letter-spacing: 0.5px;
}

.ks-ticker-blue {
  background-color: #e0f2fe;
  /* Light Blue BG */
}

/* SECTIONS */
.section-padding {
  padding: 4rem 0;
}

.section-heading {
  font-size: 2.5rem;
  line-height: 1.1;
  color: #006e9e;
}

.gallery-heading {
  color: #003F66 !important;
  font-size: 2.5rem !important;
}

.section-subheading {
  font-size: 1.8rem;
  color: #296aa4;
  text-align: center;
}

/* FEATURES */
/* FEATURES */
.feature-card {
  transition: transform 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.08);
  /* Lighter border */
  background-color: #fff;
  z-index: 1;
  /* Ensure content is above bg */
}

.feature-card:hover {

  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.feature-title {
  font-size: 1.5rem;
  /* Larger title */
  line-height: 1.1;
  color: #006e9e;
  letter-spacing: -0.5px;
}

/* Feature Blobs */
.feature-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.8;
  z-index: 0;
}

/* Yellow Card */
.blob-yellow {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, #fde047 0%, rgba(253, 224, 71, 0) 70%);
  bottom: -50px;
  right: -50px;
  opacity: 0.6;
}

.feature-card-yellow {
  background: #fff;
}

/* Blue Card */
.feature-card-blue {
  background: #fff;
}

.blob-blue {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, #e0f2fe 0%, rgba(224, 242, 254, 0) 70%);
  bottom: -50px;
  right: -30px;
  opacity: 0.7;
}

.display-3 {
  font-size: 3rem;
}

.display-5 {
  font-size: 2rem;
}

/* Green Card */
.feature-card-green {
  background: #fff;
}


/* Purple Card */
.feature-card-purple {
  background: #fff;
}

.blob-purple {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #f3e8ff 0%, rgba(243, 232, 255, 0) 70%);
  bottom: -80px;
  right: -80px;
  opacity: 0.8;
}

/* PRODUCTS */
.product-card {
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
}

.transition-hover {
  transition: all 0.3s ease;
}

/* PRODUCTS PAGE SPECIFIC */
.filter-pill {
  border: none;
  color: #006E9E;
  border-radius: 8px;
  padding: 8px 24px;
  font-size: 0.9rem;
  font-weight: 500;
  background-color: #f0f9ff;
  transition: all 0.3s;
}

.filter-pill:hover,
.filter-pill.active {
  background-color: #006E9E !important;
  color: #fff !important;
}

.product-img-wrapper {
  display: flex !important;
  /* Ensure it overrides previous redundant rules */
  align-items: center;
  justify-content: center;
  aspect-ratio: 1/1.1;
  border-radius: 2rem !important;
  overflow: hidden;
  padding: 0 !important;
}

.full-product-card {
  transition: transform 0.3s;
  text-align: left;
}

.full-product-card:hover {
  transform: translateY(-8px);
}

.full-product-card h4 {
  color: #003F66 !important;
  font-size: 1.3rem;
  margin-top: 1.5rem;
}

.full-product-card p {
  color: #555;
  line-height: 1.5;
  font-size: 0.9rem;
}


.product-card a {
  color: #006e9e;
  width: 100%;
  display: block;
  padding: 15px 10px;
  font-weight: 500;
  font-size: 1.1rem;
}

.product-img-wrapper img {
  max-height: 100%;
  object-fit: cover;
}

.blue-tinth {
  background-color: #e0f2fe;
}

.yellow-tinth {
  background-color: #fef9c3;
}

.pink-tinth {
  background-color: #fce7f3;
}

/* CUPS GRID */
.cup-card {
  background-color: #f8fbff;
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.cup-card:hover {
  background-color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* TESTIMONIALS */
.bg-light-gradient {
  background: linear-gradient(180deg, #eef9ff 0%, #d4f0ff 100%);
}

.review-card {
  padding: 1.5rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
  font-size: 0.9rem;
  border: 1px solid #eee;
}

.floating-anim {
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0);
  }
}

/* GALLERY & MAP */
.object-fit-cover {
  object-fit: cover;
}

.map-card {
  background: linear-gradient(180deg, #B8E7FF 0%, #FFFFFF 100%) !important;
  border-radius: 2.5rem !important;
}

.map-card h1,
.map-card h3,
.map-card p {
  color: #003F66 !important;
  font-family: inherit;
}

.map-card h1 {
  line-height: 1.1;
  letter-spacing: -1px;
  font-size: 38px;
}

.map-card .btn-directions {
  background-color: #003F66 !important;
  color: #fff !important;
  transition: all 0.3s ease;
  border-radius: 12px !important;
  padding: 15px 10px !important;
  padding: 7px !important;
  margin: 10px 0 0;
}

.map-card .btn-directions:hover {
  opacity: 0.9;
  color: #fff !important;
  transform: translateY(-2px);
  padding: 7px !important;
  margin: 10px 0 0;
}

.map-img {
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s ease;
}

.map-card:hover .map-img {
  transform: scale(1.25) rotate(-2deg);
}

/* BUTTONS */
.btn-primary {
  background-color: #003F66;
  border-color: var(--ks-primary);
  padding: 0.8rem 1rem !important;
  width: 125px;
  border-radius: 5px !important;
}

.btn-primary:hover {
  background-color: #005a82;
  border-color: #005a82;
}

/* FORM */
.form-control:focus {
  box-shadow: none;
  border-color: var(--ks-primary);
}

.star-rating {
  font-style: normal;
  transition: all 0.2s;
  color: #ccc;
}

.star-rating:hover,
.star-rating.text-warning {
  color: #f59e0b !important;
}

/* FOOTER */
footer {
  background-color: #f8f9fa !important;
  color: #333;
  position: relative;
  border-top: 1px solid #eee;
}

.footer-column-header {
  font-family: inherit;
  font-weight: 500;
  font-size: 1.5rem;
  color: #111;
  margin-bottom: 1.5rem;
}

.footer-link {
  color: #666 !important;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 400;
  transition: color 0.3s;
}

.footer-link:hover {
  color: #006E9E !important;
}

.footer-contact-info {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.social-icons-wrapper {
  display: flex;
  gap: 15px;
  margin-top: 5px;
}

.social-circle {
  width: 42px;
  height: 42px;
  background-color: #003F66;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  font-size: 1.2rem;
  transition: transform 0.3s, background-color 0.3s;
  text-decoration: none;
}

.social-circle:hover {
  transform: translateY(-3px);
  background-color: #005a82;
}

.footer-column {
  position: relative;
}

@media (min-width: 992px) {
  .footer-column:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 1px;
    background-color: #ddd;
  }
}

.footer-big-logo-container {
  margin-top: 10px;
  padding-top: 1rem;
  margin-bottom: 20px;
}

.footer-bottom-logo {
  max-width: 500px;
  width: 100%;
  height: auto;
}

.footer-copyright {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #999;
}


.text-btn {
  color: #006E9E !important;
  border-radius: 5px !important;
}

.review-text {
  color: #505050 !important;
  font-weight: 400 !important;
}

.text-primary {
  color: #003F66 !important;
  font-weight: 400 !important;
}

.footer-email {
  max-width: 240px;
  margin: 0 auto;
}

.footer-email a {
  color: #666 !important
}

.footer-socials {
  max-width: 240px;
  margin-left: auto;
}

/* Contact popup styling */
.ks-contact-modal {
  border-radius: 24px;
  border: 0;
  padding: 10px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.ks-contact-modal .modal-body {
  padding: 0px 40px 30px;
}

.ks-input {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  background-color: #f8fafc;
  transition: all 0.2s ease;
}

.ks-input:focus {
  background: #fff;
  border-color: var(--ks-primary);
  box-shadow: 0 0 0 4px rgba(0, 110, 158, 0.1);
}

.ks-submit-btn {
  border-radius: 12px;
  font-weight: 600;
  padding: 14px !important;
  background-color: var(--ks-primary) !important;
  border: none !important;
  transition: transform 0.2s ease;
}

.ks-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 110, 158, 0.2);
}

.ks-contact-modal .modal-body .form-label {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: #475569;
}

/* Make the backdrop feel like screenshot */
.modal-backdrop.show {
  opacity: 0.6;
}

/* Responsive Modal Width */
.modal-dialog {
  max-width: 500px;
  margin: 1.75rem auto;
}

@media (max-width: 576px) {
  .modal-dialog {
    margin: 1rem;
    max-width: none;
  }

  .ks-contact-modal .modal-body {
    padding: 0px 20px 25px;
  }
}