/* ═══════════════════════════════════════════════
   TAPELA SMM PANEL — Ethiopian Premium Theme
   Frontend Design v3 · Bold · Intentional
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,700&display=swap');

/* ── Design Tokens ─────────────────────────── */
:root {
  --et-green:  #009444;
  --et-gold:   #FCDD09;
  --et-red:    #DA291C;
  --et-dark:   #0f0f23;
  --et-cream:  #fcfaf7;
  --et-white:  #ffffff;
  --font-h:    'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-b:    'DM Sans', system-ui, -apple-system, sans-serif;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
  --radius:    12px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Typography ────────────────────────────── */
body {
  font-family: var(--font-b) !important;
  font-weight: 400;
  color: #2d3436;
  background: var(--et-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6,
.heading, .section-title, .section-header h2,
.banner-content h1, .banner-content .heading,
.counter-card .count {
  font-family: var(--font-h) !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
}

::selection { background: var(--et-gold); color: var(--et-dark); }

/* ── Preloader ─────────────────────────────── */
#overlayer {
  background: var(--et-dark) !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loader-inner, .loader-inner div {
  border-color: var(--et-gold) transparent transparent transparent !important;
}

/* ── Header & Navigation ───────────────────── */
.header-bottom-area,
.header-top-area {
  background: var(--et-dark) !important;
  padding: 12px 0;
  border-bottom: 3px solid var(--et-gold);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-bottom-area .navbar-collapse .main-menu li a,
.navbar-nav .nav-link,
.main-menu a,
.main-menu li a {
  color: rgba(255,255,255,0.85) !important;
  font-family: var(--font-b);
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 16px !important;
  transition: color var(--transition);
}

.header-bottom-area .navbar-collapse .main-menu li a.active,
.header-bottom-area .navbar-collapse .main-menu li a:hover,
.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover,
.main-menu a.active,
.main-menu a:hover {
  color: var(--et-gold) !important;
  font-weight: 700;
}

.navbar-toggler { border: none !important; }
.navbar-toggler .fa-bars,
.navbar-toggler-icon { color: var(--et-gold) !important; }

.site-logo img { max-height: 40px; transition: transform var(--transition); }
.site-logo:hover img { transform: scale(1.05); }

/* ── Hero / Banner ─────────────────────────── */
.banner-section {
  background: linear-gradient(160deg, var(--et-dark) 0%, #0a3320 40%, var(--et-green) 100%) !important;
  padding: 120px 0 100px !important;
  position: relative;
  overflow: hidden;
}

.banner-section::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(252,221,9,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.banner-section::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(218,41,28,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.banner-content h1,
.banner-content .heading {
  color: var(--et-white) !important;
  font-family: var(--font-h) !important;
  font-size: 52px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  margin-bottom: 24px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.banner-content h1 span,
.banner-content .heading span,
.banner-content .text--base {
  color: var(--et-gold) !important;
}

.banner-content p,
.banner-content .sub-heading {
  color: rgba(255,255,255,0.85) !important;
  font-family: var(--font-b);
  font-size: 18px;
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 32px;
}

/* ── Buttons ───────────────────────────────── */
.cmn-btn,
.btn--base,
.theme-button,
button[type="submit"],
.btn-primary,
.btn-success,
.submit-btn,
a.cmn-btn {
  display: inline-block;
  font-family: var(--font-b) !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--et-gold) !important;
  color: var(--et-dark) !important;
  border: 2px solid var(--et-gold) !important;
  padding: 14px 36px !important;
  border-radius: 8px !important;
  transition: all var(--transition) !important;
  box-shadow: 0 4px 15px rgba(252,221,9,0.3) !important;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.cmn-btn::after,
.btn--base::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.cmn-btn:hover::after,
.btn--base:hover::after { left: 100%; }

.cmn-btn:hover,
.btn--base:hover,
.theme-button:hover,
button[type="submit"]:hover {
  background: var(--et-white) !important;
  color: var(--et-dark) !important;
  border-color: var(--et-white) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(252,221,9,0.45) !important;
}

/* ── Section Spacing ───────────────────────── */
section,
.feature-section,
.about-section,
.service-section,
.choose-us-section,
.testimonial-section,
.process-section,
.action-section {
  padding: 100px 0;
}

section:nth-child(even),
.feature-section:nth-child(even),
.about-section:nth-child(even) {
  background: var(--et-white);
}

section:nth-child(odd),
.feature-section:nth-child(odd),
.about-section:nth-child(odd) {
  background: var(--et-cream);
}

/* ── Section Headings ──────────────────────── */
.section-header,
.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2,
.section-title h2,
.section-header .title {
  font-family: var(--font-h) !important;
  font-size: 40px !important;
  font-weight: 700 !important;
  color: var(--et-dark) !important;
  margin-bottom: 16px;
}

.section-header p,
.section-title p,
.section-header .subtitle {
  font-family: var(--font-b);
  font-size: 17px;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

/* ── Service & Feature Cards ───────────────── */
.service-card,
.feature-card,
.blog-card {
  background: var(--et-white);
  border: 1px solid #eee;
  border-radius: var(--radius);
  padding: 35px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before,
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--et-green) 0%, var(--et-gold) 50%, var(--et-red) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover,
.feature-card:hover,
.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card:hover::before,
.feature-card:hover::before {
  transform: scaleX(1);
}

.service-card .icon,
.feature-card .icon {
  font-size: 40px;
  color: var(--et-green);
  margin-bottom: 20px;
  transition: transform var(--transition);
}

.service-card:hover .icon,
.feature-card:hover .icon {
  transform: scale(1.1);
}

.service-card h4,
.feature-card h4,
.blog-card h4 {
  font-family: var(--font-h) !important;
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--et-dark);
}

.service-card p,
.feature-card p {
  color: #666;
  font-size: 15px;
  line-height: 1.7;
}

/* ── Counter / Stats ───────────────────────── */
.counter-section {
  background: var(--et-dark) !important;
  padding: 80px 0;
  position: relative;
}

.counter-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--et-gold), transparent);
}

.counter-card {
  text-align: center;
  padding: 20px;
}

.counter-card .count {
  font-family: var(--font-h);
  font-size: 48px;
  font-weight: 800;
  color: var(--et-gold);
  line-height: 1.2;
}

.counter-card .title {
  color: rgba(255,255,255,0.65);
  font-family: var(--font-b);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  margin-top: 8px;
}

/* ── Testimonials ──────────────────────────── */
.testimonial-card,
.testimonial-item {
  background: var(--et-white);
  border-left: 4px solid var(--et-gold);
  padding: 30px;
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-sm);
}

.testimonial-card .quote,
.testimonial-card .review {
  font-family: var(--font-h);
  font-style: italic;
  font-size: 17px;
  color: #555;
  line-height: 1.8;
}

.testimonial-card .name {
  font-family: var(--font-b);
  font-weight: 700;
  color: var(--et-dark);
  margin-top: 20px;
}

.testimonial-card .role {
  font-family: var(--font-b);
  font-size: 13px;
  color: #999;
}

/* ── Footer ────────────────────────────────── */
.footer-section,
footer,
.footer-bottom {
  background: var(--et-dark) !important;
  color: rgba(255,255,255,0.65);
  padding: 60px 0 30px;
}

.footer-section {
  border-top: 5px solid var(--et-gold) !important;
}

.footer-section h4,
footer h4,
.footer-section .widget-title {
  font-family: var(--font-h) !important;
  color: var(--et-white);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
}

.footer-section h4::after,
footer h4::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 40px;
  height: 2px;
  background: var(--et-gold);
}

.footer-section a,
footer a {
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
  text-decoration: none;
}

.footer-section a:hover,
footer a:hover {
  color: var(--et-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  font-size: 13px;
  text-align: center;
}

/* ── Links ─────────────────────────────────── */
a {
  color: var(--et-green);
  transition: color var(--transition);
  text-decoration: none;
}

a:hover {
  color: var(--et-gold);
}

/* ── Forms ─────────────────────────────────── */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
textarea,
select,
.form-control {
  font-family: var(--font-b);
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px 16px;
  transition: border-color var(--transition);
}

input:focus,
textarea:focus,
select:focus,
.form-control:focus {
  border-color: var(--et-gold);
  box-shadow: 0 0 0 3px rgba(252,221,9,0.15);
  outline: none;
}

/* ── Responsive ────────────────────────────── */
@media (max-width: 991px) {
  .banner-content h1,
  .banner-content .heading {
    font-size: 36px !important;
  }
  .banner-content p {
    font-size: 16px;
  }
  .section-header h2 {
    font-size: 32px !important;
  }
  .header-bottom-area .navbar-collapse {
    background: var(--et-dark) !important;
    padding: 20px;
    border-radius: var(--radius);
    margin-top: 15px;
  }
  .header-bottom-area .navbar-collapse .main-menu li a {
    padding: 10px 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  section,
  .feature-section,
  .about-section {
    padding: 60px 0;
  }
}

/* ── Keyframes ─────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.service-card,
.feature-card {
  animation: fadeInUp 0.6s ease both;
}

.service-card:nth-child(2) { animation-delay: 0.15s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
