
/*
 * CloudOps Studio — Cyber Essentials Landing Page
 * COS-GROWTH-001 / E01-S3
 * Matches existing IT Support branding.
 * Scoped to .cos-ce only.
 * LOCAL TESTING — DO NOT DEPLOY YET.
 */

.cos-ce {
  --navy: #0a2540;
  --cyan: #2bbdee;
  --cyan-hover: #20addd;
  --ink: #0a2540;
  --muted: #4a5d73;
  --border: #dfeaf1;
  --soft: #f7fbfe;
  --white: #ffffff;
  --shadow: 0 14px 32px rgba(10, 37, 64, 0.06);

  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.7;
}

.cos-ce *,
.cos-ce *::before,
.cos-ce *::after {
  box-sizing: border-box;
}

/* Main page container */

.cos-ce .ce-wrap {
  max-width: 1120px;
  margin: 0 auto;
}

/* Hero */

.cos-ce .ce-hero {
  margin: 2rem 0 3.5rem;
  padding: 4.5rem 2rem;
  border-radius: 24px;
  background: var(--soft);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-align: center;
}

.cos-ce h1,
.cos-ce h2,
.cos-ce h3 {
  color: var(--navy);
  font-family: inherit;
}

.cos-ce .ce-hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.15rem);
  line-height: 1.14;
  font-weight: 400;
  letter-spacing: 0;
  max-width: 940px;
  margin: 0 auto 1.25rem;
}

.cos-ce .ce-hero p {
  max-width: 850px;
  margin: 0 auto 1.2rem;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.75;
}

.cos-ce .ce-hero strong {
  color: var(--navy);
  font-weight: 600;
}

.cos-ce .ce-fine {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

.cos-ce .ce-hero .ce-fine {
  margin: 1.2rem auto 0;
  font-size: 0.9rem;
}

/* Buttons — match IT Support page */

.cos-ce .ce-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--cyan);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
  text-align: center;
  text-decoration: none !important;
  box-shadow: 0 16px 30px rgba(43, 189, 238, 0.20);
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.cos-ce .ce-btn:hover {
  transform: translateY(-2px);
  background: var(--cyan-hover);
  color: #ffffff !important;
  text-decoration: none !important;
}

.cos-ce .ce-btn-secondary {
  background: #ffffff;
  border: 1px solid #cfe8f4;
  color: var(--navy) !important;
  box-shadow: none;
}

.cos-ce .ce-btn-secondary:hover {
  background: #ffffff;
  border-color: var(--cyan);
  color: var(--navy) !important;
}

.cos-ce a:focus-visible,
.cos-ce summary:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

/* Links — match existing CloudOps Studio branding */

.cos-ce a:not(.ce-btn) {
  color: #2bbdee;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.cos-ce a:not(.ce-btn):hover,
.cos-ce a:not(.ce-btn):focus {
  color: #0a2540;
  text-decoration: underline;
}

/* Section layout */

.cos-ce .ce-section {
  padding: 3.5rem 0;
  border-top: 1px solid var(--border);
}

.cos-ce .ce-section > h2 {
  max-width: 820px;
  margin: 0 auto 1.25rem;
  text-align: center;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 1.2;
}

.cos-ce .ce-section > p {
  max-width: 820px;
  margin: 0 auto 1.25rem;
  color: var(--muted);
  line-height: 1.75;
  text-align: center;
}

.cos-ce .ce-section > p:has(.ce-btn) {
  margin-top: 2rem;
}

.cos-ce .ce-section > .ce-btn {
  margin-top: 1rem;
}

/* Preparation cards */

.cos-ce .ce-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0 0;
}

.cos-ce .ce-card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.cos-ce .ce-card h3 {
  margin: 0 0 0.75rem;
  color: var(--navy);
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.3;
}

.cos-ce .ce-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

/* Technical assistance section */

.cos-ce .ce-section:has(#help-cta) {
  margin: 2rem 0;
  /* Keep the CTA visually clear of the panel's rounded lower edge. */
  padding: 3.5rem 2rem 0;
  height: auto !important;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--soft);
  text-align: center;
}

.cos-ce .ce-section:has(#help-cta) > p {
  max-width: 760px;
  margin: 0 auto 1.5rem;
}

.cos-ce #help-cta {
  margin: 0;
}

.cos-ce .ce-help-cta-wrap {
  padding: 0.5rem 0 2rem;
}

/* Separate the following divider from the assistance panel's border. */
.cos-ce .ce-section:has(#help-cta) + .ce-section {
  position: relative;
  padding-top: 5rem;
  border-top: 0;
}

.cos-ce .ce-section:has(#help-cta) + .ce-section::before {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  left: 1.5rem;
  content: "";
  border-top: 1px solid var(--border);
}

/* FAQs */

.cos-ce details {
  max-width: 950px;
  margin: 0 auto;
  padding: 1.25rem 0.4rem;
  border-bottom: 1px solid var(--border);
}

.cos-ce summary {
  cursor: pointer;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--navy);
}

.cos-ce details p {
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.cos-ce details a {
  color: var(--cyan);
}

/* Final download section — navy panel */

.cos-ce .ce-section:has(> #download-footer) {
  margin: 2rem 0 0;
  padding: 3.5rem 2rem;
  border: 0;
  border-radius: 26px;
  background: linear-gradient(135deg, #0a2540, #123a5d);
  text-align: center;
}

.cos-ce .ce-section:has(> #download-footer) h2 {
  color: #ffffff;
  font-size: 2.25rem;
  font-weight: 400;
}

.cos-ce .ce-section:has(> #download-footer) .ce-fine {
  max-width: 700px;
  margin: 1.2rem auto 0;
  color: #e5f1f9;
}

.cos-ce .ce-final-note-wrap {
  padding-bottom: 2rem;
}

.cos-ce #download-footer {
  margin-top: 0.5rem;
}

/* Legal disclaimer */

.cos-ce .ce-legal {
  margin: 2rem auto 1rem;
  padding: 1.3rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--soft);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

/* Responsive layout */

@media (max-width: 1023px) {
  .cos-ce .ce-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .cos-ce .ce-hero {
    margin: 1rem 0 2rem;
    padding: 3rem 1.3rem;
  }

  .cos-ce .ce-hero h1 {
    font-size: 2.1rem;
  }

  .cos-ce .ce-hero p {
    font-size: 1.05rem;
  }

  .cos-ce .ce-section {
    padding: 2.5rem 0;
  }

  .cos-ce .ce-card {
    padding: 1.5rem;
  }

  .cos-ce .ce-grid {
    gap: 1rem;
  }

  .cos-ce .ce-btn {
    width: 100%;
    max-width: 390px;
  }

  .cos-ce .ce-section:has(#help-cta),
  .cos-ce .ce-section:has(> #download-footer) {
    padding: 2.5rem 1.3rem;
  }

  .cos-ce .ce-section:has(#help-cta) {
    padding-bottom: 0;
  }

  .cos-ce .ce-help-cta-wrap {
    padding-bottom: 1.5rem;
  }

  .cos-ce .ce-final-note-wrap {
    padding-bottom: 1.5rem;
  }

  .cos-ce .ce-section:has(#help-cta) + .ce-section {
    padding-top: 4rem;
  }

  .cos-ce .ce-section:has(#help-cta) + .ce-section::before {
    right: 1rem;
    left: 1rem;
  }

  .cos-ce .ce-section:has(> #download-footer) h2 {
    font-size: 1.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cos-ce .ce-btn {
    transition: none;
  }

  .cos-ce .ce-btn:hover {
    transform: none;
  }
}
