/* ========================================
   AWS CMMC Cloud Builder Page Styles
   Matches the AWS Solutions Library design
   ======================================== */

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

:root {
  --aws-orange: #ff9900;
  --aws-orange-hover: #ec7211;
  --aws-dark: #232f3e;
  --aws-darker: #1b2838;
  --aws-navy: #0a1929;
  --aws-light-bg: #f2f3f3;
  --aws-white: #ffffff;
  --aws-text: #16191f;
  --aws-text-secondary: #545b64;
  --aws-text-light: #687078;
  --aws-link: #0073bb;
  --aws-link-hover: #004e8a;
  --aws-border: #d5dbdb;
  --aws-success: #1d8102;
  --font-primary: "Amazon Ember", "Helvetica Neue", Roboto, Arial, sans-serif;
  --max-width: 1200px;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--aws-link);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

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

/* ========================================
   Top Navigation Bar (white background)
   ======================================== */
.aws-topbar {
  background: var(--aws-white);
  color: var(--aws-text);
  font-size: 14px;
  padding: 0 24px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #eaeded;
}

.aws-topbar__left {
  display: flex;
  align-items: center;
  gap: 4px;
}

.aws-topbar__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  margin-right: 16px;
}

.aws-topbar__logo:hover {
  text-decoration: none;
}

.aws-topbar__logo svg {
  width: 40px;
  height: 24px;
  fill: var(--aws-dark);
}

.aws-topbar__nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.aws-topbar__nav a {
  color: var(--aws-text);
  font-size: 13px;
  font-weight: 400;
  padding: 6px 10px;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.15s;
}

.aws-topbar__nav a:hover {
  color: var(--aws-text);
  text-decoration: underline;
}

.aws-topbar__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.aws-topbar__right a {
  color: var(--aws-text);
  font-size: 13px;
  text-decoration: none;
}

.aws-topbar__right a:hover {
  color: var(--aws-link-hover);
  text-decoration: underline;
}

.aws-topbar__search {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--aws-text);
  cursor: pointer;
}

.aws-topbar__search svg {
  width: 14px;
  height: 14px;
  color: var(--aws-text-secondary);
}

.aws-topbar__create-btn {
  background: var(--aws-orange) !important;
  color: var(--aws-dark) !important;
  font-size: 12px !important;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 3px;
  text-decoration: none !important;
  display: inline-block;
  transition: background 0.15s;
}

.aws-topbar__create-btn:hover {
  background: var(--aws-orange-hover) !important;
  color: #fff !important;
  text-decoration: none !important;
}

/* ========================================
   Hero Wrapper (gradient background behind subnav + hero)
   ======================================== */
.hero-wrapper {
  background: linear-gradient(180deg, #fce4cb 0%, #f8dcc4 15%, #f5dbc6 30%, #f5ddd0 50%, #faf0ec 70%, #ffffff 100%);
}

/* ========================================
   Secondary Solutions Library Nav (yellow band)
   ======================================== */
.aws-solutions-nav {
  padding: 0 24px;
  height: 42px;
  display: flex;
  align-items: center;
  background: rgba(232, 198, 124, 0.25);
  border-bottom: 1px solid rgba(210, 180, 110, 0.2);
}

.aws-solutions-nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.aws-solutions-nav__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--aws-text);
  white-space: nowrap;
}

.aws-solutions-nav__links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.aws-solutions-nav__item {
  font-size: 13px;
  color: var(--aws-text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s;
}

.aws-solutions-nav__item:hover {
  color: var(--aws-text);
}

.aws-solutions-nav__item .caret {
  font-size: 10px;
  margin-left: 2px;
  color: var(--aws-text-light);
}

/* ========================================
   Breadcrumb / Sub Navigation
   ======================================== */
.aws-subnav {
  padding: 0 24px;
  height: 48px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(213, 219, 219, 0.5);
}

.aws-subnav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}

.aws-subnav__breadcrumb {
  font-size: 14px;
  color: var(--aws-text-secondary);
}

.aws-subnav__breadcrumb a {
  color: var(--aws-link);
}

.aws-subnav__breadcrumb .separator {
  margin: 0 4px;
  color: var(--aws-text-light);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  color: var(--aws-text);
  padding: 40px 24px 52px;
  text-align: left;
}

.hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero__badge {
  display: none;
}

.hero h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
  color: var(--aws-text);
  max-width: 600px;
}

.hero__subtitle {
  font-size: 16px;
  color: var(--aws-text);
  line-height: 1.5;
  margin-bottom: 24px;
  max-width: 560px;
  font-weight: 400;
}

.hero__cta {
  display: inline-block;
  background: var(--aws-dark);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.hero__cta:hover {
  background: #37475a;
  text-decoration: none;
  color: #fff;
}

/* ========================================
   Section Container
   ======================================== */
.section {
  padding: 56px 24px;
}

.section--gray {
  background: var(--aws-light-bg);
}

.section--dark {
  background: var(--aws-dark);
  color: #fff;
}

.section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Two-column section layout (heading left, content right) */
.section__two-col {
  display: grid;
  grid-template-columns: 35% 1fr;
  gap: 48px;
  align-items: start;
}

.section__left h2 {
  font-size: 28px;
  font-weight: 400;
  color: var(--aws-text);
  line-height: 1.3;
  margin: 0;
}

.section__left-desc {
  font-size: 15px;
  color: var(--aws-text-secondary);
  line-height: 1.6;
  margin-top: 12px;
}

.section__left-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  color: var(--aws-link);
  text-decoration: underline;
}

.section__right {
  min-width: 0;
}

.section__right > p {
  font-size: 15px;
  color: var(--aws-text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.section--dark .section__left h2 {
  color: #fff;
}

.section--dark .section__right > p {
  color: #d5dbdb;
}

/* ========================================
   Overview Section
   ======================================== */
.overview__content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.75;
  color: var(--aws-text);
}

.overview__content p {
  margin-bottom: 16px;
}

.overview__image {
  margin: 24px 0;
}

.overview__image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.overview__note {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--aws-text);
}

.overview__note strong {
  color: var(--aws-text);
  font-weight: 700;
}

/* ========================================
   Benefits Accordion / Dropdowns
   ======================================== */
.benefits-accordion {
  width: 100%;
}

.benefit-dropdown {
  border-bottom: 1px solid var(--aws-border);
}

.benefit-dropdown:first-child {
  border-top: 1px solid var(--aws-border);
}

.benefit-dropdown__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.benefit-dropdown__header::-webkit-details-marker {
  display: none;
}

.benefit-dropdown__header::marker {
  display: none;
  content: "";
}

.benefit-dropdown__header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--aws-text);
  margin: 0;
}

.benefit-dropdown__icon {
  font-size: 20px;
  font-weight: 300;
  color: var(--aws-text);
  line-height: 1;
  transition: transform 0.2s ease;
}

.benefit-dropdown[open] .benefit-dropdown__icon {
  transform: rotate(45deg);
}

.benefit-dropdown__content {
  padding: 0 0 20px 0;
}

.benefit-dropdown__content p {
  font-size: 14px;
  color: var(--aws-text-secondary);
  line-height: 1.7;
}

/* ========================================
   How It Works
   ======================================== */
.how-it-works__diagram {
  background: var(--aws-white);
  border: 1px solid var(--aws-border);
  border-radius: 8px;
  padding: 28px;
}

.how-it-works__steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.how-it-works__step {
  padding: 16px;
}

.how-it-works__step-number {
  width: 32px;
  height: 32px;
  background: var(--aws-orange);
  color: var(--aws-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 10px;
}

.how-it-works__step h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--aws-text);
}

.how-it-works__step p {
  font-size: 13px;
  color: var(--aws-text-secondary);
  line-height: 1.55;
}

/* ========================================
   How It's Deployed (About this deployment)
   ======================================== */
.deployment-info__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.deployment-info__list li {
  padding: 8px 0;
  font-size: 15px;
  line-height: 1.5;
}

.deployment-info__list .label {
  font-weight: 700;
  color: var(--aws-text);
}

.deployment-info__list .value {
  color: var(--aws-text-secondary);
}

.deployment-info__list .value a {
  color: var(--aws-link);
}

/* ========================================
   Deploy with Confidence
   ======================================== */
.deploy-card {
  margin-bottom: 32px;
}

.deploy-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--aws-text);
}

.deploy-card p {
  font-size: 14px;
  color: var(--aws-text-secondary);
  line-height: 1.65;
  margin-bottom: 16px;
}

.deploy-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--aws-link);
}

.deploy-card__link:hover {
  color: var(--aws-link-hover);
}

.deploy-card__link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ========================================
   Deployment Options
   ======================================== */
.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.option-card {
  background: var(--aws-white);
  border: 1px solid var(--aws-border);
  border-radius: 8px;
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  color: var(--aws-text);
}

.option-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border-color: var(--aws-orange);
  text-decoration: none;
  color: var(--aws-text);
}

.option-card__icon {
  width: 56px;
  height: 56px;
  background: var(--aws-light-bg);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.option-card__icon svg {
  width: 28px;
  height: 28px;
  fill: var(--aws-orange);
}

.option-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.option-card p {
  font-size: 13px;
  color: var(--aws-link);
}

/* ========================================
   CTA Button (reusable)
   ======================================== */
.btn {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 3px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--aws-orange);
  color: var(--aws-dark);
}

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

.btn--secondary {
  background: transparent;
  color: var(--aws-link);
  border: 1px solid var(--aws-link);
}

.btn--secondary:hover {
  background: var(--aws-link);
  color: #fff;
  text-decoration: none;
}

.btn--launch {
  background: var(--aws-orange);
  color: var(--aws-dark);
  font-size: 15px;
  padding: 12px 28px;
}

.btn--launch:hover {
  background: var(--aws-orange-hover);
  color: #fff;
  text-decoration: none;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--aws-dark);
  color: #d5dbdb;
  padding: 40px 24px 24px;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}

.footer__col h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer__col ul {
  list-style: none;
}

.footer__col ul li {
  margin-bottom: 8px;
}

.footer__col ul li a {
  color: #d5dbdb;
  font-size: 13px;
  transition: color 0.15s;
}

.footer__col ul li a:hover {
  color: var(--aws-orange);
  text-decoration: none;
}

.footer__bottom {
  border-top: 1px solid #3b4b5e;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #aab7b8;
}

.footer__bottom a {
  color: #aab7b8;
  margin-left: 16px;
}

.footer__bottom a:hover {
  color: #fff;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 968px) {
  .section__two-col {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .how-it-works__steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .how-it-works__step:nth-child(2) .how-it-works__arrow {
    display: none;
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 24px;
  }

  .hero__subtitle {
    font-size: 14px;
  }

  .how-it-works__steps {
    grid-template-columns: 1fr;
  }

  .how-it-works__arrow {
    display: none;
  }

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

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

  .aws-topbar {
    padding: 0 12px;
  }

  .aws-topbar__nav {
    display: none;
  }

  .aws-topbar__right {
    display: none;
  }

  .aws-solutions-nav__links {
    display: none;
  }
}
