/* ========================================================================================
   BrightCasa LLC — Global Stylesheet
   ============================================================================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
  --color-primary-blue: #1F4E79;
  --color-soft-teal: #2FA8A1;
  --color-warm-gold: #F2B84B;
  --color-success-green: #3FA66B;
  --color-background: #F8FAFC;
  --color-cards: #FFFFFF;
  --color-text-primary: #2D3748;
  --color-text-secondary: #718096;
  --color-error-red: #D64545;

  --font-heading: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;

  --max-width: 960px;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2.5rem;
  --spacing-xl: 4rem;
  --radius: 8px;
  --radius-lg: 12px;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text-primary);
  background-color: var(--color-background);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--color-primary-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.3;
}

h1 {
  font-size: 2.25rem;
  margin-bottom: var(--spacing-md);
}

h2 {
  font-size: 1.75rem;
  margin-bottom: var(--spacing-sm);
}

h3 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xs);
}

p {
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-secondary);
}

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

main {
  flex: 1;
  padding: var(--spacing-xl) 0;
}

section {
  margin-bottom: var(--spacing-xl);
}

section:last-child {
  margin-bottom: 0;
}

/* ---------- Header / Navigation ---------- */
.site-header {
  background: var(--color-cards);
  border-bottom: 1px solid #E2E8F0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

/* Logo placeholder — replace with actual logo image when available */
.logo {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--color-primary-blue);
  letter-spacing: -0.02em;
}

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

.nav-links {
  display: flex;
  gap: var(--spacing-md);
}

.nav-links a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary-blue);
  text-decoration: none;
}

/* Mobile nav — checkbox hack */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  background: var(--color-text-primary);
  height: 2px;
  width: 100%;
  border-radius: 2px;
  position: absolute;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle-label span {
  top: 9px;
}

.nav-toggle-label span::before {
  content: '';
  top: -7px;
}

.nav-toggle-label span::after {
  content: '';
  top: 7px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-primary-blue);
  color: #FFFFFF;
  text-align: center;
  padding: var(--spacing-lg) var(--spacing-md);
}

/* ── Footer brand block ─────────────────────────────────────────── */
.footer-brand {
  margin-bottom: var(--spacing-md);
}

.footer-tagline {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.70);
  margin: 6px 0 0;
  font-style: italic;
  letter-spacing: 0.01em;
}

/* ── Footer company info ─────────────────────────────────────────── */
.footer-info--desktop {
  display: none;
}

.footer-info--mobile p {
  margin-bottom: 2px;
}

@media (min-width: 640px) {
  .footer-info--desktop { display: block; }
  .footer-info--mobile  { display: none; }
}

.site-footer p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--spacing-xs);
  font-size: 0.9rem;
}

.site-footer a {
  color: #FFFFFF;
  text-decoration: underline;
}

/* ---------- Hero Section ---------- */
.hero {
  text-align: center;
  padding: var(--spacing-xl) 0;
}

.hero h1 {
  font-size: 2.5rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero .subheadline {
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto var(--spacing-md);
  color: var(--color-text-secondary);
}

.badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.85rem;
}

a.badge {
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

a.badge:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

a.badge:focus-visible {
  outline: 2px solid var(--color-soft-teal);
  outline-offset: 2px;
}

.badge--gold {
  background: var(--color-warm-gold);
  color: var(--color-text-primary);
}

.badge--teal {
  background: rgba(47, 168, 161, 0.12);
  color: var(--color-soft-teal);
}

.badge--green {
  background: rgba(63, 166, 107, 0.12);
  color: var(--color-success-green);
}

.badge--amber {
  background: rgba(242, 184, 75, 0.15);
  color: #92600A;
}

/* ---------- Product Cards ---------- */
.product-cards {
  display: grid;
  gap: var(--spacing-md);
}

.product-cards--home {
  grid-template-columns: 1fr;
}

.product-card {
  background: var(--color-cards);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  border: 1px solid #E2E8F0;
  transition: box-shadow 0.2s;
}

.product-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.product-card--featured {
  border-top: 4px solid var(--color-soft-teal);
}

.product-card--secondary {
  border-top: 4px solid var(--color-success-green);
}

.product-card h3 {
  font-size: 1.4rem;
  margin-bottom: var(--spacing-xs);
}

.product-card p {
  margin-bottom: var(--spacing-sm);
}

.product-card .card-link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-primary-blue);
}

.product-card .card-link:hover {
  text-decoration: underline;
}

/* ---------- Content Sections ---------- */
.content-section {
  background: var(--color-cards);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  border: 1px solid #E2E8F0;
}

.page-heading {
  margin-bottom: var(--spacing-lg);
}

.page-heading h1 {
  margin-bottom: var(--spacing-xs);
}

.page-heading .tagline {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  font-family: var(--font-heading);
  font-weight: 500;
}

/* Info / Status notices */
.notice {
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius);
  margin-bottom: var(--spacing-lg);
  font-size: 0.95rem;
}

.notice--teal {
  background: rgba(47, 168, 161, 0.08);
  border: 1px solid rgba(47, 168, 161, 0.3);
  color: #1A6B66;
}

.notice--green {
  background: rgba(63, 166, 107, 0.08);
  border: 1px solid rgba(63, 166, 107, 0.3);
  color: #2B6E47;
}

.notice--amber {
  background: rgba(242, 184, 75, 0.1);
  border: 1px solid rgba(242, 184, 75, 0.4);
  color: #92600A;
}

/* ---------- Lists ---------- */
.styled-list {
  margin-bottom: var(--spacing-md);
  padding-left: var(--spacing-md);
}

.styled-list li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.styled-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-soft-teal);
}

/* ---------- Support Page ---------- */
.email-block {
  background: var(--color-background);
  border: 1px solid #E2E8F0;
  border-radius: var(--radius);
  padding: var(--spacing-md) var(--spacing-lg);
  text-align: center;
  margin: var(--spacing-md) 0;
}

.email-block a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--color-primary-blue);
}

/* ---------- Privacy Page ---------- */
.privacy-section {
  margin-bottom: var(--spacing-lg);
}

.privacy-section h2 {
  font-size: 1.3rem;
  margin-bottom: var(--spacing-xs);
}

.privacy-section p {
  margin-bottom: var(--spacing-sm);
}

.effective-date {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-lg);
}

/* ---------- Why BrightCasa ---------- */
.why-section {
  background: var(--color-cards);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  border: 1px solid #E2E8F0;
  text-align: center;
}

.why-section h2 {
  margin-bottom: var(--spacing-sm);
}

.why-section p {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .product-cards--home {
    grid-template-columns: 3fr 2fr;
  }
}

@media (max-width: 639px) {
  .nav-toggle-label {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--color-cards);
    flex-direction: column;
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 1px solid #E2E8F0;
    display: none;
  }

  .nav-toggle:checked ~ .nav-links {
    display: flex;
  }

  .nav-toggle:checked + .nav-toggle-label span {
    background: transparent;
  }

  .nav-toggle:checked + .nav-toggle-label span::before {
    transform: rotate(45deg);
    top: 0;
  }

  .nav-toggle:checked + .nav-toggle-label span::after {
    transform: rotate(-45deg);
    top: 0;
  }

  h1 {
    font-size: 1.75rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .product-card {
    padding: var(--spacing-md);
  }

  .why-section h2 {
    text-align: center;
  }

  .why-section p {
    text-align: left;
  }
}

@media (max-width: 400px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  .hero .subheadline {
    font-size: 1rem;
  }
}

/* ---------- Utility ---------- */
.mt-sm {
  margin-top: var(--spacing-sm);
}

/* ── Product Card Header (icon + name) ─────────────────────────── */
.card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.card-header h3 {
  margin: 0;
}

.card-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ── GetSorted product page header ─────────────────────────────── */
.product-page-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 8px;
}

.product-page-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: contain;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

.product-page-header h1 {
  margin: 0 0 4px 0;
}

.product-tagline {
  color: var(--color-secondary-text);
  font-size: 1.05rem;
  margin: 0;
}

/* ── Refined Product Cards (App Store style) ───────────────────── */
.product-card--featured {
  border-top: 4px solid var(--color-teal);
  padding-top: 28px;
}

.product-card--secondary {
  border-top: 4px solid var(--color-green);
}

.card-header {
  gap: 16px;
  margin-bottom: 16px;
}

.card-icon {
  width: 72px;
  height: 72px;
}

.card-header h3 {
  font-size: 1.35rem;
}

/* ── About page product list ──────────────────────────────────────── */
.about-products {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

.about-product-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-product-list li {
  font-size: 1rem;
  color: var(--color-primary-text);
  padding: 4px 0;
}



/* ── Logo images ──────────────────────────────────────────────────── */
.nav-logo {
  height: 52px;
  width: auto;
  display: block;
}

.footer-logo-wrap {
  margin-bottom: 6px;
}

.footer-logo {
  width: 140px;
  height: auto;
  display: block;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  padding: 7px 14px;
}

/* ── Privacy Policy page ─────────────────────────────────────────── */
.policy-effective {
  color: var(--color-secondary-text);
  font-size: 0.9rem;
  margin-top: -8px;
  margin-bottom: 2rem;
}

.policy-body h2 {
  margin-top: 2.5rem;
  font-size: 1.15rem;
  color: var(--color-primary);
}

.policy-body h3 {
  margin-top: 1.5rem;
  font-size: 1rem;
  color: var(--color-primary-text);
}

.policy-body ul {
  padding-left: 1.5rem;
  margin: 0.75rem 0 1rem;
}

.policy-body ul li {
  margin-bottom: 0.4rem;
  color: var(--color-primary-text);
  line-height: 1.65;
}

.policy-body address {
  font-style: normal;
  margin-top: 0.75rem;
  line-height: 1.8;
  color: var(--color-primary-text);
}

.policy-body p {
  margin-bottom: 1rem;
  line-height: 1.75;
}


/* ── Beta CTA button ──────────────────────────────────────────────── */
.btn-primary-cta {
  display: inline-block;
  background: var(--color-soft-teal);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1rem;
  padding: 14px 32px;
  min-height: 48px;
  border-radius: 9999px;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
  line-height: 1.4;
}

.btn-primary-cta:hover {
  background: #279490;
  text-decoration: none;
  color: #ffffff;
  box-shadow: 0 2px 12px rgba(47, 168, 161, 0.28);
}

.btn-primary-cta:focus-visible {
  outline: 3px solid rgba(47, 168, 161, 0.5);
  outline-offset: 3px;
}

.beta-cta-block {
  margin-top: var(--spacing-md);
  text-align: center;
}

.beta-cta-sub {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}
/* ── Footer nav link ─────────────────────────────────────────────── */
.site-footer a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
}
.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ── GetSorted Product Hero ─────────────────────────────────────── */
.product-hero {
  text-align: center;
  padding: var(--spacing-xl) 0 var(--spacing-lg);
}

.product-hero-icon {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  object-fit: contain;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  margin: 0 auto var(--spacing-md);
}

.product-hero-name {
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: var(--spacing-xs);
}

.product-hero-tagline {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  font-family: var(--font-heading);
  font-weight: 500;
  margin-bottom: var(--spacing-lg);
}

/* ── Status box ─────────────────────────────────────────────────── */
.status-box {
  display: inline-block;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  margin-bottom: var(--spacing-md);
}

.status-box--teal {
  background: rgba(47, 168, 161, 0.10);
  border: 1px solid rgba(47, 168, 161, 0.30);
  color: #1A6B66;
}

/* ── Brand color utilities ──────────────────────────────────── */
.brand-teal {
  color: var(--color-soft-teal);
}

.brand-green {
  color: var(--color-success-green);
}

.brand-blue {
  color: var(--color-primary-blue);
}

.brand-gold {
  color: var(--color-warm-gold);
}

/* ── Footer trademark notice ─────────────────────────────────────────── */
.footer-tm {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: var(--spacing-sm);
  letter-spacing: 0.01em;
}
