/* ==========================================================================
   DESIGN SYSTEM - NORDIC SAGE & SPRUCE
   AGENTIX AS - gradinadorului.shop
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Colors */
  --bg-main: #f2f6f5;
  --bg-card: #ffffff;
  --bg-spruce: #172824;
  --bg-spruce-light: #203530;
  --text-main: #1c2a27;
  --text-light: #f2f6f5;
  --text-muted: #5e726d;
  --text-muted-light: #90a5a0;
  --accent: #2c7766;
  --accent-hover: #37927d;
  --accent-light: #e4e2dd;
  --coral: #da7e63;
  --coral-hover: #e3917a;
  
  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  /* Layout & Sizing */
  --sidebar-width: 280px;
  --radius-card: 20px;
  --radius-button: 35px;
  --radius-input: 10px;
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-soft: 0 10px 40px rgba(23, 40, 36, 0.04);
  --shadow-hover: 0 15px 45px rgba(23, 40, 36, 0.08);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 1rem;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 600;
  line-height: 1.25;
}

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

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-card);
}

/* Sidebar Layout (Desktop) */
.layout-container {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  background-color: var(--bg-spruce);
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem 2rem;
  z-index: 1000;
  box-shadow: 4px 0 30px rgba(0, 0, 0, 0.05);
}

.logo-area {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.logo-main {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-dot {
  width: 8px;
  height: 8px;
  background-color: var(--coral);
  border-radius: 50%;
  display: inline-block;
}

.logo-subtitle {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted-light);
  font-weight: 500;
}

.nav-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 3rem 0;
}

.nav-item a {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-input);
  font-weight: 500;
  color: var(--text-muted-light);
}

.nav-item a:hover, .nav-item.active a {
  background-color: var(--bg-spruce-light);
  color: var(--text-light);
}

.nav-item.active a {
  border-left: 3px solid var(--coral);
}

.sidebar-footer {
  font-size: 0.8rem;
  color: var(--text-muted-light);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-footer a:hover {
  color: var(--text-light);
}

/* Main Content Area */
.main-content {
  margin-left: var(--sidebar-width);
  flex-grow: 1;
  padding: 3.5rem;
  max-width: 1400px;
  width: calc(100% - var(--sidebar-width));
}

/* Mobile Header (Hidden on Desktop) */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background-color: var(--bg-spruce);
  color: var(--text-light);
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  z-index: 1001;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.burger-btn {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu {
  position: fixed;
  top: 70px;
  left: -100%;
  width: 100%;
  height: calc(100vh - 70px);
  background-color: var(--bg-spruce);
  z-index: 1000;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  padding: 2rem;
  justify-content: space-between;
}

.mobile-menu.open {
  left: 0;
}

.mobile-menu .nav-menu {
  margin: 0;
}

/* Layout Grid components */
.section {
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 40px;
  height: 3px;
  background-color: var(--coral);
  border-radius: 2px;
}

/* Hero Section */
.hero-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 4rem 3rem;
  box-shadow: var(--shadow-soft);
  margin-bottom: 4rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(228, 226, 221, 0.4);
}

.hero-card::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(44,119,102,0.06) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero-badge {
  display: inline-block;
  background-color: var(--accent-light);
  color: var(--accent);
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-button);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  max-width: 800px;
  line-height: 1.15;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 750px;
  margin-bottom: 2rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.2rem;
  border-radius: var(--radius-button);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--text-light);
}

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

.btn-secondary {
  background-color: transparent;
  color: var(--text-main);
  border: 2px solid var(--accent-light);
}

.btn-secondary:hover {
  background-color: var(--accent-light);
  transform: translateY(-2px);
}

.btn-coral {
  background-color: var(--coral);
  color: var(--text-light);
}

.btn-coral:hover {
  background-color: var(--coral-hover);
  transform: translateY(-2px);
}

/* Articles Grid (Asymmetric) */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.article-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 2.5rem;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
  border: 1px solid rgba(228, 226, 221, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

/* Making it look asymmetric/creative */
.article-card:nth-child(3n+1) {
  grid-column: span 2;
  background: linear-gradient(135deg, #ffffff 0%, #f7faf9 100%);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.article-tag {
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.article-card:nth-child(3n+1) .article-title {
  font-size: 1.8rem;
}

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

.read-more {
  color: var(--coral);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.read-more:hover {
  color: var(--coral-hover);
}

/* Content block with details */
.content-block {
  background-color: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 3.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(228, 226, 221, 0.4);
  margin-bottom: 4rem;
}

.content-block h3 {
  font-size: 1.6rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.content-block h3:first-of-type {
  margin-top: 0;
}

.content-block p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.content-block ul {
  list-style-type: none;
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.content-block li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-muted);
}

.content-block li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--coral);
}

/* Contact Area */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  background-color: var(--bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(228, 226, 221, 0.4);
  overflow: hidden;
}

.contact-form-side {
  padding: 3.5rem;
}

.contact-info-side {
  background-color: var(--bg-spruce);
  color: var(--text-light);
  padding: 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.info-title {
  color: var(--text-light);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.info-text {
  color: var(--text-muted-light);
  margin-bottom: 2.5rem;
}

.info-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.info-icon {
  color: var(--coral);
  font-size: 1.2rem;
  margin-top: 0.1rem;
}

.info-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted-light);
  letter-spacing: 0.5px;
}

.info-val {
  font-weight: 500;
  font-size: 1rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-input);
  border: 1px solid var(--accent-light);
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(44, 119, 102, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.checkbox-group input {
  margin-top: 0.25rem;
}

.checkbox-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.checkbox-label a {
  color: var(--accent);
  font-weight: 600;
}

/* Footer Section */
.site-footer {
  margin-top: 4rem;
  padding: 3rem 0;
  border-top: 1px solid var(--accent-light);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.footer-brand-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 3rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
  border-top: 1px solid rgba(228, 226, 221, 0.5);
  padding-top: 1.5rem;
}

/* Compliance and text pages layout */
.compliance-layout {
  max-width: 900px;
  margin: 0 auto;
}

.compliance-header {
  margin-bottom: 3rem;
  text-align: center;
}

.compliance-header h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.compliance-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.compliance-body h2 {
  font-size: 1.6rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-main);
  border-bottom: 1px solid var(--accent-light);
  padding-bottom: 0.5rem;
}

.compliance-body h3 {
  font-size: 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.compliance-body p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.7;
}

.compliance-body ul, .compliance-body ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.compliance-body li {
  margin-bottom: 0.5rem;
}

/* Thank You layout */
.thankyou-card {
  text-align: center;
  padding: 5rem 3rem;
  background-color: var(--bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  max-width: 750px;
  margin: 4rem auto;
  border: 1px solid rgba(228, 226, 221, 0.4);
}

.thankyou-icon {
  font-size: 4rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: inline-block;
  line-height: 1;
}

.thankyou-card h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.thankyou-card p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.thankyou-disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--accent-light);
  padding-top: 2rem;
  margin-top: 2rem;
  text-align: left;
  line-height: 1.6;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

@media (max-width: 1200px) {
  .articles-grid {
    gap: 1.5rem;
  }
  
  .article-card {
    padding: 2rem;
  }
}

@media (max-width: 992px) {
  .sidebar {
    display: none; /* Collapsed on tablet/mobile */
  }
  
  .mobile-header {
    display: flex;
  }
  
  .main-content {
    margin-left: 0;
    width: 100%;
    padding: 6.5rem 1.5rem 3rem 1.5rem; /* account for mobile header */
  }
  
  .hero-card {
    padding: 3rem 2rem;
    margin-bottom: 2.5rem;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-info-side {
    order: 2;
  }
}

@media (max-width: 768px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }
  
  .article-card:nth-child(3n+1) {
    grid-column: span 1;
  }
  
  .content-block {
    padding: 2rem;
  }
  
  .content-block ul {
    grid-template-columns: 1fr;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
  
  .contact-form-side, .contact-info-side {
    padding: 2rem 1.5rem;
  }
}
