/* ==========================================================================
   Yukason Tech Solutions — Main Stylesheet
   Zoho-inspired light theme · Merriweather typeface
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --surface: #ffffff;
  --surface-solid: #ffffff;
  --border: #e6e8ec;
  --border-strong: #d5d9df;

  --text: #1c1f24;
  --text-muted: #5b616b;

  --primary: #e42527;
  --primary-dark: #c21e20;
  --green: #089949;
  --blue: #226db4;
  --yellow: #f9b21d;

  --radius: 10px;
  --radius-sm: 6px;

  --font-body: 'Merriweather', Georgia, 'Times New Roman', serif;
  --font-head: 'Merriweather', Georgia, 'Times New Roman', serif;

  --shadow: 0 10px 30px -14px rgba(0, 0, 0, .14);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08);
  --container: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.28;
  font-weight: 700;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.18rem; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.gradient-text { color: var(--primary); }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--primary); color: #fff; padding: 10px 16px;
  border-radius: 0 0 8px 0; font-weight: 700; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: .92rem;
  padding: 12px 22px; border-radius: 6px; border: 1px solid transparent;
  cursor: pointer; transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .12s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px -8px rgba(228, 37, 39, .6); }
.btn-primary:hover { background: var(--primary-dark); }

.btn-ghost { border-color: var(--border-strong); color: var(--text); background: #fff; }
.btn-ghost:hover { border-color: #9aa1ab; background: #fafafa; }

.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: #f4f4f4; }

.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-logo { height: 40px; width: auto; display: block; }
.site-footer .brand-logo { height: 36px; }
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px;
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
}
.brand-text { font-family: var(--font-head); font-weight: 700; font-size: 1.22rem; color: var(--text); }
.brand-text span { color: var(--primary); }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; align-items: center; gap: 26px; }
.main-nav a { font-weight: 700; font-size: .92rem; color: var(--text-muted); transition: color .15s; position: relative; }
.main-nav ul a:hover { color: var(--text); }
.main-nav ul a.active { color: var(--primary); }
.main-nav ul a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--primary); border-radius: 2px;
}
.nav-cta { padding: 10px 20px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 88px 0 100px; overflow: hidden; background: var(--bg); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .06; }
.orb-1 { width: 460px; height: 460px; background: var(--primary); top: -120px; right: -80px; }
.orb-2 { width: 380px; height: 380px; background: var(--blue); bottom: -160px; left: -100px; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(0,0,0,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(0,0,0,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 35%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 35%, transparent 75%);
}

.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero-content .lead { font-size: 1.12rem; color: var(--text-muted); margin: 20px 0 30px; max-width: 560px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-trust { display: flex; gap: 36px; margin-top: 44px; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 28px; }
.trust-item { display: flex; flex-direction: column; }
.trust-item strong { font-family: var(--font-head); font-size: 1.65rem; font-weight: 700; color: var(--primary); }
.trust-item span { font-size: .84rem; color: var(--text-muted); }

.hero-visual { position: relative; }
.code-card {
  background: #141a23; border: 1px solid #283140; border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow);
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace; font-size: .88rem; line-height: 1.7;
}
.code-dots { display: flex; gap: 7px; margin-bottom: 14px; }
.code-dots span { width: 11px; height: 11px; border-radius: 50%; }
.code-dots span:nth-child(1) { background: #ee6a6b; }
.code-dots span:nth-child(2) { background: #f6c344; }
.code-dots span:nth-child(3) { background: #5bc98a; }
.code-card code { color: #dce3ee; }
.c-kw { color: #ff8d8d; }
.c-str { color: #71cf99; }
.c-bo { color: #7fb6ff; }

/* ---------- Sections ---------- */
.section { padding: 92px 0; }
.section-head { max-width: 660px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--text-muted); margin-top: 14px; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.services-more { display: flex; justify-content: center; margin-top: 34px; }

.service-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
}
.service-card:hover { transform: translateY(-4px); border-color: #f0b2b2; box-shadow: var(--shadow); }
.service-icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px;
  background: rgba(228, 37, 39, .08); color: var(--primary); font-size: 1.5rem; margin-bottom: 18px;
}
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: .95rem; flex: 1; }
.card-link { margin-top: 18px; color: var(--primary); font-weight: 700; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; }
.card-link i { transition: transform .2s; }
.service-card:hover .card-link i { transform: translateX(4px); }

/* ---------- Why us ---------- */
.why-section { background: var(--bg-soft); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.why-content h2 { margin-bottom: 18px; }
.why-content > p { color: var(--text-muted); margin-bottom: 24px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; color: var(--text); }
.check-list li i { color: var(--primary); font-size: 1.15rem; margin-top: 3px; }
.why-content .btn { margin-top: 16px; }

.why-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; text-align: center; transition: border-color .2s; box-shadow: var(--shadow-sm);
}
.stat-box:hover { border-color: #f0b2b2; }
.stat-num { display: block; font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; color: var(--primary); }
.stat-label { color: var(--text-muted); font-size: .88rem; }

/* ---------- CTA ---------- */
.cta-section { padding: 0 0 92px; }
.cta-inner {
  background: var(--primary); border-radius: 14px; padding: 62px 48px;
  text-align: center; color: #fff; position: relative; overflow: hidden;
}
.cta-inner::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 46px 46px; opacity: .35;
}
.cta-inner > * { position: relative; }
.cta-inner h2 { color: #fff; margin-bottom: 10px; }
.cta-inner p { color: rgba(255,255,255,.92); margin-bottom: 28px; }
.btn-light { background: #fff; color: var(--primary); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding: 96px 0 72px; text-align: center; overflow: hidden; background: var(--bg-soft); }
.page-hero .container { position: relative; }
.page-hero .lead { color: var(--text-muted); max-width: 640px; margin: 16px auto 0; font-size: 1.08rem; }

/* ---------- About ---------- */
.story-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: 50px; }
.story-content h2 { margin-bottom: 18px; }
.story-content p { color: var(--text-muted); margin-bottom: 18px; }
.story-image { width: 100%; height: auto; border-radius: 14px; box-shadow: var(--shadow); margin-bottom: 26px; }
.mission-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px; align-self: start; box-shadow: var(--shadow-sm);
}
.mission-card h3 { color: var(--primary); margin: 18px 0 8px; }
.mission-card h3:first-child { margin-top: 0; }
.mission-card p { color: var(--text-muted); font-size: .95rem; }

.values-section { padding-top: 0; }
.value-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; text-align: left; transition: border-color .2s, transform .2s; box-shadow: var(--shadow-sm);
}
.value-card:hover { border-color: #f0b2b2; transform: translateY(-4px); }
.value-card h3 { margin-bottom: 10px; }
.value-card p { color: var(--text-muted); font-size: .95rem; }

/* ---------- Services list ---------- */
.service-list { display: flex; flex-direction: column; gap: 22px; }
.service-block {
  display: grid; grid-template-columns: 80px 1fr; gap: 28px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 30px; scroll-margin-top: 90px; box-shadow: var(--shadow-sm);
}
.service-block-icon {
  display: grid; place-items: center; width: 70px; height: 70px; border-radius: 16px;
  background: rgba(228, 37, 39, .08); color: var(--primary); font-size: 2rem;
}
.service-block-body h2 { margin-bottom: 12px; }
.service-block-body > p { color: var(--text-muted); margin-bottom: 18px; max-width: 720px; }
.service-block-body .check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }

/* ---------- Portfolio ---------- */
.portfolio-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s; box-shadow: var(--shadow-sm); }
.portfolio-card:hover { transform: translateY(-4px); border-color: #f0b2b2; box-shadow: var(--shadow); }
.portfolio-thumb { height: 190px; overflow: hidden; position: relative; }
.portfolio-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.portfolio-card:hover .portfolio-thumb img { transform: scale(1.06); }
.portfolio-body { padding: 24px; }
.tag { display: inline-block; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--primary); background: rgba(228,37,39,.1); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.portfolio-body h3 { margin-bottom: 8px; }
.portfolio-body p { color: var(--text-muted); font-size: .95rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 52px; }
.contact-info h2 { margin-bottom: 12px; }
.contact-info > p { color: var(--text-muted); margin-bottom: 24px; }
.contact-list { display: flex; flex-direction: column; gap: 22px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: rgba(228,37,39,.08); color: var(--primary); font-size: 1.2rem; flex-shrink: 0; }
.contact-list strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: 2px; }
.contact-list a, .contact-list span { font-size: .97rem; }
.contact-list a:hover { color: var(--primary); }

.contact-form-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 32px; box-shadow: var(--shadow-sm); }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label { font-size: .88rem; font-weight: 700; }
.req { color: var(--primary); }
.form-group input, .form-group select, .form-group textarea {
  background: #fff; border: 1px solid var(--border-strong); border-radius: 6px;
  color: var(--text); padding: 12px 14px; font-family: var(--font-body); font-size: .95rem;
  transition: border-color .15s, box-shadow .15s; width: 100%;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(228,37,39,.12);
}
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%235b616b' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.form-group textarea { resize: vertical; min-height: 120px; }

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.alert { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: .95rem; }
.alert-success { background: rgba(8,153,73,.1); border: 1px solid rgba(8,153,73,.3); color: #067a3c; }
.alert-error { background: rgba(228,37,39,.08); border: 1px solid rgba(228,37,39,.3); color: var(--primary-dark); }
.alert i { font-size: 1.2rem; }

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 28px; display: flex; flex-direction: column; gap: 18px; box-shadow: var(--shadow-sm);
}
.quote-mark { font-size: 2.2rem; color: var(--primary); line-height: 1; }
.testimonial-card blockquote { color: var(--text); font-size: .98rem; flex: 1; margin: 0; line-height: 1.6; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary); color: #fff; font-weight: 700; font-family: var(--font-head); flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: .92rem; }
.testimonial-author span { color: var(--text-muted); font-size: .82rem; }

/* ---------- Process steps ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.process-step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow-sm); }
.process-num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px;
  background: var(--primary); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; margin-bottom: 16px;
}
.process-step h3 { margin-bottom: 8px; }
.process-step p { color: var(--text-muted); font-size: .95rem; }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 700; font-family: var(--font-head);
  display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-toggle {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(228,37,39,.1); color: var(--primary); transition: transform .25s ease; font-size: .8rem;
}
.faq-item[open] .faq-toggle { transform: rotate(45deg); }
.faq-item .faq-answer { padding: 0 20px 18px; color: var(--text-muted); font-size: .95rem; }
.faq-item[open] .faq-answer { animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); padding-top: 66px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-about { color: var(--text-muted); font-size: .95rem; margin-bottom: 22px; max-width: 320px; }
.social-links { display: flex; gap: 12px; }
.social-links a {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px;
  background: #fff; border: 1px solid var(--border); color: var(--text-muted);
  transition: color .2s, border-color .2s, transform .2s;
}
.social-links a:hover { color: var(--primary); border-color: #f0b2b2; transform: translateY(-3px); }

.footer-col h3 { font-size: .92rem; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: var(--text-muted); font-size: .95rem; transition: color .15s; }
.footer-col a:hover { color: var(--primary); }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; color: var(--text-muted); font-size: .95rem; }
.footer-contact li i { color: var(--primary); margin-top: 3px; }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  border-top: 1px solid var(--border); margin-top: 52px; padding: 22px 24px;
  color: var(--text-muted); font-size: .88rem;
}
.footer-bottom a:hover { color: var(--primary); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 480px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .story-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-block-body .check-list { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 18px;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 22px 24px; display: none; box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 16px; }
  .card-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 72px; }
  .hero-trust { gap: 24px; }
  .why-stats { grid-template-columns: 1fr 1fr; }
  .service-block { grid-template-columns: 1fr; gap: 20px; }
  .cta-inner { padding: 44px 24px; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
}
