/* site.css — Salesedge shared design tokens
 * Endast för sidor som inte har inline-style: blogg.html, blog-post.html.
 * De portade GHL-sidorna har sin egen inline-CSS från designern.
 */

:root {
  --cream: #F3E4D0;
  --cream-dk: #E8D2B8;
  --white: #FFFFFF;
  --teal: #0D393A;
  --teal-lt: #174F50;
  --taupe: #A1907A;
  --gold: #ECAA56;
  --black: #000000;
  --red: #EF4444;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--cream); color: var(--teal); font-family: 'Abhaya Libre', serif; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(243,228,208,.96); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(13,57,58,.08);
  padding: 0 max(48px, calc((100% - 1200px) / 2)); height: 72px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500; color: var(--teal);
  position: relative; padding-bottom: 2px; transition: color .2s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transition: transform .25s;
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta {
  background: var(--teal); color: var(--cream) !important;
  font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 0 22px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--teal-lt) !important; }

.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--teal); transition: .3s; }

.mob-menu {
  display: none; position: fixed; inset: 0; background: var(--cream);
  z-index: 190; flex-direction: column; justify-content: center; align-items: center; gap: 32px;
  padding-top: 72px;
}
.mob-menu.open { display: flex; }
.mob-menu a { font-family: 'Inter', sans-serif; font-size: 18px; font-weight: 500; color: var(--teal); }

/* ─── BUTTONS ─── */
.btn-p {
  background: var(--teal); color: var(--cream);
  font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 0 28px; height: 46px; line-height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
}
.btn-p:hover { background: var(--teal-lt); transform: translateY(-2px); }
.btn-s {
  background: transparent; color: var(--teal);
  border: 1.5px solid var(--teal);
  font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 0 28px; height: 46px; line-height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color .2s, color .2s;
}
.btn-s:hover { border-color: var(--gold); color: var(--gold); }

/* ─── PAGE HERO (för bloggsidan) ─── */
.page-hero {
  padding-top: 72px; background: var(--teal);
  padding: 72px max(48px, calc((100% - 1200px) / 2)) 80px;
  min-height: 320px; display: flex; align-items: flex-end;
}
.page-hero-inner { max-width: 1200px; margin: 0 auto; width: 100%; padding-top: 60px; }
.kicker {
  font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase;
  display: flex; align-items: center; gap: 10px; margin-bottom: 24px;
  color: rgba(243,228,208,.5);
}
.kicker::before { content: ''; display: block; width: 28px; height: 1px; background: var(--gold); }
.page-hero-inner h1 {
  font-family: 'Cormorant', serif;
  font-size: clamp(48px, 5.5vw, 76px);
  font-weight: 600; line-height: 1.0; letter-spacing: -2px;
  color: var(--cream); margin-bottom: 20px;
}
.page-hero-inner h1 em { font-style: italic; color: var(--gold); }
.page-hero-inner p {
  font-family: 'Abhaya Libre', serif; font-size: 19px; line-height: 1.7;
  color: rgba(243,228,208,.65); max-width: 560px;
}

/* ─── BLOG SECTION ─── */
.blog-section {
  background: var(--cream);
  padding: 80px max(48px, calc((100% - 1200px) / 2));
}
.blog-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 56px; }
.filter-btn {
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 8px 18px; border: 1.5px solid rgba(13,57,58,.2);
  background: transparent; color: rgba(13,57,58,.5);
  cursor: pointer; transition: all .2s;
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--teal); color: var(--teal); background: rgba(13,57,58,.05);
}
.filter-btn.active { border-color: var(--gold); background: rgba(236,170,86,.08); }

/* Featured */
.blog-featured {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0; margin-bottom: 4px;
  border: 1px solid rgba(13,57,58,.1);
  overflow: hidden; transition: box-shadow .3s;
}
.blog-featured:hover { box-shadow: 0 8px 40px rgba(13,57,58,.12); }
.blog-featured-img { background: var(--teal); position: relative; overflow: hidden; min-height: 360px; }
.blog-featured-img img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  display: block; transition: transform .6s ease;
}
.blog-featured:hover .blog-featured-img img { transform: scale(1.03); }
.blog-featured-body {
  padding: 48px 44px; background: var(--cream-dk);
  display: flex; flex-direction: column; justify-content: center;
}
.article-cat {
  font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase; color: var(--gold);
  margin-bottom: 14px;
}
.article-title {
  font-family: 'Cormorant', serif;
  font-size: clamp(26px, 2.8vw, 38px);
  font-weight: 600; line-height: 1.1; letter-spacing: -.5px;
  color: var(--teal); margin-bottom: 16px;
}
.article-title em { font-style: italic; color: var(--gold); }
.article-excerpt {
  font-family: 'Abhaya Libre', serif; font-size: 17px; line-height: 1.75;
  color: rgba(13,57,58,.7); margin-bottom: 28px;
}
.article-meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-family: 'Inter', sans-serif; font-size: 11px;
  color: rgba(13,57,58,.45); font-weight: 500; margin-bottom: 24px;
}
.article-link {
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--teal);
  display: inline-flex; align-items: center; gap: 8px;
  transition: gap .2s, color .2s;
}
.article-link::after { content: '→'; }
.blog-featured:hover .article-link { gap: 14px; color: var(--gold); }
.featured-badge {
  position: absolute; top: 20px; left: 20px;
  font-family: 'Inter', sans-serif; font-size: 9px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--teal); background: var(--gold);
  padding: 5px 12px;
}

/* Grid */
.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 4px; margin-top: 4px;
}
.blog-card {
  background: var(--cream-dk); overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .3s;
  border: 1px solid rgba(13,57,58,.06);
}
.blog-card:hover { box-shadow: 0 6px 28px rgba(13,57,58,.1); }
.blog-card-img {
  width: 100%; aspect-ratio: 16/9;
  background: var(--teal); overflow: hidden; position: relative;
}
.blog-card-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s ease;
}
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-img-placeholder {
  width: 100%; aspect-ratio: 16/9; background: var(--teal);
  display: flex; align-items: center; justify-content: center;
}
.blog-card-img-placeholder span {
  font-family: 'Cormorant', serif; font-size: 48px; font-weight: 700;
  color: rgba(243,228,208,.15); letter-spacing: -2px;
}
.blog-card-body { padding: 24px 22px 28px; flex: 1; display: flex; flex-direction: column; }
.blog-card-cat {
  font-family: 'Inter', sans-serif; font-size: 9px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--gold);
  margin-bottom: 10px;
}
.blog-card-title {
  font-family: 'Cormorant', serif; font-size: 22px; font-weight: 600;
  color: var(--teal); line-height: 1.2; margin-bottom: 10px;
}
.blog-card-excerpt {
  font-family: 'Abhaya Libre', serif; font-size: 15px; line-height: 1.65;
  color: rgba(13,57,58,.65); flex: 1; margin-bottom: 18px;
}
.blog-card-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 14px; border-top: 1px solid rgba(13,57,58,.08);
}
.blog-card-date {
  font-family: 'Inter', sans-serif; font-size: 10px;
  color: rgba(13,57,58,.35); font-weight: 500;
}
.blog-card-link {
  font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--teal);
  display: flex; align-items: center; gap: 6px; transition: gap .2s, color .2s;
}
.blog-card-link::after { content: '→'; }
.blog-card:hover .blog-card-link { gap: 10px; color: var(--gold); }

/* Loading / error / empty states */
.blog-loading {
  text-align: center; padding: 60px 0;
  font-family: 'Inter', sans-serif; font-size: 13px;
  color: rgba(13,57,58,.5);
}
.blog-loading-spinner {
  width: 32px; height: 32px;
  border: 2px solid rgba(13,57,58,.15);
  border-top-color: var(--gold);
  border-radius: 50%; margin: 0 auto 16px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.blog-error { text-align: center; padding: 60px 0; font-family: 'Inter', sans-serif; color: rgba(13,57,58,.6); }
.blog-error a { color: var(--gold); border-bottom: 1px solid var(--gold); }
.blog-empty {
  text-align: center; padding: 80px 22px;
  background: var(--cream-dk);
  border: 1px solid rgba(13,57,58,.08);
}
.blog-empty-inner { max-width: 520px; margin: 0 auto; }
.blog-empty-inner h3 {
  font-family: 'Cormorant', serif; font-size: 32px;
  font-weight: 600; color: var(--teal);
  margin-bottom: 14px; letter-spacing: -.5px;
}
.blog-empty-inner p {
  font-family: 'Abhaya Libre', serif; font-size: 17px;
  color: rgba(13,57,58,.6); line-height: 1.6;
}

/* ─── NEWSLETTER STRIP ─── */
.newsletter-strip {
  background: var(--teal); padding: 64px max(48px, calc((100% - 1200px) / 2));
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  flex-wrap: wrap;
}
.newsletter-text h3 {
  font-family: 'Cormorant', serif; font-size: clamp(28px, 3vw, 42px);
  font-weight: 600; line-height: 1.05; letter-spacing: -1px; color: var(--cream);
  margin-bottom: 8px;
}
.newsletter-text h3 em { font-style: italic; color: var(--gold); }
.newsletter-text p {
  font-family: 'Abhaya Libre', serif; font-size: 17px;
  color: rgba(243,228,208,.65); line-height: 1.6;
}
.newsletter-form { display: flex; gap: 0; flex-shrink: 0; }
.newsletter-input {
  background: rgba(243,228,208,.1); border: 1px solid rgba(243,228,208,.2);
  border-right: none; padding: 0 20px; height: 48px; width: 260px;
  font-family: 'Abhaya Libre', serif; font-size: 16px;
  color: var(--cream); outline: none; transition: border-color .2s;
}
.newsletter-input::placeholder { color: rgba(243,228,208,.35); }
.newsletter-input:focus { border-color: var(--gold); }
.newsletter-btn {
  background: var(--gold); color: var(--teal);
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  border: none; cursor: pointer; padding: 0 24px; height: 48px;
  transition: background .2s;
}
.newsletter-btn:hover { background: #d4923c; }

/* ─── FOOTER ─── */
footer { background: var(--teal); padding: 60px max(48px, calc((100% - 1200px) / 2)) 40px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; max-width: 1200px; margin: 0 auto 48px; }
.footer-logo { height: 44px; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: .7; }
.footer-tagline { font-family: 'Abhaya Libre', serif; font-size: 16px; color: rgba(243,228,208,.45); line-height: 1.6; }
.footer-col h4 { font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.footer-col a { display: block; font-family: 'Abhaya Libre', serif; font-size: 16px; color: rgba(243,228,208,.45); margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: rgba(243,228,208,.85); }
.footer-social {
  max-width: 1200px; margin: 0 auto 32px; padding-top: 32px;
  border-top: 1px solid rgba(243,228,208,.08);
  display: flex; justify-content: center; gap: 18px; flex-wrap: wrap;
}
.footer-social a {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(243,228,208,.2);
  color: rgba(243,228,208,.55);
  transition: color .2s, border-color .2s, background .2s;
}
.footer-social a:hover {
  color: var(--gold); border-color: var(--gold);
  background: rgba(236,170,86,.05);
}
.footer-social svg { width: 18px; height: 18px; }

.footer-bottom { max-width: 1200px; margin: 0 auto; border-top: 1px solid rgba(243,228,208,.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; }
.footer-copy { font-family: 'Inter', sans-serif; font-size: 12px; color: rgba(243,228,208,.3); }
.footer-inlecti { font-family: 'Inter', sans-serif; font-size: 12px; color: rgba(243,228,208,.3); }
.footer-inlecti a { color: rgba(243,228,208,.45); transition: color .2s; }
.footer-inlecti a:hover { color: rgba(243,228,208,.8); }

/* ─── REVEAL ─── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s, transform .7s; }
.reveal.v { opacity: 1; transform: translateY(0); }

/* ─── ANIM ─── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
.page-hero-inner .kicker { animation: fadeUp .6s ease both; animation-delay: .1s; }
.page-hero-inner h1      { animation: fadeUp .7s ease both; animation-delay: .25s; }
.page-hero-inner p       { animation: fadeUp .7s ease both; animation-delay: .4s; }

/* ─── RESPONSIVE ─── */
@media(max-width: 900px) {
  nav { padding: 0 22px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .page-hero { padding: 100px 22px 60px; }
  .blog-section { padding: 60px 22px; }
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured-img { min-height: 240px; }
  .blog-featured-body { padding: 28px 24px; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .newsletter-strip { padding: 48px 22px; flex-direction: column; align-items: flex-start; }
  .newsletter-form { width: 100%; }
  .newsletter-input { flex: 1; width: auto; }
  footer { padding: 60px 22px 36px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
@media(max-width: 540px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-filters { gap: 6px; }
}
