/* =============================================
   Panix Solutions — Main CSS
   ============================================= */

:root {
  --primary: #0078a8;
  --primary-dark: #005f88;
  --secondary: #00c4ec;
  --dark: #0d2b3e;
  --dark-secondary: #185070;
  --text: #2c4a5a;
  --text-light: #607a8a;
  --border: #d0e4ec;
  --bg: #f0f8fc;
  --white: #FFFFFF;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --info: #0090c8;
  --status-ouvert: #0090c8;
  --status-en-cours: #F59E0B;
  --status-attente: #00a4c4;
  --status-resolu: #10B981;
  --status-ferme: #6B7280;
  --priority-faible: #10B981;
  --priority-normale: #0090c8;
  --priority-urgente: #F59E0B;
  --priority-critique: #EF4444;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 20px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.12);
  --transition: .2s ease;
}

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

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

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

/* ---- Utilities ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-sm { padding: 40px 0; }
.text-center { text-align: center; }
.text-white { color: var(--white); }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.gap-1 { gap: .5rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.grid { display: grid; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5 { color: var(--dark); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin-bottom: 1rem; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--white); }
.btn-secondary { background: var(--secondary); color: var(--white); border-color: var(--secondary); }
.btn-secondary:hover { background: #6d28d9; border-color: #6d28d9; color: var(--white); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-outline-white { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline-white:hover { background: var(--white); color: var(--primary); }
.btn-danger { background: var(--danger); color: var(--white); border-color: var(--danger); }
.btn-danger:hover { background: #dc2626; border-color: #dc2626; color: var(--white); }
.btn-success { background: var(--success); color: var(--white); border-color: var(--success); }
.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }
.btn-sm { padding: .4rem .9rem; font-size: .875rem; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

/* ---- Badges ---- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: .25rem .75rem;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 600;
}
.badge-info { background: rgba(59,130,246,.1); color: var(--info); }
.badge-warning { background: rgba(245,158,11,.1); color: var(--warning); }
.badge-success { background: rgba(16,185,129,.1); color: var(--success); }
.badge-danger { background: rgba(239,68,68,.1); color: var(--danger); }
.badge-secondary { background: rgba(107,114,128,.1); color: #6b7280; }
.badge-purple { background: rgba(139,92,246,.1); color: #7c3aed; }

/* ---- Forms ---- */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; margin-bottom: .5rem; font-weight: 500; color: var(--dark); }
.form-control {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  font-family: inherit;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.form-control::placeholder { color: var(--text-light); }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { cursor: pointer; }
.form-hint { font-size: .8rem; color: var(--text-light); margin-top: .25rem; }
.form-error { font-size: .85rem; color: var(--danger); margin-top: .25rem; }

/* ---- Alerts ---- */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  border-left: 4px solid;
  display: flex;
  gap: .75rem;
  align-items: flex-start;
}
.alert-success { background: rgba(16,185,129,.1); border-color: var(--success); color: #065f46; }
.alert-danger  { background: rgba(239,68,68,.1);  border-color: var(--danger);  color: #991b1b; }
.alert-warning { background: rgba(245,158,11,.1); border-color: var(--warning); color: #92400e; }
.alert-info    { background: rgba(59,130,246,.1); border-color: var(--info);    color: #1e40af; }

/* ---- Cards ---- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); }
.card-body { padding: 1.5rem; }
.card-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); }
.card-footer { padding: 1.25rem 1.5rem; border-top: 1px solid var(--border); background: var(--bg); }

/* ---- Navbar ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.navbar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 170px;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--dark);
  text-decoration: none;
  flex-shrink: 0;
}
.navbar-brand:hover { color: var(--dark); }
.brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
}
.brand-accent { color: var(--primary); }
.nav-menu {
  display: flex;
  list-style: none;
  gap: .25rem;
  margin: 0;
  padding: 0;
  flex: 1;
}
.nav-link {
  padding: .5rem .75rem;
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 500;
  transition: all var(--transition);
  display: block;
}
.nav-link:hover, .nav-link.active { background: rgba(0,120,168,.08); color: var(--primary); }
.nav-actions { display: flex; gap: .75rem; align-items: center; margin-left: auto; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, #185070 40%, #0d3d5a 100%);
  color: var(--white);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; max-width: 700px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
  padding: .4rem 1rem;
  border-radius: 100px;
  font-size: .85rem;
  margin-bottom: 1.5rem;
}
.hero h1 { color: var(--white); margin-bottom: 1.5rem; }
.hero h1 span { color: #5de0f8; }
.hero-desc { font-size: 1.15rem; color: rgba(255,255,255,.8); margin-bottom: 2rem; max-width: 560px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.hero-stat strong { display: block; font-size: 2rem; font-weight: 800; color: var(--white); }
.hero-stat span { font-size: .9rem; color: rgba(255,255,255,.7); }

/* ---- Section header ---- */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-label {
  display: inline-block;
  background: rgba(0,120,168,.1);
  color: var(--primary);
  padding: .35rem 1rem;
  border-radius: 100px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.section-title { margin-bottom: .75rem; }
.section-desc { color: var(--text-light); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* ---- Services grid ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
}
.service-card:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}
.service-card h3 { margin-bottom: .5rem; }
.service-card p { color: var(--text-light); font-size: .95rem; margin-bottom: 0; }

/* ---- Why choose us ---- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.why-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.why-icon {
  width: 48px;
  height: 48px;
  background: rgba(0,120,168,.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.why-item h3 { margin-bottom: .25rem; font-size: 1rem; }
.why-item p { color: var(--text-light); font-size: .9rem; margin: 0; }

/* ---- Reviews ---- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.review-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.review-stars { color: var(--warning); margin-bottom: 1rem; }
.review-message { color: var(--text); font-style: italic; margin-bottom: 1.25rem; }
.review-author strong { display: block; font-weight: 600; }
.review-author span { font-size: .875rem; color: var(--text-light); }

/* ---- Partners ---- */
.partners-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
}
.partner-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  text-align: center;
  transition: all var(--transition);
  min-width: 180px;
}
.partner-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }
.partner-card img { max-width: 120px; max-height: 60px; object-fit: contain; }
.partner-card p { font-size: .8rem; color: var(--text-light); margin: .5rem 0 0; }

/* ---- CTA section ---- */
.cta-section {
  background: linear-gradient(135deg, var(--dark-secondary), var(--primary));
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}
.cta-section h2 { color: var(--white); margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,.85); font-size: 1.1rem; margin-bottom: 2rem; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---- Footer ---- */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-brand { color: var(--white); margin-bottom: 1rem; display: inline-flex; }
.footer-desc { font-size: .9rem; line-height: 1.7; margin-bottom: 1.25rem; }
.footer-social { display: flex; gap: .75rem; }
.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--primary); color: white; }
.footer-col h3 { color: var(--white); margin-bottom: 1.25rem; font-size: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul a { color: rgba(255,255,255,.6); font-size: .9rem; transition: color var(--transition); }
.footer-col ul a:hover { color: var(--white); }
.footer-contact { list-style: none; }
.footer-contact li { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: .75rem; font-size: .9rem; }
.footer-contact i { color: var(--primary); margin-top: 3px; flex-shrink: 0; }
.footer-contact a { color: rgba(255,255,255,.6); }
.footer-contact a:hover { color: var(--white); }
.footer-badges { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }
.badge-tech {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
  padding: .2rem .6rem;
  border-radius: 4px;
  font-size: .75rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.5rem 0;
  text-align: center;
  font-size: .85rem;
}
.footer-bottom p { margin-bottom: .25rem; }
.footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color: var(--white); }

/* ---- Blog ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.blog-card-body { padding: 1.5rem; }
.blog-meta { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.blog-date { font-size: .8rem; color: var(--text-light); }
.blog-card h3 { margin-bottom: .75rem; font-size: 1.15rem; }
.blog-card h3 a { color: var(--dark); }
.blog-card h3 a:hover { color: var(--primary); }
.blog-excerpt { color: var(--text-light); font-size: .9rem; margin-bottom: 1.25rem; }
.blog-read-more { font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: .4rem; }
.blog-read-more:hover gap-1 { transform: translateX(4px); }

/* ---- Page hero ---- */
.page-hero {
  background: linear-gradient(135deg, var(--dark), var(--dark-secondary));
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}
.page-hero h1 { color: var(--white); font-size: 2.5rem; margin-bottom: .75rem; }
.page-hero p { color: rgba(255,255,255,.8); font-size: 1.1rem; margin: 0; }
.breadcrumb { display: flex; gap: .5rem; align-items: center; justify-content: center; margin-top: 1rem; font-size: .85rem; color: rgba(255,255,255,.6); }
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: var(--white); }

/* ---- Knowledgebase ---- */
.kb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.kb-category-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.kb-category-card h3 { margin-bottom: 1rem; }
.kb-category-card ul { list-style: none; }
.kb-category-card ul li { padding: .5rem 0; border-bottom: 1px solid var(--border); }
.kb-category-card ul li:last-child { border-bottom: none; }
.kb-category-card ul a { color: var(--text); font-size: .95rem; display: flex; gap: .5rem; align-items: center; }
.kb-category-card ul a:hover { color: var(--primary); }
.kb-category-card ul a i { color: var(--primary); }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; }
.contact-info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
}
.contact-info-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; }
.contact-info-icon {
  width: 44px;
  height: 44px;
  background: rgba(0,120,168,.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.contact-info-item h4 { margin-bottom: .25rem; font-size: .95rem; }
.contact-info-item p { color: var(--text-light); font-size: .9rem; margin: 0; }
.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* ---- Auth pages ---- */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--dark) 0%, #1a2744 50%, #2d1b69 100%);
  padding: 40px 20px;
}
.auth-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
}
.auth-logo { text-align: center; margin-bottom: 2rem; }
.auth-title { text-align: center; margin-bottom: .5rem; }
.auth-subtitle { text-align: center; color: var(--text-light); margin-bottom: 2rem; }
.auth-footer { text-align: center; margin-top: 1.5rem; font-size: .9rem; color: var(--text-light); }

/* ---- Support page ---- */
.support-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin-bottom: 3rem; }
.support-option-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: var(--text);
}
.support-option-card:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-4px); color: var(--text); }
.support-option-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.75rem;
  margin: 0 auto 1.25rem;
}
.support-option-card h3 { margin-bottom: .5rem; }
.support-option-card p { color: var(--text-light); font-size: .9rem; margin: 0; }

/* ---- Tables ---- */
.table-wrapper { overflow-x: auto; }
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.table th {
  background: var(--bg);
  padding: .875rem 1rem;
  text-align: left;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
}
.table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
  vertical-align: middle;
}
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--bg); }

/* ---- Pagination ---- */
.pagination { display: flex; gap: .5rem; align-items: center; justify-content: center; padding: 1.5rem 0; }
.pagination a, .pagination span {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  transition: all var(--transition);
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active { background: var(--primary); border-color: var(--primary); color: white; }

/* ---- Article ---- */
.article-content { max-width: 800px; margin: 0 auto; }
.article-content h2 { margin: 2rem 0 1rem; }
.article-content h3 { margin: 1.5rem 0 .75rem; }
.article-content ul, .article-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.article-content li { margin-bottom: .5rem; }
.article-content strong { color: var(--dark); }
.article-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  background: var(--bg);
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ---- 404 ---- */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}
.error-code { font-size: 8rem; font-weight: 900; color: var(--primary); opacity: .2; line-height: 1; }
.error-page h2 { font-size: 2rem; margin-bottom: 1rem; }
.error-page p { color: var(--text-light); margin-bottom: 2rem; }

/* ---- Responsive ---- */
@media (max-width: 1200px) {
  .offers-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .offers-grid,
  .offers-grid--3,
  .offers-grid--4,
  .offers-grid--5,
  .offers-grid--6 { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .offers-grid--2 { grid-template-columns: 1fr; max-width: 520px; }
  .offer-card--featured { transform: none; order: -1; }
  .offer-card--featured:hover { transform: translateY(-6px); }
}

@media (max-width: 768px) {
  /* Navbar */
  .navbar { height: 100px; gap: .75rem; }
  .nav-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--dark);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    z-index: 9999;
  }
  .nav-menu.open { display: flex; }
  .nav-menu .nav-link { color: var(--white); font-size: 1.25rem; padding: .75rem 2rem; }
  .nav-actions { display: none; }
  .nav-actions.open { display: flex; position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 10000; gap: .5rem; }
  .nav-toggle { display: flex; }
  /* Hero */
  .hero { padding: 60px 0 50px; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  .hero-desc { font-size: 1rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  /* Layout */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .section { padding: 50px 0; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .btn-lg { padding: .875rem 1.5rem; }
  /* Services grid */
  .services-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
  /* Why/expertise grid */
  .why-grid { grid-template-columns: 1fr; gap: 1rem; }
  /* Offers */
  .offers-grid,
  .offers-grid--1,
  .offers-grid--2,
  .offers-grid--3,
  .offers-grid--4,
  .offers-grid--5,
  .offers-grid--6 { grid-template-columns: 1fr; max-width: 100%; margin-left: 0; margin-right: 0; }
  .offer-card--featured { order: -1; }
  .offer-card-inner { padding: 1.75rem 1.5rem 1.5rem; }
  /* Reviews */
  .reviews-grid { grid-template-columns: 1fr; }
  /* Blog */
  .blog-grid { grid-template-columns: 1fr; gap: 1rem; }
  /* CTA */
  .cta-section { padding: 60px 0; }
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn { width: 100%; justify-content: center; max-width: 320px; }
  /* Support */
  .support-options { grid-template-columns: 1fr; }
}

/* ---- Promo Banner ---- */
.promo-banner {
  width: 100%;
  padding: .6rem 1rem;
  text-align: center;
  font-size: .9rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: .01em;
  position: relative;
  z-index: 999;
}
.promo-banner--primary { background: linear-gradient(90deg, var(--primary), var(--dark-secondary)); }
.promo-banner--success { background: linear-gradient(90deg, #059669, #10b981); }
.promo-banner--warning { background: linear-gradient(90deg, #d97706, #f59e0b); }
.promo-banner--danger  { background: linear-gradient(90deg, #dc2626, #ef4444); }

/* ---- Offers / Pricing ---- */
.offers-section {
  background: linear-gradient(160deg, #0d2b3e 0%, #0f3a55 40%, #0078a8 100%);
  padding: 90px 0;
}
.offers-section .section-label { background: rgba(255,255,255,.15); color: var(--white); }
.offers-section .section-title { color: var(--white); }
.offers-section .section-desc { color: rgba(255,255,255,.75); }
.promo-label { background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(124,58,237,.12)); color: var(--primary); }
.offers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}
/* Dynamic column counts */
.offers-grid--1 { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
.offers-grid--2 { grid-template-columns: repeat(2, 1fr); max-width: 860px; margin-left: auto; margin-right: auto; }
.offers-grid--4 { grid-template-columns: repeat(4, 1fr); }
.offers-grid--5,
.offers-grid--6 { grid-template-columns: repeat(3, 1fr); }
.offer-card {
  background: var(--white);
  border-radius: 20px;
  padding: 0;
  border: none;
  position: relative;
  transition: box-shadow .3s ease, transform .3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
}
.offer-card:hover { box-shadow: 0 20px 60px rgba(0,0,0,.28); transform: translateY(-6px); }
/* Top accent bar */
.offer-card::before {
  content: '';
  display: block;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  flex-shrink: 0;
}
.offer-card-inner {
  padding: 2.25rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.offer-card--featured {
  background: linear-gradient(160deg, #0d2b3e 0%, #185070 50%, #0078a8 100%);
  color: var(--white);
  box-shadow: 0 16px 56px rgba(0,120,168,.55);
  transform: scale(1.04);
}
.offer-card--featured:hover { transform: scale(1.04) translateY(-6px); }
.offer-card--featured::before { background: linear-gradient(90deg, #f59e0b, #ef4444, #f59e0b); }
.offer-card--featured h3,
.offer-card--featured p,
.offer-card--featured .offer-unit,
.offer-card--featured .offer-features li { color: rgba(255,255,255,.9); }
.offer-card--featured .offer-amount,
.offer-card--featured .offer-currency { color: var(--white); }
.offer-badge {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  padding: .3rem 1rem;
  border-radius: 100px;
  white-space: nowrap;
  margin-bottom: 1.25rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  align-self: flex-start;
}
.offer-badge--promo   { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.offer-badge--success { background: var(--success); }
.offer-badge--warning { background: var(--warning); }
.offer-badge--danger  { background: var(--danger); }
.offer-badge--web     { background: var(--success); }
.offer-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.7rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 6px 18px rgba(0,120,168,.35);
}
.offer-icon--white { background: rgba(255,255,255,.18); box-shadow: none; }
.offer-icon--secondary { background: linear-gradient(135deg, var(--success), #059669); box-shadow: 0 6px 18px rgba(16,185,129,.35); }
.offer-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--dark);
}
.offer-card--featured .offer-name { color: var(--white); }
.offer-price {
  margin-bottom: 1rem;
  line-height: 1;
  display: flex;
  align-items: flex-start;
  gap: .1rem;
}
.offer-amount { font-size: 3.5rem; font-weight: 900; color: var(--primary); line-height: 1; }
.offer-card--featured .offer-amount { color: var(--white); }
.offer-currency { font-size: 1.5rem; font-weight: 700; color: var(--primary); padding-top: .4rem; }
.offer-unit { display: block; font-size: .82rem; color: var(--text-light); margin-top: .5rem; align-self: flex-end; padding-bottom: .3rem; padding-left: .15rem; }
.offer-desc { color: var(--text-light); font-size: .92rem; margin-bottom: 1.5rem; line-height: 1.6; }
.offer-card--featured .offer-desc { color: rgba(255,255,255,.75); }
.offer-features {
  list-style: none;
  margin-bottom: 1.75rem;
  flex: 1;
}
.offer-features li {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  padding: .5rem 0;
  font-size: .9rem;
  border-bottom: 1px solid var(--border);
}
.offer-card--featured .offer-features li { border-bottom-color: rgba(255,255,255,.12); }
.offer-features li:last-child { border-bottom: none; }
.offer-features li i { color: var(--success); margin-top: 3px; flex-shrink: 0; font-size: .95rem; }
.offer-card--featured .offer-features li i { color: #86efac; }
.offer-cta-wrap { margin-top: auto; }

/* Discount ribbon & old price */
.offer-discount-ribbon {
  position: absolute;
  top: 16px;
  right: -1px;
  background: var(--danger);
  color: var(--white);
  font-size: .75rem;
  font-weight: 800;
  padding: .2rem .65rem;
  border-radius: var(--radius) 0 0 var(--radius);
  letter-spacing: .03em;
  z-index: 1;
}
.offer-price-old {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-light);
  text-decoration: line-through;
  margin-right: .35rem;
  align-self: center;
}
.offer-card--featured .offer-price-old { color: rgba(255,255,255,.5); }
.offers-note {
  text-align: center;
  margin-top: 2.5rem;
  font-size: .88rem;
  color: rgba(255,255,255,.65);
}
.offers-note i { color: rgba(255,255,255,.5); margin-right: .35rem; }
.offers-note a { color: var(--secondary); font-weight: 500; }

/* ============================================================
   EXTENDED STYLES — responsive, blog, article, animations
   ============================================================ */

/* ---- Scroll progress bar ---- */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  z-index: 9999;
  transition: width .1s linear;
}

/* ---- Skip to content ---- */
.skip-link {
  position: absolute;
  top: -40px;
  left: 1rem;
  background: var(--primary);
  color: var(--white);
  padding: .5rem 1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600;
  z-index: 10001;
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 0; color: var(--white); }

/* ---- Navbar: reduce height on small screens ---- */
@media (max-width: 480px) {
  .navbar { height: 80px; }
}

/* ---- 480px breakpoint (small phones) ---- */
@media (max-width: 480px) {
  .container { padding: 0 14px; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.05rem; }
  .section { padding: 40px 0; }
  .hero { padding: 48px 0 40px; }
  .hero-desc { font-size: 1rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats { gap: 1rem; flex-direction: row; flex-wrap: wrap; }
  .hero-stat { flex: 1 1 40%; }
  .btn-lg { font-size: 1rem; padding: .875rem 1.25rem; }
  .page-hero { padding: 40px 0; }
  .page-hero h1 { font-size: 1.6rem; }
  .cta-section { padding: 50px 0; }
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn { width: 100%; justify-content: center; max-width: 320px; }
  /* Contact form 2-col → 1-col */
  .contact-form-2col { grid-template-columns: 1fr !important; }
  /* Offer cards */
  .offer-card-inner { padding: 1.5rem 1rem 1.25rem; }
  .offer-amount { font-size: 2.8rem; }
  /* Footer */
  .footer-grid { gap: 1.5rem; }
  /* Services */
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 1.5rem; }
  /* Why */
  .why-grid { gap: .875rem; }
  .why-item { gap: .75rem; }
  .why-icon { width: 40px; height: 40px; font-size: 1rem; }
  /* Section header */
  .section-header { margin-bottom: 2rem; }
}

/* ---- IntersectionObserver animation class ---- */
.anim-fade {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .55s ease, transform .55s ease;
}
.anim-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Blog cards — enhanced ---- */
.blog-card { position: relative; }
.blog-card-meta-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: .85rem;
}
.blog-reading-time {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .78rem;
  color: var(--text-light);
  background: rgba(0,120,168,.07);
  border-radius: 100px;
  padding: .15rem .6rem;
}
.blog-category-tag {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(0,120,168,.1);
  border-radius: 100px;
  padding: .15rem .7rem;
}

/* ---- Article page — enhanced ---- */
.article-header {
  max-width: 800px;
  margin: 0 auto 2.5rem;
}
.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-bottom: 2rem;
  font-size: .875rem;
  color: var(--text-light);
}
.article-meta-bar i { color: var(--primary); }
.article-meta-bar strong { color: var(--text); }
.article-share {
  display: flex;
  gap: .5rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.article-share span { font-size: .85rem; font-weight: 600; color: var(--text-light); }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .9rem;
  border-radius: var(--radius);
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  border: 1.5px solid transparent;
}
.share-btn-linkedin { background: #0A66C2; color: #fff; }
.share-btn-linkedin:hover { background: #084fa3; color: #fff; }
.share-btn-twitter { background: #1DA1F2; color: #fff; }
.share-btn-twitter:hover { background: #0d8bd9; color: #fff; }
.share-btn-copy { background: var(--bg); color: var(--text); border-color: var(--border); }
.share-btn-copy:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ---- Article content refinements ---- */
.article-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
}
.article-content h2 {
  margin: 2.5rem 0 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--border);
  color: var(--dark);
}
.article-content h3 {
  margin: 1.75rem 0 .75rem;
  color: var(--dark-secondary);
}
.article-content p { margin-bottom: 1.2rem; }
.article-content ul, .article-content ol {
  padding-left: 1.75rem;
  margin-bottom: 1.25rem;
}
.article-content li { margin-bottom: .6rem; }
.article-content strong { color: var(--dark); }
.article-content a { color: var(--primary); font-weight: 500; }
.article-content a:hover { color: var(--primary-dark); }
.article-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 1.25rem 1.75rem;
  background: linear-gradient(135deg, rgba(0,120,168,.06), rgba(0,196,236,.04));
  margin: 1.75rem 0;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  font-style: italic;
  color: var(--dark);
}
.article-content .info-box {
  background: rgba(0,120,168,.08);
  border: 1px solid rgba(0,120,168,.2);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.article-content .info-box strong {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--primary);
  margin-bottom: .5rem;
  font-size: 1rem;
}
.article-content .warning-box {
  background: rgba(245,158,11,.08);
  border: 1px solid rgba(245,158,11,.3);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.article-content .warning-box strong {
  color: #92400e;
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .5rem;
}
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: .95rem;
}
.article-content table th {
  background: var(--dark);
  color: var(--white);
  padding: .75rem 1rem;
  text-align: left;
  font-weight: 600;
}
.article-content table td {
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--border);
}
.article-content table tr:last-child td { border-bottom: none; }
.article-content table tr:nth-child(even) td { background: var(--bg); }
.article-cta-box {
  background: linear-gradient(135deg, var(--dark), #185070);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  margin: 2.5rem 0;
}
.article-cta-box h3 { color: var(--white); margin-bottom: .75rem; }
.article-cta-box p { color: rgba(255,255,255,.8); margin-bottom: 1.25rem; }

/* ---- Floating CTA button (mobile) ---- */
.float-cta {
  display: none;
}
@media (max-width: 768px) {
  .float-cta {
    display: flex;
    align-items: center;
    gap: .6rem;
    position: fixed;
    bottom: 1.5rem;
    right: 1.25rem;
    background: var(--primary);
    color: var(--white);
    padding: .85rem 1.4rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: .9rem;
    box-shadow: 0 4px 20px rgba(0,120,168,.45);
    z-index: 900;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
  }
  .float-cta:hover { transform: scale(1.05); color: var(--white); }
}

/* ---- Blog grid on small screens ---- */
@media (max-width: 560px) {
  .blog-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
}
