@import './variables.css';

/* =========================================
   Reset & Base Styles
   ========================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background-color: var(--bg-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.25;
}

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

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

ul {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
}

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

.section-padding {
  padding: 5.5rem 0;
}

.section-padding-sm {
  padding: 3.5rem 0;
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.section-header {
  margin-bottom: 3.5rem;
}

.section-header.text-center {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.subtitle-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.subtitle-tag::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 3px;
  background: var(--primary);
  border-radius: var(--radius-full);
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-heading);
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--primary);
  color: var(--text-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.95rem 1.85rem;
  border-radius: var(--radius-full);
  box-shadow: 0 6px 20px var(--primary-glow);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px var(--primary-glow);
  color: var(--text-white);
}

.btn-primary i {
  font-size: 0.85rem;
  transition: transform var(--transition-fast);
}

.btn-primary:hover i {
  transform: translateX(4px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--bg-dark);
  color: var(--text-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.95rem 1.85rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: #1e293b;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--text-white);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid var(--border-light);
  color: var(--text-heading);
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
  transition: var(--transition-smooth);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

/* =========================================
   Top Bar Info
   ========================================= */
.topbar {
  background: #0f172a;
  color: #94a3b8;
  font-size: 0.825rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.45rem 0;
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-items {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.topbar-item i {
  color: var(--primary);
}

.topbar-item a:hover {
  color: var(--text-white);
}

.topbar-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.topbar-social a {
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  transition: var(--transition-fast);
}

.topbar-social a:hover {
  color: var(--text-white);
  background: var(--primary);
}

/* =========================================
   Header & Navigation
   ========================================= */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
  transition: all var(--transition-smooth);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.nav-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-brand img {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.nav-brand:hover img {
  transform: scale(1.02);
}

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

.nav-link {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-heading);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2.5px;
  background: var(--primary);
  border-radius: var(--radius-full);
  transition: width var(--transition-smooth);
}

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

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

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

.drawer-toggle-btn {
  background: rgba(15, 23, 42, 0.04);
  color: var(--text-heading);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition-fast);
}

.drawer-toggle-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  font-size: 1.5rem;
  color: var(--text-heading);
  cursor: pointer;
}

/* =========================================
   Off-Canvas Quick Contact Drawer
   ========================================= */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 17, 30, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.drawer-panel {
  position: fixed;
  top: 0;
  right: -420px;
  width: 100%;
  max-width: 400px;
  height: 100%;
  background: var(--bg-dark);
  color: #cbd5e1;
  z-index: 2001;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transition: right var(--transition-smooth);
}

.drawer-panel.active {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.drawer-logo img {
  height: 40px;
}

.drawer-close-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.drawer-close-btn:hover {
  background: var(--primary);
}

.drawer-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #94a3b8;
  margin-bottom: 2.5rem;
}

.drawer-section-title {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.drawer-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary);
}

.drawer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.drawer-contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.drawer-contact-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(249, 76, 48, 0.15);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.05rem;
}

.drawer-contact-text span {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #94a3b8;
  margin-bottom: 0.2rem;
}

.drawer-contact-text a,
.drawer-contact-text p {
  color: #f1f5f9;
  font-size: 0.95rem;
  line-height: 1.4;
  white-space: pre-line;
}

.drawer-contact-text a:hover {
  color: var(--primary);
}

.drawer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
}

.drawer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.drawer-social a:hover {
  background: var(--primary);
}

/* =========================================
   Mobile Navigation Menu Panel
   ========================================= */
.mobile-nav-panel {
  display: none;
  position: absolute;
  top: var(--header-height);
  left: 0;
  width: 100%;
  background: #ffffff;
  border-bottom: 2px solid var(--border-light);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-panel.open {
  display: flex;
}

.mobile-nav-panel .nav-link {
  font-size: 1.15rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

/* =========================================
   Page Banner (For Subpages)
   ========================================= */
.page-banner {
  background: linear-gradient(135deg, #0b111e 0%, #151f33 100%);
  color: #ffffff;
  padding: 4.5rem 0;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: radial-gradient(circle at 80% 20%, rgba(249, 76, 48, 0.18) 0%, transparent 60%);
  pointer-events: none;
}

.page-banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: #94a3b8;
  margin-bottom: 1rem;
}

.breadcrumbs a {
  color: #cbd5e1;
  transition: color var(--transition-fast);
}

.breadcrumbs a:hover {
  color: var(--primary);
}

.breadcrumbs span.divider {
  color: #64748b;
}

.breadcrumbs span.current {
  color: var(--primary);
  font-weight: 700;
}

.page-banner-title {
  font-size: clamp(2.2rem, 4vw, 3.25rem);
  font-weight: 800;
  color: #ffffff;
}

/* =========================================
   Footer CTA Top Bar
   ========================================= */
.footer-cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #d8341a 100%);
  color: #ffffff;
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

.footer-cta-banner::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.footer-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer-cta-title h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: #ffffff;
  font-weight: 800;
}

.footer-cta-btn .btn-secondary {
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.footer-cta-btn .btn-secondary:hover {
  background: #ffffff;
  color: var(--primary);
}

/* =========================================
   Main Site Footer
   ========================================= */
.site-footer {
  background: #0b111e;
  color: #94a3b8;
  padding-top: 4.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.footer-widget-about .footer-logo {
  display: inline-block;
  margin-bottom: 1.25rem;
}

.footer-widget-about .footer-logo img {
  height: 44px;
  width: auto;
}

.footer-widget-about p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #94a3b8;
  margin-bottom: 1.5rem;
}

.footer-social-links {
  display: flex;
  gap: 0.65rem;
}

.footer-social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-social-links a:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-widget h4 {
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-widget h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 25px;
  height: 2.5px;
  background: var(--primary);
  border-radius: var(--radius-full);
}

.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-menu li a {
  font-size: 0.95rem;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer-menu li a::before {
  content: '›';
  font-size: 1.1rem;
  color: var(--primary);
  line-height: 1;
}

.footer-menu li a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.footer-location-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.footer-location-item i {
  color: var(--primary);
  font-size: 1.1rem;
  margin-top: 0.2rem;
}

.footer-location-item a,
.footer-location-item p {
  color: #94a3b8;
  font-size: 0.925rem;
  line-height: 1.5;
}

.footer-location-item a:hover {
  color: #ffffff;
}

.footer-subscribe-desc {
  font-size: 0.95rem;
  color: #94a3b8;
  margin-bottom: 1.2rem;
}

.footer-subscribe-desc span {
  color: var(--primary);
  font-weight: 700;
}

.newsletter-form {
  position: relative;
  display: flex;
  align-items: center;
}

.newsletter-form input {
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 0.85rem 3.5rem 0.85rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  transition: border-color var(--transition-fast);
}

.newsletter-form input::placeholder {
  color: #64748b;
}

.newsletter-form input:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.1);
}

.newsletter-form button {
  position: absolute;
  right: 5px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.newsletter-form button:hover {
  background: var(--primary-hover);
  transform: scale(1.05);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.75rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: #64748b;
}

.footer-bottom a:hover {
  color: var(--primary);
}

/* =========================================
   Scroll to Top Floating Button
   ========================================= */
.scroll-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 48px;
  height: 48px;
  background: #0f172a;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all var(--transition-smooth);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px var(--primary-glow);
}

/* =========================================
   Interactive Toast Notification
   ========================================= */
.toast-container {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: #0f172a;
  color: #ffffff;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  border-left: 4px solid var(--primary);
  animation: slideUp 0.3s ease forwards;
}

.toast.success {
  border-left-color: #10b981;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================
   Responsive Breakpoints
   ========================================= */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 860px) {
  .topbar {
    display: none;
  }

  .nav-menu {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .footer-cta-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .section-padding {
    padding: 3.5rem 0;
  }

  .drawer-panel {
    max-width: 100%;
  }
}
