/* ========================================
   AGENTIX AS - Unique Magazine/Blog Style Layout
   Blue-Violet / Lavender Theme - Fully Custom & Modern
   Responsive, Clean, Text-Focused, Google Ads Safe
   ======================================== */

:root {
  --primary: #5B4B8C;
  --accent: #7A6BC9;
  --accent-light: #A394D9;
  --bg: #F8F6FC;
  --bg-alt: #F0ECF8;
  --text: #2A2740;
  --text-muted: #5F5A7A;
  --card: #FFFFFF;
  --border: #E5E0F0;
  --shadow: 0 10px 25px -5px rgb(91 75 140 / 0.08), 0 4px 6px -4px rgb(91 75 140 / 0.08);
  --radius: 20px;
  --radius-sm: 12px;
}

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

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

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);
  -webkit-font-smoothing: antialiased;
}

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

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

/* Typography - Unique elegant magazine feel */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

h1 { font-size: 3rem; letter-spacing: -0.025em; }
h2 { font-size: 2.25rem; letter-spacing: -0.02em; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.lead {
  font-size: 1.25rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Layout containers */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

/* Header - Clean sticky magazine nav */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(248, 246, 252, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
}

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

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-weight: 600;
  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: linear-gradient(to right, var(--primary), var(--accent));
  transition: width 0.3s ease;
}

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

/* Hamburger for mobile - unique animated */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--text);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* Hero - Full-width magazine style with gradient */
.hero {
  background: linear-gradient(135deg, #5B4B8C 0%, #7A6BC9 100%);
  color: white;
  padding: 7rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.12) 0%, transparent 60%);
  pointer-events: none;
}

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

.hero h1 {
  color: white;
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.hero p {
  font-size: 1.35rem;
  opacity: 0.95;
  margin-bottom: 2.5rem;
  max-width: 580px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: white;
  color: var(--primary);
  font-weight: 700;
  padding: 1rem 2.25rem;
  border-radius: 9999px;
  font-size: 1.05rem;
  box-shadow: 0 10px 20px -5px rgb(0 0 0 / 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.15);
  background: #F8F6FC;
}

/* Intro section - lots of text */
.intro-text {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.intro-text h2 {
  margin-bottom: 1.5rem;
}

.intro-text p {
  font-size: 1.15rem;
  color: var(--text-muted);
}

/* Content wrapper with sidebar - Magazine + Grid + Sidebar layout */
.content-wrapper {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

@media (max-width: 1024px) {
  .content-wrapper {
    flex-direction: column;
  }
  .sidebar {
    width: 100% !important;
    position: static !important;
  }
}

/* Article cards - Unique magazine card style */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.75rem;
}

.article-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow);
}

.article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgb(91 75 140 / 0.15);
  border-color: var(--accent-light);
}

.card-accent {
  height: 5px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  border-radius: 9999px;
  margin-bottom: 1.5rem;
  width: 60px;
}

.article-card h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.article-card .excerpt {
  flex: 1;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
  transition: gap 0.2s ease;
}

.read-more:hover {
  gap: 0.75rem;
  color: var(--accent);
}

.read-more::after {
  content: '→';
  transition: transform 0.2s ease;
}

.read-more:hover::after {
  transform: translateX(4px);
}

/* Sidebar - Sticky, clean categories */
.sidebar {
  width: 320px;
  position: sticky;
  top: 100px;
  flex-shrink: 0;
}

.sidebar-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow);
}

.sidebar-card h4 {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.category-list {
  list-style: none;
}

.category-list li {
  margin-bottom: 0.65rem;
}

.category-list a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 500;
  transition: all 0.2s ease;
}

.category-list a:hover {
  background: var(--bg-alt);
  color: var(--primary);
  transform: translateX(4px);
}

.category-list a::before {
  content: '•';
  color: var(--accent);
  font-size: 1.4rem;
  line-height: 1;
}

/* Full articles section - Long readable text */
.full-articles {
  margin-top: 5rem;
  padding-top: 4rem;
  border-top: 1px solid var(--border);
}

.full-articles h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.article-full {
  max-width: 820px;
  margin: 0 auto 4.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem;
  box-shadow: var(--shadow);
}

.article-full h3 {
  font-size: 1.85rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.article-full h4 {
  margin: 2rem 0 1rem;
  color: var(--text);
}

.article-full p {
  font-size: 1.08rem;
  color: var(--text);
}

.article-full p:last-child {
  margin-bottom: 0;
}

/* Contact teaser */
.contact-teaser {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 3.5rem 2.5rem;
  text-align: center;
  margin: 4rem 0;
}

.contact-teaser h3 {
  margin-bottom: 1rem;
}

/* Footer - Detailed with legal links */
footer {
  background: #2A2740;
  color: #C9C4E0;
  padding: 4rem 0 2.5rem;
  font-size: 0.95rem;
}

footer a {
  color: #C9C4E0;
}

footer a:hover {
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h5 {
  color: white;
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.footer-col p, .footer-col li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
}

.legal-links a {
  font-size: 0.9rem;
  opacity: 0.85;
}

.disclaimer {
  font-size: 0.85rem;
  opacity: 0.7;
  border-top: 1px solid #4A4660;
  padding-top: 2rem;
  margin-top: 2rem;
  text-align: center;
}

/* Forms - Clean modern */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

input, textarea, select {
  width: 100%;
  padding: 0.95rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  background: white;
  transition: all 0.2s ease;
  font-family: inherit;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(122, 107, 201, 0.1);
}

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

.submit-btn {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  font-weight: 700;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 9999px;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 15px -3px rgb(91 75 140 / 0.3);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgb(91 75 140 / 0.35);
}

/* Thank you page special */
.thankyou-hero {
  background: linear-gradient(135deg, #5B4B8C 0%, #7A6BC9 100%);
  color: white;
  padding: 5rem 0;
  text-align: center;
}

.thankyou-hero h1 {
  color: white;
  font-size: 3rem;
}

/* Legal pages styling */
.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 1.5rem 6rem;
}

.legal-page h1 {
  font-size: 2.75rem;
  margin-bottom: 0.5rem;
}

.legal-page h2 {
  font-size: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.legal-page h3 {
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-page ul, .legal-page ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.legal-page li {
  margin-bottom: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 2rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .hamburger {
    display: flex;
  }
  
  h1 { font-size: 2.5rem; }
  .hero h1 { font-size: 2.75rem; }
  
  .article-full {
    padding: 2rem 1.5rem;
  }
}

/* Accessibility & polish */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

button, .cta-button, .submit-btn {
  font-family: inherit;
}

/* No images - pure color and typography focused design */