/* Style system for Scriptomart.com */

:root {
  --bg-main: #0a0d14;
  --bg-card: #121824;
  --bg-input: #1a2336;
  --color-primary: #6366f1;
  --color-secondary: #3b82f6;
  --color-accent: #10b981;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dark: #4b5563;
  --border-muted: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(99, 102, 241, 0.4);
  --glow-effect: 0 0 20px rgba(99, 102, 241, 0.15);
  
  --font-heading: "Arial Narrow", "Avenir Next Condensed", "Segoe UI", Roboto, sans-serif;
  --font-body: "Segoe UI", Arial, sans-serif;
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Header & Nav */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 13, 20, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-muted);
}

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

.logo a {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  text-decoration: none;
  background: linear-gradient(135deg, var(--text-main) 30%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--color-primary);
  -webkit-text-fill-color: var(--color-primary);
}

nav.main-nav {
  display: flex;
  gap: 2rem;
}

nav.main-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.25s ease, transform 0.25s ease;
  position: relative;
  padding: 0.25rem 0;
}

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

nav.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.main-nav a:hover::after,
nav.main-nav a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Main Layout */
main {
  flex-grow: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 3rem;
  font-weight: 800;
}

h2 {
  font-size: 2rem;
  border-bottom: 1px solid var(--border-muted);
  padding-bottom: 0.5rem;
  margin-top: 3rem;
}

h3 {
  font-size: 1.5rem;
  margin-top: 2rem;
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Home / Studio Pitch */
.studio-hero {
  margin-bottom: 4rem;
  max-width: 800px;
}

.studio-hero h1 {
  background: linear-gradient(135deg, var(--text-main) 40%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.4rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.5;
}

/* Strategic Article on Homepage */
.homepage-article {
  background: linear-gradient(145deg, var(--bg-card), rgba(18, 24, 36, 0.6));
  border: 1px solid var(--border-muted);
  border-radius: 16px;
  padding: 3rem;
  margin-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

.homepage-article::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--color-primary), var(--color-secondary));
}

.homepage-article .article-meta {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--color-primary);
  margin-bottom: 1rem;
  font-weight: 600;
}

.homepage-article h2 {
  font-size: 2.2rem;
  border: none;
  padding: 0;
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.homepage-article p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #d1d5db;
}

/* Insights/Journal list */
.insights-section-title {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.insights-section-title a {
  font-size: 1rem;
  color: var(--color-primary);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s ease;
}

.insights-section-title a:hover {
  transform: translateX(4px);
}

.insights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.insight-card {
  background: var(--bg-card);
  border: 1px solid var(--border-muted);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

@media(min-width: 768px) {
  .insight-card {
    flex-direction: row;
  }
  .insight-card-image {
    width: 350px;
    min-width: 350px;
  }
}

.insight-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: var(--glow-effect);
}

.insight-card-image {
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.insight-card-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.insight-card-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  gap: 1rem;
}

.insight-card-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.insight-card-title a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.2s ease;
}

.insight-card-title a:hover {
  color: var(--color-primary);
}

.insight-card-excerpt {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: auto;
}

.read-more-link:hover {
  text-decoration: underline;
}

/* Detail Article Page */
article.post-detail {
  max-width: 800px;
  margin: 0 auto;
}

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

.post-header .post-meta {
  color: var(--color-primary);
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 1rem;
}

.post-header h1 {
  font-size: 3.2rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.post-featured-image {
  margin-bottom: 3rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-muted);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.post-content {
  font-size: 1.15rem;
  line-height: 1.85;
  color: #e5e7eb;
}

.post-content p {
  margin-bottom: 2rem;
}

.post-content h2, .post-content h3 {
  margin-top: 3rem;
  margin-bottom: 1.25rem;
}

.post-content h2 {
  font-size: 2rem;
  border-bottom: 1px solid var(--border-muted);
  padding-bottom: 0.5rem;
}

.post-content h3 {
  font-size: 1.5rem;
}

.post-content ul, .post-content ol {
  margin-bottom: 2rem;
  padding-left: 1.5rem;
  color: var(--text-muted);
}

.post-content li {
  margin-bottom: 0.75rem;
}

.post-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 1rem 1.5rem;
  background: var(--bg-card);
  border-radius: 0 8px 8px 0;
  margin: 2.5rem 0;
  font-style: italic;
  color: var(--text-main);
}

/* Contact Page Form */
.contact-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

@media(min-width: 900px) {
  .contact-container {
    grid-template-columns: 1fr 1.2fr;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.contact-info h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-main) 30%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-info p {
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.studio-details {
  list-style: none;
  margin-top: 2rem;
}

.studio-details li {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.studio-details .icon {
  color: var(--color-primary);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
}

.studio-details .detail-text h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-main);
}

.studio-details .detail-text p {
  font-size: 1rem;
  margin-bottom: 0;
  color: var(--text-muted);
}

.contact-form-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-muted);
  border-radius: 16px;
  padding: 3rem;
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

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

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

.form-group label {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-main);
}

.form-group input,
.form-group textarea {
  background: var(--bg-input);
  border: 1px solid var(--border-muted);
  border-radius: 8px;
  color: var(--text-main);
  padding: 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--border-focus);
}

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

.submit-btn {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 1.1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}

.submit-btn:active {
  transform: translateY(0);
}

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--border-muted);
  background: #080a0f;
  padding: 3rem 2rem;
  margin-top: auto;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}

@media(min-width: 768px) {
  .footer-container {
    flex-direction: row;
  }
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.95rem;
  text-align: center;
}

@media(min-width: 768px) {
  .footer-tagline {
    text-align: left;
  }
}

.footer-tagline strong {
  color: var(--text-main);
  font-family: var(--font-heading);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

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

.footer-copyright {
  font-size: 0.85rem;
  color: var(--text-dark);
}

/* Robots.txt stylesheet override / utility style */
.robots-txt {
  font-family: monospace;
  white-space: pre;
}
