/* ==========================================================================
   Yazad Computers - shared stylesheet (used by every page)
   Page-specific rules are scoped with a body class:
   page-home, page-products, page-services, page-about, page-contact, page-downloads
   ========================================================================== */

:root {
  --ink: #163020;
  --title: #17452b;
  --green: #1b8a4a;          /* brand green (decorative: dots, underlines) */
  --green-strong: #167a3e;   /* text/button green: white on it = 5.4:1 */
  --green-dark: #0f6a34;
  --orange-text: #c2410c;    /* orange for text: 5.2:1 on white */
  --red-text: #b91c1c;       /* red for card titles: 5.4:1 on peach */
  --muted: #456a52;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; } /* anchors land below sticky header */
body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #ffffff;
  color: var(--ink);
  line-height: 1.6;
  overflow-x: clip; /* stops sideways scroll without breaking the sticky header */
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }

/* Consistent keyboard focus ring (white inside the green CTA band) */
a:focus-visible, button:focus-visible { outline: 3px solid var(--green-strong); outline-offset: 3px; }
.cta-band a:focus-visible { outline-color: #ffffff; }

/* ---------- Header & navigation ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(135deg, #eafdf4 0%, #ffffff 60%, #fff7ed 100%);
  box-shadow: 0 10px 26px rgba(13, 104, 58, 0.12);
  border-bottom: 2px solid rgba(255, 138, 61, 0.25);
  backdrop-filter: blur(12px);
}
.nav { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; }
.brand-link { display: inline-block; line-height: 0; }
.site-logo { height: 48px; width: auto; }

.nav-links { display: flex; gap: 1.5rem; font-size: 0.95rem; font-weight: 500; }
.nav-links a {
  position: relative;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #154f30;
  background: transparent;
  border: 1px solid transparent;
  transition: color 0.22s, background 0.22s, border-color 0.22s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 10%; right: 10%; bottom: -2px;
  width: 0; height: 2px; border-radius: 999px; background: var(--green-strong);
  transition: width 0.25s ease-out;
}
.nav-links a:hover { background: #e8f6ee; color: #0f5f31; }
.nav-links a:hover::after { width: 80%; }
.nav-links a.active { background: #e1f5eb; border-color: rgba(22, 122, 62, 0.35); color: #0f5f31; }
.nav-links a.active::after { width: 0; }

.nav-toggle {
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  flex: 0 0 44px; width: 44px; height: 44px; padding: 0;
  background: #ffffff; border: 1px solid rgba(27, 138, 74, 0.28); border-radius: 0.5rem;
  color: var(--green); cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.nav-toggle:hover { background: #f2faf6; border-color: var(--green); }
.nav-toggle span { display: block; width: 20px; height: 2px; flex: 0 0 2px; background: currentColor; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  padding: 0.8rem 1.6rem; border: none; border-radius: 999px;
  font-size: 0.95rem; font-weight: 600; white-space: nowrap; cursor: pointer;
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, background 0.18s ease-out, filter 0.18s ease-out;
}
.btn-icon { font-size: 1.05rem; line-height: 1; }
.btn-label { display: inline-block; }

.btn-primary { background: linear-gradient(135deg, #ffead6, #ffd4b8); color: #6b3c1f; box-shadow: 0 12px 28px rgba(255, 170, 120, 0.22); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 42px rgba(255, 170, 120, 0.32); filter: brightness(1.04); }
.btn-secondary { background: linear-gradient(135deg, #e8f6ff, #cfe9ff); color: #1e4f6b; box-shadow: 0 14px 30px rgba(120, 170, 255, 0.22); }
.btn-secondary:hover { transform: translateY(-3px); box-shadow: 0 18px 42px rgba(120, 170, 255, 0.30); filter: brightness(1.05); }

.btn-whatsapp { background: var(--green-strong); color: #ffffff; box-shadow: 0 10px 24px rgba(22, 122, 62, 0.28); }
.btn-whatsapp:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn-whatsapp img { flex: none; }
.cta-band .btn-whatsapp { box-shadow: 0 0 0 2px #ffffff; }
.nav-cta { padding: 0.55rem 1.2rem; font-size: 0.9rem; gap: 0.35rem; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { background: #f7fbf8; border-bottom: 1px solid #e1f0e8; font-size: 0.82rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0.1rem 0.5rem; padding: 0.35rem 0; }
.breadcrumb li { display: flex; align-items: center; gap: 0.5rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; color: #9bb8a6; }
.breadcrumb a { display: inline-block; padding: 0.3rem 0; color: #0f5f31; text-decoration: underline; text-decoration-color: rgba(15, 95, 49, 0.35); text-underline-offset: 0.2rem; }
.breadcrumb a:hover { color: var(--orange-text); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(135deg, #eafdf4 0%, #ffffff 60%, #fff7ed 100%); padding: 4rem 0 3.5rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr); gap: 3rem; align-items: center; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.25rem 0.9rem; margin-bottom: 0.8rem;
  border-radius: 999px; font-size: 0.75rem; font-weight: 500; background: #e1f5eb; color: #1a3130;
}
.hero-kicker-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--green); }
.hero-title { font-size: clamp(2.1rem, 3vw, 2.7rem); line-height: 1.15; margin-bottom: 0.4rem; color: var(--orange-text); }
.hero-subtitle { font-size: 1.05rem; font-weight: 500; letter-spacing: 0.05em; margin-bottom: 0.9rem; color: #26344f; }
.hero-text { font-size: 0.98rem; color: #315842; margin-bottom: 1.6rem; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; margin-bottom: 1rem; }
.hero-note { font-size: 0.8rem; color: #4b7d58; }
.hero-badge-row { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 1.8rem; font-size: 0.82rem; color: #386648; }
.hero-badge { display: flex; flex-direction: column; gap: 0.15rem; }
.hero-badge strong { font-size: 1rem; color: #196e3b; }

.hero-card {
  display: flex; flex-direction: column; gap: 1.2rem; max-width: 100%;
  padding: 1.9rem 1.7rem; border-radius: 1.75rem; border: 1px solid #dbeee3;
  background: linear-gradient(135deg, #e5f7ef 0%, #ffffff 45%, #ffe8d4 100%);
  box-shadow: 0 18px 42px rgba(13, 104, 58, 0.14);
}
.hero-card-title {
  position: relative; display: inline-block; margin-bottom: 0.5rem;
  font-size: 1rem; font-weight: 600; letter-spacing: 0.06em; color: var(--title);
}
.hero-card-title::after {
  content: ""; position: absolute; left: 0; bottom: -0.35rem; width: 100%; height: 2px;
  border-radius: 999px; background: linear-gradient(90deg, var(--green), #ff8a3d); opacity: 0.8;
}
.hero-card-text-lg { font-size: 0.86rem; color: #3b6a49; }
.hero-card-text-sm { font-size: 0.8rem; color: #4a7158; }
.hero-card-list { list-style: none; display: grid; gap: 0.45rem; font-size: 0.86rem; color: #3b6a49; }
.hero-card-list li { display: flex; align-items: flex-start; gap: 0.55rem; }
.hero-card-icon { font-size: 1rem; line-height: 1.2; margin-top: 0.1rem; }
.hero-card-text { flex: 1; }

/* ---------- Sections ---------- */
.section { padding: 3.2rem 0; }
.section:nth-of-type(even) { background: #f2faf7; padding: 3.8rem 0; }
.section:nth-of-type(odd) { background: #ffffff; border-top: 1px dotted #d3e8dd; padding: 4rem 0; }
.section-header { margin-bottom: 1.8rem; }
.section-kicker {
  display: inline-block; padding-bottom: 0.25rem;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--orange-text); border-bottom: 2px solid rgba(209, 104, 31, 0.45);
}
.section-title {
  position: relative; padding-bottom: 0.35rem; margin-bottom: 0.4rem;
  font-size: 1.6rem; font-weight: 600; letter-spacing: 0.02em; color: var(--title);
}
.section-title::after {
  content: ""; position: absolute; left: 0; bottom: -0.25rem; width: 100%; height: 2px;
  border-radius: 999px; background: linear-gradient(90deg, var(--green), #ff8a3d); opacity: 0.85;
}
.section-intro { font-size: 0.95rem; color: var(--muted); max-width: 700px; }
.section-note { margin-top: 1rem; font-size: 0.9rem; color: var(--muted); max-width: 720px; }
.service-note { margin-top: 1.3rem; font-size: 0.9rem; color: var(--muted); max-width: 720px; }
.lead-note { margin-top: 1.4rem; font-size: 0.95rem; color: var(--muted); }

.two-column { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr); gap: 2.5rem; align-items: flex-start; }
.bullet-list { list-style: disc; padding-left: 1.4rem; }
.bullet-list li { margin-left: 0.4rem; margin-bottom: 0.35rem; }
.bullet-list li::marker { color: #e32626; font-weight: 700; }

.pill-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.8rem; }
.pill {
  padding: 0.8rem 1rem; border-radius: 1rem; font-size: 0.9rem; color: #305943;
  background: linear-gradient(135deg, #ffe9d2, #fff3e6, #ffffff); border: 1px solid #d6efe1;
  transition: background 0.25s, box-shadow 0.25s, border-color 0.25s, transform 0.18s;
}
.pill strong { color: var(--green-dark); }
.pill:hover { background: linear-gradient(135deg, #ffffff, #fefdfb, #f6fff9); box-shadow: 0 18px 38px rgba(13, 104, 58, 0.20); border-color: #badbcb; transform: translateY(-2px); }

.benefits-band {
  margin-top: 1.4rem; padding: 1rem 1.1rem; border-radius: 1.2rem; border: 1px solid #f3dac1;
  background: linear-gradient(135deg, #fff3e6, #ffffff); box-shadow: 0 10px 26px rgba(255, 138, 61, 0.14);
  font-size: 0.9rem; color: #4a5f48;
}
.benefits-title { font-size: 0.96rem; font-weight: 700; color: var(--red-text); margin-bottom: 0.35rem; }
.benefits-list { list-style: disc; padding-left: 1.4rem; }
.benefits-list li { margin-bottom: 0.3rem; }
.benefits-list li::marker { color: #e32626; font-weight: 700; }

/* ---------- Home: category cards (whole card is a link) ---------- */
.categories-grid { display: grid; grid-template-columns: repeat(3, minmax(230px, 1fr)); gap: 1.2rem; align-items: stretch; }
.category-card {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  min-height: 200px; padding: 1.4rem 1.35rem; overflow: hidden; max-width: 100%;
  border-radius: 1.75rem; border: 1px solid transparent; font-size: 0.9rem; color: #345b44;
  background: linear-gradient(135deg, #ffe9d2 0%, #fff3e6 40%, #ffffff 100%);
  box-shadow: 0 18px 42px rgba(255, 138, 61, 0.18);
  transition: box-shadow 0.35s ease-out, transform 0.35s ease-out;
}
.category-card::before {
  content: ""; position: absolute; inset: 0; border-radius: 1.75rem; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, #ffb07b, #ffd0a3, #ffffff, #ffb07b); background-size: 250% 250%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0.85; animation: categoryBorderGlow 6s ease-in-out infinite;
}
.category-card:hover { box-shadow: 0 24px 58px rgba(255, 138, 61, 0.32); transform: translateY(-4px); }
@keyframes categoryBorderGlow {
  0% { background-position: 0% 50%; opacity: 0.7; }
  50% { background-position: 100% 50%; opacity: 1; }
  100% { background-position: 0% 50%; opacity: 0.7; }
}
.category-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--red-text); }
.category-link { color: inherit; }
.category-link::after { content: ""; position: absolute; inset: 0; border-radius: 1.75rem; } /* stretched link */
.category-link:focus-visible { outline: none; }
.category-link:focus-visible::after { outline: 3px solid var(--green-strong); outline-offset: 3px; }
.category-card:hover .category-link { color: #7f1d1d; text-decoration: underline; text-underline-offset: 0.2rem; }
.category-link span[aria-hidden] { display: inline-block; transition: transform 0.2s ease-out; }
.category-card:hover .category-link span[aria-hidden] { transform: translateX(3px); }

/* ---------- Home-only tweaks ---------- */
.page-home .two-column { align-items: center; }
.page-home .pill-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.page-home .pill { background: #f3faf6; }
.page-home .pill:hover { background: linear-gradient(135deg, #ffffff, #fefdfb, #f6fff9); }

/* ---------- About-only tweaks ---------- */
.page-about .bullet-list { margin-top: 0.6rem; }

/* ---------- Contact ---------- */
.contact-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0.9rem; margin-top: 1.4rem; }
.contact-pill {
  display: flex; align-items: flex-start; gap: 0.55rem; padding: 0.85rem 1rem; border-radius: 1rem;
  font-size: 0.9rem; color: #305943; border: 1px solid rgba(255, 150, 80, 0.45);
  background: linear-gradient(135deg, #ffefd9, #fff7ed, #ffffff);
  transition: background 0.25s, box-shadow 0.25s, border-color 0.25s, transform 0.18s;
}
.contact-pill-icon { font-size: 1.05rem; margin-top: 0.05rem; }
.contact-pill strong { display: block; color: var(--green-dark); font-size: 0.88rem; margin-bottom: 0.1rem; }
.contact-pill:hover { background: linear-gradient(135deg, #ffffff, #fefdfb, #f6fff9); box-shadow: 0 18px 38px rgba(13, 104, 58, 0.20); border-color: #badbcb; transform: translateY(-2px); }
.map-wrapper {
  max-width: 600px; margin: 1.4rem auto 0; overflow: hidden; background: #ffffff;
  border-radius: 1.4rem; border: 1px solid #dbeee3; box-shadow: 0 18px 42px rgba(13, 104, 58, 0.16);
}
.map-wrapper iframe { display: block; width: 100%; height: 240px; border: 0; }
.map-actions { padding: 1.2rem 0; text-align: center; }
.page-contact .hero-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2.3fr); }
.page-contact .hero-card { gap: 0.7rem; padding: 1.7rem 1.6rem; font-size: 0.9rem; color: #345b44; }
.page-contact .hero-card strong { color: #196e3b; }

/* ---------- Downloads ---------- */
.downloads-hero { padding: 3.6rem 0 2.4rem; }
.downloads-hero .hero-title { margin-top: 0.25rem; }
.downloads-hero .hero-text { max-width: 760px; }
.downloads-section { padding: 2rem 0; }
.downloads-section:nth-of-type(even) { background: #f7fbf8; }
.downloads-section .section-header { margin-bottom: 1.15rem; }
.downloads-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1rem; }
.download-card { min-width: 0; padding: 1.2rem; display: flex; flex-direction: column; align-items: flex-start; border: 1px solid #dbeee3; border-radius: 1rem; background: #ffffff; box-shadow: 0 8px 22px rgba(13, 104, 58, 0.08); }
.download-card-featured { border-color: rgba(27, 138, 74, 0.4); background: linear-gradient(135deg, #f0fbf5, #ffffff 68%, #fff8f1); }
.download-card-top { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.7rem; }
.download-icon { font-size: 1.35rem; line-height: 1; }
.download-badge { display: inline-flex; align-items: center; min-height: 1.6rem; padding: 0.18rem 0.55rem; border-radius: 999px; background: #e8f6ee; color: #196e3b; font-size: 0.68rem; font-weight: 600; }
.download-badge-fixed { background: #fff0df; color: #8a4b16; }
.download-badge-legacy { background: #f1eff8; color: #5b4b7b; }
.download-card h3 { margin-bottom: 0.35rem; color: #196e3b; font-size: 1.02rem; }
.download-card p { color: #466450; font-size: 0.84rem; }
.download-link {
  display: inline-flex; align-items: center; gap: 0.35rem; margin-top: auto; padding-top: 1rem;
  color: var(--green); font-size: 0.86rem; font-weight: 700;
  text-decoration: underline; text-decoration-color: rgba(27, 138, 74, 0.35); text-underline-offset: 0.2rem;
}
.download-link:hover { color: var(--orange-text); text-decoration-color: currentColor; }
.download-link:focus-visible { border-radius: 0.2rem; }

/* ---------- Call-to-action band ---------- */
.cta-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: 0.5rem; padding: 1.8rem 1.6rem; border-radius: 1.5rem;
  background: var(--green-strong); color: #ffffff; /* white text incl. 90% opacity text stays >= 4.5:1 */
}
.cta-band-title { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.2rem; }
.cta-band-text { font-size: 0.9rem; opacity: 0.9; max-width: 520px; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

/* ---------- Footer ---------- */
footer {
  margin-top: 1.8rem; padding: 1.4rem 0 1rem; background: #f7fbf8;
  border-top: 3px solid transparent; border-image: linear-gradient(90deg, #ffead6, #ffe8d0, #ffffff) 1;
}
.footer-top { display: flex; flex-wrap: wrap; gap: 1.1rem; justify-content: space-between; align-items: flex-start; margin-bottom: 0.8rem; font-size: 0.85rem; color: #436950; }
.footer-brand { max-width: 260px; }
.footer-brand-title { font-weight: 600; color: #196e3b; margin-bottom: 0.3rem; }
.footer-col-title { font-weight: 600; font-size: 0.88rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--orange-text); margin-bottom: 0.3rem; }
.footer-links { list-style: none; display: grid; gap: 0.25rem; }
.footer-links a { transition: color 0.25s; }
.footer-links a:hover { color: var(--orange-text); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.4rem; font-size: 0.78rem; color: #54745f; }

/* ---------- Responsive ---------- */
@media (min-width: 769px) and (max-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; width: 100%; max-width: 100vw;
    flex-direction: column; gap: 0.6rem; padding: 1rem 0; background: #ffffff;
    box-shadow: 0 14px 32px rgba(13, 104, 58, 0.18);
  }
  .nav-links.open { display: flex; }
  .nav-cta { padding: 0.7rem 1.4rem; }
  .hero { padding-top: 3.2rem; }
  .hero-grid, .two-column, .page-contact .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-card, .page-contact .hero-card { padding: 1.5rem 1.3rem; }
  /* 44px touch targets for footer links */
  .footer-links { gap: 0; }
  .footer-links li { display: flex; align-items: center; flex-wrap: wrap; gap: 0.35rem; min-height: 44px; }
  .footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (pointer: coarse) {
  .footer-links { gap: 0; }
  .footer-links li { display: flex; align-items: center; flex-wrap: wrap; gap: 0.35rem; min-height: 44px; }
  .footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 768px) {
  .categories-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .downloads-hero { padding: 2.8rem 0 1.8rem; }
  .downloads-section { padding: 1.5rem 0; }
  .download-card { padding: 1rem; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 1.9rem; }
  .hero-cta-row { flex-direction: column; align-items: stretch; }
  .cta-band { padding: 1.4rem 1.2rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
