:root {
  --brand-blue: #104c91;
  --brand-dark: #082f5e;
  --brand-light: #e8f0fe;
  --brand-accent: #3b82f6;
  --bg-color: #f0f4f8;
  --text-main: #334155;
  --text-light: #64748b;
  --text-lighter: #94a3b8;
  --white: #ffffff;
  --font-sans: 'Inter', sans-serif;
  --font-serif: 'Merriweather', serif;
  --container-width: 1200px;
  --transition-speed: 0.3s;
}

/* Reset & Base Setup */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-speed);
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-center { text-align: center; }
.hidden { display: none !important; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--brand-dark);
  line-height: 1.2;
}

.section-tag {
  display: inline-block;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.section-tag.light {
  background: var(--brand-dark);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.section-tag.dark {
  background: rgba(255, 255, 255, 0.9);
  color: var(--brand-blue);
  border: 1px solid rgba(16, 76, 145, 0.2);
}

/* Routing (Single Page) */
.page-section {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.page-section.active {
  display: block;
  opacity: 1;
}

/* Glassmorphism & Glossy Effects */
.glossy-header {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 1);
  position: sticky;
  top: 0;
  z-index: 50;
}

.glossy-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.6));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 32px 0 rgba(16, 76, 145, 0.07),
              inset 0 1px 0 0 rgba(255, 255, 255, 1),
              inset 1px 0 0 0 rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
}

.glossy-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  transition: all 0.8s ease;
  pointer-events: none;
  z-index: 1;
}

.glossy-card:hover::before {
  left: 200%;
}

.glossy-card-dark {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3), inset 0 1px 0 0 rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
}

.glossy-bg-overlay {
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 60%),
              linear-gradient(135deg, rgba(232, 240, 254, 0.5) 0%, rgba(248, 250, 252, 0.9) 100%);
}

.glossy-btn {
  background: linear-gradient(180deg, var(--brand-accent) 0%, var(--brand-blue) 100%);
  border: 1px solid var(--brand-dark);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5), 
              inset 0 -1px 2px rgba(0, 0, 0, 0.5), 
              0 4px 15px rgba(16, 76, 145, 0.4);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.glossy-btn::after {
  content: '';
  position: absolute;
  top: -50%; left: -100%; bottom: -50%; width: 50%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
  transform: rotate(25deg);
  transition: all 0.6s ease;
}

.glossy-btn:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6), 0 8px 25px rgba(16, 76, 145, 0.6);
  color: var(--white);
}

.glossy-btn:hover::after {
  left: 150%;
}

/* Header & Nav */
.top-bar {
  background-color: var(--brand-dark);
  color: var(--white);
  font-size: 0.75rem;
  padding: 0.5rem 0;
  position: relative;
  z-index: 51;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-links {
  display: flex;
  gap: 1.5rem;
}

.top-bar-links span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-bar-links svg {
  width: 12px;
  height: 12px;
}

.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo img {
  height: 3rem;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

/* Align logo and brand text */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.header-brand-text {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--brand-dark);
  font-weight: 600;
}
.footer-brand-text {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--white);
  margin-top: 0.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  color: var(--text-light);
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-blue);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--brand-dark);
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  padding: 1rem 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border-top: 1px solid rgba(0,0,0,0.05);
}

.mobile-menu a {
  padding: 1rem 1.5rem;
  font-weight: 500;
  color: var(--brand-dark);
}

.mobile-menu a:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* Animations */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-50px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal-left.active { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(50px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal-right.active { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.9); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal-scale.active { opacity: 1; transform: scale(1); }

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}
.animate-float { animation: float 4s ease-in-out infinite; }

/* Hero Section */
.hero {
  position: relative;
  height: 80vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--brand-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.5s ease-in-out, transform 8s ease-out;
  background-size: cover;
  background-position: center;
  transform: scale(1.1);
}

.hero-bg.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(8, 47, 94, 0.95), rgba(8, 47, 94, 0.7), transparent);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
}

.hero-title {
  font-size: 4rem;
  color: var(--white);
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.hero-desc {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  padding: 0.75rem 2rem;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Stats Strip */
.stats-strip {
  position: relative;
  z-index: 20;
  margin-top: -2rem;
  padding: 2rem 0;
  border-radius: 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat-item {
  border-right: 1px solid rgba(0,0,0,0.1);
}

.stat-item:last-child {
  border-right: none;
}

.stat-value {
  font-size: 2.25rem;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.05em;
}

/* Sections */
.section-padding {
  padding: 6rem 0;
}

.section-title-wrap {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
}

.section-title {
  font-size: 2.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  align-items: center;
}

/* Feature Cards */
.feature-card {
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--brand-blue);
}

.feature-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: rgba(232, 240, 254, 0.8);
  border: 1px solid var(--white);
  color: var(--brand-blue);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.feature-icon svg {
  width: 1.75rem;
  height: 1.75rem;
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feature-desc {
  font-size: 0.875rem;
  color: var(--text-light);
}

/* Image blocks */
.image-block {
  position: relative;
}

.image-wrapper {
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  position: relative;
  z-index: 10;
  border: 4px solid var(--white);
}

.image-wrapper img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.image-wrapper:hover img {
  transform: scale(1.05);
}

.image-bg-deco {
  position: absolute;
  top: -1.5rem;
  left: -1.5rem;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--brand-light), var(--white));
  border-radius: 1.5rem;
  z-index: 0;
}

/* Lists */
.list-styled {
  margin-top: 1.5rem;
}

.list-styled li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-weight: 500;
  color: var(--text-main);
}

.list-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue);
}

.list-icon svg { width: 1rem; height: 1rem; }

/* FAQ */
.faq-item {
  margin-bottom: 1rem;
  transition: box-shadow 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.faq-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  text-align: left;
}

.faq-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--brand-dark);
  transition: color 0.3s ease;
}

.faq-btn:hover .faq-title {
  color: var(--brand-blue);
}

.faq-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--brand-blue);
  transition: transform 0.3s ease;
}

.faq-icon.rotate-180 {
  transform: rotate(180deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out;
}

.faq-inner {
  padding: 0 2rem 1.5rem;
  color: var(--text-light);
  border-top: 1px solid rgba(0,0,0,0.05);
  margin-top: 0.5rem;
  padding-top: 1rem;
}

/* Testimonials */
.testimonial-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.testimonial-card:hover {
  transform: translateY(-8px);
}

.stars {
  color: #fbbf24;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-style: italic;
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.testimonial-author {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1rem;
}

.testimonial-author h4 {
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 1rem;
}

.testimonial-author p {
  font-size: 0.75rem;
  color: var(--brand-light);
  text-transform: uppercase;
  opacity: 0.8;
}

/* Services */
.tabs-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 4rem;
  padding: 0.5rem;
  width: max-content;
  margin-left: auto;
  margin-right: auto;
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 700;
  color: var(--text-light);
  transition: all 0.3s ease;
}

.tab-btn:hover {
  color: var(--brand-blue);
}

.tab-btn.active {
  color: var(--white);
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0.5rem;
}

.service-img-wrap {
  height: 12rem;
  border-radius: 0.75rem 0.75rem 0 0;
  overflow: hidden;
}

.service-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.service-card:hover .service-img-wrap img {
  transform: scale(1.1);
}

.service-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-cat {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-blue);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.service-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.service-desc {
  font-size: 0.875rem;
  color: var(--text-light);
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.service-link {
  color: var(--brand-blue);
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-top: 1px solid rgba(0,0,0,0.1);
  padding-top: 1rem;
}

/* Contact Form */
.contact-form-wrap {
  padding: 3rem;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 0.75rem;
  padding: 1rem;
  font-family: inherit;
  outline: none;
  transition: all 0.3s;
}

.form-control:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 2px rgba(16, 76, 145, 0.2);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  transition: transform 0.3s;
}

.contact-info-item:hover {
  transform: translateX(8px);
}

.contact-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--brand-blue);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Footer */
.footer {
  background: var(--brand-dark);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-title {
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-contact li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
}

/* Floating WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 100;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.5);
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* Page Headers */
.page-header {
  padding: 5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  text-align: center;
}

.page-header.dark {
  background: var(--brand-dark);
  color: var(--white);
}

.page-header.dark h1 {
  color: var(--white);
}

/* Legal Pages */
.legal-content {
  padding: 3rem;
  margin-top: 3rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-title { font-size: 3rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .top-bar { display: none; }
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .hero-title { font-size: 2.5rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .stat-item { border: none; border-bottom: 1px solid rgba(0,0,0,0.1); padding-bottom: 1rem; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (max-width: 480px) {
  /* Ultra mobile adjustments */
  .hero { height: 60vh; min-height: 400px; }
  .hero-title { font-size: 1.8rem; }
  .hero-desc { font-size: 1rem; }
  .hero-actions { flex-direction: column; gap: 0.5rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .section-title { font-size: 2rem; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 1.5rem; }
}

/* Prevent horizontal overflow on small screens */
html, body {
  overflow-x: hidden;
}
.page-section {
  overflow-x: hidden;
}
