html, body {
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
  width: 100vw;
  max-width: 100vw;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}


:root {
  --primary: #F5F5F5;
  --secondary: #F5F7FA;
  --accent: #F76C5E;
  --text: #808080;
  
  --HeaderBackgroundColor: #282828;
  --HeaderText: white;
  --HeaderLinksText: white;
  
  --PlatesBackgroundColor: #282828;
  --PlateHeaderText: #808080;
  --PlateSizesText: white;
  
  --AboutBackgroundColor: #F5F5F5;
  --AboutHeaderText: #808080;
  --AboutText: Black;
  
  --GetOurAppBackgroundColor: rgba(40, 40, 40, 0.9);
  --GetOurAppHeaderText: white;
  --GetOurAppText: white;
  
  --ContactUsBackgroundColor: #F5F5F5;
  --ContactUsHeaderText: #808080;
  --BtnColor: #F76C5E;
  --BtnTextColor: white;
  --BtnHoverColor: #808080;
  
  --FooterBackgroundColor: #282828;
  --FooterText: white;


}


body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--secondary);
  color: var(--text);
  background: var(--secondary) url('https://www.nawanumberplates.com/background.jpg') no-repeat center center fixed;
  background-size: cover;
}

header {
  background: var(--HeaderBackgroundColor);
  color: var(--HeaderText);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
}

.navbar-logo {
  font-size: 1.5rem;
  font-weight: normal;
  letter-spacing: 2px;
}

/* Style nav links the same no matter the nav class */
nav a {
  color: var(--HeaderLinksText);
  text-decoration: none;
  margin-left: 24px;
  font-size: 1rem;
  transition: color 0.2s;
}
nav a:hover {
  color: var(--accent);
}

.main-title {
  font-size: 2.3rem;
  font-weight: bold;
  color: #808080;
  margin-bottom: 32px;
  text-align: center;
  letter-spacing: 1px;
}

.contact-title {
  font-size: 2.3rem;
  font-weight: bold;
  color: #808080;
  margin-bottom: 32px;
  text-align: center;
  letter-spacing: 1px;
  margin-top: 2vw;
}

/* Hamburger hidden by default (shows on mobile) */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  height: 32px;
  width: 32px;
  margin-left: 12px;
  z-index: 1201;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 3px;
  margin: 4px 0;
  background: #fff;
  border-radius: 2px;
  transition: all 0.2s;
}

/* Side menu (mobile) */
.side-menu {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 220px;
  height: 100vh;
  background: #282828;
  box-shadow: 3px 0 20px rgba(0,0,0,0.17);
  padding-top: 60px;
  z-index: 1200;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.22s;
}
.side-menu a {
  display: block;
  color: #fff;
  text-decoration: none;
  font-size: 1.25rem;
  padding: 16px 32px 16px 22px;
  width: 100%;
  transition: background 0.14s;
}
.side-menu a:hover {
  background: #333;
  color: var(--accent);
}
.side-menu .close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 1300;
}
.side-menu-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.28);
  z-index: 1100;
}

/* Desktop nav hidden on mobile, hamburger shows on mobile */
@media (max-width: 600px) {
  .desktop-nav {
    display: none !important;
  }
  .hamburger {
    display: flex !important;
  }
  .side-menu {
    display: flex;
    transform: translateX(-100%);
  }
  .side-menu.open {
    transform: translateX(0);
  }
  .side-menu-overlay.open {
    display: block;
  }
}

/*=============================================================*/
/* Login button*/
/*=============================================================*/

/* Login Button in Navbar */
.login-btn {
  background: var(--accent, #F76C5E);
  color: #fff;
  border: none;
  border-radius: 18px;
  padding: 8px 24px;
  font-size: 1.08rem;
  font-weight: 500;
  cursor: pointer;
  margin-left: 20px;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.login-btn:hover {
  background: #e74c3c;
}
.login-btn-mobile {
  display: block;
  margin-top: 16px;
  color: #fff;
  background: var(--accent, #F76C5E);
  padding: 12px 0;
  text-align: center;
  border-radius: 8px;
  font-size: 1.14rem;
  font-weight: 500;
  text-decoration: none;
}

/* Login Modal Styles */
.login-modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1302;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.34);
  align-items: center;
  justify-content: center;
}

.login-modal.show {
  display: flex;
  animation: fadeIn 0.2s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.login-modal-content {
  background: #fff;
  color: #222;
  border-radius: 14px;
  max-width: 350px;
  width: 93vw;
  box-shadow: 0 8px 32px rgba(0,0,0,0.16);
  padding: 34px 30px 26px 30px;
  position: relative;
  animation: modalIn 0.21s;
}
@keyframes modalIn { from { transform: translateY(-25px); opacity: 0;} to { transform: translateY(0); opacity: 1;} }

.login-modal-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--accent, #F76C5E);
  margin-bottom: 22px;
  text-align: center;
  letter-spacing: 1px;
}
.login-modal-close {
  position: absolute;
  right: 14px; top: 12px;
  font-size: 1.6rem;
  color: #aaa;
  cursor: pointer;
  transition: color 0.16s;
  z-index: 2;
}
.login-modal-close:hover { color: #F76C5E; }

#login-form input {
  width: 100%;
  margin-bottom: 14px;
  padding: 12px 10px;
  border-radius: 7px;
  border: 1.2px solid #ccc;
  font-size: 1rem;
  transition: border 0.18s;
}
#login-form input:focus {
  border: 1.5px solid var(--accent, #F76C5E);
  outline: none;
}
.login-modal-btn {
  background: var(--accent, #F76C5E);
  color: #fff;
  font-size: 1.12rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 12px 0;
  width: 100%;
  cursor: pointer;
  margin-bottom: 4px;
  transition: background 0.2s;
}
.login-modal-btn:hover {
  background: #e74c3c;
}
.login-error {
  color: #e74c3c;
  text-align: center;
  margin-top: 10px;
  min-height: 22px;
  font-size: 0.97rem;
}

/* Responsive tweaks */
@media (max-width: 500px) {
  .login-modal-content {
    max-width: 95vw;
    padding: 28px 7vw 22px 7vw;
  }
}

.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  vertical-align: middle;
  border: 2.5px solid #f3f3f3;
  border-top: 2.5px solid #6A88D5; /* Use your brand color */
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-left: 8px;
}
@keyframes spin {
  100% { transform: rotate(360deg);}
}



/*=============================================================*/
/* Hero Section Video Wall*/
/*=============================================================*/
.hero {
  position: relative;
  width: 100vw;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #F5F5F5  center center / cover no-repeat; 
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-width: 100vw;
  min-height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(10,37,64,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  text-align: center;
  padding: 40px 16px;
}


.hero-title {
  font-size: 2.8rem;
  font-weight: bold;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.hero-tagline {
  font-size: 1.4rem;
  margin-bottom: 36px;
  font-weight: 400;
}

.hero-btn {
  background: var(--accent);
  color: white;
  padding: 14px 36px;
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}

.hero-btn:hover {
  background: #e74c3c;
}

.hero-video-loading {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: #1a202cb8; /* semi-transparent dark */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: opacity 0.4s;
}
.hero-video-loading .spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #eee;
  border-top: 6px solid var(--accent, #F76C5E);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg);}
}



/*===============================================*/
/*  Plates section*/
/*===============================================*/


/* Plates Sizes Section */
.plates-section-wide {
  width: 100vw;
  background: var(--PlatesBackgroundColor);
  color: white;
  margin: 0;
  padding-top: 4vw;
  padding-bottom: 4vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.plates-section-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.plates-section-title {
  font-size: 2.3rem;
  font-weight: bold;
  color: var(--PlateHeaderText);
  margin-bottom: 32px;
  text-align: center;
  letter-spacing: 1px;
}

.plates-section-flex {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 36px;
  flex-wrap: wrap;
}

.plate-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 12px;
}

.plate-img {
  display: block;
  max-width: 180px;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #e6e6e6;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.plate-label {
  margin-top: 10px;
  font-size: 1.06rem;
  color: var(--PlateSizesText);
  font-weight: 500;
  text-align: center;
}

/* Responsive for mobile */
@media (max-width: 900px) {
  .plates-section-flex {
    gap: 22px;
  }
  .plate-img {
    max-width: 120px;
    max-height: 60px;
  }
  .plate-label {
    font-size: 0.95rem;
  }
}
@media (max-width: 600px) {
  .plates-section-flex {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
  }
  .plate-img {
    max-width: 95px;
    max-height: 38px;
  }
}


/*=============================================================*/
    /*About Us Section*/
/*=============================================================*/
.about-section-wide {
  width: 100vw;
  background: var(--AboutBackgroundColor);
  color: #000;
  margin: 0;
  padding-top: 4vw;
  padding-bottom: 6vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.about-section-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.about-section-title {
  font-size: 2.3rem;
  font-weight: bold;
  color: var(--AboutHeaderText);
  margin-bottom: 32px;
  text-align: center;
  letter-spacing: 1px;
}

.about-section-flex {
  display: flex;
  align-items: center;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
}

.about-section-wide .about-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: #e6e6e6 url('https://www.nawanumberplates.com/about.png') center/cover no-repeat;
  flex-shrink: 0;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

.about-section-wide .about-text {
  max-width: 700px;
  font-size: 1.25rem;
  color: var(--AboutText); 
  line-height: 1.7;
}

.about-link-btn {
  background: #cde5fb; /* baby blue */
  color: #2376a5;      /* deep blue text */
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.25s, color 0.25s;
}

.about-link-btn:hover {
  background: #a5d4f9; /* slightly darker baby blue */
  color: #0f4a6e;      /* deeper blue on hover */
}


/*=============================================================*/
   /*Get Our App Section*/
/*=============================================================*/

.app-section-wide {
  width: 100vw;
  background: var(--GetOurAppBackgroundColor);
  color: #fff;
  margin: 0;
  padding-top: 4vw;
  padding-bottom: 4vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;

}

.app-section-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.get_app-title {
  font-size: 2.3rem;
  font-weight: bold;
  color: var(--GetOurAppHeaderText);
  margin-bottom: 32px;
  text-align: center;
  letter-spacing: 1px;
}

.app-section-title {
  font-size: 2.3rem;
  font-weight: bold;
  color: var(--GetOurAppHeaderText);
  margin-bottom: 32px;
  text-align: center;
  letter-spacing: 1px;
}

.app-section-flex {
  display: flex;
  align-items: center;
  gap: 100px;
  justify-content: center;
  flex-wrap: wrap;
}

.app-section-wide .barcode-img {
  width: 150px;
  height: 150px;
  border-radius: 5px;
  background-color: #e6e6e6;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  margin-bottom: 16px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  display: inline-block;
  overflow: hidden;
}

#android-qr img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.footer-policy-btns {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  margin-bottom: 8px;
}

.footer-policy-btn {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 20px;
  padding: 7px 18px;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none !important;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.footer-policy-btn:hover {
  background: var(--accent, #F76C5E);
  border-color: var(--accent, #F76C5E);
  color: #fff !important;
}



.app-section-wide .barcode-label {
  font-size: 1.12rem;
  color: var(--GetOurAppText);
  font-weight: 500;
  text-align: center;
}

.app-coming-soon-msg {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 18px;
  width: 100%;
}


/*=============================================================*/
   /*Button Section*/
/*=============================================================*/

.download-app-btn-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 10px;
}
.download-app-btn {
  background: var(--accent, #F76C5E);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  border: none;
  border-radius: 28px;
  padding: 16px 42px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.09);
  cursor: pointer;
  transition: background 0.2s;
}
.download-app-btn:hover {
  background: #d64c3c;
}




/*=============================================================*/
   /*How to Section*/
/*=============================================================*/
.how-to-section-wide {
  width: 100vw;
  background: #F5F5F5; /* full section bg */
  margin: 0;
  padding-top: 4vw;
  padding-bottom: 4vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.how-to-section-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #F5F5F5; /* bg for content area too */
}

.how-to-title {
  font-size: 2.3rem;
  font-weight: bold;
  color: #808080; /* your requested color */
  margin-bottom: 32px;
  text-align: center;
  letter-spacing: 1px;
  background: #F5F5F5; /* makes sure the text always sits on a white bg */
  width: 100%;
  padding-top: 12px;
}

.how-to-video-wrapper {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  display: flex;
  justify-content: center;
  align-items: center;
  background: url('https://www.nawanumberplates.com/video_bg.png') center center/cover no-repeat;
  padding-top: 24px;
  padding-bottom: 24px;
  min-height: 320px; /* optional, guarantees image shows on very small screens */
}

.how-to-video {
  width: 100vw;
  max-width: 1200px;
  aspect-ratio: 16 / 9;
  height: auto;  
  max-height: 70vh;
  object-fit: contain;
  border-radius: 18px;
  background: #000;
  display: block;
  box-shadow: 0 8px 40px 0 rgba(255,255,255,0.77), 0 2px 16px rgba(255,255,255,0.47);
}


/* Responsive: on mobile, video less tall */
@media (max-height: 820px) and (min-width: 801px) {
  .how-to-video-wrapper {
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .how-to-video {
    width: min(92vw, 1200px);
    max-height: calc(100vh - 180px); /* room for header/title without cropping */
    object-fit: contain;
  }
}

/* Mobile: still full-frame, just smaller */
@media (max-width: 800px) {
  .how-to-section-content { padding: 0; }
  .how-to-title {
    font-size: 1.3rem;
    margin-bottom: 16px;
  }
  .how-to-video-wrapper {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .how-to-video {
    width: 98vw;
    max-width: 98vw;
    aspect-ratio: 16 / 9;
    height: auto;
    max-height: 210px;
    min-height: 120px;
    border-radius: 10px;
    box-shadow: 0 6px 24px 0 rgba(255,255,255,0.7), 0 1px 8px rgba(255,255,255,0.34);
    object-fit: contain; /* ensure no crop on small screens */
  }
}



/*=============================================================*/
    /*Contact Us Section*/
/*=============================================================*/

.contact-section-wide {
  width: 100vw;
  background: var(--ContactUsBackgroundColor);
  color: #000;
  margin: 0;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.contact-section-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.contact-title {
  font-size: 2rem;
  font-weight: bold;
  color: var(--ContactUsHeaderText);
  margin-bottom: 12px;
  text-align: center;
  padding-top: 3vw;
  padding-bottom: 1vw;
}

.contact-form {
  max-width: 430px;
  margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 7px;
  border: 1px solid #ccc;
  margin-bottom: 16px;
  font-size: 1rem;
  font-family: inherit;
  transition: border 0.2s;
  color: #000;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border: 1.5px solid var(--accent);
  outline: none;
}

.contact-form button {
  background: var(--BtnColor);
  color: var(--BtnTextColor);
  padding: 12px 32px;
  border: none;
  border-radius: 7px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 3vw;
  transition: background 0.2s;
}

.contact-form button:hover {
  background: var(--BtnHoverColor);
}

#contact-success {
  opacity: 0;
  transition: opacity 0.4s;
}
#contact-success[style*="block"] {
  opacity: 1;
}


@media (max-width: 800px) {
  .contact-form {
    max-width: 340px;  /* reduce width on mobile */
    margin: 0 auto;
    padding: 0 10px;   /* a little horizontal padding */
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .contact-form input,
  .contact-form textarea {
    width: 100%;
    max-width: 320px;
    min-width: 180px;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }

  .contact-form button {
    display: block;
    margin: 18px auto 3vw auto;  /* center button, space above */
    width: auto;
    min-width: 110px;
    max-width: 220px;
    padding-left: 22px;
    padding-right: 22px;
    text-align: center;
  }
}


/*=============================================================*/

footer {
  background: var(--FooterBackgroundColor);
  color: #F5F5F5;
  text-align: center;
  padding: 22px 0;
  font-size: 1rem;
  letter-spacing: 1px;
  padding-top: 100px;
}


.app-section-wide,
.contact-section-wide {
  margin-top: 0 !important;
  margin-bottom: 0 !important;

}

.app-section-wide > *:first-child,
.app-section-wide > *:last-child,
.contact-section-wide > *:first-child,
.contact-section-wide > *:last-child {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}


/* Responsive Styles */
@media (max-width: 800px) {
  .about-section-flex,
  .app-section-flex {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }
  .about-section-wide .about-img,
  .app-section-wide .barcode-img {
    width: 100px;
    height: 100px;
  }
  .about-section-wide .about-text {
    font-size: 1.08rem;
  }
  .app-section-wide .barcode-label {
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .navbar {
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
    padding: 10px 8px;
  }
  .navbar-logo {
    font-size: 1.2rem;
  }
  nav a {
    font-size: 0.95rem;
    margin-left: 10px;
  }
}

#company-footer {
  background: #282828;
  color: white;
  text-align: center;
  padding: 24px 10px 10px 10px;
  font-size: 16px;
}
#company-footer a { color: #F76C5E; text-decoration: underline; }
.footer-company div { margin-bottom: 4px; }
.footer-error { color: #F76C5E; }

#company-footer a.footer-link {
  color: #fff !important;
  text-decoration: underline;
}

#android-qr {
  display: inline-block;
}

#android-qr img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}






