/*!
 * CoopVPN Hugo site
 * Visual target: new-provider (mcnair.github.io/new-provider)
 *
 * Goals:
 * - No frameworks (no Tailwind)
 * - Minimal, readable CSS
 * - Clear sectioning and comments
 */

/* ------------------------------------------------------------
   Theme tokens
------------------------------------------------------------ */
:root {
  --purple: #301731;
  --cream: #FDF6F1;

  --accent: #f4c430;
  --accent-hover: #e0b520;

  --text: #1a1a1a;
  --muted: #4b5563;
  /* close to Tailwind gray-600 */
  --heading: #111827;
  /* close to Tailwind gray-900 */

  --container: 72rem;
  /* max-w-6xl ≈ 1152px */
  --radius: 0.75rem;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.10);

  --pad-x: 1.5rem;
  /* px-6 */
  --pad-y: 5rem;
  /* py-20 */
}

/* ------------------------------------------------------------
   Base
------------------------------------------------------------ */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: #fff;
}



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

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ------------------------------------------------------------
   Layout primitives
------------------------------------------------------------ */
.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  max-width: var(--container);
}

.container--wide {
  max-width: var(--container);
}

.section {
  padding: var(--pad-y) 0;
}

.section--white {
  background: #fff;
}

.section--cream {
  background: var(--cream);
}

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

.center {
  text-align: center;
}

.max-3xl {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}



/* Two-column section layout (mirrors grid md:grid-cols-2 gap-16) */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  /* gap-16 */
  align-items: center;
}

.two-col__media {
  display: flex;
  justify-content: center;
}

.two-col--reverse .two-col__media {
  order: 1;
}

.two-col--reverse .two-col__content {
  order: 2;
}

.two-col__media img {
  max-width: 350px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
}

/* Desktop breakpoint: matches "md:" behavior in reference */
@media (min-width: 768px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
  }

  .two-col--reverse .two-col__media {
    order: 2;
  }

  .two-col--reverse .two-col__content {
    order: 1;
  }
}

/* ------------------------------------------------------------
   Typography (match scale/feel)
------------------------------------------------------------ */
.h1,
.page-content h1,
.page-title {
  font-size: 3rem;
  /* text-5xl */
  line-height: 1.1;
  margin: 0 0 1rem 0;
  font-weight: 800;
  color: var(--heading);
}

.h2,
.page-content h2 {
  font-size: 2.25rem;
  /* text-4xl */
  line-height: 1.15;
  margin: 0 0 1.5rem 0;
  font-weight: 800;
  color: var(--heading);
}

.h3,
.page-content h3 {
  font-size: 1.875rem;
  /* text-3xl */
  line-height: 1.2;
  margin: 0 0 0.5rem 0;
  font-weight: 800;
}

.lead,
.page-content p {
  font-size: 1.125rem;
  line-height: 1.625;
  color: var(--purple);
  margin-top: 0;
  margin-bottom: 2rem;
}

.lead a,
p a {
  color: var(--purple);
  text-decoration: underline;
}

.lead a:hover,
p a:hover {
  color: var(--accent-hover);
}

.page-content ul,
.page-content ol {
  margin-top: 0;
  margin-bottom: 2rem;
  padding-left: 1.5rem;
}

.page-content li {
  font-size: 1.125rem;
  line-height: 1.625;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.page-content h1,
.page-content h2,
.page-content h3 {
  margin-top: 2.5rem;
}

.lead--emphasis {
  font-weight: 700;
}

.section--purple .h1,
.section--purple .h2,
.section--purple .h3 {
  color: #fff;
}

.lead--on-purple {
  color: rgba(255, 255, 255, 0.85);
}

.muted {
  color: var(--muted);
  margin: 0 0 1.5rem 0;
}

.muted--on-purple {
  color: rgba(255, 255, 255, 0.80);
}

/* ------------------------------------------------------------
   Header / Nav (sticky purple bar)
------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--purple);
  color: #fff;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.nav a.active {
  border-bottom: 2px solid var(--cream);
  font-weight: 600;
}

.brand {
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  opacity: 0.9;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.nav-link {
  opacity: 1;
  text-decoration: none;
  transition: opacity 200ms ease;
}

.nav-link:hover {
  opacity: 0.8;
  text-decoration: none;
}

/* Language switcher (simple dropdown) */
.lang {
  position: relative;
}

.lang-button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.30);
  color: #fff;
  border-radius: 0.5rem;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-button:hover {
  opacity: 0.9;
}

.lang-menu {
  list-style: none;
  margin: 0.5rem 0 0 0;
  padding: 0.5rem;
  background: #fff;
  color: var(--text);
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
  min-width: 12rem;

  position: absolute;
  right: 0;
  top: 100%;
  display: none;
}

.lang.is-open .lang-menu {
  display: block;
}

.lang-item {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  text-decoration: none;
}

.lang-item:hover {
  background: rgba(0, 0, 0, 0.05);
  text-decoration: none;
}

.lang-item.is-active {
  font-weight: 700;
}

/* ------------------------------------------------------------
   Buttons (match reference)
------------------------------------------------------------ */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 700;
  transition: transform 300ms ease, background-color 300ms ease, opacity 300ms ease;
  text-decoration: none;
}

.btn--primary {
  background: var(--accent);
  color: #1a1a1a;
}

.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-0.25rem);
  text-decoration: none;
}

/* ------------------------------------------------------------
   Homepage Banner
------------------------------------------------------------ */
.banner-homepage {
  background-color: var(--cream);
  border: 1px solid var(--purple);
  border-radius: var(--radius);
  padding: 1rem var(--pad-x);
  margin: var(--pad-y) auto 2rem auto;
  /* Centered within container */
  max-width: 60rem;
  text-align: center;
  animation: fadeInBanner 1s ease-in;
}

.banner-homepage__text {
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 700;
  color: var(--text);
}

@keyframes fadeInBanner {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ------------------------------------------------------------
   Cards / Pricing grid (md:grid-cols-3 gap-8)
------------------------------------------------------------ */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  /* gap-8 */
  max-width: 64rem;
  /* ~ max-w-5xl */
  margin: 0 auto;
}

@media (min-width: 768px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  border-radius: var(--radius);
  padding: 2rem;
}

.card--plain {
  background: #fff;
  box-shadow: var(--shadow);
}

.card--featured {
  background: var(--purple);
  color: #fff;
  box-shadow: var(--shadow);
  transform: scale(1);
}

@media (min-width: 768px) {
  .card--featured {
    transform: scale(1.05);
  }
}

.price {
  font-size: 2.25rem;
  font-weight: 800;
  margin: 0 0 2rem 0;
  color: var(--heading);
}

.price--on-purple {
  color: #fff;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.checklist li {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: 0.75rem;
  align-items: start;
}

.check {
  color: var(--accent);
  font-weight: 800;
}

/* ------------------------------------------------------------
   About grid
------------------------------------------------------------ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  color: var(--heading);
}

.about-grid .lead {
  color: var(--muted);
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ------------------------------------------------------------
   Blog list / single (simple, consistent)
------------------------------------------------------------ */
.post-list {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.post-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.post-card a:hover {
  text-decoration: underline;
}

.prose {
  max-width: 42rem;
}

.prose p {
  margin: 1rem 0;
}

.prose h1,
.prose h2,
.prose h3 {
  color: var(--heading);
}

/* ------------------------------------------------------------
   Single Column Page
------------------------------------------------------------ */

.page-narrow {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

/* ------------------------------------------------------------
   Footer
------------------------------------------------------------ */
.site-footer {
  background: var(--purple);
  color: #fff;
}

.footer-links {
  border-top: 1px solid rgba(255, 255, 255, 0.20);
  padding: 2rem 0;
}

.footer-links .container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  opacity: 1;
  transition: opacity 200ms ease;
  text-decoration: none;
}

.footer-links a:hover {
  opacity: 0.8;
  text-decoration: none;
}

/* ------------------------------------------------------------
   Reveal utility (optional progressive enhancement)
------------------------------------------------------------ */
.reveal {
  opacity: 1;
  transform: translateY(12px);
  filter: saturate(0.85) contrast(0.9);
  transition: opacity 1600ms ease, transform 1600ms ease, filter 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: saturate(1) contrast(1);
}