/* ==========================================================================
   Secura PPF - Main Stylesheet
   Singapore HQ | Korea Manufacturing
   ========================================================================== */

:root {
  --red: #C0272D;
  --red-dark: #9E1F24;
  --charcoal: #141414;
  --dark-surface: #1E1E1E;
  --white: #FFFFFF;
  --gray-light: #F6F7F9;
  --gray-border: #E5E7EB;
  --gray-text: #6B7280;
  --gray-heading: #111827;
  --gold: #C5A059;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--gray-heading);
  background-color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .brand-font {
  font-family: 'Montserrat', sans-serif;
}

/* Common Layout */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Buttons & Links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border: 2px solid var(--red);
}

.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(192, 39, 45, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--red);
  border: 2px solid var(--red);
}

.btn-outline:hover {
  background: var(--red);
  color: var(--white);
}

.section-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--red);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(17, 17, 17, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition);
}

.site-nav.scrolled {
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.nav-logo img {
  height: 38px;
  width: auto;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  list-style: none;
}

.nav-menu a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: var(--transition);
  position: relative;
  padding: 0.35rem 0;
  white-space: nowrap;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

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

.nav-menu a:hover::after, .nav-menu a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-dealer-btn {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.55rem 1.1rem;
  border-radius: 4px;
  transition: var(--transition);
}

.nav-dealer-btn:hover {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   Page Headers (Subpages)
   ========================================================================== */
.page-hero {
  padding-top: 130px;
  padding-bottom: 60px;
  background: #111111;
  color: white;
  position: relative;
  border-bottom: 3px solid var(--red);
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.65);
  max-width: 650px;
  font-size: 1.05rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.6);
  padding: 5rem 0 2rem;
  border-top: 3px solid var(--red);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3.5rem;
  margin-bottom: 4rem;
}

.footer-brand img {
  height: 34px;
  margin-bottom: 1.25rem;
}

.footer-tagline {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1.5rem;
}

.footer-origins {
  font-size: 0.8rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.4);
}

.footer-col h4 {
  font-family: 'Montserrat', sans-serif;
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
}

/* Quick Connect Bar */
.contact-bar-strip {
  background: var(--charcoal);
  color: white;
  padding: 1.75rem 0;
  border-top: 2px solid var(--red);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.contact-bar-items {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
}

.contact-bar-items a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transition: var(--transition);
}

.contact-bar-items a:hover {
  color: var(--white);
}

.contact-bar-items a.wa-link {
  color: #25D366;
  font-weight: 700;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25D366;
  color: white;
  padding: 0.75rem 1.4rem;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: var(--transition);
}

.btn-whatsapp:hover {
  background: #1EBE5D;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.footer-socials {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
  text-decoration: none;
}

.footer-socials a:hover {
  background: var(--red);
  color: white;
  border-color: var(--red);
  transform: translateY(-3px);
}

/* Success Banner */
.form-success-banner {
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  background: #2E7D32;
  color: white;
  text-align: center;
  padding: 1rem 1.5rem;
  font-size: 0.92rem;
  z-index: 9999;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: opacity 0.5s ease;
}

/* Modal Popup for Interactive Quote Calculator */
.quote-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
}

.quote-modal.active {
  display: flex;
}

.quote-modal-box {
  background: var(--white);
  border-radius: 14px;
  max-width: 680px;
  width: 100%;
  padding: 2.75rem;
  border-top: 5px solid var(--red);
  position: relative;
  box-shadow: 0 25px 60px rgba(0,0,0,0.3);
  max-height: 90vh;
  overflow-y: auto;
}

.quote-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: #777;
  line-height: 1;
  transition: var(--transition);
}

.quote-modal-close:hover {
  color: var(--red);
}

/* Floating WhatsApp Quick Action Button */
.floating-whatsapp {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  color: white;
  text-decoration: none;
  transition: var(--transition);
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

.floating-whatsapp svg {
  width: 32px;
  height: 32px;
  fill: white;
}

/* Responsive */
@media (max-width: 992px) {
  .nav-menu {
    display: none;
  }
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #141414;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .nav-toggle {
    display: block;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 600px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
  .nav-dealer-btn {
    display: none;
  }
}
