/* ===== VitoWebsite - Legal Tech & Law Discoveries ===== */
/* Color scheme: Deep navy + warm gold + clean white */

:root {
  --navy: #1a2332;
  --navy-light: #2a3a52;
  --gold: #c9a84c;
  --gold-light: #e8d48b;
  --cream: #faf8f3;
  --white: #ffffff;
  --gray: #6b7280;
  --gray-light: #e5e7eb;
  --text: #1f2937;
  --text-light: #4b5563;
  --accent: #b8860b;
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 840px;
  --radius: 8px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--navy);
  line-height: 1.3;
}

h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 1.75rem; margin-bottom: 0.75rem; margin-top: 2rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; margin-top: 1.5rem; }

p { margin-bottom: 1rem; }
a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

/* ===== Header / Nav ===== */
header {
  background: var(--navy);
  padding: 2.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
}

nav .logo {
  font-family: var(--font-serif);
  color: var(--gold);
  font-size: 8rem;
  font-weight: bold;
  line-height: 1;
}

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

/* Gold dot on the 'i' in Vita */
nav .logo .logo-i {
  color: var(--white);
  position: relative;
}
nav .logo .logo-i::after {
  content: '';
  position: absolute;
  top: 0.08em;
  left: 0.1em;
  width: 0.16em;
  height: 0.16em;
  background: var(--gold);
  border-radius: 50%;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav ul li a {
  color: var(--gray-light);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ===== Main Content ===== */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  min-height: 60vh;
}

/* ===== Hero Section ===== */
.hero {
  text-align: center;
  padding: 4rem 0 3rem;
}

.hero-image {
  margin-bottom: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  max-height: 320px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.hero .tagline {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.hero .subtitle {
  font-size: 1rem;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}

.btn-primary:hover {
  background: var(--accent);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

/* ===== Blog Cards ===== */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s;
}

.blog-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.blog-card .date {
  font-size: 0.85rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.blog-card h2 { margin-top: 0; }

.blog-card h2 a {
  color: var(--navy);
}

.blog-card h2 a:hover {
  color: var(--gold);
}

.blog-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.blog-card .tags {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  display: inline-block;
  background: var(--cream);
  color: var(--navy-light);
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-weight: 500;
}

/* ===== Blog Post Article ===== */
article.blog-post {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

article.blog-post h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

article.blog-post .post-meta {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-light);
}

article.blog-post p {
  font-size: 1.05rem;
  line-height: 1.8;
}

article.blog-post blockquote {
  border-left: 4px solid var(--gold);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--cream);
  font-style: italic;
  border-radius: 0 var(--radius) var(--radius) 0;
}

article.blog-post code {
  background: var(--cream);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

article.blog-post pre {
  background: var(--navy);
  color: var(--cream);
  padding: 1.5rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 1.5rem 0;
}

article.blog-post pre code {
  background: transparent;
  color: var(--cream);
  padding: 0;
}

article.blog-post ul, article.blog-post ol {
  margin: 1rem 0 1rem 1.5rem;
}

article.blog-post li {
  margin-bottom: 0.5rem;
}

/* ===== Form Section ===== */
.form-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  margin-top: 2rem;
}

.form-section iframe {
  width: 100%;
  border: none;
  min-height: 500px;
}

/* ===== About Page ===== */
.about-content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* ===== Footer ===== */
footer {
  background: var(--navy);
  color: var(--gray-light);
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.9rem;
}

footer a { color: var(--gold); }

/* ===== Utility ===== */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* ===== Responsive ===== */
@media (max-width: 640px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.35rem; }
  .hero h1 { font-size: 2rem; }
  header { padding: 1rem 0; }
  nav { flex-direction: column; gap: 0.5rem; align-items: center; }
  nav .logo { font-size: 4rem; }
  nav ul { gap: 1rem; flex-wrap: wrap; justify-content: center; }
  main { padding: 2rem 1rem; }
  article.blog-post { padding: 1.5rem; }
  .form-section { padding: 1.5rem; }
}
