/* ==========================================================================
   BRBR Group - Corporate Website Styles
   Light theme, shadcn/ui inspired
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables - LIGHT THEME
   -------------------------------------------------------------------------- */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-tertiary: #f3f4f6;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --accent: #22c55e;
  --accent-hover: #16a34a;
  --border: #e5e7eb;
  --border-hover: #d1d5db;
  --card-bg: #ffffff;
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.2s ease;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

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

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

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 {
  font-size: 3rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

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

.text-accent {
  color: var(--accent);
}

.text-muted {
  color: var(--text-muted);
}

.text-secondary {
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section.bg-secondary {
  background-color: var(--bg-secondary);
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--text-primary);
}

/* Mobile nav */
@media (max-width: 640px) {
  .nav-links {
    gap: 1.25rem;
  }

  .nav-links a {
    font-size: 0.875rem;
  }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  padding: 8rem 0 6rem;
  text-align: center;
  background: linear-gradient(to bottom, var(--bg-secondary), var(--bg-primary));
}

.hero h1 {
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* Page hero (smaller) */
.page-hero {
  padding: 4rem 0 3rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background-color: var(--bg-secondary);
}

.page-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

/* Project hero */
.project-hero {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
  background-color: var(--bg-secondary);
}

.project-hero .back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 2rem;
  transition: color var(--transition);
}

.project-hero .back-link:hover {
  color: var(--text-primary);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.project-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.project-hero .tagline {
  font-size: 1.25rem;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius);
  background-color: var(--accent);
  color: white;
  transition: background-color var(--transition), transform var(--transition);
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  background-color: var(--accent-hover);
}

.btn:active {
  transform: scale(0.98);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
  box-shadow: none;
}

.btn-outline:hover {
  background-color: var(--bg-secondary);
  border-color: var(--border-hover);
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
  display: block;
  padding: 1.5rem;
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  box-shadow: var(--shadow-sm);
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card h3 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.card-link {
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 500;
}

/* Large card variant */
.card-lg {
  padding: 2rem;
}

.card-lg h3 {
  font-size: 1.5rem;
}

/* --------------------------------------------------------------------------
   Badges
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-live {
  background-color: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}

.badge-dev {
  background-color: rgba(234, 179, 8, 0.1);
  color: #ca8a04;
}

.badge-platform {
  background-color: var(--bg-tertiary);
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
}

/* --------------------------------------------------------------------------
   Grid
   -------------------------------------------------------------------------- */
.grid {
  display: grid;
  gap: 1.5rem;
}

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

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

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

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

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

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */
.service {
  padding: 1.5rem;
  border-radius: var(--radius);
  background-color: var(--bg-primary);
  border: 1px solid var(--border);
}

.service h3 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.service p {
  font-size: 0.9375rem;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Content Sections
   -------------------------------------------------------------------------- */
.content-section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

.content-section:last-child {
  border-bottom: none;
}

.content-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.content-section p {
  max-width: 700px;
  line-height: 1.8;
}

.content-section ul {
  list-style: none;
  padding: 0;
}

.content-section li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.content-section li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
}

/* Links section */
.links-section {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.links-section a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  transition: all var(--transition);
}

.links-section a:hover {
  border-color: var(--border-hover);
  background-color: var(--bg-tertiary);
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact-info {
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 2rem;
}

.contact-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-value {
  font-size: 1.125rem;
  color: var(--text-primary);
}

.contact-value a {
  color: var(--accent);
  transition: color var(--transition);
}

.contact-value a:hover {
  color: var(--accent-hover);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  background-color: var(--bg-secondary);
}

.footer p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

.footer-links {
  margin-top: 0.5rem !important;
}

.footer-links a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   Section Icons
   -------------------------------------------------------------------------- */
.section-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1.25rem;
  color: var(--accent);
}

.section-icon svg {
  width: 100%;
  height: 100%;
}

/* Icon with background circle */
.section-icon-bg {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(34, 197, 94, 0.1);
  border-radius: 16px;
  margin-bottom: 1.25rem;
}

.section-icon-bg svg {
  width: 32px;
  height: 32px;
  color: var(--accent);
}

/* Project card icons */
.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(34, 197, 94, 0.1);
  border-radius: 12px;
  margin-bottom: 1rem;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

/* Service icons */
.service-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(34, 197, 94, 0.08);
  border-radius: 10px;
  margin-bottom: 1rem;
}

.service-icon svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.py-4 { padding-top: 2rem; padding-bottom: 2rem; }
.py-6 { padding-top: 3rem; padding-bottom: 3rem; }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .hero {
    padding: 5rem 0 4rem;
  }

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

  .section {
    padding: 3rem 0;
  }

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