/* ==================== CSS RESET & BASE ==================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #1a3a5c;
  --primary-light: #2c5282;
  --primary-dark: #0f2440;
  --accent: #e67e22;
  --accent-light: #f39c12;
  --bg-light: #f7f9fc;
  --bg-white: #ffffff;
  --text-dark: #1a202c;
  --text-body: #4a5568;
  --text-light: #718096;
  --border: #e2e8f0;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.15);
  --radius: 8px;
  --radius-lg: 12px;
  --max-w: 1200px;
  --transition: 0.3s ease;
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text-body);
  background: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }
ul { list-style: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ==================== NAVBAR ==================== */
.navbar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary);
}

.navbar-brand span {
  color: var(--accent);
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-nav a {
  color: var(--text-body);
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  transition: var(--transition);
}

.navbar-nav a:hover,
.navbar-nav a.active {
  background: var(--primary);
  color: var(--bg-white);
}

.lang-switch {
  display: flex;
  gap: 6px;
  margin-left: 16px;
  padding-left: 16px;
  border-left: 1px solid var(--border);
}

.lang-switch a {
  padding: 6px 10px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--bg-light);
  color: var(--text-light);
}

.lang-switch a.active {
  background: var(--primary);
  color: var(--bg-white);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  margin: 5px 0;
  transition: var(--transition);
}

/* ==================== HERO ==================== */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: var(--bg-white);
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(230,126,34,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(44,82,130,0.3) 0%, transparent 70%);
  border-radius: 50%;
}

.hero .container { position: relative; z-index: 1; }

.hero-badge {
  display: inline-block;
  background: rgba(230,126,34,0.2);
  color: var(--accent-light);
  border: 1px solid rgba(230,126,34,0.4);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.hero h1 {
  color: var(--bg-white);
  margin-bottom: 20px;
  max-width: 700px;
}

.hero h1 span { color: var(--accent-light); }

.hero-sub {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  max-width: 600px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-white);
  box-shadow: 0 4px 12px rgba(230,126,34,0.4);
}

.btn-primary:hover {
  background: var(--accent-light);
  color: var(--bg-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230,126,34,0.5);
}

.btn-outline {
  background: transparent;
  color: var(--bg-white);
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  color: var(--bg-white);
  border-color: rgba(255,255,255,0.8);
}

.btn-sm { padding: 10px 20px; font-size: 0.9rem; }
.btn-lg { padding: 18px 36px; font-size: 1.1rem; }

/* ==================== SECTIONS ==================== */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-light);
}

.section-dark {
  background: var(--primary-dark);
  color: var(--bg-white);
}

.section-dark h2,
.section-dark h3 {
  color: var(--bg-white);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-top: 12px;
}

.section-label {
  display: inline-block;
  background: rgba(230,126,34,0.1);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
}

/* ==================== SERVICES GRID ==================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: transparent;
}

.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--bg-white);
}

.service-card h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==================== FEATURES / BENEFITS ==================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: rgba(230,126,34,0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--accent);
}

.feature-item h4 {
  margin-bottom: 6px;
}

.feature-item p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ==================== CARDS ==================== */
.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-white);
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.1);
}

.card-body {
  padding: 24px;
}

.card-body h3 { margin-bottom: 8px; }

.card-body p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 12px;
}

/* ==================== STATS ==================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  text-align: center;
}

.stat-item { padding: 24px; }

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
}

/* ==================== CTA ==================== */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 80px 0;
  text-align: center;
  color: var(--bg-white);
}

.cta-section h2 {
  color: var(--bg-white);
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 32px;
}

/* ==================== CONTACT INFO ==================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.contact-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: var(--transition);
}

.contact-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.contact-card-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--bg-white);
  margin: 0 auto 16px;
}

.contact-card h3 {
  margin-bottom: 8px;
}

.contact-card p,
.contact-card a {
  color: var(--text-light);
  font-size: 0.95rem;
}

.contact-card a:hover {
  color: var(--accent);
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--bg-white);
  margin-bottom: 12px;
}

.footer-brand span { color: var(--accent); }

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer h4 {
  color: var(--bg-white);
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  padding: 5px 0;
  transition: var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
}

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

.backlinks-bar {
  background: rgba(0,0,0,0.2);
  padding: 16px 0;
  margin-top: 40px;
}

.backlinks-bar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
}

.backlinks-bar a {
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  transition: var(--transition);
}

.backlinks-bar a:hover { color: var(--accent-light); }

/* ==================== PAGE HEADER ==================== */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--bg-white);
  padding: 60px 0;
  text-align: center;
}

.page-header h1 {
  color: var(--bg-white);
  margin-bottom: 12px;
}

.page-header p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}

.breadcrumb a {
  color: rgba(255,255,255,0.7);
}

.breadcrumb a:hover { color: var(--accent-light); }

/* ==================== BLOG ==================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.blog-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.blog-card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--bg-white);
  position: relative;
}

.blog-card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: var(--bg-white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
}

.blog-card-body { padding: 24px; }

.blog-card-meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 10px;
}

.blog-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  line-height: 1.4;
}

.blog-card-body p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

/* ==================== BLOG ARTICLE ==================== */
.article-layout {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.article-header {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 2px solid var(--border);
}

.article-tag {
  display: inline-block;
  background: rgba(230,126,34,0.1);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.article-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 16px;
  line-height: 1.2;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-body);
}

.article-content h2 {
  font-size: 1.6rem;
  margin: 40px 0 16px;
  color: var(--primary-dark);
}

.article-content h3 {
  font-size: 1.25rem;
  margin: 28px 0 12px;
  color: var(--primary-dark);
}

.article-content p {
  margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
  margin: 16px 0 20px 24px;
}

.article-content li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 8px;
}

.article-content ul li::marker {
  color: var(--accent);
}

.article-content ol li::marker {
  color: var(--accent);
  font-weight: 700;
}

.article-content blockquote {
  border-left: 4px solid var(--accent);
  background: var(--bg-light);
  padding: 16px 24px;
  margin: 24px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--primary-dark);
}

.article-share {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.article-share span {
  font-weight: 700;
  color: var(--text-dark);
  margin-right: 8px;
}

/* ==================== ABOUT PAGE ==================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text p {
  color: var(--text-body);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-image {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-lg);
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--bg-white);
}

/* ==================== LEGAL ==================== */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.legal-content h2 {
  font-size: 1.4rem;
  margin: 32px 0 12px;
  color: var(--primary-dark);
}

.legal-content h3 {
  font-size: 1.15rem;
  margin: 20px 0 10px;
}

.legal-content p,
.legal-content li {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal-content ul { margin-left: 24px; margin-bottom: 16px; }

/* ==================== BACKLINKS SECTION ==================== */
.backlinks-section {
  background: var(--bg-light);
  padding: 60px 0;
  border-top: 1px solid var(--border);
}

.backlinks-section h3 {
  margin-bottom: 20px;
  text-align: center;
  font-size: 1.1rem;
}

.backlinks-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.backlink-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 500;
  transition: var(--transition);
}

.backlink-btn:hover {
  background: var(--primary);
  color: var(--bg-white);
  border-color: var(--primary);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .navbar-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    gap: 4px;
  }

  .navbar-nav.open { display: flex; }
  .navbar-nav a { padding: 12px 16px; }

  .mobile-toggle { display: block; }

  .lang-switch {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
  }

  .hero { padding: 60px 0 80px; }
  .hero h1 { font-size: 2rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }

  .section { padding: 60px 0; }
  .section-header { margin-bottom: 40px; }

  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-image { height: 250px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .article-layout { padding: 24px 16px 60px; }
  .article-header h1 { font-size: 1.75rem; }
}

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