/* =============================================================================
   CONTENT.CSS — Template for service pages (WordPress, Node.js, Domains, etc.)
   Requires main.css to be loaded first for variables and base styles.
   ============================================================================= */

/* =============================================
   CONTENT HERO
   ============================================= */
.content-hero {
  background: var(--deep-navy);
  padding: 120px 0 80px;
  margin-top: var(--nav-height);
  text-align: center;
  position: relative;
}

.content-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(136, 146, 160, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.content-hero__inner {
  max-width: 840px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 1;
}

.content-hero__overline {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 16px;
}

.content-hero__title {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--muted-white);
  margin-bottom: 16px;
}

.content-hero__subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--slate);
  max-width: 600px;
  margin: 0 auto 32px;
}

.content-hero__cta {
  display: inline-flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* =============================================
   CONTENT MAIN — Two-column layout
   ============================================= */
.content-main {
  background: var(--off-white);
  padding: 64px 0 96px;
}

.content-main__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}

/* =============================================
   CONTENT SECTIONS
   ============================================= */
.content-section {
  margin-bottom: 48px;
}

.content-section__title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--muted-white);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(136, 146, 160, 0.1);
}

.content-section__number {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--gold);
  margin-right: 10px;
}

.content-section p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--slate);
  margin-bottom: 16px;
}

.content-section a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(212, 175, 55, 0.3);
  transition: text-decoration-color 150ms ease;
}

.content-section a:hover {
  text-decoration-color: var(--gold);
}

.content-section strong {
  color: var(--muted-white);
  font-weight: 600;
}

/* =============================================
   FEATURE GRID
   ============================================= */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0 32px;
}

/* =============================================
   FEATURE CARD
   ============================================= */
.feature-card {
  background: #2C3038;
  border: 1px solid rgba(136, 146, 160, 0.1);
  border-radius: 4px;
  padding: 32px;
  transition: border-color 180ms ease;
}

.feature-card:hover {
  border-color: rgba(212, 175, 55, 0.2);
}

.feature-card__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--gold);
}

.feature-card__icon svg {
  width: 24px;
  height: 24px;
}

.feature-card__title {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  color: var(--muted-white);
  margin-bottom: 8px;
}

.feature-card__text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--slate);
}

/* =============================================
   COMPARISON TABLE
   ============================================= */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 32px;
}

.comparison-table th,
.comparison-table td {
  text-align: left;
  padding: 14px 16px;
  font-size: 14px;
  border-bottom: 1px solid rgba(136, 146, 160, 0.1);
}

.comparison-table thead th {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--deep-navy);
  background: var(--gold);
}

.comparison-table thead th:first-child {
  border-radius: 4px 0 0 0;
}

.comparison-table thead th:last-child {
  border-radius: 0 4px 0 0;
}

.comparison-table tbody td {
  color: var(--slate);
  background: #2C3038;
}

.comparison-table tbody tr:hover td {
  background: #31353D;
}

.comparison-table tbody td:first-child {
  color: var(--muted-white);
  font-weight: 500;
}

.comparison-table .table-check {
  color: var(--gold);
  font-weight: 600;
}

.comparison-table .table-dash {
  color: rgba(136, 146, 160, 0.4);
}

/* =============================================
   FEATURE LIST — Two-column with checkmarks
   ============================================= */
.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 32px;
  margin: 24px 0 32px;
}

.feature-list__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--slate);
}

.feature-list__item::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23D4AF37'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* =============================================
   SIDEBAR
   ============================================= */
.content-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* =============================================
   SIDEBAR CARD
   ============================================= */
.sidebar-card {
  background: #2C3038;
  border: 1px solid rgba(136, 146, 160, 0.1);
  border-radius: 4px;
  padding: 32px;
}

.sidebar-card__title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-white);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(136, 146, 160, 0.12);
}

.sidebar-card__item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid rgba(136, 146, 160, 0.06);
}

.sidebar-card__item:last-child {
  border-bottom: none;
}

.sidebar-card__label {
  font-size: 14px;
  color: var(--slate);
}

.sidebar-card__value {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted-white);
}

.sidebar-card__value--gold {
  color: var(--gold);
}

.sidebar-card__text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--slate);
  margin-bottom: 20px;
}

.sidebar-card__cta {
  width: 100%;
}

/* =============================================
   TECH STACK GRID
   ============================================= */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0 32px;
}

.tech-grid__item {
  background: #2C3038;
  border: 1px solid rgba(136, 146, 160, 0.1);
  border-radius: 4px;
  padding: 16px;
  text-align: center;
  transition: border-color 180ms ease;
}

.tech-grid__item:hover {
  border-color: rgba(212, 175, 55, 0.2);
}

.tech-grid__icon {
  width: 32px;
  height: 32px;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.tech-grid__icon svg,
.tech-grid__icon img {
  width: 24px;
  height: 24px;
}

.tech-grid__name {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted-white);
}

/* =============================================
   CTA BOX — Inline call-to-action
   ============================================= */
.cta-box {
  border-left: 3px solid var(--gold);
  background: rgba(212, 175, 55, 0.06);
  padding: 24px 28px;
  margin: 24px 0 32px;
  border-radius: 0 4px 4px 0;
}

.cta-box__title {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  color: var(--muted-white);
  margin-bottom: 8px;
}

.cta-box__text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--slate);
  margin-bottom: 16px;
}

.cta-box__text:last-child {
  margin-bottom: 0;
}

/* =============================================
   ICON BLOCK — Icon + text descriptions
   ============================================= */
.icon-block {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.icon-block__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 175, 55, 0.08);
  border-radius: 4px;
  color: var(--gold);
}

.icon-block__icon svg {
  width: 20px;
  height: 20px;
}

.icon-block__content {
  flex: 1;
}

.icon-block__title {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--muted-white);
  margin-bottom: 4px;
}

.icon-block__text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--slate);
}

/* =============================================
   RESPONSIVE — TABLET (1024px)
   ============================================= */
@media (max-width: 1024px) {
  .content-main__inner {
    gap: 32px;
  }

  .feature-grid {
    gap: 16px;
  }

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

  .sidebar-card {
    padding: 24px;
  }

  .feature-card {
    padding: 24px;
  }
}

/* =============================================
   RESPONSIVE — MOBILE (768px)
   ============================================= */
@media (max-width: 768px) {
  .content-hero {
    padding: 88px 0 56px;
  }

  .content-hero__title {
    font-size: 32px;
  }

  .content-hero__subtitle {
    font-size: 16px;
  }

  .content-main {
    padding: 48px 0 72px;
  }

  .content-main__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .content-sidebar {
    position: static;
  }

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

  .feature-list {
    grid-template-columns: 1fr;
  }

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

  .content-section__title {
    font-size: 22px;
  }

  .comparison-table {
    font-size: 13px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 10px 12px;
  }
}

/* =============================================
   RESPONSIVE — SMALL (480px)
   ============================================= */
@media (max-width: 480px) {
  .content-hero__title {
    font-size: 28px;
  }

  .content-hero__subtitle {
    font-size: 15px;
  }

  .content-section__title {
    font-size: 20px;
  }

  .feature-card {
    padding: 20px;
  }

  .sidebar-card {
    padding: 20px;
  }

  .tech-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .tech-grid__item {
    padding: 12px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 8px 10px;
    font-size: 12px;
  }

  .cta-box {
    padding: 20px;
  }
}

/* =============================================
   PREFERS REDUCED MOTION
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  .feature-card,
  .tech-grid__item {
    transition: none;
  }
}
