/* style.css - Lavender & Graphite Theme with Split Screen Hero & Zigzag Sections */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-body: #faf9fb;
  --bg-dark: #16121e;
  --bg-card: #ffffff;
  --text-main: #1d1926;
  --text-muted: #656072;
  --text-light: #f5f3f7;
  --accent-color: #8b5cf6; /* Lavender violet */
  --accent-hover: #7c3aed;
  --accent-soft: rgba(139, 92, 246, 0.06);
  --border-color: rgba(22, 18, 30, 0.07);
  --border-focus: rgba(139, 92, 246, 0.4);
  --radius-card: 24px;
  --radius-btn: 9999px;
  --font-serif: 'DM Serif Display', serif;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-soft: 0 15px 35px rgba(139, 92, 246, 0.04), 0 2px 10px rgba(22, 18, 30, 0.02);
  --shadow-hover: 0 25px 50px rgba(139, 92, 246, 0.08), 0 2px 15px rgba(22, 18, 30, 0.03);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.625;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
  background: #dad3e8;
  border-radius: var(--radius-btn);
}

::-webkit-scrollbar-thumb:hover {
  background: #b8acdb;
}

/* Header */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background-color: rgba(250, 249, 251, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  z-index: 500;
  transition: var(--transition-smooth);
}

.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand h1 {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 400;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition-smooth);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 600;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-main);
  margin-bottom: 5px;
  transition: var(--transition-smooth);
}

.menu-toggle span:last-child {
  margin-bottom: 0;
}

/* Mobile Overlay Navigation */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  z-index: 550;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.mobile-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-overlay .nav-link {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  color: var(--text-light);
}

.mobile-overlay .nav-link:hover {
  color: var(--accent-color);
}

/* Split Screen Hero (Layout 2) */
.hero-split {
  margin-top: 80px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: calc(80vh - 80px);
  border-bottom: 1px solid var(--border-color);
}

.hero-left {
  padding: 6rem 8% 6rem 10%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  background-color: var(--bg-body);
}

.hero-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 0.4rem 1.2rem;
  background-color: var(--accent-soft);
  border: 1px solid rgba(139, 92, 246, 0.15);
  color: var(--accent-color);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-btn);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: 400;
  color: var(--text-main);
  letter-spacing: -0.03em;
}

.hero-title span {
  font-style: italic;
  color: var(--accent-color);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 580px;
}

.hero-right {
  background-color: var(--bg-dark);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CSS Vector Shapes for Right Hero Block */
.hero-graphic {
  position: absolute;
  width: 70%;
  height: 70%;
  border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
  background: linear-gradient(135deg, var(--accent-color) 0%, #b8a2e6 100%);
  animation: blobMorph 12s ease-in-out infinite alternate;
}

.hero-graphic::after {
  content: '';
  position: absolute;
  top: 10%;
  left: 10%;
  width: 80%;
  height: 80%;
  border-radius: 50% 50% 30% 70% / 50% 60% 40% 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  animation: blobRotate 20s linear infinite;
}

@keyframes blobMorph {
  0% { border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%; }
  100% { border-radius: 68% 32% 43% 57% / 51% 64% 36% 49%; }
}

@keyframes blobRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Zigzag Sections (Layout 16) */
.section-wrapper {
  padding: 6rem 10%;
  display: flex;
  flex-direction: column;
  gap: 7rem;
}

.zigzag-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.zigzag-section.reverse {
  direction: rtl;
}

.zigzag-section.reverse .zigzag-text {
  direction: ltr;
}

.zigzag-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 400;
  line-height: 1.2;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.zigzag-visual {
  height: 380px;
  background-color: var(--accent-soft);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zigzag-visual::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background-color: rgba(139, 92, 246, 0.03);
}

.zigzag-visual svg {
  width: 60px;
  height: 60px;
  color: var(--accent-color);
  opacity: 0.6;
}

/* 3-Column Articles Grid (Layout 9 Variant) */
.articles-wrapper {
  background-color: #f3f1f6;
  padding: 6rem 10%;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.grid-header {
  text-align: center;
  margin-bottom: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.grid-header h3 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 400;
}

.grid-header p {
  color: var(--text-muted);
  max-width: 600px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.article-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
}

.article-card:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 92, 246, 0.25);
  box-shadow: var(--shadow-hover);
}

.card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-main);
  line-height: 1.3;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.card-action {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
  margin-top: 0.5rem;
}

.card-action:hover {
  color: var(--accent-color);
}

.card-action svg {
  transition: var(--transition-smooth);
}

.card-action:hover svg {
  transform: translateX(4px);
}

/* Contact Area & Interactive Form */
.contact-wrapper {
  padding: 6rem 10%;
  background-color: var(--bg-body);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 5rem;
  align-items: start;
}

.contact-details-panel {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-details-panel h3 {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 400;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.contact-icon {
  width: 46px;
  height: 46px;
  background-color: var(--accent-soft);
  border: 1px solid rgba(139, 92, 246, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  color: var(--accent-color);
}

.contact-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.contact-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-panel {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 3rem;
  box-shadow: var(--shadow-soft);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-control {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 0.95rem 1.25rem;
  background-color: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-main);
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  background-color: var(--bg-card);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

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

.form-checkbox span {
  font-size: 0.825rem;
  color: var(--text-muted);
}

.form-checkbox a {
  color: var(--text-main);
  text-decoration: underline;
}

.btn {
  font-family: var(--font-sans);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 1.05rem 2.25rem;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--accent-color);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.25);
}

/* Legal Documents Container */
.legal-wrapper {
  padding: 10rem 10% 6rem 10%;
  max-width: 1000px;
  margin: 0 auto;
}

.legal-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 4rem;
  box-shadow: var(--shadow-soft);
}

.legal-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 2rem;
  margin-bottom: 3rem;
}

.legal-header h2 {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.legal-header p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.legal-disclaimer {
  background-color: rgba(239, 68, 68, 0.02);
  border-left: 4px solid #ef4444;
  padding: 1.5rem;
  border-radius: 8px;
  color: #dc2626;
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}

.legal-body h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin: 2rem 0 1rem 0;
}

.legal-body p, .legal-body ul {
  font-size: 0.975rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.legal-body ul {
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Footer (Deep Slate Dark) */
.main-footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 5rem 10% 2.5rem 10%;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-about h4 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.footer-about p {
  color: #aba6b5;
  font-size: 0.9rem;
  max-width: 450px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links h5 {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #aba6b5;
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-disclaimer {
  font-size: 0.85rem;
  color: #aba6b5;
  background-color: rgba(255, 255, 255, 0.02);
  padding: 1.25rem;
  border-radius: 12px;
  border-left: 3px solid var(--accent-color);
}

.footer-copyright {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: #837e8c;
}

/* Responsiveness */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.85rem;
  }
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .main-header {
    height: 70px;
    padding: 0 1.5rem;
  }
  .desktop-nav {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .menu-toggle.active span:first-child {
    transform: rotate(45deg) translate(5px, 5px);
    background-color: var(--text-light);
  }
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active span:last-child {
    transform: rotate(-45deg) translate(5px, -5px);
    background-color: var(--text-light);
  }
  .hero-split {
    margin-top: 70px;
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-left {
    padding: 4rem 1.5rem;
  }
  .hero-title {
    font-size: 2.25rem;
  }
  .hero-right {
    height: 300px;
  }
  .section-wrapper {
    padding: 4rem 1.5rem;
    gap: 4rem;
  }
  .zigzag-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .zigzag-section.reverse {
    direction: ltr;
  }
  .zigzag-visual {
    height: 250px;
  }
  .articles-wrapper {
    padding: 4rem 1.5rem;
  }
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .contact-wrapper {
    padding: 4rem 1.5rem;
  }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .form-panel {
    padding: 2rem 1.5rem;
  }
  .legal-wrapper {
    padding: 6rem 1rem 4rem 1rem;
  }
  .legal-card {
    padding: 2rem 1.5rem;
  }
  .legal-header h2 {
    font-size: 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-copyright {
    flex-direction: column;
    align-items: flex-start;
  }
}
