/* SafeSiteX - custom.css
   Accent: #dc2626
   Template: 2149_strategic_consulting
*/

/* =============================================
   CSS Variables
   ============================================= */
:root {
  --accent: #dc2626;
  --accent-dark: #b91c1c;
  --accent-light: #fca5a5;
  --bg-rgb: 248, 250, 252;
  --text-dark: #1a202c;
  --text-muted: #64748b;
}

/* =============================================
   Override template accent colors with brand red
   ============================================= */
.cta-button:hover {
  background: #fff !important;
  color: #dc2626 !important;
}

.nav-links a::after,
.logo,
.logo-icon {
  background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
}

.logo {
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.logo-icon {
  -webkit-text-fill-color: white !important;
  color: white !important;
}

.nav-links a:hover {
  color: #dc2626 !important;
}

.nav-links a.active {
  color: #dc2626 !important;
}

/* =============================================
   R77: Nav cleanup
   ============================================= */
.nav-item {
  margin-bottom: 0 !important;
  background-image: none !important;
}
.site-logo {
  max-width: none !important;
}
.btn-accent, .cta-primary, .cta-secondary {
  white-space: nowrap;
}

/* =============================================
   R79: Hero transparent
   ============================================= */
.header-thumb {
  background: transparent !important;
  border: none !important;
}

/* =============================================
   R89: Overlay pointer-events
   ============================================= */
.tm-bg-overlay, [class*="overlay"] {
  pointer-events: none !important;
}

/* =============================================
   R81: Force accent color on icons
   ============================================= */
.feature-icon .fa, .card-icon .fa, .step-icon .fa {
  color: var(--accent) !important;
}

/* =============================================
   Template active color override
   ============================================= */
.service-tab.active,
.service-tab:hover {
  border-color: rgba(220, 38, 38, 0.4) !important;
}
.service-tab.active::before {
  background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
}
.feature-check {
  background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
}
.submit-btn {
  background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
}
.stat-number {
  color: #fca5a5 !important;
}

/* =============================================
   Logo & Navbar
   ============================================= */
.navbar-logo img {
  height: 40px;
  width: auto;
  display: block;
}

/* =============================================
   Container Narrow (R-required)
   ============================================= */
.container-narrow {
  max-width: 720px;
  margin: 0 auto;
}

/* =============================================
   Page Hero (for subpages)
   ============================================= */
.page-hero {
  background: linear-gradient(135deg, #1e293b 0%, #7f1d1d 50%, #dc2626 100%);
  color: #fff;
  padding: 120px 5% 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.page-hero h1 {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -1px;
  color: #fff;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}
.page-hero p {
  font-size: 20px;
  color: rgba(255,255,255,0.88);
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* =============================================
   Section spacing
   ============================================= */
.content-section {
  padding: 80px 5%;
}
.content-section-dark {
  background: linear-gradient(135deg, #1e293b, #374151);
  color: #e2e8f0;
  padding: 80px 5%;
}
.content-section-dark h2,
.content-section-dark h3 {
  color: #f1f5f9;
}
.content-section-dark p {
  color: #c8d6e5;
}
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 {
  font-size: 40px;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.section-header p {
  font-size: 18px;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
}
.content-section-dark .section-header h2 {
  color: #f1f5f9;
}
.content-section-dark .section-header p {
  color: #8fabc4;
}

/* =============================================
   Feature Cards Grid (R69: 3 columns divides evenly by 3)
   ============================================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 991px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  .features-grid { grid-template-columns: 1fr; }
}

.feature-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px 28px;
  transition: all 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(220,38,38,0.12);
  border-color: rgba(220,38,38,0.2);
}
.feature-card .card-icon {
  width: 52px;
  height: 52px;
  background: rgba(220,38,38,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-card .card-icon .fa {
  font-size: 22px;
  color: #dc2626 !important;
}
.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 16px;
  color: #64748b;
  line-height: 1.7;
}

/* Dark bg feature cards */
.content-section-dark .feature-card {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.12);
  color: #e2e8f0;
}
.content-section-dark .feature-card h3 {
  color: #f1f5f9;
}
.content-section-dark .feature-card p {
  color: #c8d6e5;
}
.content-section-dark .feature-card .card-icon {
  background: rgba(220,38,38,0.2);
}

/* =============================================
   Steps Section (R80: CSS grid, NOT Bootstrap col-md-*)
   ============================================= */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
@media (max-width: 991px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  .steps-grid { grid-template-columns: 1fr; }
}
.step-item {
  text-align: center;
  padding: 32px 20px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
}
.step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.step-item h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 10px;
}
.step-item p {
  font-size: 15px;
  color: #64748b;
  line-height: 1.6;
}
.step-icon .fa {
  font-size: 26px;
  color: #dc2626 !important;
}

/* =============================================
   Buttons (R75, R-BTN: light-bg and dark-bg variants)
   ============================================= */
/* Light background button (dark text) */
.btn-primary-light {
  display: inline-block;
  padding: 14px 36px;
  background: #dc2626;
  color: #fff !important;
  font-size: 16px;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  border: 2px solid #dc2626;
  transition: all 0.3s ease;
  cursor: pointer;
}
.btn-primary-light:hover {
  background: #b91c1c;
  border-color: #b91c1c;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(220,38,38,0.3);
}

/* Light background outline */
.btn-secondary-light {
  display: inline-block;
  padding: 14px 36px;
  background: transparent;
  color: #1e293b !important;
  font-size: 16px;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  border: 2px solid #1e293b;
  transition: all 0.3s ease;
  cursor: pointer;
}
.btn-secondary-light:hover {
  background: #1e293b;
  color: #fff !important;
  transform: translateY(-2px);
}

/* Dark background button (white fill) */
.btn-primary-dark {
  display: inline-block;
  padding: 14px 36px;
  background: #dc2626;
  color: #fff !important;
  font-size: 16px;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  border: 2px solid #dc2626;
  transition: all 0.3s ease;
  cursor: pointer;
}
.btn-primary-dark:hover {
  background: #b91c1c;
  border-color: #b91c1c;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(220,38,38,0.4);
}

/* Dark background outline (white border/text) */
.btn-secondary-dark {
  display: inline-block;
  padding: 14px 36px;
  background: transparent;
  color: #fff !important;
  font-size: 16px;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.7);
  transition: all 0.3s ease;
  cursor: pointer;
}
.btn-secondary-dark:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  color: #fff !important;
  transform: translateY(-2px);
}

/* =============================================
   Team Cards (R84: 2-3 founders, R86: avatar object-position center)
   ============================================= */
.team-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 991px) {
  .team-cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  .team-cards-grid { grid-template-columns: 1fr; }
}
.team-card-item {
  background: #fff;
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}
.team-card-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
}
.team-avatar-wrap {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  border: 3px solid rgba(220,38,38,0.2);
}
.team-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.team-card-item h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 6px;
}
.team-card-item .team-role {
  font-size: 14px;
  font-weight: 600;
  color: #dc2626;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.team-card-item p {
  font-size: 15px;
  color: #64748b;
  line-height: 1.6;
}

/* Culture stats strip */
.culture-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 64px;
  padding: 40px;
  background: linear-gradient(135deg, #1e293b, #dc2626);
  border-radius: 24px;
  color: #fff;
}
@media (max-width: 767px) {
  .culture-stats { grid-template-columns: repeat(2, 1fr); }
}
.culture-stat {
  text-align: center;
}
.culture-stat .stat-val {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  display: block;
}
.culture-stat .stat-lbl {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  margin-top: 6px;
}

/* =============================================
   Blog / News Grid (R78)
   ============================================= */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 991px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  .blog-grid { grid-template-columns: 1fr; }
}
.blog-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.blog-card-body {
  padding: 24px;
}
.blog-card-meta {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 10px;
}
.blog-card-tag {
  display: inline-block;
  background: rgba(220,38,38,0.1);
  color: #dc2626;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.blog-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 10px;
  line-height: 1.4;
}
.blog-card p {
  font-size: 15px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 16px;
}
.blog-card-link {
  font-size: 14px;
  font-weight: 600;
  color: #dc2626;
  text-decoration: none;
}
.blog-card-link:hover {
  text-decoration: underline;
}

/* R-IMG: Article images */
article img {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

/* =============================================
   Pricing Page
   ============================================= */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}
@media (max-width: 991px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}
.pricing-card {
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}
.pricing-card.featured {
  border-color: #dc2626;
  box-shadow: 0 8px 32px rgba(220,38,38,0.18);
  transform: scale(1.03);
}
.pricing-card .badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #dc2626;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 18px;
  border-radius: 20px;
  white-space: nowrap;
}
.pricing-card h3 {
  font-size: 22px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 16px;
}
.pricing-card .price {
  font-size: 48px;
  font-weight: 900;
  color: #dc2626;
  margin-bottom: 6px;
}
.pricing-card .price span {
  font-size: 18px;
  font-weight: 500;
  color: #64748b;
}
.price-desc {
  font-size: 15px;
  color: #64748b;
  margin-bottom: 24px;
}
.pricing-card ul.features {
  list-style: none;
  padding: 0;
  text-align: left;
  margin-bottom: 28px;
}
.pricing-card ul.features li {
  font-size: 15px;
  color: #475569;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
  padding-left: 22px;
  position: relative;
}
.pricing-card ul.features li::before {
  content: '\f00c';
  font-family: FontAwesome;
  color: #dc2626;
  position: absolute;
  left: 0;
  font-size: 12px;
  top: 10px;
}
.pricing-card .btn-primary-light,
.pricing-card .btn-secondary-light {
  width: 100%;
  text-align: center;
  display: block;
}

/* FAQ accordion */
.faq-section {
  padding: 80px 5%;
  background: #f8fafc;
}
.faq-section h2 {
  text-align: center;
  font-size: 40px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 48px;
}
.faq-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-question {
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}
.faq-question .fa {
  color: #dc2626;
  font-size: 16px;
  transition: transform 0.3s;
}
.faq-answer {
  font-size: 16px;
  color: #64748b;
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  line-height: 1.7;
}
.faq-item.open .faq-answer {
  padding: 0 24px 20px;
  max-height: 300px;
}
.faq-item.open .faq-question .fa {
  transform: rotate(180deg);
}

/* =============================================
   Contact Page
   ============================================= */
.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 767px) {
  .contact-page-grid { grid-template-columns: 1fr; }
}
.contact-info-block h3 {
  font-size: 22px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}
.contact-info-block p {
  font-size: 16px;
  color: #64748b;
  margin-bottom: 32px;
  line-height: 1.7;
}
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}
.contact-detail .fa {
  font-size: 18px;
  color: #dc2626;
  margin-top: 3px;
  flex-shrink: 0;
}
.contact-detail strong {
  font-size: 15px;
  color: #1e293b;
  display: block;
  margin-bottom: 2px;
}
.contact-detail span {
  font-size: 15px;
  color: #64748b;
}

.contact-form-box {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 40px;
}
.contact-form-box h3 {
  font-size: 22px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 24px;
}
.form-field {
  margin-bottom: 20px;
}
.form-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 15px;
  color: #1e293b;
  background: #f8fafc;
  transition: all 0.2s;
  font-family: inherit;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: #dc2626;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(220,38,38,0.08);
}
.form-field textarea {
  min-height: 130px;
  resize: vertical;
}

/* =============================================
   About Page
   ============================================= */
.about-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 767px) {
  .about-two-col { grid-template-columns: 1fr; }
}
.about-two-col img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
}

/* Values grid (3 cols) */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 767px) {
  .values-grid { grid-template-columns: 1fr; }
}
.value-card {
  background: #fff;
  border-radius: 14px;
  padding: 28px 24px;
  border: 1px solid #e2e8f0;
  text-align: center;
}
.value-card .fa {
  font-size: 28px;
  color: #dc2626;
  margin-bottom: 14px;
  display: block;
}
.value-card h4 {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 10px;
}
.value-card p {
  font-size: 15px;
  color: #64748b;
  line-height: 1.6;
}

/* =============================================
   Footer
   ============================================= */
.site-footer {
  background: #0f172a;
  color: rgba(255,255,255,0.75);
  padding: 60px 5% 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 40px;
}
@media (max-width: 767px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand h3 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.footer-brand p {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  margin-bottom: 12px;
}
.footer-brand .footer-address {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}
.footer-col h4 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col ul li a {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul li a:hover {
  color: #fca5a5;
}
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 14px;
  color: rgba(255,255,255,0.45);
}

/* =============================================
   Cookie Banner
   ============================================= */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0f172a;
  color: #e2e8f0;
  padding: 18px 5%;
  z-index: 9999;
  border-top: 2px solid #dc2626;
}
.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-text strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.cookie-text p {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin: 0;
}
.cookie-text p a {
  color: #fca5a5;
  text-decoration: underline;
}
.cookie-buttons {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
#cookie-decline {
  padding: 9px 22px;
  border: 2px solid rgba(255,255,255,0.4);
  background: transparent;
  color: rgba(255,255,255,0.8);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
#cookie-decline:hover {
  border-color: #fff;
  color: #fff;
}
#cookie-accept {
  padding: 9px 22px;
  border: 2px solid #dc2626;
  background: #dc2626;
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
#cookie-accept:hover {
  background: #b91c1c;
  border-color: #b91c1c;
}

/* =============================================
   Misc utility
   ============================================= */
.accent-text { color: #dc2626 !important; }
.text-center { text-align: center; }
.mt-48 { margin-top: 48px; }
.mb-48 { margin-bottom: 48px; }
.label-tag {
  display: inline-block;
  background: rgba(220,38,38,0.1);
  color: #dc2626;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
