/* Shared styles for Vadami secondary pages (blog, contact, privacy, terms).
   Mirrors the design tokens of index.html. */
:root {
  --navy: #0B2A4A;
  --blue: #1E88E5;
  --blue2: #7FC4FF;
  --muted: #5B6B82;
  --card: rgba(255,255,255,.84);
  --line: rgba(11,42,74,.10);
  --shadow: 0 24px 70px rgba(11,42,74,.08);
  --max: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--navy);
  background: radial-gradient(circle at 10% 8%, rgba(30,136,229,.10), transparent 26%),
              radial-gradient(circle at 90% 16%, rgba(30,136,229,.09), transparent 24%),
              linear-gradient(180deg, #FCFEFF 0%, #F6F9FD 100%);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 28px; width: 100%; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(255,255,255,.78);
  border-bottom: 1px solid rgba(11,42,74,.06);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  height: 64px;
}
.brand img { height: 140px; display: block; margin: -50px 0; }
.nav-links { display: flex; gap: 28px; color: var(--muted); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--navy); }
.nav-links a.active { color: var(--navy); font-weight: 700; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 12px;
  border: 1px solid var(--line);
  font-weight: 700; font-size: 14px; background: #fff;
  cursor: pointer; transition: all .2s;
}
.btn:hover { box-shadow: 0 4px 16px rgba(11,42,74,.10); }
.btn.primary { background: var(--navy); color: #fff; border-color: transparent; }
.btn.primary:hover { background: #0d3560; }

/* Page scaffold */
.page { flex: 1; padding: 56px 0 72px; }
.page-head { margin-bottom: 36px; max-width: 760px; }
.kicker {
  color: var(--blue); font-size: 13px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
}
.page-title { margin: 8px 0 10px; font-size: 40px; line-height: 1.1; letter-spacing: -.03em; }
.page-sub { color: var(--muted); font-size: 16px; line-height: 1.7; }

/* Prose (legal pages) */
.prose {
  max-width: 760px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 24px; box-shadow: var(--shadow);
  padding: 40px 44px;
  font-size: 15px; line-height: 1.75; color: #33465e;
}
.prose h2 { font-size: 20px; color: var(--navy); margin: 28px 0 10px; letter-spacing: -.01em; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 14px 22px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--blue); font-weight: 600; }
.prose a:hover { text-decoration: underline; }
.prose .updated { font-size: 13px; color: var(--muted); margin-bottom: 24px; }

/* Blog cards */
.post-list { display: grid; gap: 20px; max-width: 860px; }
.post {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 24px; box-shadow: var(--shadow);
  padding: 34px 38px;
  transition: transform .2s, box-shadow .2s;
}
.post:hover { transform: translateY(-3px); box-shadow: 0 18px 50px rgba(11,42,74,.12); }
.post .meta { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.post .meta .tag {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: rgba(30,136,229,.08); color: var(--blue);
  font-size: 11px; font-weight: 800; margin-right: 10px; vertical-align: middle;
}
.post h2 { font-size: 24px; line-height: 1.3; letter-spacing: -.02em; margin-bottom: 10px; }
.post p { color: var(--muted); font-size: 15px; line-height: 1.75; margin-bottom: 16px; }
.post .read-more { color: var(--blue); font-weight: 700; font-size: 14px; }
.post .read-more:hover { text-decoration: underline; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; max-width: 1000px; align-items: start; }
.contact-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 24px; box-shadow: var(--shadow); padding: 36px;
}
.contact-card h2 { font-size: 20px; margin-bottom: 6px; }
.contact-card > p { color: var(--muted); font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.contact-form { display: grid; gap: 16px; }
.contact-form .form-group { display: grid; gap: 5px; }
.contact-form label { font-size: 13px; font-weight: 600; color: var(--navy); }
.contact-form label span { color: var(--muted); font-weight: 400; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: #FAFBFC;
  font-family: inherit; font-size: 15px; color: var(--navy);
  transition: border-color .2s, box-shadow .2s; outline: none;
}
.contact-form input:focus, .contact-form textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30,136,229,.1);
}
.contact-form textarea { resize: vertical; min-height: 110px; }
.btn-submit {
  width: 100%; padding: 14px; border-radius: 12px; border: none;
  background: var(--navy); color: #fff;
  font-family: inherit; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: all .2s;
}
.btn-submit:hover { background: #0d3560; }
.form-status { text-align: center; font-size: 14px; font-weight: 600; min-height: 20px; }
.form-status.success { color: #43A047; }
.contact-aside .item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-aside .item:last-child { border-bottom: none; }
.contact-aside .item h3 { font-size: 15px; margin-bottom: 4px; }
.contact-aside .item p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.contact-aside .item a { color: var(--blue); font-weight: 600; }
.contact-aside .item a:hover { text-decoration: underline; }

/* Footer */
.site-footer {
  border-top: 1px solid rgba(11,42,74,.08);
  background: rgba(255,255,255,.6);
  padding: 44px 0 36px; color: var(--muted); font-size: 14px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px;
  padding-bottom: 28px;
}
.footer-brand p { margin-top: 10px; font-size: 13px; line-height: 1.7; max-width: 300px; }
.footer-brand img { height: 110px; margin: -38px 0 -28px -10px; }
.footer-col h4 {
  font-size: 12px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--navy); margin-bottom: 12px;
}
.footer-col a { display: block; padding: 5px 0; color: var(--muted); }
.footer-col a:hover { color: var(--navy); }
.footer-bottom {
  border-top: 1px solid rgba(11,42,74,.08); padding-top: 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 13px;
}
.footer-bottom a { color: var(--blue); font-weight: 600; }
.footer-bottom a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 780px) {
  .nav-links { display: none; }
  .page-title { font-size: 30px; }
  .prose { padding: 28px 24px; }
  .post { padding: 26px 24px; }
  .brand img { height: 100px; margin: -32px 0; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}
