/* ===================================================
   7-slots-protection.online — Brand Integrity Resource
   Global Stylesheet
   =================================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg: #f8f8f6;
  --color-bg-alt: #eef0f2;
  --color-bg-card: #ffffff;
  --color-text: #2c2f33;
  --color-text-light: #5a5f66;
  --color-text-muted: #8a8f96;
  --color-heading: #1d2025;
  --color-accent: #4a6fa5;
  --color-accent-hover: #3b5d8e;
  --color-border: #d8dbe0;
  --color-border-light: #e8eaed;
  --color-success: #3a7d5c;
  --color-warning: #b8860b;
  --color-danger: #a94442;
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  --max-width: 1120px;
  --radius: 6px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.08);
  --transition: 0.2s ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-heading);
  line-height: 1.3;
  font-weight: 600;
}

h1 { font-size: 2rem; margin-bottom: 1rem; }
h2 { font-size: 1.5rem; margin-bottom: 0.85rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.7rem; }
h4 { font-size: 1.05rem; margin-bottom: 0.6rem; }

p {
  margin-bottom: 1rem;
}

ul, ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.35rem;
}

blockquote {
  border-left: 3px solid var(--color-accent);
  padding: 0.75rem 1.25rem;
  margin: 1.25rem 0;
  background: var(--color-bg-alt);
  color: var(--color-text-light);
  font-style: italic;
  border-radius: 0 var(--radius) var(--radius) 0;
}

hr {
  border: none;
  border-top: 1px solid var(--color-border-light);
  margin: 2rem 0;
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 3.5rem 0;
}

.section--alt {
  background-color: var(--color-bg-alt);
}

.section--narrow {
  max-width: 820px;
  margin: 0 auto;
}

/* --- Header / Navigation --- */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-heading);
  text-decoration: none;
  white-space: nowrap;
}

.site-logo:hover {
  text-decoration: none;
  color: var(--color-accent);
}

.site-logo .logo-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: #fff;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: var(--transition);
  border-radius: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.main-nav a {
  padding: 0.4rem 0.7rem;
  font-size: 0.875rem;
  color: var(--color-text-light);
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--color-bg-alt);
  color: var(--color-heading);
  text-decoration: none;
}

/* --- Hero --- */
.hero {
  padding: 4rem 0 3.5rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-heading);
}

.hero .lead {
  font-size: 1.1rem;
  color: var(--color-text-light);
  max-width: 680px;
  margin: 0 auto 1.75rem;
  line-height: 1.75;
}

/* --- Page Header --- */
.page-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--color-border-light);
  margin-bottom: 2.5rem;
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.page-header .subtitle {
  color: var(--color-text-light);
  font-size: 1.05rem;
  max-width: 700px;
}

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: box-shadow var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card h3 {
  margin-bottom: 0.6rem;
}

.card p {
  color: var(--color-text-light);
  font-size: 0.935rem;
}

.card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  color: var(--color-accent);
  font-size: 1.15rem;
}

/* --- Document Card (for reference library etc.) --- */
.doc-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.doc-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.doc-card p {
  font-size: 0.92rem;
  color: var(--color-text-light);
}

.doc-card .doc-link {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.875rem;
  font-weight: 500;
}

/* --- Indicator / Warning Blocks --- */
.indicator-list {
  list-style: none;
  padding: 0;
}

.indicator-list li {
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--color-warning);
  background: var(--color-bg-card);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 0.85rem;
  border-top: 1px solid var(--color-border-light);
  border-right: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}

.indicator-list li strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--color-heading);
}

.indicator-list li p,
.indicator-list li span {
  font-size: 0.92rem;
  color: var(--color-text-light);
}

/* --- Safety Tips --- */
.tip-block {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  align-items: flex-start;
}

.tip-block .tip-number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 600;
}

.tip-block .tip-content h4 {
  margin-bottom: 0.3rem;
}

.tip-block .tip-content p {
  font-size: 0.92rem;
  color: var(--color-text-light);
  margin-bottom: 0;
}

/* --- Forms --- */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--color-heading);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-primary);
  font-size: 0.935rem;
  color: var(--color-text);
  background: #fff;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  font-size: 0.935rem;
  font-weight: 500;
  font-family: var(--font-primary);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: #fff;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}

.btn-outline:hover {
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
}

/* --- Contact Channels --- */
.contact-channel {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.contact-channel .channel-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  color: var(--color-accent);
  font-size: 1.1rem;
}

.contact-channel .channel-info h4 {
  margin-bottom: 0.15rem;
  font-size: 0.95rem;
}

.contact-channel .channel-info p {
  margin-bottom: 0;
  font-size: 0.88rem;
  color: var(--color-text-light);
}

.contact-channel .channel-info a {
  font-weight: 500;
}

/* --- Quick Links Bar --- */
.quick-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.5rem;
}

.quick-links a {
  padding: 0.55rem 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  background: var(--color-bg-card);
  color: var(--color-text);
  transition: background var(--transition), border-color var(--transition);
}

.quick-links a:hover {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
  text-decoration: none;
}

/* --- Footer --- */
.site-footer {
  background: #2c2f33;
  color: #b0b5bc;
  padding: 2.5rem 0 1.5rem;
  font-size: 0.875rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  color: #e0e2e5;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-col p {
  font-size: 0.85rem;
  line-height: 1.65;
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: #b0b5bc;
  display: block;
  padding: 0.2rem 0;
  font-size: 0.85rem;
}

.footer-col a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid #3e4248;
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-bottom p {
  margin-bottom: 0;
  font-size: 0.8rem;
  color: #8a8f96;
}

.footer-bottom a {
  color: #8a8f96;
  font-size: 0.8rem;
}

.footer-bottom a:hover {
  color: #fff;
}

/* --- Breadcrumb --- */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.breadcrumb a {
  color: var(--color-text-muted);
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

.breadcrumb span {
  margin: 0 0.35rem;
}

/* --- Legal / Long-form Text --- */
.legal-content {
  max-width: 780px;
}

.legal-content h2 {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border-light);
}

.legal-content h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* --- 404 --- */
.not-found {
  text-align: center;
  padding: 5rem 1.5rem;
}

.not-found h1 {
  font-size: 5rem;
  color: var(--color-border);
  margin-bottom: 0.5rem;
}

.not-found h2 {
  margin-bottom: 1rem;
}

.not-found p {
  color: var(--color-text-light);
  max-width: 480px;
  margin: 0 auto 2rem;
}

/* --- Form Success Message --- */
.form-success {
  display: none;
  padding: 1.25rem;
  background: #edf7f0;
  border: 1px solid #b8dfc8;
  border-radius: var(--radius);
  color: var(--color-success);
  text-align: center;
  margin-top: 1rem;
}

.form-success.visible {
  display: block;
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    gap: 0;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--color-border-light);
    border-radius: 0;
  }

  .main-nav a:last-child {
    border-bottom: none;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.3rem; }

  .section {
    padding: 2.5rem 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .hero {
    padding: 2.5rem 0 2rem;
  }

  .quick-links {
    flex-direction: column;
    align-items: center;
  }

  .quick-links a {
    width: 100%;
    text-align: center;
  }
}
