/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #1A2A4E;
  --primary-light: #2C3E6E;
  --accent: #D4A843;
  --text: #333;
  --text-light: #666;
  --bg: #f8f9fa;
  --white: #fff;
  --shadow: 0 2px 15px rgba(0,0,0,0.08);
  --radius: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--primary);
  padding: 8px 0;
  font-size: 13px;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left a {
  color: rgba(255,255,255,0.8);
  margin-right: 20px;
}

.top-bar-left a:hover { color: var(--accent); }
.top-bar-left i { margin-right: 6px; }

.top-bar-right a {
  color: rgba(255,255,255,0.8);
  margin-left: 12px;
  font-size: 14px;
}

.top-bar-right a:hover { color: var(--accent); }

/* ===== HEADER ===== */
.header {
  background: var(--white);
  padding: 15px 0;
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  flex-direction: column;
}

.logo-text {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
}

.logo-highlight {
  color: var(--accent);
}

.logo-sub {
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: 0.5px;
}

.header-contact {
  display: flex;
  gap: 30px;
}

.header-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-contact-item i {
  font-size: 20px;
  color: var(--accent);
}

.header-contact-item span {
  font-size: 11px;
  color: var(--text-light);
  display: block;
}

.header-contact-item strong {
  font-size: 14px;
  color: var(--primary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--primary);
  cursor: pointer;
}

/* ===== NAVIGATION ===== */
.main-nav {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-list {
  display: flex;
  align-items: center;
}

.nav-list > li > a {
  display: block;
  padding: 16px 20px;
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: background 0.3s;
}

.nav-list > li:hover > a,
.nav-list > li.active > a {
  background: var(--accent);
}

/* Dropdown */
.has-dropdown {
  position: relative;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--white);
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
  border-radius: 0 0 8px 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s;
  z-index: 100;
}

.has-dropdown:hover > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 10px 20px;
  color: var(--text);
  font-size: 13px;
  transition: all 0.3s;
}

.dropdown li a:hover {
  background: var(--bg);
  color: var(--accent);
  padding-left: 25px;
}

.dropdown .has-dropdown > .dropdown {
  top: 0;
  left: 100%;
  border-radius: 0 8px 8px 0;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  height: 500px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  opacity: 1;
}

.hero-content h1 {
  font-size: 42px;
  color: var(--white);
  margin-bottom: 20px;
}

.hero-content h1 span {
  color: var(--accent);
}

.hero-list {
  margin-bottom: 30px;
}

.hero-list li {
  color: rgba(255,255,255,0.9);
  font-size: 18px;
  margin-bottom: 10px;
}

.hero-list li i {
  color: var(--accent);
  margin-right: 10px;
}

.hero-prev, .hero-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s;
  z-index: 10;
}

.hero-prev:hover, .hero-next:hover {
  background: var(--accent);
}

.hero-prev { left: 20px; }
.hero-next { right: 20px; }

.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.hero-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.3s;
}

.hero-dots .dot.active {
  background: var(--accent);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: #c49a3a;
  transform: translateY(-2px);
}

.btn-light {
  background: var(--white);
  color: var(--primary);
  font-weight: 600;
}

.btn-light:hover {
  background: var(--accent);
  color: var(--white);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 12px;
  background: var(--primary);
  color: var(--white);
  border-radius: 4px;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  padding: 40px 0;
}

.cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cta-text h2 {
  color: var(--white);
  font-size: 24px;
  margin-bottom: 8px;
}

.cta-text p {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  max-width: 600px;
}

/* ===== FEATURES ===== */
.features {
  padding: 80px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.feature-card {
  text-align: center;
  padding: 30px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 168, 67, 0.1);
  border-radius: 50%;
}

.feature-icon i {
  font-size: 28px;
  color: var(--accent);
}

.feature-card h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: var(--primary);
}

.feature-card p {
  font-size: 13px;
  color: var(--text-light);
}

/* ===== SECTION HEADER ===== */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-header p {
  color: var(--text-light);
  font-size: 15px;
}

/* ===== SERVICES ===== */
.services {
  padding: 80px 0;
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 250px;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.service-card:hover .service-image img {
  transform: scale(1.1);
}

.service-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 42, 78, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover .service-overlay {
  opacity: 1;
}

.service-overlay h3 {
  color: var(--white);
  font-size: 20px;
  margin-bottom: 15px;
}

/* ===== WHY US ===== */
.why-us {
  padding: 80px 0;
}

.why-us-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.why-us-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.why-us-content h2 {
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 15px;
}

.why-us-content p {
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.8;
}

.why-us-list li {
  padding: 8px 0;
  color: var(--text);
  font-size: 14px;
}

.why-us-list li i {
  color: var(--accent);
  margin-right: 10px;
}

.why-us-content .btn {
  margin-top: 20px;
}

/* ===== BLOG ===== */
.blog-section {
  padding: 80px 0;
  background: var(--white);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.blog-card {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.blog-image {
  height: 200px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-content {
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.blog-date {
  text-align: center;
  background: var(--primary);
  color: var(--white);
  padding: 8px 12px;
  border-radius: 6px;
  min-width: 50px;
}

.blog-date .day {
  display: block;
  font-size: 18px;
  font-weight: 700;
}

.blog-date .month {
  display: block;
  font-size: 9px;
  letter-spacing: 1px;
}

.blog-content h3 {
  font-size: 14px;
  color: var(--primary);
  margin-bottom: 5px;
}

.blog-content p {
  font-size: 12px;
  color: var(--text-light);
}

/* ===== FOOTER ===== */
.footer {
  background: #1e2a3a;
  padding-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer h4 {
  color: var(--white);
  font-size: 16px;
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  transition: color 0.3s;
}

.footer-col ul li a:hover {
  color: var(--accent);
}

.footer-contact li {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-contact li i {
  color: var(--accent);
  margin-top: 3px;
}

.footer-social {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 14px;
  transition: all 0.3s;
}

.footer-social a:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
}

.footer-bottom .logo-text {
  font-size: 20px;
  color: var(--white);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 999;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-us-grid { grid-template-columns: 1fr; }
  .header-contact { display: none; }
  .cta-content { flex-direction: column; text-align: center; gap: 20px; }
}

@media (max-width: 768px) {
  .top-bar { display: none; }
  .mobile-menu-btn { display: block; }
  
  .main-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background: var(--primary);
    transition: left 0.3s;
    z-index: 9999;
    overflow-y: auto;
    padding-top: 60px;
  }

  .main-nav.open { left: 0; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-list > li > a {
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(0,0,0,0.2);
  }

  .dropdown li a { color: rgba(255,255,255,0.8); }

  .hero-slider { height: 350px; }
  .hero-content h1 { font-size: 28px; }
  .hero-list li { font-size: 15px; }

  .features-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .footer-bottom-inner { flex-direction: column; gap: 10px; text-align: center; }
}
