/* BROTET INVEST AS - Unique Modern Blog Design | Sage & Warm Neutral Palette | Magazine Style with Asymmetric Touches */
:root {
  --primary: #5D7A5D;
  --primary-dark: #4A634A;
  --accent: #C17F59;
  --accent-light: #D4A574;
  --bg: #FAF7F2;
  --bg-alt: #F0EBE3;
  --card: #FFFFFF;
  --text: #1F2521;
  --text-light: #5A6B5A;
  --text-muted: #7A8A7A;
  --border: #E5DFD3;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
  --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.12);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.3;
  font-weight: 700;
  color: var(--text);
}

h1 { font-size: 3.2rem; }
h2 { font-size: 2.4rem; }
h3 { font-size: 1.65rem; }
h4 { font-size: 1.35rem; }

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

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

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header - Classic with subtle elevation */
header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.logo {
  font-family: Georgia, serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--accent);
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  position: relative;
}

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

.nav-links a:after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-links a:hover:after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text);
  cursor: pointer;
}

/* Hero - Magazine style large impactful */
.hero {
  background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg) 100%);
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(93,122,93,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.8rem;
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--text);
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 560px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--primary);
  color: white;
  padding: 16px 36px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1.05rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(93,122,93,0.35);
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(93,122,93,0.45);
}

.cta-button.secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: none;
}

.cta-button.secondary:hover {
  background: var(--primary);
  color: white;
}

/* Main content layout - Grid + Sidebar Magazine */
.main-content {
  padding: 60px 0 80px;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

/* Long intro text section */
.intro-section {
  margin-bottom: 70px;
}

.intro-section h2 {
  margin-bottom: 24px;
  position: relative;
  display: inline-block;
}

.intro-section h2:after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
}

.intro-text {
  font-size: 1.08rem;
  color: var(--text);
  max-width: 780px;
}

.intro-text p {
  margin-bottom: 20px;
}

.intro-text p:last-child {
  margin-bottom: 0;
}

/* Sidebar */
.sidebar {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: sticky;
  top: 100px;
}

.sidebar h3 {
  font-size: 1.25rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.categories-list, .popular-list {
  list-style: none;
}

.categories-list li, .popular-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.categories-list li:last-child, .popular-list li:last-child {
  border-bottom: none;
}

.categories-list a, .popular-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
  font-weight: 500;
}

.categories-list a:hover, .popular-list a:hover {
  color: var(--primary);
}

.categories-list .count {
  background: var(--bg-alt);
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 600;
}

/* Articles Section - Masonry-like Grid */
.articles-section h2 {
  margin-bottom: 32px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.article-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.article-card-header {
  padding: 28px 28px 16px;
  flex: 1;
}

.article-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(193, 127, 89, 0.1);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.article-card h3 {
  font-size: 1.35rem;
  line-height: 1.35;
  margin-bottom: 14px;
  color: var(--text);
}

.article-excerpt {
  color: var(--text-light);
  font-size: 0.97rem;
  line-height: 1.65;
  margin-bottom: 20px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.read-more:hover {
  gap: 12px;
  color: var(--primary-dark);
}

.read-more svg {
  width: 18px;
  height: 18px;
}

/* Modal for full article - clean and focused */
.modal {
  display: none;
  position: fixed;
  z-index: 200;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(31, 37, 33, 0.65);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--card);
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  border-radius: var(--radius);
  box-shadow: 0 25px 60px rgba(0,0,0,0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 32px 40px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.modal-header h2 {
  font-size: 2rem;
  margin: 0;
  flex: 1;
}

.modal-close {
  background: var(--bg-alt);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.6rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-close:hover {
  background: var(--accent);
  color: white;
  transform: rotate(90deg);
}

.modal-body {
  padding: 40px;
  overflow-y: auto;
  flex: 1;
  font-size: 1.05rem;
  line-height: 1.8;
}

.modal-body p {
  margin-bottom: 22px;
}

.modal-body h3 {
  margin: 32px 0 14px;
  color: var(--primary);
}

.modal-footer {
  padding: 24px 40px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Contact Page */
.contact-hero {
  background: var(--bg-alt);
  padding: 80px 0 60px;
  text-align: center;
}

.contact-hero h1 {
  font-size: 2.8rem;
  margin-bottom: 16px;
}

.contact-hero p {
  max-width: 520px;
  margin: 0 auto;
  color: var(--text-light);
}

.contact-section {
  padding: 60px 0 80px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h3 {
  margin-bottom: 24px;
}

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

.address {
  background: var(--card);
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-top: 32px;
}

.address strong {
  display: block;
  margin-bottom: 8px;
  color: var(--primary);
}

/* Form */
.form-card {
  background: var(--card);
  padding: 48px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--bg);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(93,122,93,0.1);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.submit-btn {
  width: 100%;
  padding: 18px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 9999px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.submit-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* Thank You Page */
.thankyou-hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.thankyou-content {
  max-width: 680px;
}

.thankyou-content h1 {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.thankyou-content .lead {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 40px;
}

.disclaimer-box {
  background: var(--bg-alt);
  border-left: 5px solid var(--accent);
  padding: 24px 28px;
  border-radius: var(--radius-sm);
  margin: 40px 0;
  font-size: 0.95rem;
  color: var(--text-light);
}

/* Privacy & Terms Pages */
.legal-page {
  padding: 60px 0 100px;
}

.legal-page h1 {
  font-size: 2.6rem;
  margin-bottom: 12px;
}

.legal-page .last-updated {
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 0.95rem;
}

.legal-content {
  max-width: 860px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.55rem;
  margin: 48px 0 18px;
  color: var(--primary);
  scroll-margin-top: 100px;
}

.legal-content h3 {
  font-size: 1.2rem;
  margin: 28px 0 12px;
}

.legal-content p, .legal-content ul {
  margin-bottom: 18px;
  font-size: 1.02rem;
}

.legal-content ul {
  padding-left: 22px;
}

.legal-content li {
  margin-bottom: 8px;
}

/* Footer */
footer {
  background: var(--text);
  color: #E5DFD3;
  padding: 60px 0 40px;
}

footer a {
  color: #C5B8A8;
}

footer a:hover {
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 50px;
}

.footer-col h4 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-col p, .footer-col li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #C5B8A8;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-bottom {
  border-top: 1px solid #3D463D;
  padding-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: #8A958A;
}

.footer-bottom a {
  margin-left: 16px;
}

/* Responsive */
@media (max-width: 1024px) {
  .content-wrapper {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    position: static;
    margin-top: 40px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow);
    border-top: 1px solid var(--border);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero h1 {
    font-size: 2.6rem;
  }
  
  .articles-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.9rem; }
}

/* Utility */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }
.section-title {
  position: relative;
  display: inline-block;
}
.section-title:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
}