/* ===== 3Patti Blue 2026 — Stylesheet ===== */
:root {
  --blue-900: #0a3d62;
  --blue-700: #1a6fa0;
  --blue-600: #1e88e5;
  --blue-500: #2196f3;
  --blue-100: #e3f2fd;
  --blue-50: #f0f7ff;
  --red-600: #c62828;
  --green-600: #2e7d32;
  --green-500: #43a047;
  --amber-600: #f9a825;
  --neutral-900: #1a1a1a;
  --neutral-800: #2d2d2d;
  --neutral-700: #444;
  --neutral-600: #666;
  --neutral-400: #999;
  --neutral-300: #ddd;
  --neutral-200: #e8e8e8;
  --neutral-100: #f4f4f4;
  --neutral-50: #fafafa;
  --white: #ffffff;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 20px rgba(0,0,0,0.12);
  --radius: 10px;
  --radius-sm: 6px;
  --max-width: 920px;
  --font: 'Segoe UI', system-ui, -apple-system, 'Roboto', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: #fbfbfb;
  color: var(--neutral-800);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

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

a { color: var(--blue-700); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== Header ===== */
.site-header {
  background: var(--white);
  border-bottom: 2px solid var(--blue-600);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-area img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--blue-500);
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue-900);
  line-height: 1.1;
}
.logo-text span { color: var(--blue-600); }

/* Navigation — simple links, no hamburger */
.nav-links {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
}

.nav-links a {
  color: var(--neutral-700);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--blue-100);
  color: var(--blue-900);
  text-decoration: none;
}

/* ===== Download Button ===== */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--green-500), var(--green-600));
  color: var(--white) !important;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 3px 12px rgba(46,125,50,0.3);
  text-align: center;
  justify-content: center;
  line-height: 1.2;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 18px rgba(46,125,50,0.4);
  text-decoration: none;
}

.btn-download:active { transform: translateY(0); }

.btn-download-large {
  font-size: 1.2rem;
  padding: 18px 48px;
}

.btn-download-secondary {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  box-shadow: 0 3px 12px rgba(30,136,229,0.3);
}

.btn-download-secondary:hover {
  box-shadow: 0 5px 18px rgba(30,136,229,0.4);
}

/* ===== Download banner at top of pages ===== */
.download-banner {
  background: linear-gradient(135deg, var(--blue-50), var(--blue-100));
  border-bottom: 1px solid var(--neutral-200);
  padding: 20px 16px;
  text-align: center;
}

.download-banner p {
  margin-bottom: 12px;
  color: var(--neutral-700);
  font-size: 0.95rem;
}

.download-banner .btn-download {
  margin: 0 auto;
}

/* ===== Main content ===== */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 16px 40px;
}

h1 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--blue-900);
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--blue-900);
  margin-top: 32px;
  margin-bottom: 12px;
  line-height: 1.3;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--blue-100);
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--blue-800);
  margin-top: 24px;
  margin-bottom: 10px;
}

h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--neutral-800);
  margin-top: 20px;
  margin-bottom: 8px;
}

p {
  margin-bottom: 14px;
  color: var(--neutral-700);
}

ul, ol {
  margin: 0 0 16px 20px;
}

li {
  margin-bottom: 6px;
  color: var(--neutral-700);
}

/* ===== Info table ===== */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 0.95rem;
}

.info-table th {
  background: var(--blue-700);
  color: var(--white);
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
}

.info-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--neutral-200);
  background: var(--white);
}

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

.info-table td:first-child {
  font-weight: 600;
  color: var(--blue-900);
  background: var(--blue-50);
  width: 40%;
}

/* ===== Cards / feature boxes ===== */
.card {
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius);
  padding: 20px;
  margin: 16px 0;
  box-shadow: var(--shadow);
}

.card h3 { margin-top: 0; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.tip-box {
  background: var(--blue-50);
  border-left: 4px solid var(--blue-600);
  padding: 14px 18px;
  margin: 16px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.95rem;
}

.tip-box strong { color: var(--blue-900); }

.warning-box {
  background: #fff8e1;
  border-left: 4px solid var(--amber-600);
  padding: 14px 18px;
  margin: 16px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.95rem;
}

/* ===== FAQ ===== */
.faq-item {
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-sm);
  margin: 10px 0;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 14px 16px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue-900);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  transition: background 0.2s;
}

.faq-question:hover { background: var(--blue-50); }

.faq-question .icon {
  flex-shrink: 0;
  font-size: 1.3rem;
  color: var(--blue-600);
  transition: transform 0.2s;
  line-height: 1;
}

.faq-item.open .faq-question .icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 16px;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 16px 14px;
}

.faq-answer p { color: var(--neutral-600); font-size: 0.95rem; margin-bottom: 0; }

/* ===== Hero image ===== */
.hero-image {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 16px 0;
  box-shadow: var(--shadow-lg);
}

.content-image {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 20px auto;
  box-shadow: var(--shadow);
}

/* ===== Breadcrumbs ===== */
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--neutral-400);
  margin-bottom: 16px;
}

.breadcrumbs a { color: var(--neutral-600); }
.breadcrumbs a:hover { color: var(--blue-700); }

/* ===== Inline download sections ===== */
.download-section {
  background: linear-gradient(135deg, var(--blue-50), #e8f5e9);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  margin: 24px 0;
}

.download-section h3 {
  margin-top: 0;
  color: var(--blue-900);
}

.download-section p {
  color: var(--neutral-600);
  margin-bottom: 16px;
}

/* ===== Steps ===== */
.steps {
  counter-reset: step;
  list-style: none;
  margin: 16px 0;
  padding: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 10px 0 10px 44px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--neutral-100);
}

.steps li:last-child { border-bottom: none; }

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 8px;
  width: 30px;
  height: 30px;
  background: var(--blue-600);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--blue-900);
  color: #c8d6e5;
  padding: 36px 16px 20px;
  margin-top: 40px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  justify-content: center;
}

.footer-links a {
  color: #a4c8e0;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-disclaimer {
  font-size: 0.8rem;
  color: #8ba8c0;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 16px;
}

.footer-disclaimer p { color: #8ba8c0; font-size: 0.8rem; }

/* ===== 404 ===== */
.error-404 {
  text-align: center;
  padding: 60px 16px;
}

.error-404 h1 { font-size: 3rem; color: var(--blue-700); }
.error-404 p { color: var(--neutral-600); }

/* ===== Contact form ===== */
.contact-form {
  max-width: 560px;
  margin: 20px 0;
}

.contact-form label {
  display: block;
  font-weight: 600;
  color: var(--neutral-800);
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--neutral-300);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font);
  margin-bottom: 14px;
  background: var(--white);
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--blue-600);
  outline: none;
  box-shadow: 0 0 0 3px var(--blue-100);
}

.contact-form button {
  background: var(--blue-600);
  color: var(--white);
  border: none;
  padding: 12px 32px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.2s;
}

.contact-form button:hover { background: var(--blue-700); }

/* ===== Responsive ===== */
@media (max-width: 640px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.2rem; }
  h3 { font-size: 1.05rem; }

  .header-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .nav-links {
    justify-content: center;
    gap: 2px;
  }

  .nav-links a {
    padding: 5px 8px;
    font-size: 0.82rem;
  }

  .btn-download { font-size: 1rem; padding: 12px 28px; }
  .btn-download-large { font-size: 1.1rem; padding: 16px 36px; }

  .info-table { font-size: 0.85rem; }
  .info-table td { padding: 8px 10px; }

  .card { padding: 16px; }
  .download-section { padding: 18px; }
}

@media (max-width: 400px) {
  .nav-links a { font-size: 0.78rem; padding: 4px 6px; }
  .logo-text { font-size: 1.1rem; }
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--blue-700);
  color: var(--white);
  padding: 8px 16px;
  z-index: 200;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* Visually hidden but accessible */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}
