/**
 * Google Fonts Import
 */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Montserrat:wght@600;700&display=swap');

/**
 * Global variables definitions
 */
:root {
  --primary-color: #222840;
  --primary-color-light: #343d5e;
  --secondary-color: #bec2e2;
  --highlight-color: #cba73d;
  --highlight-color-hover: #e0bb5a;
  --highlight-text-color: #000000;
  --body-bg-color: #f7f7f7;
  --text-color: #333;
  --text-color-light: #555;
  --white-color: #ffffff;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --border-color: #e0e0e0;
}

/**
 * Keyframe Animations
 */
@keyframes hero-zoom {
  0% {
    background-size: 100% auto;
  }
  100% {
    background-size: 105% auto;
  }
}


/**
 * General page and elements layout
 */
body {
  background-color: var(--body-bg-color);
  font-family: 'Lato', sans-serif;
  font-size: 1em;
  margin: 0;
  color: var(--text-color);
}

body.mobile-nav-active {
    overflow: hidden;
}

p {
  letter-spacing: .02rem;
  line-height: 1.6rem;
  color: var(--text-color-light);
}

h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--primary-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }

a {
  color: var(--highlight-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--highlight-color-hover);
  text-decoration: none;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

img {
  max-width: 100%;
  height: auto;
}

.top-container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.page-section {
  padding: 50px 0;
}

/**
 * Header
 */
.header-bar {
  background-color: var(--white-color);
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
}

.header-bar .top-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.header-contact-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-contact-info .logo {
  height: 60px;
  width: auto;
}

.header-contact-info .text-box {
  box-shadow: none;
  padding: 0;
  margin: 0;
  background: none;
}

.header-contact-info h1 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.header-contact-info p {
  margin: 2px 0;
  font-size: 0.9rem;
  color: var(--text-color-light);
}

/**
 * Navigation bar
 */
.navbar {
  background-color: var(--primary-color);
  box-shadow: 0 4px 8px var(--shadow-color);
  border-bottom: 4px solid var(--highlight-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: center;
}

.navbar ul.nav-menu-desktop {
  display: flex;
  justify-content: center;
}

.nav-toggle {
    display: none;
}

.nav-menu-mobile {
    display: none;
}

.navbar li a {
  display: block;
  padding: 15px 25px;
  text-align: center;
  text-decoration: none;
  color: var(--secondary-color);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.navbar li a.active,
.navbar li a:hover {
  background-color: var(--highlight-color);
  color: var(--primary-color);
}

/**
 * Hero Section
 */
.hero-section {
    position: relative;
    color: var(--white-color);
    overflow: hidden; /* Hide the parts of the image that go beyond the container */
}

.hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../images/hero_original.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content {
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 {
    color: var(--white-color);
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-underline {
  display: none; /* Replaced by navbar border */
}

/**
 * Main content
 */
.text-box {
  background-color: var(--white-color);
  box-shadow: 0 4px 15px var(--shadow-color);
  border-radius: 8px;
  margin-bottom: 40px;
  padding: 40px;
  overflow: hidden;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.content-text h1, .content-text h2 {
  border-bottom: 3px solid var(--highlight-color);
  padding-bottom: 15px;
  margin-top: 0;
}

.content-icon {
    text-align: center;
}

.content-icon .fa-solid {
  font-size: 10rem;
  color: var(--primary-color-light);
}

.action-button-container {
  margin-top: 30px;
}

.action-button {
  background-color: var(--highlight-color);
  border: none;
  color: var(--highlight-text-color);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  padding: 15px 35px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.action-button:hover {
  background-color: var(--highlight-color-hover);
  color: var(--highlight-text-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.why-us-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.why-us-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.why-us-list .fa-check {
    color: var(--highlight-color);
    font-size: 1.2rem;
    margin-top: 3px; /* Small top margin to align with the text baseline */
    flex-shrink: 0; /* Prevent icon from shrinking */
    width: 20px; /* Give icon a fixed width to align text */
}

/**
 * Offer Grid Section
 */
.offer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.offer-card {
    background-color: var(--white-color);
    padding: 40px 30px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.offer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.offer-icon .fa-solid {
    font-size: 4rem;
    color: var(--highlight-color);
    margin-bottom: 20px;
}

.offer-card h3 {
    margin-bottom: 15px;
}

/**
 * CTA Section
 */
.cta-section {
    background-color: var(--primary-color);
    color: var(--white-color);
    text-align: center;
}

.cta-section h2 {
    color: var(--white-color);
}

.cta-section p {
    color: var(--secondary-color);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

/**
 * Section Bar
 */
.section-bar {
  background-color: var(--primary-color);
  text-align: center;
  padding: 20px 0;
}

.section-bar .section-title {
  margin: 0;
  color: var(--white-color);
  font-size: 2rem;
}

/**
 * Partners Section
 */
.partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding: 30px 0;
}

.partner-box {
  width: 150px;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  filter: grayscale(100%);
  opacity: 0.7;
}

.partner-box:hover {
  transform: scale(1.1);
  filter: grayscale(0%);
  opacity: 1;
}

/**
 * Footer
 */
.footer {
  background-color: var(--primary-color);
  color: var(--third-color);
  padding: 50px 0;
  border-top: 4px solid var(--highlight-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.footer-column h3 {
  font-size: 1.2em;
  color: var(--white-color);
  border-bottom: 2px solid var(--highlight-color);
  padding-bottom: 10px;
  margin-top: 0;
  margin-bottom: 20px;
}

.footer-column p, .footer-column li {
  font-size: 0.9em;
  color: var(--secondary-color);
  margin-bottom: 12px;
}

.footer-column a {
  color: var(--secondary-color);
  transition: color 0.3s ease;
}
.footer-column a:hover {
  color: var(--white-color);
}

.footer-column .fa-solid {
  width: 25px;
  font-size: 1.1em;
  color: var(--highlight-color);
}

/**
 * Modal
 */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}

.modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  border: none;
  border-top: 5px solid var(--highlight-color);
  width: 90%;
  max-width: 600px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  border-radius: 8px;
  animation: slide-down 0.5s ease-out;
}

.modal-header {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
}

.modal-body {
  padding: 20px;
}

.close {
  color: var(--text-color-light);
  font-size: 32px;
  font-weight: normal;
}

.close:hover,
.close:focus {
  color: var(--text-color);
  text-decoration: none;
  cursor: pointer;
}

@keyframes slide-down {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/**
 * Offer Page (Accordion)
 */
.offer-category {
  background-color: var(--white-color);
  border: 1px solid var(--border-color);
  color: var(--primary-color);
  cursor: pointer;
  padding: 18px;
  width: 100%;
  text-align: left;
  outline: none;
  transition: all 0.4s;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  margin-top: 10px;
  border-radius: 5px;
}

.offer-category .icon {
  width: 20px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.offer-category.active .icon {
    transform: rotate(45deg);
}

.offer-category:hover {
  background-color: var(--primary-color-light);
  color: var(--white-color);
  border-color: var(--primary-color-light);
}

.offer-category.active {
  background-color: var(--primary-color);
  color: var(--highlight-color);
}

.offer-details {
  padding: 0 18px;
  background-color: var(--white-color);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 5px 5px;
}

.offer-details ul {
  list-style-type: '✓';
  padding: 20px 40px;
}

.offer-details li {
  margin-bottom: 8px;
  padding-left: 10px;
}

/**
 * Contact Page
 */
.contact-section {
  background-color: var(--white-color);
  padding: 40px 20px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.contact-column h2, .contact-column h3 {
  border-bottom: 3px solid var(--secondary-color);
  padding-bottom: 15px;
}

.contact-column h3 {
    margin-top: 30px;
}

.contact-info p {
  font-size: 1em;
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.contact-info .fa-solid {
  margin-top: 5px;
  width: 20px;
  font-size: 1.2em;
  color: var(--primary-color);
}

.map-container {
  width: 100%;
  height: 450px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  overflow: hidden; /* Ensure iframe corners are rounded */
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/**
 * Responsive Design
 */
@media (min-width: 768px) {
  .content-grid {
    grid-template-columns: 2fr 1fr;
  }

  .text-box.content-grid:nth-child(2n) .content-icon {
    order: -1;
  }

  .offer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1.5fr 1.5fr;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 992px) {
    .header-bar .top-container {
        justify-content: center;
    }
}

@media (max-width: 767px) {
  h1 { font-size: 2rem; }
  .hero-content h1 { font-size: 2.5rem; }
  h2 { font-size: 1.7rem; }
  h3 { font-size: 1.2rem; }

  .navbar ul.nav-menu-desktop {
    display: none;
  }

  .nav-toggle {
    display: block;
    position: fixed;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1002;
    padding: 10px;
  }

  .hamburger {
    display: block;
    width: 30px;
    height: 3px;
    background: var(--highlight-color);
    position: relative;
    transition: background 0.3s ease-in-out;
  }

  .hamburger::before,
  .hamburger::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 3px;
    background: var(--highlight-color);
    transition: transform 0.3s ease-in-out;
  }

  .hamburger::before { top: -10px; }
  .hamburger::after { bottom: -10px; }

  .nav-toggle.active .hamburger {
      background: transparent;
  }

  .nav-toggle.active .hamburger::before {
      transform: rotate(45deg) translate(6px, 8px);
  }

  .nav-toggle.active .hamburger::after {
      transform: rotate(-45deg) translate(6px, -8px);
  }

  .nav-menu-mobile {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
  }

  .nav-menu-mobile.active {
      transform: translateX(0);
  }

  .nav-menu-mobile ul {
      flex-direction: column;
      text-align: center;
  }

  .nav-menu-mobile li {
      margin: 20px 0;
  }

  .nav-menu-mobile a {
      font-size: 1.8rem;
      color: var(--white-color);
      transition: color 0.3s ease;
  }

  .nav-menu-mobile a:hover,
  .nav-menu-mobile a.active {
      color: var(--highlight-color);
  }

  .header-bar {
      display: none;
  }

  .navbar .top-container {
      justify-content: center;
  }

  .content-icon {
    padding: 20px 0;
  }
  .content-icon .fa-solid {
      font-size: 6rem;
  }
}