/* Hardev Agency — Premium Static Website */
:root {
  --green-dark: #0d3320;
  --green: #1a4d2e;
  --green-light: #2d6a4f;
  --gold: #c9a227;
  --gold-light: #d4af37;
  --gold-pale: #f5e6b8;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-600: #6c757d;
  --gray-800: #343a40;
  --shadow: 0 10px 40px rgba(13, 51, 32, 0.12);
  --shadow-lg: 0 20px 60px rgba(13, 51, 32, 0.18);
  --radius: 16px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--green-dark);
  font-weight: 600;
}

a {
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

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

/* Page loader */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.5rem;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.loader-logo-wrap img {
  width: 72px;
  height: 72px;
}

.loader-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold-light);
  letter-spacing: 0.12em;
}

.loader-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(212, 175, 55, 0.2);
  border-top-color: var(--gold-light);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Navbar */
.navbar-ha {
  padding: 0.75rem 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.navbar-ha.scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  padding: 0.5rem 0;
}

.brand-ha {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-ha img {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text .name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: 0.06em;
}

.brand-text .tag {
  font-size: 0.65rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}

.navbar-ha .nav-link {
  color: var(--gray-800) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  position: relative;
}

.navbar-ha .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width var(--transition), left var(--transition);
}

.navbar-ha .nav-link:hover::after,
.navbar-ha .nav-link.active::after {
  width: 60%;
  left: 20%;
}

.navbar-ha .nav-link.active {
  color: var(--green) !important;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--green-dark) !important;
  border: none;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 162, 39, 0.4);
  color: var(--green-dark) !important;
}

.btn-outline-green {
  border: 2px solid var(--green);
  color: var(--green);
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  background: transparent;
  transition: all var(--transition);
}

.btn-outline-green:hover {
  background: var(--green);
  color: var(--white) !important;
}

.btn-green {
  background: linear-gradient(135deg, var(--green), var(--green-light));
  color: var(--white) !important;
  border: none;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 77, 46, 0.35);
  color: var(--white) !important;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(13, 51, 32, 0.9) 0%, rgba(26, 77, 46, 0.82) 45%, rgba(13, 51, 32, 0.92) 100%),
    url('../images/hero-bg.jpg') center/cover no-repeat;
  background-color: var(--green-dark);
  z-index: 0;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(212, 175, 55, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  color: var(--gold-pale);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero h1 span {
  background: linear-gradient(90deg, var(--gold-light), var(--gold-pale));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  max-width: 540px;
  margin-bottom: 2rem;
}

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

.hero-stats-mini {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-stats-mini .item strong {
  display: block;
  color: var(--gold-light);
  font-size: 1.5rem;
  font-family: var(--font-display);
}

.hero-stats-mini .item span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

/* Section utilities */
.section-padding {
  padding: 5rem 0;
}

.section-gray {
  background: var(--gray-50);
}

.section-title {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.section-label {
  display: inline-block;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}

.section-title h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
}

.section-title p {
  color: var(--gray-600);
  margin: 0;
}

/* Glass cards */
.glass-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
}

.glass-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  color: var(--gold-light);
  border-radius: 14px;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

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

.service-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
  margin: 0;
}

/* Product cards */
.product-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.product-card .img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.product-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .img-wrap img {
  transform: scale(1.08);
}

.product-card .img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 51, 32, 0.6), transparent);
}

.product-card .body {
  padding: 1.5rem;
}

.product-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.product-card p {
  color: var(--gray-600);
  font-size: 0.9rem;
  margin: 0;
}

/* Why choose */
.feature-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  transition: background var(--transition);
}

.feature-item:hover {
  background: var(--gray-100);
}

.feature-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--gold-pale), var(--white));
  border: 2px solid var(--gold);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 1.25rem;
}

/* Stats */
.stats-section {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
}

.stat-item {
  text-align: center;
  padding: 2rem 1rem;
  position: relative;
  z-index: 1;
}

.stat-item .number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-item .label {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Contact preview */
.contact-preview {
  background: var(--gray-100);
  border-radius: var(--radius);
  overflow: hidden;
}

.contact-info-block {
  padding: 2.5rem;
}

.contact-info-block .info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info-block .info-item i {
  width: 44px;
  height: 44px;
  background: var(--green);
  color: var(--gold-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.map-preview {
  min-height: 320px;
  background: var(--gray-200);
}

.map-preview iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

/* Page header (inner pages) */
.page-header {
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--white), transparent);
}

.page-header h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
  position: relative;
  z-index: 2;
}

.page-header .breadcrumb {
  position: relative;
  z-index: 2;
  margin: 0;
}

.page-header .breadcrumb a {
  color: var(--gold-pale);
}

.page-header .breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.8);
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
}

/* About page */
.value-card {
  text-align: center;
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  height: 100%;
  transition: transform var(--transition);
}

.value-card:hover {
  transform: translateY(-6px);
}

.value-card i {
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.mission-vision {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  border-radius: var(--radius);
  padding: 3rem;
  color: var(--white);
}

.mission-vision h3 {
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.mission-vision p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.about-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* Services page */
.service-detail-card {
  display: flex;
  gap: 2rem;
  padding: 2.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  transition: transform var(--transition);
  align-items: flex-start;
}

.service-detail-card:hover {
  transform: translateX(8px);
}

.service-detail-card .icon-lg {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--gold-light);
}

/* Contact form */
.contact-form .form-control,
.contact-form .form-select {
  border-radius: 10px;
  border: 1px solid var(--gray-200);
  padding: 0.75rem 1rem;
}

.contact-form .form-control:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 0.2rem rgba(26, 77, 46, 0.15);
}

.contact-form label {
  font-weight: 500;
  color: var(--green-dark);
}

.business-hours {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 2rem;
}

.business-hours li {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--gray-200);
}

.contact-cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 100%;
  width: min(100%, 320px);
}

.contact-cta-buttons .btn {
  width: 100%;
  border-radius: 50px;
  padding: 0.7rem 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.btn-whatsapp {
  background: #25d366;
  color: var(--white) !important;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn-whatsapp:hover {
  background: #1fb855;
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

/* Privacy policy */
.policy-content h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gold-pale);
}

.policy-content h3 {
  font-size: 1.2rem;
  margin-top: 1.5rem;
}

.policy-content ul {
  padding-left: 1.25rem;
}

.policy-content li {
  margin-bottom: 0.5rem;
}

.policy-updated {
  background: var(--gray-100);
  padding: 1rem 1.5rem;
  border-radius: 10px;
  border-left: 4px solid var(--gold);
}

/* Footer */
.footer-ha {
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.8);
  padding-top: 4rem;
}

.footer-ha h5 {
  color: var(--gold-light);
  font-size: 1rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-ha a {
  color: rgba(255, 255, 255, 0.75);
  display: block;
  padding: 0.35rem 0;
  font-size: 0.95rem;
}

.footer-ha a:hover {
  color: var(--gold-light);
}

.footer-brand .brand-text .name {
  color: var(--white);
}

.footer-brand .brand-text .tag {
  color: var(--gold-pale);
}

.footer-social a {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  margin-right: 0.5rem;
  transition: background var(--transition);
}

.footer-social a:hover {
  background: var(--gold);
  color: var(--green-dark) !important;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  margin-top: 3rem;
  font-size: 0.9rem;
}

/* Scroll to top */
#scroll-top {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 1000;
  cursor: pointer;
}

#scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

#scroll-top:hover {
  transform: translateY(-4px);
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--green-dark);
}

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: var(--white) !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  z-index: 1000;
  transition: transform var(--transition);
  animation: pulse-wa 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: var(--white) !important;
}

@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45); }
  50% { box-shadow: 0 6px 32px rgba(37, 211, 102, 0.7); }
}

/* Page fade */
body.page-loaded {
  animation: pageFade 0.5s ease;
}

@keyframes pageFade {
  from { opacity: 0.97; }
  to { opacity: 1; }
}

/* Responsive */
@media (max-width: 991.98px) {
  .hero {
    min-height: auto;
    padding: 7rem 0 4rem;
  }

  .service-detail-card {
    flex-direction: column;
  }

  #scroll-top {
    bottom: 90px;
    right: 16px;
  }

  .whatsapp-float {
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 575.98px) {
  .section-padding {
    padding: 3.5rem 0;
  }

  .hero-cta .btn {
    width: 100%;
    text-align: center;
  }
}
