/* ============================================
   Jensen Design Services - Modern Stylesheet
   ============================================ */

/* --- CSS Variables --- */
:root {
  --color-primary: #3a6b8c;
  --color-primary-dark: #2c5270;
  --color-primary-light: #5a9ec4;
  --color-accent: #ABCDEF;
  --color-accent-green: #7ab86a;
  --color-accent-pink: #d4909e;
  --color-accent-tan: #c9a84c;
  --color-bg: #f8f6f3;
  --color-bg-white: #ffffff;
  --color-text: #3a3a3a;
  --color-text-light: #6a6a6a;
  --color-text-muted: #999999;
  --color-border: #e0ddd8;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --max-width: 1200px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

ul, ol {
  list-style: none;
}

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

h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }

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

/* --- Header & Navigation --- */
.site-header {
  background: var(--color-bg-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 56px;
  width: auto;
  transition: transform var(--transition);
}

.logo-link:hover .logo-img {
  transform: scale(1.02);
}

/* Desktop Nav */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  padding: 8px 16px;
  border-radius: var(--radius);
  transition: all var(--transition);
  text-decoration: none;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
  background: rgba(58, 107, 140, 0.08);
  text-decoration: none;
}

.nav-links a.active {
  font-weight: 600;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: all var(--transition);
  border-radius: 2px;
}

.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  padding: 80px 0 72px;
  text-align: center;
}

.hero h1 {
  color: #fff;
  font-size: 2.75rem;
  margin-bottom: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.92;
  max-width: 640px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

.hero .btn {
  background: #fff;
  color: var(--color-primary-dark);
}

.hero .btn:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* --- Page Hero (sub-pages) --- */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  padding: 48px 0 40px;
  text-align: center;
}

.page-hero h1 {
  color: #fff;
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.page-hero p {
  opacity: 0.9;
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* Accent color variants for page heroes */
.page-hero.accent-green {
  background: linear-gradient(135deg, #5a9a4a 0%, #3d7a2e 100%);
}

.page-hero.accent-tan {
  background: linear-gradient(135deg, #b8943f 0%, #8a6e2e 100%);
}

.page-hero.accent-pink {
  background: linear-gradient(135deg, #c47080 0%, #a04d5d 100%);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}

/* --- Section Styles --- */
.section {
  padding: 64px 0;
}

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

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-title p {
  color: var(--color-text-light);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.card-icon.blue { background: rgba(58, 107, 140, 0.1); color: var(--color-primary); }
.card-icon.green { background: rgba(122, 184, 106, 0.12); color: var(--color-accent-green); }
.card-icon.pink { background: rgba(212, 144, 158, 0.12); color: #b5606f; }
.card-icon.tan { background: rgba(201, 168, 76, 0.12); color: #9a7d2e; }

.card h3 {
  margin-bottom: 8px;
}

.card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* --- BCIN Badges --- */
.bcin-section {
  padding: 64px 0;
}

.bcin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.bcin-badge {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 500;
  transition: all var(--transition);
}

.bcin-badge:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.bcin-badge .badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(58, 107, 140, 0.1);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  padding: 48px 0;
  text-align: center;
  border-radius: var(--radius-lg);
  margin: 48px 0;
}

.cta-banner h2 {
  color: #fff;
  margin-bottom: 0.75rem;
}

.cta-banner p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .btn {
  background: #fff;
  color: var(--color-primary-dark);
}

.cta-banner .btn:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

/* --- Content Section --- */
.content-section {
  padding: 64px 0;
}

.content-section .content-text {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.85;
}

.content-section .content-text p {
  margin-bottom: 1.25rem;
}

/* --- Plans Grid --- */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 32px;
}

.plan-card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.plan-card-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-bottom: 1px solid var(--color-border);
}

.plan-card-body {
  padding: 24px;
}

.plan-card-body h3 {
  margin-bottom: 8px;
}

.plan-card-body p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.plan-card-body .btn {
  font-size: 0.88rem;
  padding: 10px 20px;
}

/* --- Plan Detail --- */
.plan-detail-images {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 32px 0;
}

.plan-detail-images img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* --- Order Steps --- */
.steps {
  max-width: 640px;
  margin: 32px auto 0;
  counter-reset: step;
}

.step {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border);
}

.step:last-child {
  border-bottom: none;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.step-content h3 {
  margin-bottom: 4px;
}

.step-content p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* --- Contact Info --- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 32px;
}

.contact-card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: all var(--transition);
}

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

.contact-card .icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(58, 107, 140, 0.1);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
}

.contact-card h3 {
  margin-bottom: 8px;
}

.contact-card p {
  color: var(--color-text-light);
  margin-bottom: 4px;
}

.contact-card a {
  font-weight: 500;
}

/* --- Footer --- */
.site-footer {
  background: var(--color-text);
  color: rgba(255,255,255,0.7);
  padding: 40px 0 24px;
  margin-top: auto;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-contact {
  text-align: left;
}

.footer-contact p {
  margin-bottom: 4px;
  font-size: 0.88rem;
}

.footer-contact a {
  color: rgba(255,255,255,0.7);
}

.footer-contact a:hover {
  color: #fff;
}

.footer-copy {
  text-align: right;
  font-size: 0.8rem;
  opacity: 0.6;
}

/* --- Focus Box (callout) --- */
.focus-box {
  background: var(--color-bg-white);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 32px 0;
  font-weight: 500;
}

.focus-box a {
  font-weight: 600;
}

/* --- Divider --- */
.divider {
  width: 48px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 3px;
  margin: 16px auto 0;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-bg-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 24px 24px;
    gap: 4px;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    transition: right var(--transition);
    z-index: 105;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1rem;
    padding: 12px 16px;
    width: 100%;
  }

  .hero {
    padding: 56px 0 48px;
  }

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

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

  .page-hero {
    padding: 36px 0 32px;
  }

  .page-hero h1 {
    font-size: 1.75rem;
  }

  .section {
    padding: 48px 0;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

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

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

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-contact {
    text-align: center;
  }

  .footer-copy {
    text-align: center;
  }

  .steps {
    margin: 24px 0 0;
  }

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

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

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

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .card {
    padding: 24px;
  }
}

/* --- Overlay for mobile menu --- */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 102;
}

.nav-overlay.open {
  display: block;
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }
