/* ============================================
   INSPERON IT SOLUTIONS — style.css
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --red-dark:   #3f0d0d;
  --red-mid:    #6b1414;
  --red-brand:  #8c1c1c;
  --red-accent: #c81e1e;
  --red-light:  #e63946;
  --gold:        #f59e0b;
  --gold-light:  #fbbf24;
  --white:       #ffffff;
  --gray-50:     #f8fafc;
  --gray-100:    #f1f5f9;
  --gray-200:    #e2e8f0;
  --gray-400:    #94a3b8;
  --gray-600:    #475569;
  --gray-800:    #1e293b;
  --text:        #1e293b;
  --text-muted:  #64748b;

  --font-display: 'Syne', sans-serif;
  --font-body:    'Inter', sans-serif;

  --radius:    8px;
  --radius-lg: 16px;
  --shadow:    0 4px 24px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.12);
  --transition: 0.25s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--white); line-height: 1.65; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }

/* ---------- Utilities ---------- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 80px 0; }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head .eyebrow { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--red-accent); background: rgba(200,30,30,0.08); padding: 4px 14px; border-radius: 100px; margin-bottom: 14px; }
.section-head h2 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 42px); color: var(--red-dark); margin-bottom: 14px; }
.section-head p { color: var(--text-muted); max-width: 560px; margin: 0 auto; font-size: 17px; }

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-block; background: var(--red-accent); color: var(--white);
  padding: 13px 32px; border-radius: var(--radius); font-weight: 600; font-size: 15px;
  transition: var(--transition); border: 2px solid var(--red-accent);
}
.btn-primary:hover { background: #a51616; border-color: #a51616; transform: translateY(-1px); }
.btn-secondary {
  display: inline-block; background: transparent; color: var(--white);
  padding: 13px 32px; border-radius: var(--radius); font-weight: 600; font-size: 15px;
  transition: var(--transition); border: 2px solid rgba(255,255,255,0.5); margin-left: 12px;
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

/* ---------- Top Bar ---------- */
.topbar { background: var(--red-dark); color: rgba(255,255,255,0.75); font-size: 13px; padding: 8px 0; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 20px; }
.topbar a { color: var(--gold-light); transition: var(--transition); }
.topbar a:hover { color: var(--white); }
.topbar-left { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; }
.topbar-contact-person { color: rgba(255,255,255,0.6); }
.topbar-social { display: flex; align-items: center; gap: 14px; }
.topbar-social a { color: rgba(255,255,255,0.75); display: flex; }
.topbar-social a:hover { color: var(--gold-light); }
.topbar-social svg { width: 15px; height: 15px; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white); border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.nav-logo { display: flex; align-items: center; gap: 10px; }
.logo-img { height: 44px; width: auto; max-width: 220px; object-fit: contain; display: block; }
.footer .logo-img { height: 40px; }
.logo-icon {
  width: 38px; height: 38px; background: var(--red-accent); color: var(--white);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 20px; flex-shrink: 0;
}
.logo-text { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--red-dark); line-height: 1.15; }
.logo-text em { display: block; font-style: normal; font-size: 11px; font-weight: 500; color: var(--text-muted); font-family: var(--font-body); letter-spacing: 0.05em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: block; padding: 8px 14px; font-size: 14px; font-weight: 500; color: var(--gray-800);
  border-radius: var(--radius); transition: var(--transition);
}
.nav-links > li > a:hover, .nav-links > li > a.active { color: var(--red-accent); background: rgba(200,30,30,0.07); }

/* Dropdown */
.has-dropdown:hover .dropdown,
.has-dropdown.open .dropdown { opacity: 1; pointer-events: all; transform: translateY(0); }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; background: var(--white);
  border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 8px;
  min-width: 230px; box-shadow: var(--shadow-md); z-index: 1001;
  opacity: 0; pointer-events: none; transform: translateY(-6px); transition: var(--transition);
}
.dropdown li a { display: block; padding: 9px 14px; font-size: 13.5px; color: var(--gray-800); border-radius: var(--radius); transition: var(--transition); }
.dropdown li a:hover { background: var(--gray-50); color: var(--red-accent); }

/* Mobile toggle */
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--red-dark); border-radius: 2px; transition: var(--transition); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 88vh; display: flex; align-items: center;
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--red-brand) 50%, #0e2a5a 100%);
  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%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(10,22,40,0.85) 0%, rgba(10,22,40,0.3) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 700px; }
.hero-content h1 { font-family: var(--font-display); font-size: clamp(36px, 6vw, 68px); color: var(--white); font-weight: 800; line-height: 1.1; margin-bottom: 24px; }
.hero-content h1 span { color: var(--gold-light); }
.hero-sub { font-size: clamp(16px, 2vw, 19px); color: rgba(255,255,255,0.82); max-width: 580px; margin-bottom: 40px; line-height: 1.7; }

/* ---------- Intro Strip ---------- */
.intro-strip { background: var(--red-accent); padding: 28px 0; }
.intro-strip p { color: rgba(255,255,255,0.92); font-size: 15px; text-align: center; max-width: 860px; margin: 0 auto; line-height: 1.7; }
.intro-strip strong { color: var(--white); }

/* ---------- Services ---------- */
.services { background: var(--gray-50); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 36px 28px;
  border: 1px solid var(--gray-200); transition: var(--transition);
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--red-light); }
.service-icon { width: 54px; height: 54px; background: rgba(200,30,30,0.08); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; color: var(--red-accent); }
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { font-family: var(--font-display); font-size: 18px; color: var(--red-dark); margin-bottom: 12px; font-weight: 700; }
.service-card p { color: var(--text-muted); font-size: 14px; line-height: 1.7; flex: 1; }
.card-link { display: inline-block; margin-top: 20px; color: var(--red-accent); font-weight: 600; font-size: 14px; transition: var(--transition); }
.card-link:hover { color: #a51616; letter-spacing: 0.02em; }

/* ---------- Approach Banner ---------- */
.approach-banner { background: linear-gradient(135deg, var(--red-dark) 0%, var(--red-mid) 100%); padding: 80px 0; }
.approach-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.approach-text h2 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 44px); color: var(--white); margin-bottom: 20px; }
.approach-text p { color: rgba(255,255,255,0.78); font-size: 16px; line-height: 1.75; margin-bottom: 32px; }
.approach-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat { text-align: center; background: rgba(255,255,255,0.07); border-radius: var(--radius-lg); padding: 28px 16px; border: 1px solid rgba(255,255,255,0.1); }
.stat-num { display: block; font-family: var(--font-display); font-size: 42px; font-weight: 800; color: var(--gold-light); line-height: 1; }
.stat-label { display: block; font-size: 12px; color: rgba(255,255,255,0.65); margin-top: 8px; font-weight: 500; letter-spacing: 0.04em; }

/* ---------- Technologies ---------- */
.technologies { background: var(--white); }
.tech-grid { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.tech-item { background: var(--gray-100); border: 1px solid var(--gray-200); border-radius: 100px; padding: 10px 24px; font-size: 14px; font-weight: 500; color: var(--red-brand); transition: var(--transition); }
.tech-item:hover { background: var(--red-accent); color: var(--white); border-color: var(--red-accent); }

/* ---------- CTA ---------- */
.cta-section { background: var(--red-accent); padding: 80px 0; text-align: center; }
.cta-section h2 { font-family: var(--font-display); font-size: clamp(26px, 4vw, 40px); color: var(--white); margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.85); font-size: 17px; margin-bottom: 36px; }
.cta-section .btn-primary { background: var(--white); color: var(--red-accent); border-color: var(--white); }
.cta-section .btn-primary:hover { background: var(--gray-100); }

/* ---------- Page Hero (inner pages) ---------- */
.page-hero { background: linear-gradient(135deg, var(--red-dark) 0%, var(--red-brand) 100%); padding: 72px 0; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(30px, 5vw, 52px); color: var(--white); margin-bottom: 14px; }
.page-hero p { color: rgba(255,255,255,0.8); font-size: 17px; max-width: 620px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 18px; }
.breadcrumb a { color: var(--gold-light); }
.breadcrumb span { opacity: 0.4; }

/* ---------- Content Sections ---------- */
.content-section { padding: 72px 0; }
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.content-grid.reverse { direction: rtl; }
.content-grid.reverse > * { direction: ltr; }
.content-body h2 { font-family: var(--font-display); font-size: clamp(24px, 3.5vw, 36px); color: var(--red-dark); margin-bottom: 16px; }
.content-body p { color: var(--text-muted); font-size: 15px; line-height: 1.8; margin-bottom: 16px; }
.feature-list { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.feature-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--text-muted); }
.feature-list li::before { content: '✓'; background: var(--red-accent); color: var(--white); width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; margin-top: 2px; }
.content-visual { background: var(--gray-100); border-radius: var(--radius-lg); padding: 48px; display: flex; align-items: center; justify-content: center; min-height: 300px; }
.content-visual svg { width: 180px; height: 180px; color: var(--red-accent); opacity: 0.2; }

/* ---------- Info Cards ---------- */
.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 40px; }
.info-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 28px; }
.info-card h4 { font-size: 15px; font-weight: 600; color: var(--red-dark); margin-bottom: 8px; }
.info-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.7; }

/* ---------- Contact Page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info h3 { font-family: var(--font-display); font-size: 26px; color: var(--red-dark); margin-bottom: 24px; }
.contact-detail { display: flex; gap: 16px; margin-bottom: 24px; align-items: flex-start; }
.contact-detail-icon { width: 46px; height: 46px; background: rgba(200,30,30,0.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--red-accent); font-size: 20px; }
.contact-detail h5 { font-weight: 600; font-size: 14px; color: var(--red-dark); margin-bottom: 4px; }
.contact-detail p, .contact-detail a { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.contact-detail a:hover { color: var(--red-accent); }

/* Contact Form */
.contact-form-wrap h3 { font-family: var(--font-display); font-size: 26px; color: var(--red-dark); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--gray-800); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; border: 1.5px solid var(--gray-200); border-radius: var(--radius);
  padding: 11px 14px; font-size: 14px; font-family: var(--font-body); color: var(--text);
  background: var(--white); transition: var(--transition); resize: vertical;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--red-accent); box-shadow: 0 0 0 3px rgba(200,30,30,0.1); }
.form-group textarea { min-height: 130px; }
.msg-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; border-radius: var(--radius); padding: 14px 18px; margin-bottom: 18px; font-size: 14px; font-weight: 500; }
.msg-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; border-radius: var(--radius); padding: 14px 18px; margin-bottom: 18px; font-size: 14px; }

/* ---------- About Page ---------- */
.about-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.value-card { text-align: center; padding: 36px 24px; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); }
.value-icon { font-size: 36px; margin-bottom: 16px; }
.value-card h4 { font-family: var(--font-display); font-size: 18px; color: var(--red-dark); margin-bottom: 10px; }
.value-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ---------- Footer ---------- */
.footer { background: var(--red-dark); color: rgba(255,255,255,0.75); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 2fr; gap: 48px; padding-bottom: 48px; }
.footer .footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer .logo-text { color: var(--white); }
.footer .logo-text em { color: rgba(255,255,255,0.5); }
.footer-col p { font-size: 14px; line-height: 1.8; }
.footer-col h4 { color: var(--white); font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,0.6); transition: var(--transition); }
.footer-col ul li a:hover { color: var(--gold-light); }
.footer-col address p { font-size: 13.5px; margin-bottom: 6px; line-height: 1.6; }
.footer-col address a { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; text-align: center; }
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.4); }

/* ---------- Map embed ---------- */
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; height: 300px; background: var(--gray-100); margin-top: 32px; }
.map-wrap iframe { width: 100%; height: 100%; border: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .approach-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .content-grid.reverse { direction: ltr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-top: 1px solid var(--gray-200); padding: 16px;
    box-shadow: var(--shadow-md); gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links > li > a { padding: 12px 16px; }
  .dropdown { position: static; opacity: 1; pointer-events: all; transform: none; box-shadow: none; border: none; background: var(--gray-50); display: none; margin-left: 16px; }
  .has-dropdown.open .dropdown { display: block; }
  .services-grid { grid-template-columns: 1fr; }
  .approach-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .btn-secondary { margin-left: 0; margin-top: 12px; display: block; width: fit-content; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .topbar-inner { flex-direction: column; text-align: center; }
  .topbar-left { justify-content: center; }
  .topbar-social { justify-content: center; }
}

@media (max-width: 480px) {
  .approach-stats { grid-template-columns: 1fr; max-width: 200px; margin: 0 auto; }
  .hero { min-height: auto; padding: 80px 0; }
}
