


/* =============================================
   1. CSS VARIABLES
============================================= */
:root {
  --primary:     #2a2a72;
  --primary-mid: #3a3a8a;
  --gold:        #e69500;
  --white:       #ffffff;
  --dark:        #16163a;
  --gray:        #5a5a7a;
  --gray-light:  #f4f4f8;
  --shadow:      0 8px 32px rgba(42, 42, 114, 0.10);
}


/* =============================================
   2. RESET & BASE
============================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--dark);
  background: var(--white);
  -webkit-text-size-adjust: 100%;
}


/* =============================================
   3. LAYOUT
============================================= */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.bg-light {
  background: var(--gray-light);
}


/* =============================================
   4. HEADER & NAVIGATION
============================================= */
header {
  background: var(--primary);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 16px rgba(42, 42, 114, 0.18);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 48px;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 32px;
}

.nav-list a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.25s;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--white);
}


/* =============================================
   5. HERO SECTION
============================================= */
.service-hero {
  background: linear-gradient(140deg, var(--primary) 0%, var(--primary-mid) 100%);
  min-height: calc(100vh - 84px);
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.service-hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding-top: 56px;
  padding-bottom: 56px;
  width: 100%;
}

.service-hero::after {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  top: -160px;
  right: -120px;
  pointer-events: none;
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 4px;
  transition: color 0.25s;
}

.back-link:hover {
  color: var(--white);
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 6px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

/* Tag badge */
.tag {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 20px;
  margin-bottom: 8px;
}

/* Hero icon */
.hero-icon {
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 12px;
  display: block;
  animation: spin 12s linear infinite;
}

/* Hero title */
.service-hero h1 {
  font-size: 3.6rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  line-height: 1.18;
}

/* Hero description */
.hero-desc {
  font-size: 1.08rem;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.88;
  line-height: 1.78;
}


/* =============================================
   6. SECTIONS & TITLES
============================================= */
.section {
  padding: 88px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 54px;
}

.section-title h2 {
  font-size: 2.15rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-block;
  line-height: 1.25;
}

.section-title h2::after {
  content: "";
  display: block;
  width: 38px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 10px auto 18px;
}

.section-title p {
  color: var(--gray);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.72;
}


/* =============================================
   7. OFFER CARDS
============================================= */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
  gap: 24px;
}

.offer-card {
  background: var(--white);
  border-radius: 14px;
  padding: 36px 28px;
  border-top: 3px solid var(--primary-mid);
  box-shadow: var(--shadow);
  transition: transform 0.28s, box-shadow 0.28s;
}

.offer-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 48px rgba(42, 42, 114, 0.14);
}

.offer-card .icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.offer-card h3 {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
  line-height: 1.35;
}

.offer-card p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.75;
}


/* =============================================
   8. CATEGORY GRID
============================================= */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.cat-card {
  border-radius: 14px;
  padding: 36px 24px;
  text-align: center;
  color: var(--white);
  transition: transform 0.28s;
}

.cat-card:hover {
  transform: translateY(-6px);
}

.cat-card:nth-child(1) { background: linear-gradient(135deg, var(--primary), var(--primary-mid)); }
.cat-card:nth-child(2) { background: linear-gradient(135deg, var(--primary-mid), #4a4aaa); }
.cat-card:nth-child(3) { background: linear-gradient(135deg, #1e1e55, var(--primary)); }
.cat-card:nth-child(4) { background: linear-gradient(135deg, var(--primary), #222264); }

.cat-card i {
  font-size: 2.4rem;
  margin-bottom: 14px;
}

.cat-card h4 {
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.cat-card p {
  font-size: 0.9rem;
  opacity: 0.88;
  line-height: 1.65;
}


/* =============================================
   9. TOOL PILLS
============================================= */
.tools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 10px;
}

.tool-pill {
  background: var(--white);
  border: 2px solid var(--primary-mid);
  color: var(--primary);
  padding: 9px 22px;
  border-radius: 30px;
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.25s;
}

.tool-pill:hover {
  background: var(--primary);
  color: var(--white);
}


/* =============================================
   10. CTA SECTION & BUTTONS
============================================= */
.cta-section {
  background: linear-gradient(140deg, var(--primary) 0%, var(--primary-mid) 100%);
  padding: 88px 0;
  text-align: center;
  color: var(--white);
}

.cta-section h2 {
  font-size: 2.15rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.cta-section p {
  opacity: 0.88;
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.72;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.97rem;
  text-decoration: none;
  transition: all 0.28s;
}

.btn-primary {
  background: var(--white);
  color: var(--primary);
}

.btn-primary:hover {
  background: #ededff;
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
}

.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
  margin-left: 13px;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-3px);
}


/* =============================================
   11. FOOTER (SIMPLE)
============================================= */
footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  padding: 28px 24px;
  font-size: 0.9rem;
  line-height: 1.65;
}

footer a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.25s;
}

footer a:hover {
  color: var(--white);
}


/* =============================================
   12. FOOTER (EXTENDED LAYOUT)
============================================= */
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

/* Column headings */
.footer-col h3 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
}

.footer-col h3::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 3px;
  background: var(--gold);
  bottom: 0;
  left: 0;
  border-radius: 2px;
}

/* About column */
.footer-about p {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.93rem;
  line-height: 1.72;
}

/* Links column */
.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 0.93rem;
  display: inline-block;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--gold);
  transform: translateX(5px);
}

/* Contact column */
.footer-contact ul {
  list-style: none;
}

.footer-contact li {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.93rem;
  line-height: 1.6;
}

.footer-contact i {
  color: var(--gold);
  margin-right: 14px;
  margin-top: 3px;
  flex-shrink: 0;
}

/* Newsletter column */
.footer-newsletter p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.93rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.newsletter-form {
  display: flex;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 15px;
  border: none;
  border-radius: 4px 0 0 4px;
  font-family: "Poppins", sans-serif;
  font-size: 0.92rem;
  outline: none;
}

.newsletter-form button {
  background: var(--gold);
  color: var(--dark);
  border: none;
  padding: 0 20px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.3s ease;
}

.newsletter-form button:hover {
  background: #d48700;
}

/* Footer bottom bar */
.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.25s;
}

.footer-bottom a:hover {
  color: var(--gold);
}


/* =============================================
   13. ANIMATIONS
============================================= */
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}


/* =============================================
   14. MEDIA QUERIES
============================================= */

/* --- Desktop (1100px and below) --- */
@media (max-width: 1100px) {
  .offer-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

/* --- Tablet Landscape --- */
@media (max-width: 900px) {
  .section          { padding: 72px 0; }
  .section-title h2 { font-size: 2rem; }
  .section-title p  { font-size: 1rem; }

  .service-hero h1  { font-size: 3rem; }
  .hero-desc        { font-size: 1.05rem; }
}

/* --- iPad / Tablet Portrait --- */
@media (max-width: 820px) {

  /* Hero always vertically centred */
  .service-hero {
    min-height: calc(100vh - 72px);
    align-items: center;
  }

  .service-hero .container {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .service-hero h1  { font-size: 2.6rem; }
  .hero-desc        { font-size: 1.08rem; line-height: 1.82; max-width: 88%; }
  .hero-icon        { font-size: 3.6rem; }

  /* Nav */
  .nav-list   { gap: 18px; }
  .nav-list a { font-size: 0.9rem; }

  /* Section titles */
  .section-title h2 { font-size: 1.85rem; }
  .section-title p  { font-size: 1rem; }

  /* Cards — 2-column */
  .offer-grid,
  .category-grid    { grid-template-columns: repeat(2, 1fr); }

  .offer-card p,
  .cat-card p       { font-size: 0.95rem; line-height: 1.75; }

  /* Footer columns */
  .footer-content   { grid-template-columns: repeat(2, 1fr); }

  /* CTA */
  .cta-section h2   { font-size: 1.9rem; }
  .cta-section p    { font-size: 1rem; }
}

/* --- Mobile Large --- */
@media (max-width: 600px) {

  /* Nav hidden */
  .nav-list { display: none; }

  /* Hero */
  .service-hero h1  { font-size: 2.1rem; }
  .hero-desc        { font-size: 1rem; line-height: 1.78; max-width: 100%; }
  .hero-icon        { font-size: 3rem; }

  /* Grids go single column */
  .offer-grid,
  .category-grid    { grid-template-columns: 1fr; }

  /* Section */
  .section          { padding: 56px 0; }
  .section-title    { margin-bottom: 38px; }
  .section-title h2 { font-size: 1.7rem; }
  .section-title p  { font-size: 0.97rem; }

  /* CTA */
  .cta-section h2   { font-size: 1.75rem; }
  .cta-section p    { font-size: 0.97rem; }

  /* Buttons stack */
  .btn-outline {
    margin-left: 0;
    margin-top: 12px;
    display: block;
  }

  /* Footer */
  .footer-content  { grid-template-columns: 1fr; gap: 32px; }
  .newsletter-form { flex-direction: column; gap: 10px; }

  .newsletter-form input,
  .newsletter-form button {
    border-radius: 4px;
    width: 100%;
    padding: 12px 16px;
  }

  /* Tool pills */
  .tool-pill { font-size: 0.88rem; padding: 8px 18px; }
}

/* --- Mobile Small (400px and below) --- */
@media (max-width: 400px) {
  .service-hero h1  { font-size: 1.8rem; }
  .hero-desc        { font-size: 0.95rem; }
  .section-title h2 { font-size: 1.5rem; }
  .logo             { height: 38px; }
  .offer-card       { padding: 28px 20px; }
}