/* ========================================
   CSS Variables & Resets
   ======================================== */

:root {
  /* Brand Colors */
  --color-primary: #0B5ED7;
  --color-secondary: #2EC4F1;
  --color-accent: #5EDFFF;
  
  /* Text Colors */
  --color-heading: #1F2933;
  --color-body: #4B5563;
  --color-light: #F9FAFB;
  --color-border: #E5E7EB;
  
  /* Backgrounds */
  --color-bg: #FFFFFF;
  --color-bg-alt: #F4F9FF;
  --color-footer-bg: #0A2540;
  
  /* CTA Colors */
  --color-cta-primary: #0B5ED7;
  --color-cta-hover: #084298;
  --color-cta-secondary: #2EC4F1;
  --color-whatsapp: #25D366;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #2EC4F1, #0B5ED7);
  --gradient-overlay: linear-gradient(135deg, rgba(11, 94, 215, 0.9), rgba(46, 196, 241, 0.8));
  
  /* Typography */
  --font-primary: 'Poppins', sans-serif;
  --font-display: 'Playfair Display', serif;
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-body);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul, ol {
  list-style: none;
}

address {
  font-style: normal;
}

/* ========================================
   Container & Layout
   ======================================== */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  color: var(--color-heading);
  font-weight: var(--font-weight-bold);
  line-height: 1.3;
  margin-bottom: 1rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

h1 {
  font-size: 2.5rem;
  font-weight: var(--font-weight-extrabold);
}

h2 {
  font-size: 2.25rem;
  font-weight: var(--font-weight-bold);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ========================================
   Badges
   ======================================== */

.section__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(46, 196, 241, 0.1), rgba(11, 94, 215, 0.1));
  color: var(--color-primary);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: var(--font-weight-semibold);
  margin-bottom: 1rem;
  border: 1px solid rgba(11, 94, 215, 0.2);
}

.section__badge--center {
  display: flex;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

.section__badge i {
  font-size: 1rem;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: var(--font-weight-semibold);
  font-family: var(--font-primary);
  text-align: center;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-normal);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn--primary {
  background-color: var(--color-cta-primary);
  color: white;
  box-shadow: 0 4px 12px rgba(11, 94, 215, 0.3);
}

.btn--primary:hover {
  background-color: var(--color-cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(11, 94, 215, 0.4);
}

.btn--secondary {
  background-color: var(--color-cta-secondary);
  color: white;
  box-shadow: 0 4px 12px rgba(46, 196, 241, 0.3);
}

.btn--secondary:hover {
  background-color: #1DB3E0;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 196, 241, 0.4);
}

.btn--whatsapp {
  background-color: var(--color-whatsapp);
  color: white;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn--whatsapp:hover {
  background-color: #1FB855;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn--large {
  padding: 1.125rem 2.25rem;
  font-size: 1.0625rem;
}

.btn--block {
  display: flex;
  width: 100%;
}

.btn--header {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

.btn--footer {
  margin-top: 1.25rem;
}

.btn--cta {
  font-size: 1.125rem;
  padding: 1.25rem 2.5rem;
}

.btn i {
  position: relative;
  z-index: 1;
}

.btn span {
  position: relative;
  z-index: 1;
}

/* ========================================
   Header
   ======================================== */

.header {
  background-color: var(--color-bg);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all var(--transition-normal);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.98);
}

.header.header--scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.95);
}

.header__wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 0;
  gap: 1.5rem;
  position: relative;
}

/* Logo */
.header__logo {
  flex-shrink: 0;
  z-index: 1002;
}

.logo {
  display: block;
}

.logo__img {
  height: 50px;
  width: auto;
  transition: var(--transition-normal);
}

.logo:hover .logo__img {
  transform: scale(1.05);
}

/* Navigation */
.header__nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav__item {
  position: relative;
}

.nav__item--cta {
  margin-left: 0.35rem;
}

.nav__link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-heading);
  font-weight: var(--font-weight-medium);
  font-size: 0.9375rem;
  padding: 0.625rem 0.875rem;
  border-radius: 8px;
  transition: all var(--transition-fast);
  position: relative;
}

.nav__link i {
  font-size: 0.9375rem;
  transition: var(--transition-fast);
}

.nav__link span {
  white-space: nowrap;
}

.nav__link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-normal);
  border-radius: 2px;
}

.nav__link:hover {
  color: var(--color-primary);
  background: rgba(11, 94, 215, 0.05);
}

.nav__link:hover::before {
  width: 60%;
}

.nav__link:hover i {
  transform: scale(1.1);
}

/* Dropdown */
.nav__item--dropdown:hover .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  background-color: var(--color-bg);
  box-shadow: var(--shadow-xl);
  border-radius: 12px;
  min-width: 200px;
  padding: 0.75rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-normal);
  z-index: 100;
  border: 1px solid var(--color-border);
}

.nav__dropdown-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  color: var(--color-heading);
  font-size: 0.9375rem;
  font-weight: var(--font-weight-medium);
  border-radius: 8px;
  transition: all var(--transition-fast);
}

.nav__dropdown-link i {
  color: var(--color-primary);
  font-size: 0.875rem;
}

.nav__dropdown-link:hover {
  background: linear-gradient(135deg, rgba(46, 196, 241, 0.1), rgba(11, 94, 215, 0.1));
  color: var(--color-primary);
  transform: translateX(4px);
}

/* Mobile Menu Toggle */
.header__toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.toggle__line {
  width: 100%;
  height: 3px;
  background-color: var(--color-heading);
  border-radius: 3px;
  transition: all var(--transition-normal);
}

.header__toggle.active .toggle__line:nth-child(1) {
  transform: translateY(10.5px) rotate(45deg);
}

.header__toggle.active .toggle__line:nth-child(2) {
  opacity: 0;
}

.header__toggle.active .toggle__line:nth-child(3) {
  transform: translateY(-10.5px) rotate(-45deg);
}

/* ========================================
   Footer
   ======================================== */

.footer {
  background: linear-gradient(135deg, #0A2540 0%, #0D3B66 100%);
  color: var(--color-light);
  padding: 4rem 0 2rem;
  margin-top: 5rem;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.footer__content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer__logo {
  margin-bottom: 1.25rem;
}

.footer__logo-img {
  height: 50px;
  width: auto;
}

.footer__title {
  color: var(--color-light);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  font-weight: var(--font-weight-semibold);
}

.footer__text {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: rgba(249, 250, 251, 0.85);
  margin-bottom: 1.25rem;
}

.footer__badges {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer__badge {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--color-accent);
  font-weight: var(--font-weight-medium);
}

.footer__badge i {
  font-size: 1rem;
}

.footer__gst {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(249, 250, 251, 0.7);
  margin-top: 0.75rem;
}

.footer__gst i {
  color: var(--color-accent);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.footer__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: rgba(249, 250, 251, 0.8);
  transition: all var(--transition-fast);
}

.footer__link i {
  font-size: 0.75rem;
  color: var(--color-accent);
  transition: var(--transition-fast);
}

.footer__link:hover {
  color: var(--color-accent);
  padding-left: 6px;
}

.footer__link:hover i {
  transform: translateX(3px);
}

.footer__contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer__contact-item {
  display: flex;
  gap: 0.875rem;
  font-size: 0.9375rem;
  align-items: flex-start;
}

.footer__contact-item > i {
  color: var(--color-accent);
  font-size: 1.125rem;
  margin-top: 0.125rem;
  min-width: 20px;
}

.footer__contact-item > div {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.footer__contact-link {
  color: rgba(249, 250, 251, 0.85);
  transition: var(--transition-fast);
}

.footer__contact-link:hover {
  color: var(--color-accent);
}

.footer__address {
  color: rgba(249, 250, 251, 0.85);
  line-height: 1.8;
}

.footer__bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(249, 250, 251, 0.1);
  text-align: center;
}

.footer__copyright {
  font-size: 0.875rem;
  color: rgba(249, 250, 251, 0.6);
  margin: 0;
}

/* ========================================
   Section Titles
   ======================================== */

.section__title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--color-heading);
  margin-bottom: 1rem;
  font-weight: var(--font-weight-extrabold);
}

.section__subtitle {
  text-align: center;
  font-size: 1.125rem;
  color: var(--color-body);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   Responsive Breakpoints
   ======================================== */

/* Large Desktop: ≥1200px */
@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }
}

/* Desktop: ≥992px */
@media (min-width: 992px) and (max-width: 1199px) {
  .container {
    max-width: 960px;
  }
  
  h1 {
    font-size: 2.25rem;
  }
  
  .section__title {
    font-size: 2.25rem;
  }
  
  .nav__list {
    gap: 0.25rem;
  }
  
  .nav__link {
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
  }
  
  .nav__link i {
    font-size: 0.875rem;
  }
  
  .nav__link span {
    font-size: 0.875rem;
  }
  
  .btn--header {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
  }
}

/* Medium Tablet - 1020px specific fix */
@media (min-width: 992px) and (max-width: 1100px) {
  .nav__list {
    gap: 0.15rem;
  }
  
  .nav__link {
    padding: 0.5rem 0.625rem;
    font-size: 0.8125rem;
  }
  
  .btn--header {
    padding: 0.5rem 0.875rem;
    font-size: 0.75rem;
  }
}

/* Tablet: ≥768px */
@media (max-width: 991px) {
  .container {
    max-width: 720px;
  }
  
  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    background: white;
    padding: 5rem 0 0;
    overflow-y: auto;
    transition: right 0.3s ease-in-out;
    z-index: 1000;
    box-shadow: -2px 0 15px rgba(0, 0, 0, 0.1);
  }
  
  .header__nav.active {
    right: 0;
  }
  
  /* Mobile overlay backdrop */
  body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    animation: fadeIn 0.3s ease;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  .nav__list {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }
  
  .nav__item {
    width: 100%;
    border-bottom: none;
    position: relative;
  }
  
  .nav__item:last-of-type {
    border-bottom: none;
  }
  
  /* Active page indicator - left border */
  .nav__item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--color-primary);
  }
  
  .nav__item--cta {
    margin-left: 0;
    border-bottom: none;
    
    padding: 1.5rem 1.5rem 1rem;
  }
  
  .nav__item--cta .btn {
    width: 100%;
    justify-content: center;
    padding: 1.125rem 2rem;
    font-size: 1.125rem;
    border-radius: 50px;
  }
  
  .nav__link {
    padding: 1.25rem 1.5rem;
    justify-content: flex-start;
    gap: 0;
    font-size: 1.125rem;
    border-radius: 0;
    color: var(--color-heading);
    font-weight: var(--font-weight-medium);
  }
  
  /* Hide icons in mobile menu */
  .nav__link > i:first-child {
    display: none;
  }
  
  .nav__link--parent {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .nav__link::before {
    display: none;
  }
  
  .nav__link:hover,
  .nav__item.active .nav__link {
    background: transparent;
    color: var(--color-primary);
  }
  
  /* Dropdown arrow */
  .nav__arrow {
    margin-left: auto;
    font-size: 1rem;
    transition: transform 0.3s ease;
    color: var(--color-heading);
  }
  
  .nav__item--dropdown.active .nav__arrow {
    transform: rotate(180deg);
    color: var(--color-primary);
  }
  
  /* Mobile dropdown */
  .nav__dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f8f9fa;
    margin: 0;
    border-radius: 0;
    border: none;
    border-top: 1px solid transparent;
  }
  
  .nav__item--dropdown.active .nav__dropdown {
    max-height: 500px;
    border-top-color: #e9ecef;
  }
  
  .nav__dropdown li {
    border-bottom: none;
  }
  
  .nav__dropdown-link {
    padding: 1rem 1.5rem 1rem 2.5rem;
    font-size: 1rem;
    border-radius: 0;
    color: var(--color-body);
    font-weight: var(--font-weight-regular);
  }
  
  .nav__dropdown-link i {
    font-size: 0.875rem;
    margin-right: 0.5rem;
  }
  
  .nav__dropdown-link:hover {
    background: #e9ecef;
    transform: none;
    color: var(--color-primary);
  }
  
  .nav__dropdown-link--all {
    font-weight: var(--font-weight-semibold);
    background: transparent;
    color: var(--color-primary);
  }
  
  .nav__dropdown-link--all:hover {
    background: #e9ecef;
  }
  
  .nav__dropdown-divider {
    height: 1px;
    background: #e9ecef;
    margin: 0.25rem 1.5rem 0.25rem 2.5rem;
    list-style: none;
  }
  
  .header__toggle {
    display: flex;
  }
  
  .footer__content {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .section__title {
    font-size: 2rem;
  }
}

/* Mobile Large: ≥576px */
@media (max-width: 767px) {
  .container {
    max-width: 540px;
  }
  
  .header__wrapper {
    gap: 1rem;
  }
  
  .logo__img {
    height: 42px;
  }
  
  .footer__content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  h1 {
    font-size: 1.875rem;
  }
  
  h2 {
    font-size: 1.625rem;
  }
  
  .section__title {
    font-size: 1.875rem;
  }
  
  .section__subtitle {
    font-size: 1rem;
  }
}

/* Mobile: ≥360px */
@media (max-width: 575px) {
  .container {
    padding: 0 1rem;
  }
  
  .logo__img {
    height: 38px;
  }
  
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
  }
  
  .btn--large {
    padding: 1rem 1.875rem;
    font-size: 1rem;
  }
  
  h1 {
    font-size: 1.625rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  .section__title {
    font-size: 1.625rem;
  }
  
  .section__badge {
    font-size: 0.8125rem;
    padding: 0.4375rem 0.875rem;
  }
  
  /* Ensure mobile menu fits on small screens */
  .header__nav {
    width: 90%;
    max-width: 240px;
  }
  
  .nav__link {
    font-size: 1rem;
    padding: 1.125rem 1.25rem;
  }
  
  .nav__dropdown-link {
    font-size: 0.9375rem;
    padding: 0.875rem 1.25rem 0.875rem 2.25rem;
  }
}

/* Extra Small: <360px */
@media (max-width: 359px) {
  .container {
    padding: 0 0.75rem;
  }
  
  .header__nav {
    width: 95%;
    max-width: 300px;
  }
  
  .nav__link {
    font-size: 0.9375rem;
    padding: 1rem 1rem;
  }
  
  .nav__dropdown-link {
    font-size: 0.875rem;
    padding: 0.75rem 1rem 0.75rem 2rem;
  }
  
  .nav__item--cta .btn {
    font-size: 1rem;
    padding: 1rem 1.5rem;
  }
  
  h1 {
    font-size: 1.5rem;
  }
  
  .section__title {
    font-size: 1.5rem;
  }
}