
/* =========================================
   GLOBAL STYLES
========================================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #062640;
  --navy-dark: #042239;
  --green: #35c65b;
  --yellow: #f7ed50;
  --white: #ffffff;
  --text: #12253a;
  --muted: #66717c;
  --border: #dedede;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--white);
  color: var(--text);
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

/* =========================================
   TOP UTILITY HEADER
========================================= */

.top-header {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 8%;
  background: #ffffff;
  border-top: 1px solid #ddd;
}

.top-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 13px;
  font-weight: 600;
  color: #102a41;
}

.top-links a:hover {
  color: #2087d8;
}

/* =========================================
   NAVBAR
========================================= */

.navbar {
  height: 73px;
  background: var(--navy-dark);

  display: flex;
  align-items: center;

  padding: 0 18%;
  gap: 38px;

  position: relative;
  z-index: 100;

  overflow: visible;
}

.brand {
  color: white;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -2px;
  margin-right: 8px;
}

.brand span {
  font-family: "Comfortaa", sans-serif;
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--yellow);
}

.nav-dropdown {
  display: flex;
  align-items: center;
  gap: 7px;
}

.nav-dropdown::after {
  content: "⌄";
  font-size: 17px;
}

/* =========================================
   HERO SECTION
========================================= */

.hero {
  position: relative;
  min-height: 650px;
  background: var(--navy);
  overflow: hidden;
}

/* =========================================
   HORIZONTAL HERO CAROUSEL
========================================= */

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;

  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;

  transform: translateX(100%);

  transition:
    transform 1s cubic-bezier(0.65, 0, 0.35, 1);

  z-index: 1;
}

.hero-slide.active {
  transform: translateX(0);
  z-index: 2;
}

.hero-slide.previous {
  transform: translateX(-100%);
  z-index: 1;
}

/* Dark overlay */

.hero-slide::after {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(3, 29, 50, 0.98) 0%,
      rgba(3, 29, 50, 0.91) 35%,
      rgba(3, 29, 50, 0.65) 60%,
      rgba(3, 29, 50, 0.50) 100%
    );
}

/* Replace these with your own licensed images. */

.hero-slide:nth-child(1) {
  background-image: url(
    "https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=2000&q=85"
  );
}

.hero-slide:nth-child(2) {
  background-image: url(
    "https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=2000&q=85"
  );
}

.hero-slide:nth-child(3) {
  background-image: url(
    "https://images.unsplash.com/photo-1521737711867-e3b97375f902?auto=format&fit=crop&w=2000&q=85"
  );
}

/* =========================================
   HERO CONTENT
========================================= */

.hero-content {
  position: relative;
  z-index: 5;

  max-width: 1110px;
  min-height: 500px;

  margin: 0 auto;
  padding: 100px 0 0;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 40px;
}

/* =========================================
   HERO PROMOTIONAL TEXT
========================================= */

.hero-copy {
  width: 48%;
  padding-top: 60px;
  color: white;
}

.hero-copy h1 {
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -1.8px;
  margin-bottom: 24px;
}

.hero-copy h1 .highlight {
  color: var(--yellow);
}

.hero-copy p {
  font-size: 17px;
  line-height: 1.6;
  font-weight: 600;
  max-width: 440px;
  margin-bottom: 30px;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  padding: 14px 28px;
  color: white;
  border: 2px solid white;
  border-radius: 30px;
  font-weight: 700;
  background: transparent;
  transition: all 0.25s ease;
}

.hero-button:hover {
  background: white;
  color: var(--navy);
}

/* =========================================
   LOGIN CARD
========================================= */

.login-card {
  width: 315px;
  min-height: 370px;

  background: #f8f8f8;
  color: #3d3d3d;

  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.25);

  position: absolute;

  left: 50%;
  transform: translateX(-50%);

  top: -65px;

  z-index: 40;

  padding: 105px 14px 16px;

  overflow: visible;
}

/* =========================================
   LOGIN HEADING
========================================= */

.login-heading {
  position: relative;

  width: 100%;

  display: flex;
  flex-direction: column;
  align-items: center;

  text-align: center;

  margin: 0 0 25px;
}

/* =========================================
   MWEB LOGO
========================================= */

.login-logo img {
  position: absolute;
  z-index: 300;

  width: 90px;
  height: 90px;

  object-fit: contain;

  top: 50px;
  left: 50%;

  border-radius: 50%;

  transform: translateX(-50%);

  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25));
}

/* =========================================
   MWEB TITLE
========================================= */

.login-heading h2 {
  position: relative;

  margin: 0;

  font-size: 21px;
  line-height: 1.2;

  font-weight: 700;

  color: var(--green);

  z-index: 41;
}

/* =========================================
   LOGIN FORM
========================================= */

.login-form {
  position: relative;

  z-index: 41;

  display: flex;
  flex-direction: column;

  gap: 13px;
}

.input-group {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.input-icon {
  width: 45px;
  min-width: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eeeeee;
  border: 1px solid #d4d4d4;
  border-right: none;
  font-size: 17px;
}

.input-group input {
  min-width: 0;
  width: 100%;
  height: 38px;
  border: 1px solid #d4d4d4;
  border-radius: 0;
  background: white;
  color: #444;
  padding: 8px 10px;
  font-size: 13px;
  outline: none;
}

.input-group input:focus {
  border-color: #2087d8;
  box-shadow: 0 0 0 1px #2087d8;
}

.password-wrapper {
  display: flex;
  flex: 1;
  min-width: 0;
}

.password-wrapper input {
  flex: 1;
  min-width: 0;
}

.password-toggle {
  width: 40px;
  height: 38px;
  background: white;
  border: 1px solid #d4d4d4;
  border-left: none;
  color: #555;
  font-size: 16px;
}

.password-toggle:hover {
  background: #eeeeee;
}

/* =========================================
   LOGIN OPTIONS
========================================= */

.login-options {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  margin-top: 3px;
}

.option-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.option-row input {
  width: 13px;
  height: 13px;
  accent-color: var(--green);
}

.option-row label {
  cursor: pointer;
}

.forgot-password {
  color: #2087d8;
  text-decoration: none;
}

.forgot-password:hover {
  text-decoration: underline;
}

.forgot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* =========================================
   LOGIN BUTTON
========================================= */

.login-button {
  height: 38px;
  width: 90px;
  align-self: center;
  border: none;
  border-radius: 3px;
  background: var(--green);
  color: white;
  font-size: 13px;
  margin-top: 4px;
  transition: background 0.2s ease;
}

.login-button:hover {
  background: #26aa4a;
}

.login-button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

/* =========================================
   SECURITY FOOTER
========================================= */

.login-security {
  border-top: 1px solid #e6e6e6;
  margin-top: 18px;
  padding-top: 16px;
  text-align: center;
  font-size: 12px;
  color: #444;
}

.security-icon {
  color: var(--green);
  margin-right: 4px;
}

.success {
  display: none;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #1e9c43;
  margin-top: 12px;
}

.error-message {
  display: none;
  text-align: center;
  font-size: 12px;
  color: #d93025;
  margin-top: 10px;
}

/* =========================================
   HERO SLIDE INDICATORS
========================================= */

.slide-indicators {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  left: max(calc((100% - 1110px) / 2), 30px);
  bottom: 90px;
  z-index: 8;
}

.slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: #a5b4c2;
  padding: 0;
  transition: width 0.3s ease;
}

.slide-dot.active {
  width: 28px;
  border-radius: 10px;
  background: white;
}

/* =========================================
   COPYRIGHT SECTION
========================================= */

.copyright {
  position: absolute;
  bottom: 10px;
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: #2F71AA;
}

/* =========================================
   AVAILABILITY BAR
========================================= */

.availability-wrapper {
  position: absolute;
  z-index: 10;
  left: 50%;
  transform: translateX(-50%);
  bottom: 70px;
  width: min(1095px, calc(100% - 40px));
}

.availability-bar {
  background: white;
  border-radius: 50px;
  min-height: 80px;
  padding: 10px 16px 10px 30px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.address-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  font-size: 16px;
  font-weight: 600;
  color: #172d42;
  padding: 10px 0;
}

.address-input::placeholder {
  color: #172d42;
  opacity: 1;
}

.location-button {
  border: none;
  background: transparent;
  color: #596a7e;
  font-size: 14px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.location-icon {
  color: #2087d8;
  font-size: 21px;
}

.availability-button {
  border: none;
  background: var(--yellow);
  color: #132d43;
  font-size: 18px;
  font-weight: 700;
  padding: 15px 30px;
  border-radius: 35px;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.availability-button:hover {
  background: #e8dc32;
}

.map-link {
  color: white;
  text-align: center;
  font-size: 13px;
  margin-top: 12px;
  font-weight: 600;
}

.map-link a {
  color: #2087d8;
  text-decoration: underline;
}

/* =========================================
   MAIN CONTENT
========================================= */

.content-section {
  min-height: 300px;
  padding: 46px 20px;
  text-align: center;
  background: white;
}

.content-section h2 {
  font-size: clamp(30px, 4vw, 44px);
  color: #131c2c;
  margin-bottom: 15px;
}

.content-section p {
  color: #687789;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
}

/* =========================================
   FLOATING CHAT BUTTON
========================================= */

.chat-button {
  position: fixed;
  right: 35px;
  bottom: 25px;
  z-index: 50;
  width: 54px;
  height: 54px;
  border: none;
  border-radius: 50%;
  background: var(--navy-dark);
  color: var(--yellow);
  font-size: 24px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
}

.chat-button:hover {
  transform: translateY(-2px);
}

/* =========================================
   RESPONSIVE DESIGN
========================================= */

@media (max-width: 1100px) {

  .navbar {
    padding: 0 6%;
  }

  .hero-content {
    padding-left: 5%;
    padding-right: 5%;
  }

  .availability-wrapper {
    width: calc(100% - 60px);
  }

  .slide-indicators {
    left: 5%;
  }

}

@media (max-width: 800px) {

  .top-header {
    padding: 0 20px;
    justify-content: center;
  }

  .top-links {
    gap: 14px;
    font-size: 11px;
  }

  .navbar {
    height: auto;
    min-height: 65px;
    padding: 15px 25px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .brand {
    font-size: 29px;
  }

  .nav-links {
    gap: 16px;
    font-size: 12px;
  }

  .hero {
    min-height: 880px;
  }

  .hero-content {
    min-height: 690px;
    padding-top: 60px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 30px;
  }

  .hero-copy {
    width: 100%;
    padding-top: 0;
    text-align: center;
  }

  .hero-copy p {
    margin-left: auto;
    margin-right: auto;
  }

  .login-card {
    margin: 30px 0 0;
  }

  .availability-wrapper {
    bottom: 55px;
  }

  .availability-bar {
    flex-wrap: wrap;
    border-radius: 20px;
    padding: 15px;
    gap: 10px;
  }

  .address-input {
    flex-basis: 100%;
  }

  .location-button {
    flex: 1;
  }

  .availability-button {
    flex: 1;
    padding: 13px 15px;
    font-size: 15px;
  }

  .map-link {
    font-size: 11px;
  }

  .slide-indicators {
    display: none;
  }

}

@media (max-width: 450px) {

  .top-header {
    height: auto;
    padding: 10px 15px;
  }

  .top-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    min-height: 940px;
  }

  .hero-copy h1 {
    font-size: 36px;
  }

  .hero-copy p {
    font-size: 14px;
  }

  .login-card {
    width: min(315px, calc(100vw - 40px));
  }

  .availability-wrapper {
    width: calc(100% - 30px);
  }

  .location-button {
    font-size: 11px;
  }

  .availability-button {
    font-size: 13px;
  }

  .chat-button {
    right: 20px;
    bottom: 20px;
  }

}