/* ============================================================
   BERNSOFT GROUP OF COMPANIES — BASE STYLESHEET
   Brand: Navy / Blue / White / Orange / Gold
   ============================================================ */

:root {
  --navy: #0a1f44;
  --navy-dark: #061530;
  --blue: #1565d8;
  --blue-light: #4a8fe7;
  --orange: #f5821f;
  --gold: #d4af37;
  --white: #ffffff;
  --off-white: #f7f9fc;
  --gray-100: #eef1f6;
  --gray-300: #c7cedb;
  --gray-500: #6b7686;
  --gray-700: #3a4250;
  --text: #1b2434;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(10, 31, 68, 0.08);
  --shadow-lg: 0 12px 40px rgba(10, 31, 68, 0.14);
  --transition: 0.25s ease;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--off-white);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--orange); }

h1, h2, h3, h4 { color: var(--navy); font-weight: 700; line-height: 1.25; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-align: center;
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: #d96f0e; color: var(--white); }
.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-dark); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-block { display: block; width: 100%; }

/* Header */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 800;
}
.brand span { color: var(--orange); }
.brand img { height: 40px; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  color: var(--gray-100);
  font-weight: 500;
  font-size: 0.95rem;
}
.main-nav a:hover, .main-nav a.active { color: var(--orange); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 960px) {
  .main-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 16px;
    transform: translateY(-150%);
    transition: transform var(--transition);
    max-height: 80vh;
    overflow-y: auto;
  }
  .main-nav.open { transform: translateY(0); }
  .nav-toggle { display: block; }
  .header-actions .btn-outline { display: none; }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 90px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(245,130,31,0.18), transparent 55%);
}
.hero .container { position: relative; }
.hero h1 { color: var(--white); font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 10px; }
.hero .tagline { color: var(--gray-300); font-size: clamp(1.1rem, 2.5vw, 1.5rem); margin-bottom: 34px; }
.hero .tagline strong { color: var(--gold); }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Sections */
.section { padding: 70px 0; }
.section-alt { background: var(--white); }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 44px; }
.section-header .eyebrow {
  color: var(--orange); font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; font-size: 0.8rem; display: block; margin-bottom: 8px;
}

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-img { aspect-ratio: 16/10; object-fit: cover; width: 100%; background: var(--gray-100); }
.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card-body p { color: var(--gray-500); font-size: 0.92rem; flex: 1; }

.company-card { border-top: 4px solid var(--orange); }
.company-card h3 { display: flex; align-items: center; justify-content: space-between; }
.company-card .focus { color: var(--blue); font-weight: 600; font-size: 0.85rem; }

/* Product cards */
.price { font-weight: 700; color: var(--navy); font-size: 1.1rem; }
.price .old { color: var(--gray-500); text-decoration: line-through; font-weight: 400; font-size: 0.9rem; margin-right: 8px; }
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
}
.badge-new { background: var(--gold); color: var(--navy); }
.badge-sale { background: var(--orange); color: var(--white); }
.badge-out { background: var(--gray-300); color: var(--gray-700); }

/* Why Bernsoft */
.why-item { text-align: center; padding: 20px; }
.why-item .icon { font-size: 2.2rem; margin-bottom: 12px; }

/* CTA */
.cta {
  background: linear-gradient(135deg, var(--orange), #d96f0e);
  color: var(--white);
  text-align: center;
  padding: 60px 0;
}
.cta h2 { color: var(--white); }

/* Footer */
.site-footer { background: var(--navy-dark); color: var(--gray-300); padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 16px; }
.site-footer a { color: var(--gray-300); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
}
.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
}

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  background: #25D366; color: var(--white);
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); font-size: 1.6rem;
}

/* Forms */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.9rem; }
.form-control {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--gray-300);
  border-radius: 8px; font-size: 0.95rem; transition: border-color var(--transition);
  background: var(--white); color: var(--text);
}
.form-control:focus { outline: none; border-color: var(--blue); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-size: 0.92rem; }
.alert-success { background: #e6f6ec; color: #1c7a3f; border: 1px solid #b6e6c6; }
.alert-error { background: #fdeaea; color: #c0392b; border: 1px solid #f5c2c0; }
.alert-info { background: #e8f1fd; color: var(--blue); border: 1px solid #bcd8f9; }

/* Error pages */
.error-page {
  min-height: 70vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 40px;
}
.error-page h1 { font-size: 5rem; color: var(--orange); margin-bottom: 0; }

/* Breadcrumb */
.breadcrumb { padding: 16px 0; font-size: 0.88rem; color: var(--gray-500); }
.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--orange); }

table.data-table { width: 100%; border-collapse: collapse; background: var(--white); }
table.data-table th, table.data-table td {
  padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--gray-100); font-size: 0.9rem;
}
table.data-table th { background: var(--navy); color: var(--white); font-weight: 600; }
