/* ============================================================
   styles.css — shared stylesheet for fpmartinez10.github.io
   ============================================================ */

/* ── 1. Custom properties ───────────────────────────────────── */
:root {
  --brand:       #2d7d46;
  --brand-dark:  #1f5c33;
  --bg:          #f5f2ee;
  --surface:     #ffffff;
  --border:      #e2ddd7;
  --text:        #1a1a1a;
  --text-muted:  #5a5a5a;
  --text-subtle: #888;
  --radius:      10px;
  --shadow:      0 2px 12px rgba(0, 0, 0, 0.07);
  --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.12);
  --container:   860px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ── 2. Reset ───────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── 3. Base ────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 1rem;
}

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

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

a:hover { text-decoration: underline; }

ul { list-style: none; }

/* ── 4. Layout helpers ──────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4rem 0;
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.section-intro {
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 2.5rem;
}

/* ── 5. Navigation ──────────────────────────────────────────── */
.site-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav-logo {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.nav-logo:hover { text-decoration: none; color: var(--brand); }

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

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--brand);
  text-decoration: none;
}

/* Hamburger button — hidden on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.2s;
}

/* ── 6. Hero ────────────────────────────────────────────────── */
.hero {
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--border);
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  max-width: 640px;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 2rem;
}

/* ── 7. Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  text-decoration: none;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover { background: var(--brand-dark); }

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

.btn-outline:hover { background: #f0f8f3; }

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--text);
  color: #fff;
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.15s, transform 0.1s;
}

.btn-store:hover {
  background: #333;
  text-decoration: none;
  transform: translateY(-1px);
}

/* ── 8. App cards (used on home + apps page) ────────────────── */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* ── ADD NEW APP: Copy one .app-card block to add another app ── */
.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.15s;
  display: flex;
  flex-direction: column;
}

.app-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.app-card-icon {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.app-card-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.app-card-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  flex-grow: 1;
}

.badge-platform {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #e8f4ed;
  color: var(--brand-dark);
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
  margin-bottom: 1.25rem;
}

.app-card-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand);
}

.app-card-link:hover { text-decoration: underline; }

/* ── 9. App detail page ─────────────────────────────────────── */
.app-detail-header {
  padding: 3.5rem 0 3rem;
  border-bottom: 1px solid var(--border);
}

.app-detail-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.app-detail-tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.app-detail-meta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.detail-section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

.detail-section:last-child { border-bottom: none; }

.detail-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

.detail-section p {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  max-width: 640px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.feature-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}

.feature-icon {
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.feature-text strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}

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

/* ── 10. Screenshot gallery ─────────────────────────────────── */
.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}

.screenshot-gallery figure {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.screenshot-gallery img {
  width: 100%;
  height: auto;
  display: block;
}

.screenshot-gallery figcaption {
  font-size: 0.8rem;
  color: var(--text-subtle);
  padding: 0.6rem 0.8rem;
  text-align: center;
}

/* Placeholder shown when no real screenshot is present */
.screenshot-placeholder {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  background: #e8e4de;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-subtle);
  font-size: 0.8rem;
  text-align: center;
  padding: 1rem;
}

/* ── 11. Store CTA section ──────────────────────────────────── */
.store-cta {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.store-cta h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.store-cta p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* ── 12. Tech details table ─────────────────────────────────── */
.tech-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.tech-table tr {
  border-bottom: 1px solid var(--border);
}

.tech-table tr:last-child { border-bottom: none; }

.tech-table td {
  padding: 0.7rem 0;
  vertical-align: top;
}

.tech-table td:first-child {
  font-weight: 600;
  color: var(--text);
  width: 160px;
  padding-right: 1rem;
}

.tech-table td:last-child {
  color: var(--text-muted);
}

/* ── 13. Contact page ───────────────────────────────────────── */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s;
}

.contact-item:hover { box-shadow: var(--shadow-hover); }

.contact-item-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.contact-item-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 0.15rem;
}

.contact-item-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

.contact-item-value a {
  color: var(--text);
  font-weight: 500;
}

.contact-item-value a:hover { color: var(--brand); text-decoration: none; }

/* ── 14. Privacy policy content ─────────────────────────────── */
.policy-content {
  max-width: 680px;
}

.policy-content p {
  margin-bottom: 0.85rem;
  color: var(--text-muted);
}

.policy-content h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 2rem 0 0.6rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--brand);
}

.policy-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 0.5rem 0 0.85rem;
}

.policy-content ul li {
  margin-bottom: 0.35rem;
  color: var(--text-muted);
}

.policy-content a { color: var(--brand); }

.badge-local {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 4px;
  padding: 0.1rem 0.45rem;
  vertical-align: middle;
  margin-left: 0.3rem;
  letter-spacing: 0.03em;
}

/* ── 15. Home contact CTA strip ─────────────────────────────── */
.cta-strip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: var(--shadow);
}

.cta-strip-text h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

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

/* ── 16. About section ──────────────────────────────────────── */
.about-block {
  max-width: 600px;
}

.about-block p {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

/* ── 17. Page header (inner pages) ─────────────────────────── */
.page-header {
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.4rem;
}

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

/* ── 18. Footer ─────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 4rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

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

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

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-subtle);
}

.footer-links a:hover { color: var(--brand); text-decoration: none; }

/* ── 19. Responsive ─────────────────────────────────────────── */
@media (max-width: 640px) {
  /* Nav */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    padding: 0.75rem 1.25rem;
    width: 100%;
    font-size: 0.95rem;
  }

  .site-nav { position: relative; }

  /* Hero */
  .hero { padding: 3rem 0 2.5rem; }
  .hero-title { font-size: 1.7rem; }

  /* Sections */
  .section { padding: 2.5rem 0; }
  .section-title { font-size: 1.35rem; }

  /* App grid */
  .app-grid { grid-template-columns: 1fr; }

  /* Feature list */
  .feature-list { grid-template-columns: 1fr; }

  /* Screenshots */
  .screenshot-gallery { grid-template-columns: 1fr; }

  /* CTA strip */
  .cta-strip {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  /* App detail header */
  .app-detail-title { font-size: 1.6rem; }

  /* Footer */
  .footer-inner { flex-direction: column; align-items: flex-start; }

  /* Tech table */
  .tech-table td:first-child { width: 120px; }
}
