/* ============================================
   ROYAL TOUGHENED GLASS INDUSTRY
   Global Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ---- CSS Variables ---- */
:root {
  /* Primary palette  — #1A3263 navy */
  --royal-blue: #1A3263;
  --royal-blue-light: #2548A0;
  --royal-blue-dark: #0F1F3A;
  /* Secondary */
  --steel-grey: #4A7098;
  --steel-light: #7BA3C0;
  /* Accent — golden amber */
  --cyan-accent: #F5A623;
  --cyan-glow: rgba(245, 166, 35, 0.15);
  /* Surfaces */
  --white: #ffffff;
  --off-white: #EFECE3;
  --text-dark: #1A3263;
  --text-muted: #4A7098;
  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.15);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  --card-shadow: 0 4px 24px rgba(26, 50, 99, 0.10);
  --card-hover-shadow: 0 16px 48px rgba(26, 50, 99, 0.20);
  --transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.35s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: transform 0.2s ease, opacity 0.2s ease, color 0.2s ease, background-color 0.2s ease;
  --radius: 12px;
  --radius-lg: 20px;
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
  /* Removed cursor: none for accessibility; custom cursor is now an enhancement */
}

body.page-loaded {
  opacity: 1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  list-style: none;
}


/* ---- Navigation ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

@media (min-width: 769px) {
  .navbar {
    padding: 0 6%;
  }
}

.navbar.scrolled {
  background: rgba(15, 31, 58, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.3);
  will-change: background-color, backdrop-filter;
  /* Hint for GPU acceleration */
}

.navbar.transparent {
  background: transparent;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo .logo-icon {
  width: auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (min-width: 769px) {
  .nav-logo .logo-icon {
    height: 80px;
  }
}

.footer-brand .nav-logo .logo-icon {
  height: 96px;
  margin-bottom: -20px;
}

.nav-logo .logo-text {
  display: none !important;
}

.nav-logo .logo-icon img {
  height: 100%;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
  transform: scale(1.5);
}

.nav-logo .logo-text {
  display: flex;
  flex-direction: column;
}

.nav-logo .logo-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: white;
  line-height: 1.1;
}

.nav-logo .logo-sub {
  font-size: 10px;
  color: var(--cyan-accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  position: relative;
  transition: var(--transition-fast);
  letter-spacing: 0.3px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cyan-accent);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-links a:hover {
  color: white;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--cyan-accent);
}

.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  background: var(--cyan-accent) !important;
  color: var(--royal-blue) !important;
  padding: 9px 22px;
  border-radius: 6px;
  font-weight: 600 !important;
  font-size: 13px !important;
  transition: var(--transition) !important;
  letter-spacing: 0.5px;
}

.nav-cta:hover {
  background: #FFD27A !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(245, 166, 35, 0.45) !important;
}

.nav-cta::after {
  display: none !important;
}

/* Better focus states for keyboard users */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--cyan-accent);
  outline-offset: 4px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: transparent;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.3px;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.btn:hover::after {
  left: 150%;
}

.btn-primary {
  background: linear-gradient(135deg, #2548A0, var(--royal-blue));
  color: white;
  box-shadow: 0 4px 20px rgba(26, 50, 99, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2d56b8, #1A3263);
  box-shadow: 0 8px 32px rgba(26, 50, 99, 0.4);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--cyan-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 166, 35, 0.2);
}

.btn-cyan {
  background: var(--cyan-accent);
  color: var(--royal-blue);
  font-weight: 700;
}

.btn-cyan:hover {
  background: #FFD27A;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 166, 35, 0.4);
}

/* ---- Section Titles ---- */
.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--cyan-accent);
  margin-bottom: 10px;
  font-family: 'Inter', sans-serif;
}

.section-title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  color: var(--royal-blue);
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-title span {
  color: var(--cyan-accent);
}

.section-subtitle {
  font-size: 17px;
  color: var(--steel-grey);
  max-width: 580px;
  line-height: 1.7;
  font-weight: 400;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

/* ---- Section Spacing ---- */
.section {
  padding: 100px 6%;
  position: relative;
}

.section-dark {
  background: var(--royal-blue);
  color: white;
}

.section-dark .section-title {
  color: white;
}

.section-dark .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.section-grey {
  background: var(--off-white);
}

/* ---- Glass Panel ---- */
.glass-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  will-change: transform;
  /* Add hardware acceleration hint */
}

.glass-panel-light {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(10, 31, 68, 0.1);
  will-change: transform;
  /* Add hardware acceleration hint */
}

/* ---- Cards ---- */
.card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  overflow: hidden;
  position: relative;
}

.card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--card-hover-shadow);
}

/* ---- Lift Card Effect ---- */
.lift-card {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}

.lift-card:hover {
  transform: translateY(-10px) rotateX(2deg);
  box-shadow: 0 20px 60px rgba(26, 50, 99, 0.18);
}

.reveal {
  opacity: 0;
  transform: translateY(40px) translateZ(0);
  /* translateZ(0) forces hardware acceleration */
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) translateZ(0);
  /* translateZ(0) forces hardware acceleration */
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

.reveal-delay-5 {
  transition-delay: 0.5s;
}

.reveal-delay-6 {
  transition-delay: 0.6s;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ---- Floating WhatsApp Button ---- */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.55);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: white;
}

/* ---- Footer ---- */
.footer {
  background: var(--royal-blue-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 60px 6% 30px;
}

/* .footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 24px;
  align-items: start;
} */


.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.5fr 1fr;
  gap: 60px;
  align-items: flex-start;
  margin-bottom: 30px;
}

/* Newsletter Section */
.footer-newsletter {
  text-align: center;
}

.footer-newsletter h4 {
  font-size: 13px !important;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 24px !important;
  color: white !important;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  width: 100%;
  justify-content: center;
  max-width: 450px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  background: #1A1A1A;
  border: 1px solid #333;
  padding: 10px 16px;
  color: white;
  font-size: 12px;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.5;
  border-radius: 6px;
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.newsletter-btn {
  background: #F5A623;
  /* Maroon from image */
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 6px;
  white-space: nowrap;
}

/* .newsletter-btn:hover {
  background: white;

  transform: translateY(-2px);
} */

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-brand .nav-logo {
  justify-content: center;
}

.footer-brand .logo-name {
  color: white;
  font-size: 20px;
}

.footer-brand .logo-sub {
  font-size: 9px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

.footer-col h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: white;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.footer-contact {
  justify-self: center;
  text-align: left;
  /* Keep text list left-aligned but column centered */
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.58);
  transition: var(--transition-fast);
}

.footer-col ul li a:hover {
  color: var(--cyan-accent);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-contact-item .icon {
  color: var(--cyan-accent);
  font-size: 14px;
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-contact-item span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 28px;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

/* ---- Hero General ---- */
.hero {
  position: relative;
  overflow: hidden;
}

/* ---- Inner Page Hero ---- */
.page-hero {
  min-height: 420px;
  background: linear-gradient(135deg, var(--royal-blue-dark) 0%, var(--royal-blue) 60%, #1e3a70 100%);
  display: flex;
  align-items: center;
  padding: 120px 6% 80px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2300C8E0' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.page-hero-content {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-size: clamp(32px, 4vw, 54px);
  color: white;
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 560px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 13px;
}

.breadcrumb a {
  color: var(--cyan-accent);
}

.breadcrumb span {
  color: rgba(255, 255, 255, 0.5);
}

/* ---- Utility Classes ---- */
.text-cyan {
  color: var(--cyan-accent) !important;
}

.text-blue {
  color: var(--royal-blue) !important;
}

.text-white {
  color: white !important;
}

.text-center {
  text-align: center;
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.gap-8 {
  gap: 8px;
}

.gap-16 {
  gap: 16px;
}

.gap-24 {
  gap: 24px;
}

.gap-32 {
  gap: 32px;
}

.gap-48 {
  gap: 48px;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
}

/* ---- Mobile Menu ---- */
.mobile-menu {
  display: none;
  position: fixed;
  top: 65px;
  left: 0;
  right: 0;
  background: rgba(15, 31, 58, 0.98);
  backdrop-filter: blur(16px);
  padding: 24px 6%;
  flex-direction: column;
  gap: 8px;
  z-index: 999;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-family: 'Inter', sans-serif;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .footer-newsletter {
    grid-column: span 2;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-btn {
    padding: 16px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 72px 5%;
  }

  .section-title {
    font-size: clamp(24px, 5vw, 36px);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-brand p {
    max-width: 100%;
    margin: 16px auto 0;
  }

  .footer-newsletter {
    grid-column: span 1;
  }

  .footer-contact {
    justify-self: start;
    text-align: left;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 0 5%;
  }

  .btn {
    padding: 12px 24px;
    font-size: 14px;
  }
}