/* =========================================================
   El Panahash — Baby Blue Medical Cannabis Theme
   ========================================================= */

:root {
  --primary:       #6BBFE0;
  --primary-light: #AEE0F5;
  --primary-dark:  #3A8FA8;
  --primary-glow:  rgba(107, 191, 224, 0.25);

  --bg:            #EDF6FB;
  --bg-card:       #FFFFFF;
  --bg-nav:        #FFFFFF;

  --text:          #1A3C4A;
  --text-muted:    #5A7A8A;
  --text-light:    #8AAAB8;

  --border:        #C8E4EE;
  --border-light:  #E2F2F8;

  --tag-bg:        #DFF1F9;
  --tag-text:      #2F7A95;

  --success:       #52B788;
  --leaf:          #4CAF76;

  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     20px;

  --shadow-sm:     0 2px 8px rgba(107,191,224,0.15);
  --shadow-md:     0 6px 24px rgba(107,191,224,0.2);
  --shadow-lg:     0 12px 40px rgba(107,191,224,0.25);

  --font-sans:     'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-serif:    'Georgia', 'Times New Roman', serif;

  --transition:    0.2s ease;
}

/* ---- Reset & Base ---- */

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

html { scroll-behavior: smooth; font-size: 16px; }

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

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

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

/* ---- Utility ---- */

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.container--narrow { max-width: 760px; margin: 0 auto; padding: 0 1.5rem; }

.section { padding: 5rem 0; }
.section--sm { padding: 3rem 0; }

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

/* ---- Navigation ---- */

.nav {
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 2rem;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  letter-spacing: -0.3px;
}

.nav__brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav__links a {
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
}

.nav__links a:hover,
.nav__links a.active {
  background: var(--tag-bg);
  color: var(--primary-dark);
}

.nav__cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: #fff !important;
  padding: 0.5rem 1.1rem !important;
  border-radius: var(--radius-md) !important;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  transition: background var(--transition), transform var(--transition) !important;
}

.nav__cta:hover {
  background: var(--primary-dark) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.nav__cta svg { flex-shrink: 0; }

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text);
}

/* ---- Hero ---- */

.hero {
  background: linear-gradient(145deg, #d9f0fa 0%, #c0e6f5 40%, #a8d8ea 100%);
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236BBFE0' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(107,191,224,0.4);
  border-radius: 100px;
  padding: 0.35rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
}

.hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
}

.hero__title span { color: var(--primary-dark); }

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__graphic {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
  box-shadow: 0 0 60px rgba(107,191,224,0.35), inset 0 0 40px rgba(255,255,255,0.4);
  border: 2px solid rgba(255,255,255,0.6);
  backdrop-filter: blur(10px);
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
}

.btn--primary {
  background: var(--primary-dark);
  color: #fff;
  box-shadow: 0 4px 15px rgba(58,143,168,0.35);
}
.btn--primary:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(58,143,168,0.4);
}

.btn--outline {
  background: transparent;
  color: var(--primary-dark);
  border: 2px solid var(--primary);
}
.btn--outline:hover {
  background: var(--primary-glow);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn--instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
  box-shadow: 0 4px 15px rgba(220,39,67,0.3);
}
.btn--instagram:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(220,39,67,0.4);
  color: #fff;
}

.btn--sm { padding: 0.5rem 1rem; font-size: 0.85rem; }

/* ---- Cards ---- */

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.card__cover {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  overflow: hidden;
}

.card__cover img { width: 100%; height: 100%; object-fit: cover; }

.card__body { padding: 1.5rem; }

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.tag {
  background: var(--tag-bg);
  color: var(--tag-text);
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

.card__excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-light);
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
}

.card__read-more {
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 0.85rem;
}

/* ---- Post grid ---- */

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

/* ---- Section headings ---- */

.section-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.section-heading__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary-dark);
  background: var(--tag-bg);
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 0.75rem;
}

.section-heading__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.75rem;
  letter-spacing: -0.3px;
}

.section-heading__subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---- Features strip ---- */

.features {
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

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

.feature {
  padding: 2.5rem 2rem;
  text-align: center;
  border-right: 1px solid var(--border-light);
}
.feature:last-child { border-right: none; }

.feature__icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 1rem;
}

.feature__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.feature__text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---- Instagram CTA ---- */

.instagram-cta {
  background: linear-gradient(135deg, #c9e8f5 0%, #b5dff0 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
}

.instagram-cta__handle {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.instagram-cta__handle span {
  background: linear-gradient(45deg, #f09433, #dc2743, #bc1888);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.instagram-cta__text {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* ---- Blog page ---- */

.page-header {
  background: linear-gradient(135deg, #ddf0f9 0%, #c8e9f5 100%);
  padding: 3.5rem 0 3rem;
  border-bottom: 1px solid var(--border);
}

.page-header__title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: -0.4px;
}

.page-header__sub {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ---- Post single ---- */

.post-header {
  background: linear-gradient(135deg, #ddf0f9 0%, #c8e9f5 100%);
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border);
}

.post-header__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 1.25rem;
  transition: color var(--transition);
}
.post-header__back:hover { color: var(--primary-dark); }

.post-header__title {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.post-header__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ---- Prose (post content) ---- */

.prose {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
  padding: 3rem 0;
}

.prose h2 {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
  letter-spacing: -0.3px;
}

.prose h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 2rem 0 0.75rem;
}

.prose h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 1.5rem 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.prose p { margin-bottom: 1.25rem; }

.prose strong { color: var(--text); font-weight: 700; }

.prose em { font-style: italic; color: var(--text-muted); }

.prose a {
  color: var(--primary-dark);
  text-decoration: underline;
  text-decoration-color: var(--primary-light);
  text-underline-offset: 3px;
}

.prose ul, .prose ol {
  margin: 1rem 0 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.prose ul li::marker { color: var(--primary); }
.prose ol li::marker { color: var(--primary-dark); font-weight: 700; }

.prose blockquote {
  background: var(--tag-bg);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-style: italic;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.92rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}

.prose thead { background: var(--primary-light); }
.prose thead th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 700;
  color: var(--text);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.prose tbody tr { border-bottom: 1px solid var(--border-light); }
.prose tbody tr:last-child { border-bottom: none; }
.prose tbody tr:nth-child(even) { background: var(--bg); }
.prose tbody td { padding: 0.7rem 1rem; color: var(--text); }

.prose code {
  background: var(--tag-bg);
  color: var(--primary-dark);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.88em;
  font-family: 'Consolas', 'Monaco', monospace;
}

.prose pre {
  background: #1e3a4a;
  color: #c8e4ee;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.88rem;
  line-height: 1.7;
}
.prose pre code { background: none; color: inherit; padding: 0; }

.prose hr {
  border: none;
  border-top: 2px solid var(--border);
  margin: 2.5rem 0;
}

/* ---- Gallery ---- */

.gallery-grid {
  columns: 3;
  column-gap: 1rem;
  gap: 1rem;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: var(--primary-light);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover img { transform: scale(1.04); }

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 60, 74, 0.4);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
}
.gallery-item:hover .gallery-item__overlay { opacity: 1; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 25, 35, 0.92);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
}
.lightbox.open { display: flex; }

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  object-fit: contain;
}

.lightbox__close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: background var(--transition);
}
.lightbox__close:hover { background: rgba(255,255,255,0.3); }

.gallery-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}
.gallery-empty__icon { font-size: 4rem; margin-bottom: 1rem; }

/* ---- 404 ---- */

.not-found {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
}
.not-found__code { font-size: 6rem; font-weight: 900; color: var(--primary-light); line-height: 1; }
.not-found__msg { font-size: 1.5rem; font-weight: 700; color: var(--text); margin-bottom: 0.5rem; }
.not-found__sub { color: var(--text-muted); margin-bottom: 2rem; }

/* ---- Footer ---- */

.footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 2rem;
  margin-top: auto;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer__brand-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.footer__tagline {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1.25rem;
}

.footer__heading {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1rem;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer__links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--primary-light); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

.footer__disclaimer {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  font-style: italic;
  max-width: 500px;
  line-height: 1.6;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}
.social-link:hover { color: #fff; }

/* ---- Responsive ---- */

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__visual { display: none; }
  .hero__actions { justify-content: center; }
  .hero__subtitle { margin: 0 auto 2rem; }
  .features__grid { grid-template-columns: 1fr; }
  .feature { border-right: none; border-bottom: 1px solid var(--border-light); }
  .feature:last-child { border-bottom: none; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .gallery-grid { columns: 2; }
}

@media (max-width: 640px) {
  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    box-shadow: var(--shadow-md);
    gap: 0.25rem;
  }
  .nav__toggle { display: flex; }
  .post-grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
  .gallery-grid { columns: 1; }
  .instagram-cta { padding: 2rem 1.5rem; }
  .hero { padding: 4rem 0 3rem; }
  .section { padding: 3.5rem 0; }
}
