/* ===========================================
   Mark's iOS Apps — marksview.com
   Stylesheet
=========================================== */

:root {
  --color-bg: #f7f8fb;
  --color-surface: #ffffff;
  --color-text: #1c2230;
  --color-text-muted: #5b6472;
  --color-primary: #2f6fed;
  --color-primary-dark: #1f52c0;
  --color-accent: #ff9f43;
  --color-border: #e4e7ee;
  --color-header: #14192b;
  --color-header-text: #f2f4f9;
  --radius: 12px;
  --shadow: 0 4px 16px rgba(20, 25, 43, 0.08);
  --max-width: 960px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header / Nav ---------- */

.site-header {
  background: var(--color-header);
  color: var(--color-header-text);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 20px;
}

.brand {
  color: var(--color-header-text);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.2px;
}

.brand:hover {
  text-decoration: none;
  opacity: 0.9;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: none;
  color: var(--color-header-text);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 4px 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--color-header-text);
  font-size: 0.95rem;
  opacity: 0.85;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
  text-decoration: none;
  border-bottom: 2px solid var(--color-primary);
}

.nav-social {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  opacity: 0.85;
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-header);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .nav-links.open {
    max-height: 400px;
  }

  .nav-links li {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-links a {
    display: block;
    padding: 14px 20px;
  }

  .nav-social {
    display: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding: 48px 0 32px;
  text-align: center;
}

.hero-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  margin: 0 auto 18px;
  box-shadow: var(--shadow);
}

.hero h1 {
  font-size: 2rem;
  margin: 0 0 8px;
}

.hero p.tagline {
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 auto 20px;
}

.btn {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
}

.btn:hover {
  background: var(--color-primary-dark);
  text-decoration: none;
}

/* ---------- Sections / Cards ---------- */

main {
  padding: 8px 0 60px;
}

section {
  margin: 36px 0;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow);
}

.card + .card {
  margin-top: 24px;
}

h2 {
  font-size: 1.4rem;
  margin-top: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}

h3 {
  font-size: 1.15rem;
  color: var(--color-primary-dark);
}

.status-card {
  border-left: 4px solid var(--color-accent);
}

.status-card .meta {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.screenshot-block {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: flex-start;
  margin: 20px 0;
}

.screenshot-block img {
  width: 220px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}

.screenshot-block img.screenshot-large {
  width: 340px;
}

.screenshot-block .caption {
  flex: 1;
  min-width: 220px;
}

.callout {
  background: #eef4ff;
  border: 1px solid #d3e2ff;
  border-radius: var(--radius);
  padding: 18px 22px;
  font-style: italic;
  color: var(--color-primary-dark);
}

.toc {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px 24px;
}

.toc ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

/* ---------- Video embeds ---------- */

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Contact form ---------- */

form.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 480px;
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-row .form-group {
  flex: 1;
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.95rem;
}

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

.required {
  color: #e0453c;
}

.form-note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 26px 0;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--color-text-muted);
  text-decoration: underline;
}
