/* ==========================================================================
   Synactive — shared stylesheet for service sub-pages & lead forms
   Ties into the existing site's dark navy / teal cybersecurity identity.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --bg-deep: #0a1527;
    --bg-mid: #0d2849;
    --bg-black: #051220;
    --primary: #0cbcb9;
    --primary-dim: rgba(12, 188, 185, 0.15);
    --text: #e8eef5;
    --text-dim: #8fa3bd;
    --border: rgba(12, 188, 185, 0.18);
    --card-bg: rgba(255, 255, 255, 0.03);
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg-deep);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.65;
    overflow-x: hidden;
}

a { color: inherit; }

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

/* ---------- header (matches homepage) ---------- */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 0.9rem 2rem;
    background: rgba(10, 21, 39, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    color: var(--text);
}

.logo .mark {
    width: 34px; height: 34px;
    border: 1.5px solid var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono);
    color: var(--primary);
    font-size: 0.95rem;
}

nav { display: flex; align-items: center; gap: 2rem; }

nav a {
    text-decoration: none;
    color: var(--text-dim);
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.2s;
}
nav a:hover { color: var(--primary); }

nav a.nav-cta {
    color: var(--text);
    background: var(--primary);
    padding: 0.55rem 1.3rem;
    border-radius: 6px;
    font-weight: 600;
}
nav a.nav-cta:hover { color: var(--text); opacity: 0.9; }

/* ---------- breadcrumb / eyebrow (signature element) ---------- */
.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--primary);
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.1rem;
}
.eyebrow::before { content: '//'; opacity: 0.6; }
.eyebrow .cursor {
    display: inline-block;
    width: 7px; height: 1.1em;
    background: var(--primary);
    animation: blink 1.1s steps(1) infinite;
    margin-left: 0.15rem;
}
@keyframes blink { 50% { opacity: 0; } }

.breadcrumb {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--text-dim); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }

/* ---------- hero ---------- */
.hero {
    padding: 9rem 2rem 5rem;
    background: linear-gradient(135deg, var(--bg-deep) 0%, var(--bg-mid) 55%, var(--bg-black) 100%);
    border-bottom: 1px solid var(--border);
}
.hero-inner { max-width: 820px; margin: 0 auto; }

h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.9rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 1.1rem;
}

.subhead {
    font-size: 1.1rem;
    color: var(--text-dim);
    max-width: 640px;
    margin-bottom: 2rem;
}

.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- buttons ---------- */
.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: 7px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    border: 1.5px solid var(--primary);
}
.btn-primary {
    background: var(--primary);
    color: var(--bg-black);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(12,188,185,0.35); }
.btn-ghost {
    background: transparent;
    color: var(--text);
}
.btn-ghost:hover { border-color: var(--text); }

/* ---------- sections ---------- */
section { padding: 4.5rem 2rem; max-width: 1000px; margin: 0 auto; }

h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 1.6rem;
}

.body-copy { color: var(--text-dim); font-size: 1.02rem; max-width: 680px; }

/* checklist ("what's included") */
.checklist { list-style: none; display: grid; gap: 0.9rem; margin-top: 1rem; }
.checklist li {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    color: var(--text);
    font-size: 0.97rem;
}
.checklist li::before {
    content: '';
    flex-shrink: 0;
    width: 7px; height: 7px;
    margin-top: 0.5em;
    background: var(--primary);
    transform: rotate(45deg);
}

/* process — real numbered sequence */
.process { counter-reset: step; display: grid; gap: 1.6rem; margin-top: 1.2rem; }
.process-step {
    display: grid;
    grid-template-columns: 3.2rem 1fr;
    gap: 1.2rem;
    align-items: start;
    padding-bottom: 1.6rem;
    border-bottom: 1px solid var(--border);
}
.process-step:last-child { border-bottom: none; padding-bottom: 0; }
.process-num {
    font-family: var(--font-mono);
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: 500;
}
.process-title { font-weight: 600; margin-bottom: 0.3rem; }
.process-desc { color: var(--text-dim); font-size: 0.95rem; }

/* who it's for / callout card */
.callout {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.8rem;
    margin-top: 1rem;
}
.callout .label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.6rem;
    display: block;
}

/* related service cards (pillar pages) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.service-card-link {
    text-decoration: none;
    color: var(--text);
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.8rem;
    transition: all 0.25s ease;
}
.service-card-link:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}
.service-card-link h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}
.service-card-link p { color: var(--text-dim); font-size: 0.9rem; }
.service-card-link .arrow { color: var(--primary); font-family: var(--font-mono); font-size: 0.85rem; margin-top: 0.9rem; display: block; }

/* ---------- forms ---------- */
.form-section {
    background: var(--bg-mid);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 4.5rem 2rem;
}
.form-wrap { max-width: 640px; margin: 0 auto; }
.form-intro { color: var(--text-dim); margin-bottom: 2rem; }

.lead-form { display: grid; gap: 1.3rem; }
.form-group { display: grid; gap: 0.45rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}
.form-group .hint { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-dim); font-weight: 400; }

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.75rem 0.9rem;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-dim);
}
.form-group textarea { resize: vertical; min-height: 100px; }

fieldset { border: 1px solid var(--border); border-radius: 8px; padding: 1rem 1.2rem 1.2rem; }
fieldset legend {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0 0.4rem;
}
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 0.6rem;
    margin-top: 0.6rem;
}
.checkbox-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; color: var(--text-dim); }
.checkbox-item input { width: auto; }

.consent { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.85rem; color: var(--text-dim); }
.consent input { width: auto; margin-top: 0.2rem; }

.form-submit { justify-self: start; margin-top: 0.5rem; }

.form-note {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 1.2rem;
    opacity: 0.7;
}

/* footer link back */
.back-footer {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-dim);
    font-size: 0.9rem;
}
.back-footer a { color: var(--primary); text-decoration: none; }

@media (max-width: 720px) {
    .form-row { grid-template-columns: 1fr; }
    nav { gap: 1rem; }
    nav a:not(.nav-cta) { display: none; }
    section { padding: 3rem 1.2rem; }
    .hero { padding: 7.5rem 1.2rem 3rem; }
}
/* Contact Form Focus States */
.contact-form input:focus, 
.contact-form select:focus, 
.contact-form textarea:focus {
    outline: none;
    border-color: #0cbcb9 !important;
    box-shadow: 0 0 8px rgba(12, 188, 185, 0.3);
}

/* Blog Card Hover Effect */
.blog-card:hover {
    transform: translateY(-5px);
    border-color: rgba(12, 188, 185, 0.5) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Container positioning */
.dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

/* The dropdown box itself */
nav .dropdown-content {
  display: none !important; 
  position: absolute;
  top: 100%;
  left: 0;
  background: #0a1527 !important; 
  min-width: 250px;
  border-radius: 8px;
  padding: 10px 0 !important;
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
  z-index: 9999 !important;
}

/* Force the dropdown to display as a vertical column on hover */
.dropdown:hover .dropdown-content {
  display: flex !important;
  flex-direction: column !important;
}

/* Nuke inherited styles for links INSIDE the dropdown */
nav .dropdown .dropdown-content a {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  padding: 12px 20px !important;
  color: #ffffff !important; 
  font-size: 15px !important;
  line-height: normal !important;
  height: auto !important;
  margin: 0 !important;
  text-align: left !important;
  border: none !important;
  text-decoration: none !important;
  white-space: normal !important;
}

/* Hover effect for dropdown links */
nav .dropdown .dropdown-content a:hover {
  background: rgba(12, 188, 185, 0.15) !important;
  color: #0cbcb9 !important; 
}
/* Fix for invisible dropdown options */
select option {
    background-color: #0f172a; /* Dark blue background */
    color: #ffffff; /* White text */
    padding: 10px;
}

/* --- Header Layout & Perfect Alignment --- */
.main-header {
  display: flex;
  align-items: center; /* This perfectly centers everything vertically */
  justify-content: space-between; /* Pushes logo left, nav right */
  padding: 15px 5%; /* Adjust padding as needed */
  width: 100%;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 30px; /* Space between the nav links and the CTA button */
}

/* --- Brand Logo Container --- */
.brand-logo {
  display: flex;
  align-items: center; /* Aligns the logo image with the "Synactive" text */
  text-decoration: none;
  /*transition: transform 0.3s ease;  Smooth transition for the zoom */
}

.logo-icon {
  height: 40px;
}
/* --- Force Side-by-Side Layout --- */
.main-header {
  display: flex !important;
  flex-direction: row !important; /* Forces items onto one horizontal line */
  align-items: center !important; /* Centers them vertically */
  justify-content: space-between !important; /* Pushes logo left, nav right */
  padding: 15px 5%;
  width: 100%;
  box-sizing: border-box;
}

/* --- Keep Nav and Button Together --- */
.header-right {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 30px;
}

/* --- Logo Setup --- */
.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-icon {
  height: 40px;
  transition: transform 0.3s ease; /* Smooth transition */
}

/* --- The Slight Zoom Hover (NO slide) --- */
.brand-logo:hover .logo-icon {
  transform: scale(1.08); /* Only scales the image up slightly */
}
 /* ========== FOOTER ========== */
        footer {
            background: var(--dark);
            color: white;
            padding: 5rem 2rem 2rem;
            margin-top: 8rem;
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: 3rem;
            margin-bottom: 3rem;
        }

        .footer-section h3 {
            font-family: 'Lato', sans-serif;
            font-size: 1.3rem;
            margin-bottom: 1.5rem;
            color: var(--primary);
            font-weight: 700;
        }

        .footer-section ul {
            list-style: none;
        }

        .footer-section ul li {
            margin-bottom: 1rem;
        }

        .footer-section a {
            color: rgba(255, 255, 255, 0.7);
            text-decoration: none;
            transition: color 0.3s;
            font-size: 0.95rem;
        }

        .footer-section a:hover {
            color: var(--primary);
        }

        .footer-section p {
            color: rgba(255, 255, 255, 0.7);
            line-height: 1.9;
            font-size: 0.95rem;
        }

        .footer-bottom {
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            padding-top: 2.5rem;
            text-align: center;
        }

        .footer-bottom p {
            color: rgba(255, 255, 255, 0.6);
            font-size: 0.9rem;
            margin-bottom: 1rem;
        }

        .footer-links {
            display: flex;
            justify-content: center;
            gap: 2.5rem;
            margin-bottom: 1.5rem;
            flex-wrap: wrap;
        }

        .footer-links a {
            color: rgba(255, 255, 255, 0.6);
            text-decoration: none;
            font-size: 0.9rem;
            transition: color 0.3s;
        }

        .footer-links a:hover {
            color: var(--primary);
        }

        /* Service Card Hover State */
.hover-card:hover {
    transform: translateY(-5px);
    border-color: rgba(12, 188, 185, 0.6) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}