/* ============================================================
   Cloud Capital — Main Stylesheet (2026 Redesign)
   Colors: Dark green #2e4224, Yellow accent #edd23c
   Fonts:  DM Serif Display (headings), Inter (body)
   ============================================================ */

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.75;
  color: #374151;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #2e4224;
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: #4a6b38;
}

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

h1, h2, h3, h4 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  line-height: 1.25;
  color: #2e4224;
}

h1 { font-size: 2.8rem; letter-spacing: -0.02em; }
h2 { font-size: 2rem; margin-top: 2rem; margin-bottom: 1rem; letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; margin-top: 1.5rem; margin-bottom: 0.75rem; }

p {
  margin-bottom: 1rem;
}

hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 2rem 0;
}

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

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: rgba(46, 66, 36, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.85rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: block;
  line-height: 0;
}

.site-logo img {
  height: 45px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  gap: 0.15rem;
  align-items: center;
}

.nav-item a {
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  transition: all 0.25s ease;
}

.nav-item a:hover,
.nav-item a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* Dropdown */
.has-dropdown {
  position: relative;
}

.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: #2e4224;
  border-radius: 10px;
  padding: 0.5rem;
  min-width: 200px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.has-dropdown:hover .dropdown {
  display: block;
}

.dropdown a {
  display: block;
  padding: 0.6rem 0.85rem;
  white-space: nowrap;
  border-radius: 6px;
  font-size: 0.88rem;
}

.dropdown a:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Mobile hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.3s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: #2e4224;
  color: #1a1a1a;
  padding: 8rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('/assets/images/2019/03/cloudettan_3.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 1;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(237, 210, 60, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero h1 {
  font-size: 3.8rem;
  color: #1a1a1a;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.hero .highlight {
  color: #edd23c;
  position: relative;
}

.hero .highlight::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 3px;
  background: #edd23c;
  opacity: 0.5;
  border-radius: 2px;
}

.hero-subtitle {
  font-size: 1.2rem;
  max-width: 580px;
  margin: 0 auto 2.5rem;
  opacity: 0.88;
  line-height: 1.8;
  font-weight: 400;
  position: relative;
  z-index: 1;
}

.hero .btn-outline {
  position: relative;
  z-index: 1;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: 5rem 0;
}

.section-dark {
  background: #f8f9f7;
}

.lead-text {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.45rem;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  color: #2e4224;
  line-height: 1.7;
  letter-spacing: -0.01em;
}

/* ============================================================
   CARDS
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
  margin-top: 2rem;
}

.card {
  display: block;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 2.25rem;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2e4224, #4a6b38);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.card:hover {
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(46, 66, 36, 0.1), 0 4px 12px rgba(0, 0, 0, 0.06);
  color: #374151;
}

.card:hover::before {
  transform: scaleX(1);
}

.card h2 {
  font-size: 1.65rem;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.card p {
  color: #6b7280;
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* ============================================================
   PAGE CONTENT
   ============================================================ */
.page-content {
  padding: 4rem 0;
}

.page-title {
  font-size: 2.8rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #edd23c;
  letter-spacing: -0.02em;
}

/* ============================================================
   POSTS / NEWS
   ============================================================ */
.post-content {
  padding: 4rem 0;
}

.post-header {
  margin-bottom: 2.5rem;
}

.post-date {
  display: inline-block;
  color: #9ca3af;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.post-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.post-body {
  font-size: 1.05rem;
  line-height: 1.85;
}

.post-body p {
  margin-bottom: 1.5rem;
}

.post-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.back-link {
  color: #2e4224;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.back-link:hover {
  color: #4a6b38;
}

/* Spotify player / Podcast */
.podcast-listen {
  margin-top: 3rem;
  padding: 2rem;
  background: #f8f9f7;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
}

.podcast-listen h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.podcast-platforms {
  color: #6b7280;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.spotify-player {
  margin-top: 1rem;
}

.spotify-player iframe {
  border-radius: 12px;
}

/* News list & Podcast list */
.news-list, .podcast-list {
  margin-top: 1rem;
}

.news-item, .podcast-item {
  padding: 1.75rem 1.5rem;
  border-radius: 12px;
  transition: all 0.25s ease;
  margin-bottom: 0.5rem;
  border-left: 3px solid transparent;
}

.news-item:hover, .podcast-item:hover {
  background: #f8f9f7;
  border-left-color: #2e4224;
}

.news-item h2, .podcast-item h2 {
  font-size: 1.5rem;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}

.news-item h2 a, .podcast-item h2 a {
  color: #2e4224;
  transition: color 0.25s ease;
}

.news-item h2 a:hover, .podcast-item h2 a:hover {
  color: #4a6b38;
}

.podcast-item hr {
  display: none;
}

.read-more {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: #2e4224;
  transition: all 0.25s ease;
}

.read-more:hover {
  color: #4a6b38;
  transform: translateX(3px);
}

/* ============================================================
   PORTFOLIO
   ============================================================ */
.portfolio-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.portfolio-card:hover {
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(46, 66, 36, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}

.portfolio-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.portfolio-card h3 a {
  color: #2e4224;
}

.portfolio-card h3 a:hover {
  color: #4a6b38;
}

.portfolio-card.exited {
  opacity: 0.65;
}

.exit-badge {
  display: inline-block;
  background: #9ca3af;
  color: #fff;
  padding: 0.2rem 0.7rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 0.5rem;
  letter-spacing: 0.02em;
}

.portfolio-detail {
  padding: 4rem 0;
}

.company-link {
  display: inline-block;
  margin-bottom: 2rem;
  color: #2e4224;
  font-weight: 500;
}

.portfolio-body {
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 2rem;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 1rem;
}

.contact-info {
  font-size: 1.05rem;
}

.contact-info a {
  color: #2e4224;
  font-weight: 500;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: #374151;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  padding: 0.85rem 1rem;
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  background: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2e4224;
  box-shadow: 0 0 0 3px rgba(46, 66, 36, 0.1);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 2.25rem;
  border: none;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0;
}

.btn-primary {
  background: #2e4224;
  color: #fff;
  box-shadow: 0 2px 8px rgba(46, 66, 36, 0.2);
}

.btn-primary:hover {
  background: #3d5a30;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(46, 66, 36, 0.25);
}

.btn-outline {
  background: transparent;
  color: #1a1a1a;
  border: 2px solid #1a1a1a;
  border-radius: 50px;
  padding: 0.9rem 2.5rem;
}

.btn-outline:hover {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Portfolio logos */
.portfolio-logo {
  max-height: 50px;
  width: auto;
  margin-bottom: 1rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #2e4224;
  color: rgba(255, 255, 255, 0.85);
  padding: 4rem 0 1.5rem;
  margin-top: 5rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 3rem;
}

.footer-logo {
  height: 50px;
  width: auto;
  display: block;
  margin-bottom: 1rem;
}

.site-footer h3 {
  color: #edd23c;
  font-size: 1.15rem;
  margin-bottom: 1rem;
  margin-top: 0;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.25s ease;
}

.site-footer a:hover {
  color: #edd23c;
}

.linkedin-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 500;
}

.footer-form .contact-form {
  gap: 0.75rem;
}

.footer-form input,
.footer-form textarea {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
}

.footer-form input:focus,
.footer-form textarea:focus {
  border-color: #edd23c;
  box-shadow: 0 0 0 3px rgba(237, 210, 60, 0.15);
}

.footer-form input::placeholder,
.footer-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.footer-form .btn-primary {
  background: #edd23c;
  color: #2e4224;
  box-shadow: 0 2px 8px rgba(237, 210, 60, 0.3);
}

.footer-form .btn-primary:hover {
  background: #f5e04a;
  box-shadow: 0 4px 16px rgba(237, 210, 60, 0.35);
}

.footer-bottom {
  max-width: 1200px;
  margin: 2.5rem auto 0;
  padding: 1.25rem 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ============================================================
   MOBILE RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  html {
    font-size: 16px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(46, 66, 36, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .main-nav.is-open {
    display: flex;
  }

  .nav-item a {
    padding: 0.75rem 1rem;
    display: block;
  }

  .dropdown {
    position: static;
    box-shadow: none;
    padding-left: 1rem;
    border: none;
  }

  .has-dropdown:hover .dropdown {
    display: block;
  }

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

  .hero {
    padding: 5rem 0;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .page-title {
    font-size: 2.2rem;
  }

  .lead-text {
    font-size: 1.25rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .contact-page {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .news-item, .podcast-item {
    padding: 1.25rem 1rem;
  }
}

/* ============================================================
   PODCAST HEADER
   ============================================================ */
.podcast-header {
  margin: -2rem -2rem 2.5rem -2rem;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}

.podcast-header-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

@media (max-width: 768px) {
  .podcast-header {
    margin: -1rem -1rem 1.5rem -1rem;
    border-radius: 12px 12px 0 0;
  }
}

/* ============================================================
   CONTENT FADE-IN ANIMATION
   ============================================================ */
.site-main {
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
