/* macfilesearch.com — Shared Stylesheet
   Ported from geotag.photos design system. HoudahSpot branding. */

:root {
  --primary: #007AFF;
  --primary-dark: #0051D5;
  --secondary: #34C759;
  --warning: #FF9500;
  --danger: #FF3B30;
  --text-dark: #1d1d1f;
  --text-gray: #6e6e73;
  --bg-light: #f5f5f7;
  --bg-white: #ffffff;
  --border-light: #d2d2d7;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
  --radius: 12px;
  --radius-lg: 20px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Header ─────────────────────────────────────────────────────── */

header {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 16px;
}

.logo,
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
  flex-shrink: 0;
}

.logo img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

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

.header-nav a {
  color: var(--text-gray);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 6px 12px;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.header-nav a:hover {
  color: var(--text-dark);
  background: var(--bg-light);
}

.header-nav a.nav-cta {
  background: var(--primary);
  color: white;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 20px;
  margin-left: 8px;
}

.header-nav a.nav-cta:hover {
  background: var(--primary-dark);
  color: white;
}

/* ── Buttons ─────────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 24px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.4;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

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

.btn-large {
  padding: 16px 36px;
  font-size: 1.1rem;
  border-radius: 32px;
}

.btn-ghost {
  background: transparent;
  color: var(--text-gray);
  border: 1px solid var(--border-light);
}

.btn-ghost:hover {
  background: var(--bg-light);
  color: var(--text-dark);
}

/* ── Hero ────────────────────────────────────────────────────────── */

.hero {
  padding: 80px 20px 60px;
  text-align: center;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8f0fe 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 122, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(52, 199, 89, 0.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero .tagline {
  font-size: 1.4rem;
  color: var(--text-gray);
  margin-bottom: 16px;
  line-height: 1.4;
}

.hero .subtext {
  font-size: 0.95rem;
  color: var(--text-gray);
  margin-bottom: 40px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

/* ── Article hero (narrower) ──────────────────────────────────────── */

.hero-article {
  padding: 60px 20px 48px;
  text-align: left;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8f0fe 100%);
  position: relative;
  overflow: hidden;
}

.hero-article::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 122, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-article .hero-content {
  max-width: 800px;
}

.hero-article h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-article .tagline {
  font-size: 1.2rem;
  color: var(--text-gray);
  margin-bottom: 0;
  line-height: 1.5;
}

/* ── Breadcrumb ──────────────────────────────────────────────────── */

.breadcrumb {
  padding: 12px 20px;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  font-size: 0.875rem;
}

.breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 6px;
  align-items: center;
  color: var(--text-gray);
}

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

.breadcrumb-inner a:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  opacity: 0.5;
}

/* ── Intro section ───────────────────────────────────────────────── */

.intro {
  padding: 64px 20px 48px;
  background: var(--bg-white);
}

.intro h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.intro p {
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.7;
  margin-bottom: 16px;
  max-width: 800px;
}

.intro ul {
  margin: 0 0 16px 24px;
  max-width: 800px;
}

.intro li {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 8px;
  color: var(--text-dark);
}

/* ── Byline ──────────────────────────────────────────────────────── */

.byline {
  font-size: 0.9rem;
  color: var(--text-gray);
  margin-top: 8px;
}

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

.byline a:hover {
  text-decoration: underline;
}

/* ── Feature grid ─────────────────────────────────────────────────── */

.features {
  padding: 80px 20px;
  background: var(--bg-white);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 64px;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: 1.15rem;
  color: var(--text-gray);
  line-height: 1.5;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.feature-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.feature-card p {
  color: var(--text-gray);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ── Topic card grid ──────────────────────────────────────────────── */

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.topic-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  color: var(--text-dark);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  display: block;
}

.topic-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--primary);
  color: var(--text-dark);
}

.topic-card .topic-icon {
  font-size: 1.75rem;
  margin-bottom: 12px;
  display: block;
}

.topic-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.topic-card p {
  font-size: 0.875rem;
  color: var(--text-gray);
  line-height: 1.5;
}

/* ── Tool card (comparison page) ──────────────────────────────────── */

.tool-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 28px;
}

.tool-card.highlight {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0,122,255,0.12);
}

.tool-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.tool-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
}

.tool-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tool-badge.our-product {
  background: rgba(0,122,255,0.1);
  color: var(--primary);
}

.tool-badge.free {
  background: rgba(52,199,89,0.1);
  color: #1a8a3a;
}

.tool-badge.built-in {
  background: rgba(142,142,147,0.12);
  color: #6e6e73;
}

.tool-desc {
  color: var(--text-gray);
  margin-bottom: 16px;
  line-height: 1.6;
}

.tool-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.tool-pros h4,
.tool-cons h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.tool-pros h4 { color: #1a8a3a; }
.tool-cons h4 { color: #c0392b; }

.tool-pros ul,
.tool-cons ul {
  list-style: none;
  padding: 0;
}

.tool-pros li,
.tool-cons li {
  font-size: 0.875rem;
  color: var(--text-gray);
  padding: 3px 0;
  padding-left: 18px;
  position: relative;
}

.tool-pros li::before { content: '✓'; position: absolute; left: 0; color: #1a8a3a; }
.tool-cons li::before { content: '–'; position: absolute; left: 0; color: #c0392b; }

/* ── Numbered steps ───────────────────────────────────────────────── */

.steps-section {
  padding: 80px 20px;
  background: var(--bg-light);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.step {
  text-align: center;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.step p {
  color: var(--text-gray);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ── Article content ─────────────────────────────────────────────── */

.article-body {
  padding: 60px 20px 80px;
  background: var(--bg-white);
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
}

.article-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 48px 0 16px;
  letter-spacing: -0.01em;
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 32px 0 12px;
}

.article-content p {
  color: var(--text-dark);
  line-height: 1.7;
  margin-bottom: 16px;
  font-size: 1rem;
}

.article-content ul,
.article-content ol {
  margin: 12px 0 20px 24px;
  color: var(--text-dark);
}

.article-content li {
  line-height: 1.7;
  margin-bottom: 8px;
  font-size: 1rem;
}

.article-content pre {
  background: #1e1e2e;
  color: #cdd6f4;
  border-radius: var(--radius);
  padding: 20px 24px;
  overflow-x: auto;
  margin: 20px 0;
  font-size: 0.875rem;
  line-height: 1.6;
}

.article-content code {
  background: var(--bg-light);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.875em;
  font-family: "SF Mono", "Menlo", "Monaco", monospace;
  color: var(--text-dark);
}

.article-content pre code {
  background: transparent;
  padding: 0;
  color: #cdd6f4;
  font-size: 0.875rem;
}

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

.article-content a:hover {
  text-decoration: underline;
}

.article-content strong {
  font-weight: 600;
}

.article-content blockquote {
  border-left: 3px solid var(--primary);
  padding: 12px 20px;
  margin: 24px 0;
  background: rgba(0,122,255,0.04);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.article-content blockquote p {
  margin-bottom: 0;
  color: var(--text-gray);
  font-style: italic;
}

.article-content hr {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 40px 0;
}

/* Callout boxes */
.callout {
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
}

.callout-info {
  background: rgba(0, 122, 255, 0.06);
  border: 1px solid rgba(0, 122, 255, 0.2);
}

.callout-warning {
  background: rgba(255, 149, 0, 0.06);
  border: 1px solid rgba(255, 149, 0, 0.2);
}

.callout-tip {
  background: rgba(52, 199, 89, 0.06);
  border: 1px solid rgba(52, 199, 89, 0.2);
}

.callout p {
  margin-bottom: 0 !important;
}

.callout p + p {
  margin-top: 8px !important;
}

.callout-title {
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px !important;
  display: block;
}

.callout-info .callout-title { color: var(--primary); }
.callout-warning .callout-title { color: var(--warning); }
.callout-tip .callout-title { color: var(--secondary); }

/* ── Checklist ────────────────────────────────────────────────────── */

.checklist {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 24px 0;
}

.checklist h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px !important;
  margin-top: 0 !important;
}

.checklist ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.checklist li {
  padding: 6px 0 6px 28px;
  position: relative;
  margin-bottom: 4px !important;
  font-size: 0.95rem;
}

.checklist li::before {
  content: '☐';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 1rem;
}

/* ── Comparison table / decision guide ────────────────────────────── */

.decision-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.9rem;
}

.decision-table th {
  background: var(--bg-light);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid var(--border-light);
}

.decision-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-gray);
  vertical-align: top;
}

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

.decision-table td:first-child {
  color: var(--text-dark);
  font-weight: 500;
}

/* ── FAQ ──────────────────────────────────────────────────────────── */

.faq {
  padding: 80px 20px;
  background: var(--bg-white);
}

.faq-list {
  max-width: 800px;
  margin: 48px auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
  padding: 28px 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.faq-item p {
  color: var(--text-gray);
  line-height: 1.6;
  font-size: 0.975rem;
}

/* ── CTA Section ─────────────────────────────────────────────────── */

.cta-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  text-align: center;
  color: white;
}

.cta-section h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta-section p {
  font-size: 1.15rem;
  margin-bottom: 36px;
  opacity: 0.9;
}

.cta-section .btn-primary {
  background: white;
  color: var(--primary);
}

.cta-section .btn-primary:hover {
  background: var(--bg-light);
}

.cta-section .btn-secondary {
  border-color: rgba(255,255,255,0.6);
  color: white;
}

.cta-section .btn-secondary:hover {
  background: white;
  color: var(--primary);
}

/* ── Inline CTA banner ───────────────────────────────────────────── */

.inline-cta {
  background: rgba(0,122,255,0.06);
  border: 1px solid rgba(0,122,255,0.2);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 40px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.inline-cta p {
  margin: 0;
  color: var(--text-dark);
  font-size: 1rem;
}

.inline-cta p strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

/* ── Footer ──────────────────────────────────────────────────────── */

footer {
  background: var(--text-dark);
  color: white;
  padding: 56px 20px 36px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: white;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

/* ── Landscape sections ──────────────────────────────────────────── */

.bg-light {
  background: var(--bg-light);
}

.section-pad {
  padding: 80px 20px;
}

.section-pad-sm {
  padding: 56px 20px;
}

/* ── Responsive ──────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero .tagline {
    font-size: 1.15rem;
  }

  .hero {
    padding: 56px 20px 40px;
  }

  .hero-article h1 {
    font-size: 1.9rem;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .features,
  .faq,
  .cta-section,
  .steps-section,
  .section-pad {
    padding: 56px 20px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .topic-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .tool-pros-cons {
    grid-template-columns: 1fr;
  }

  .header-nav a:not(.nav-cta) {
    display: none;
  }

  .cta-section h2 {
    font-size: 1.75rem;
  }

  .inline-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.75rem;
  }

  .logo span {
    display: none;
  }

  .topic-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn {
    text-align: center;
  }
}
