/* Offisec – Enterprise security website styles */
/* Typography & base */
:root {
  /* Light theme derived from Offisec logo (black + green) */
  --bg: #ffffff;
  --bg-soft: #f6f8f6;
  --surface: #ffffff;
  --card: #ffffff;
  --muted: #667085;
  --text: #121417;
  /* Primary accent = green; secondary = lighter green */
  --primary: #5a8f4b;   /* dark sage green */
  --primary-2: #a7c97a; /* light green */
  --accent: #5a8f4b;
  --logo-green: #a7c97a;           /* matches DATA.PROTECTED */
  --logo-green-dark: #5a8f4b;      /* darker companion */
  --on-accent: #0b150a;            /* text on green */
  --line: #e6e9ed;
  --ring: rgba(90, 143, 75, 0.28);
  --shadow: 0 10px 24px rgba(16, 24, 40, 0.08);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji';
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(900px 400px at 15% -10%, rgba(167, 201, 122, 0.18), transparent 60%),
    radial-gradient(800px 380px at 100% -20%, rgba(90, 143, 75, 0.12), transparent 50%),
    var(--bg);
}

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(10px);
  background: linear-gradient(to bottom, rgba(255,255,255,0.8), rgba(255,255,255,0.55));
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; }
.logo-mark { display: none; }
.logo-text { display: none; }
.logo-img { height: 56px; width: auto; display: block; filter: drop-shadow(0 0 8px rgba(0,0,0,.25)); }
.site-footer .logo-img { height: 48px; }
.logo-text-fallback { color: var(--text); font-weight: 800; letter-spacing: 0.3px; font-size: 1.1rem; }

.nav { position: relative; }
.nav-toggle { display: none; background: transparent; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle-bar { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; }
.nav-list { display: flex; align-items: center; gap: 18px; list-style: none; padding: 0; margin: 0; }
.nav-list a { color: var(--text); text-decoration: none; opacity: 0.9; padding-bottom: 6px; border-bottom: 2px solid transparent; }
.nav-list a:hover { opacity: 1; }
/* Active page indicator */
.nav-list a[aria-current='page'] { border-bottom-color: #121417; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 12px; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .06s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease; }
.btn-small { padding: 8px 12px; border-radius: 10px; font-size: 0.92rem; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #0b150a; box-shadow: 0 8px 18px rgba(90, 143, 75, 0.28); border-color: rgba(90, 143, 75, 0.3); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 26px rgba(90, 143, 75, 0.35); }
.btn-secondary { background: #f4f6f8; color: var(--text); border-color: var(--line); }
.btn-secondary:hover { background: #eef1f4; }
.btn-ghost { background: transparent; color: var(--muted); border-color: #d0d5dd; }
.btn-ghost:hover { color: var(--text); border-color: #c3c9d5; }

/* Hero */
.hero { padding: 64px 0 28px; background: radial-gradient(700px 260px at 80% 10%, rgba(167, 201, 122, 0.18), transparent 60%); }
.grid-2 { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: center; }
.hero-copy h1 { font-size: clamp(2rem, 2.5vw + 1rem, 3rem); line-height: 1.15; margin: 0 0 10px; letter-spacing: 0.2px; }
.hero-copy p { color: var(--muted); font-size: 1.08rem; margin: 0 0 22px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.hero-art { position: relative; }
.hero-svg { width: 100%; height: auto; border-radius: 22px; box-shadow: var(--shadow); }
.hero-logo { width: 100%; height: auto; max-width: 400px; border-radius: 22px; box-shadow: var(--shadow); }
.trust-row { display: flex; align-items: center; gap: 12px; margin-top: 20px; color: var(--muted); }
.trust-logos { display: inline-flex; gap: 10px; flex-wrap: wrap; }
.trust-logo { font-size: 0.85rem; padding: 4px 10px; border-radius: 999px; background: #f4f7f3; color: #475467; border: 1px solid var(--line); }

/* Sections */
.section { padding: 56px 0; }
.section-alt { background: linear-gradient(180deg, rgba(167,201,122,0.06), rgba(167,201,122,0.02)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { font-size: 1.8rem; margin: 0 0 8px; }
.section-lead { color: var(--muted); margin: 0 0 22px; }

.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { display: block; background: linear-gradient(135deg, rgba(90,143,75,0.22), rgba(167,201,122,0.18)); border: 1px solid rgba(90,143,75,0.35); padding: 18px; border-radius: var(--radius); text-decoration: none; color: var(--on-accent); transition: transform .06s ease, box-shadow .2s ease, border-color .2s ease; box-shadow: 0 10px 24px rgba(90, 143, 75, 0.18); }
.card:hover { transform: translateY(-2px); box-shadow: 0 16px 28px rgba(90, 143, 75, 0.24); border-color: rgba(90, 143, 75, 0.6); }
.card-icon { font-size: 1.25rem; background: #ffffff; color: var(--logo-green-dark); width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; margin-bottom: 8px; border: 1px solid rgba(90, 143, 75, 0.35); }
.card h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--on-accent); }
.card p { margin: 0; color: rgba(11,21,10,0.8); font-size: 0.98rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.highlight { background: linear-gradient(180deg, rgba(167, 201, 122, 0.2), rgba(167,201,122,0.05)); border: 1px solid rgba(90,143,75,0.3); border-radius: var(--radius); padding: 18px; }
.highlight h3 { margin: 0 0 8px; }
.highlight p { margin: 0; color: var(--muted); }

.cta-banner { display: flex; align-items: center; justify-content: space-between; gap: 18px; background: linear-gradient(135deg, rgba(90,143,75,0.22), rgba(167,201,122,0.18)); border: 1px solid rgba(90,143,75,0.35); padding: 18px; border-radius: 16px; }
.cta-banner h2 { margin: 0 0 6px; }
.cta-banner p { margin: 0; color: var(--muted); }

/* Footer */
.site-footer { padding: 36px 0; border-top: 1px solid var(--line); background: #fafbfb; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; }
.footer-blurb { color: var(--muted); margin-top: 8px; }
.site-footer h4 { margin: 0 0 8px; font-size: 1rem; color: #2f3b2e; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.contact-list a { color: var(--text); text-decoration: none; opacity: 0.9; }
.contact-list a:hover { opacity: 1; }
.small { font-size: 0.85rem; color: var(--muted); margin-top: 10px; }

/* Inner pages */
.page-hero { padding: 48px 0 24px; border-bottom: 1px solid var(--line); background: radial-gradient(700px 260px at 20% 10%, rgba(167, 201, 122, 0.12), transparent 60%); }
.breadcrumbs { color: var(--muted); font-size: 0.95rem; margin-bottom: 4px; }
.page-hero h1 { margin: 0; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { background: linear-gradient(135deg, rgba(90,143,75,0.22), rgba(167,201,122,0.18)); border: 1px solid rgba(90,143,75,0.35); border-radius: var(--radius); padding: 18px; box-shadow: 0 10px 24px rgba(90, 143, 75, 0.18); }
.panel h2 { color: var(--on-accent); }
.panel p { color: rgba(11,21,10,0.8); }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.list .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--accent); margin-top: 8px; }
.list li .dot { grid-column: 1; }

/* Forms */
form .row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
label { display: block; font-size: 0.95rem; margin-bottom: 6px; color: #2f3b2e; }
input, textarea, select { width: 100%; padding: 12px 12px; border-radius: 12px; border: 1px solid var(--line); background: #ffffff; color: var(--text); outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
input:focus, textarea:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--ring); }
textarea { min-height: 140px; resize: vertical; }
.form-note { color: var(--muted); font-size: 0.9rem; }

/* Phone input with country code */
.phone-input-group { display: flex; flex-direction: column; }
.phone-input-wrapper { display: flex; gap: 8px; align-items: stretch; }
.country-code-select { flex: 0 0 45%; padding: 12px 8px; font-size: 0.9rem; }
.phone-number-input { flex: 0 0 55%; min-width: 0; }

/* Improve select dropdown appearance */
.country-code-select option {
  padding: 4px;
  font-family: 'Inter', 'Segoe UI Emoji', 'Apple Color Emoji', sans-serif;
}

/* RTL adjustments for phone input */
[dir="rtl"] .phone-input-wrapper { flex-direction: row; }
[dir="rtl"] .country-code-select { direction: ltr; text-align: left; }
[dir="rtl"] .phone-number-input { direction: ltr; text-align: left; }

/* Fix phone number display in RTL */
[dir="rtl"] a[href^="tel:"] { direction: ltr; display: inline-block; }

/* Utilities */
.grid-gap-12 { display: grid; gap: 12px; }
.mt-12 { margin-top: 12px; }
.mt-18 { margin-top: 18px; }

/* Brand strip */
.brand-strip {
  padding-top: 0;
}
.brand-title { margin-bottom: 12px; color: #2f3b2e; font-size: 1.15rem; }
.brand-logos {
  overflow: hidden;
  white-space: nowrap; /* Prevent logos from wrapping */
  display: flex;
  justify-content: flex-start; /* Align items to the start */
}
.brand-logos-inner {
  display: inline-flex; /* Keep all logos in one line */
  animation: scroll 20s linear infinite; /* Adjust duration based on number of logos */
}
.brand-logos-inner:hover {
  animation-play-state: paused; /* Pause on hover */
}
.brand-logos-inner a {
  flex-shrink: 0; /* Prevent items from shrinking */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: #f7faf7;
  border: 1px solid var(--line);
  border-radius: 12px;
  height: 76px;
  margin-right: 18px; /* Gap between logos */
}
.brand-logos-inner a:last-child {
  margin-right: 0; /* No margin on the last logo */
}
.brand-logos-inner img { max-height: 40px; width: auto; opacity: 0.95; transition: opacity .2s ease, transform .06s ease; }
.brand-logos-inner a:hover img { opacity: 1; transform: translateY(-1px); }

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 9px)); } /* Adjust -50% and gap for seamless loop */
}

/* RTL-specific animation for Hebrew mode */
[dir="rtl"] .brand-logos-inner {
  animation: scrollRTL 20s linear infinite;
}

/* RTL margin adjustments */
[dir="rtl"] .brand-logos-inner a {
  margin-right: 0;
  margin-left: 18px;
}
[dir="rtl"] .brand-logos-inner a:last-child {
  margin-left: 0;
}

@keyframes scrollRTL {
  from { transform: translateX(0); }
  to { transform: translateX(calc(50% + 9px)); } /* Reverse direction for RTL */
}

@media (max-width: 980px) {
  .brand-logos-inner a { margin-right: 14px; }
  [dir="rtl"] .brand-logos-inner a { 
    margin-right: 0; 
    margin-left: 14px; 
  }
  @keyframes scroll {
    to { transform: translateX(calc(-50% - 7px)); }
  }
  @keyframes scrollRTL {
    to { transform: translateX(calc(50% + 7px)); }
  }
}
@media (max-width: 720px) {
  .brand-logos-inner a { margin-right: 10px; }
  [dir="rtl"] .brand-logos-inner a { 
    margin-right: 0; 
    margin-left: 10px; 
  }
  @keyframes scroll {
    to { transform: translateX(calc(-50% - 5px)); }
  }
  @keyframes scrollRTL {
    to { transform: translateX(calc(50% + 5px)); }
  }
}


/* Responsive */
@media (max-width: 980px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
  form .row { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-block; }
  .nav-list { position: absolute; right: 0; top: 56px; background: #ffffff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; width: 240px; display: none; flex-direction: column; align-items: stretch; gap: 8px; box-shadow: var(--shadow); }
  .nav.open .nav-list { display: flex; }
  .cards-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; align-items: flex-start; }
  .logo-img { height: 48px; }
}

/* RTL support */
html[dir='rtl'] body { direction: rtl; }
html[dir='rtl'] .nav-list { right: auto; left: 0; }
html[dir='rtl'] .list li { grid-template-columns: 22px 1fr; }
html[dir='rtl'] .list li .dot { grid-column: 1; }
html[dir='rtl'] .list li span:not(.dot) { text-align: right; }


