/*
 * service-styles.css
 * Shared styles for all Qynova service pages:
 *   - service-automation.html
 *   - service-chatbots.html
 *   - service-data.html
 *   - service-strategy.html
 *
 * To edit the look of ALL service pages at once, edit this file.
 * To edit one page's content only, edit that page's HTML file.
 */


/* ==========================================================================
   RESET & BASE
   ========================================================================== */

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

:root {
  /* Colors */
  --white:     #fafaf8;
  --surface:   #f4f3ef;
  --border:    rgba(0,0,0,0.08);
  --border-md: rgba(0,0,0,0.14);
  --text:      #1a1916;
  --muted:     #7a7870;
  --accent:    #8a6f4e;
  --accent2:   #5c4433;

  /* Fonts */
  --serif:   'Cormorant Garamond', Georgia, serif;
  --sans:    'DM Sans', sans-serif;
  --display: 'Playfair Display', Georgia, serif;
}

html { scroll-behavior: smooth; }
body { background: var(--white); color: var(--text); font-family: var(--sans); font-size: 15px; line-height: 1.7; font-weight: 300; }


/* ==========================================================================
   NAVIGATION
   - Logo (links back to homepage)
   - Back button (links back to #services)
   - Get Started CTA button
   ========================================================================== */

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 4rem;
  background: rgba(250,250,248,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 0.5px solid var(--border);
}

.logo { font-family: var(--display); font-size: 1.7rem; font-weight: 700; color: var(--accent2); letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; display: inline-block; }
.logo span { color: var(--accent); font-weight: 400; font-size: 1.15rem; font-family: var(--sans); letter-spacing: 0.04em; text-transform: none; }

.back-btn { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; transition: color 0.2s; }
.back-btn:hover { color: var(--accent2); }
.back-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.5; }

.nav-cta { background: var(--accent2); color: #fafaf8; padding: 9px 22px; border-radius: 2px; text-decoration: none; font-size: 13px; letter-spacing: 0.07em; text-transform: uppercase; transition: background 0.2s; }
.nav-cta:hover { background: var(--accent); }


/* ==========================================================================
   PAGE HERO
   - Beige background, centered text
   - Eyebrow label, large title with italic accent, subtitle
   ========================================================================== */

.page-hero { padding: 10rem 2rem 5rem; background: var(--surface); text-align: center; }
.page-hero-inner { max-width: 720px; margin: 0 auto; }

.eyebrow { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.4rem; border: 0.5px solid rgba(138,111,78,0.3); padding: 5px 18px; border-radius: 20px; display: inline-block; }
.page-title { font-family: var(--serif); font-size: clamp(2.8rem,6vw,5rem); font-weight: 300; color: var(--accent2); line-height: 1.05; margin-bottom: 1.2rem; }
.page-title em { font-style: italic; color: var(--accent); }
.page-sub { color: var(--muted); font-size: 1rem; max-width: 520px; margin: 0 auto; line-height: 1.85; }


/* ==========================================================================
   WHAT IT IS SECTION
   - White background, two-column layout
   - Left: explanation text | Right: feature list with arrows
   ========================================================================== */

.what-section { padding: 5rem 2rem; background: var(--white); }
.what-inner { max-width: 860px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }

/* Shared typography inside this section */
.section-label { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.section-title { font-family: var(--serif); font-size: clamp(1.6rem,3vw,2.4rem); font-weight: 300; color: var(--accent2); line-height: 1.15; margin-bottom: 1rem; }
.body-text { color: var(--muted); font-size: 14px; line-height: 1.9; margin-bottom: 1rem; }

/* Arrow-prefixed feature list */
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; margin-top: 1.5rem; }
.feature-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--muted); }
.feature-list li::before { content: '→'; color: var(--accent); font-size: 13px; margin-top: 2px; flex-shrink: 0; }


/* ==========================================================================
   BEFORE & AFTER SECTION
   - Beige background, stacked cards
   - Each card: dark header + two columns (red = before, green = after)
   ========================================================================== */

.ba-section { padding: 5rem 2rem; background: var(--surface); }
.ba-inner { max-width: 1000px; margin: 0 auto; }

.ba-title { font-family: var(--serif); font-size: clamp(1.8rem,3.5vw,2.8rem); font-weight: 300; color: var(--accent2); margin-bottom: 0.5rem; }
.ba-sub { color: var(--muted); font-size: 14px; margin-bottom: 3rem; line-height: 1.8; }
.ba-grid { display: flex; flex-direction: column; gap: 2rem; }

/* Individual scenario card */
.ba-card { background: var(--white); border-radius: 4px; overflow: hidden; border: 0.5px solid var(--border-md); }
.ba-card-header { padding: 1rem 1.8rem; background: var(--accent2); }
.ba-card-header span { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(250,250,248,0.7); font-family: var(--sans); }
.ba-card-title { font-size: 13px; font-weight: 500; color: #fafaf8; font-family: var(--sans); }

/* Before / After two-column layout inside each card */
.ba-cols { display: grid; grid-template-columns: 1fr 1fr; }
.ba-col { padding: 2rem 1.8rem; }
.ba-col-before { border-right: 0.5px solid var(--border-md); }
.ba-col-label { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 1rem; font-weight: 500; }
.ba-col-before .ba-col-label { color: #c0392b; }  /* red = bad */
.ba-col-after  .ba-col-label { color: #27ae60; }  /* green = good */

/* Each bullet point row */
.ba-item { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--muted); margin-bottom: 0.7rem; line-height: 1.6; }
.ba-item-icon { width: 16px; height: 16px; min-width: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-top: 2px; font-size: 9px; font-weight: 700; }
.before-icon { background: rgba(192,57,43,0.1); color: #c0392b; }
.after-icon  { background: rgba(39,174,96,0.1);  color: #27ae60; }


/* ==========================================================================
   CTA SECTION
   - Dark brown background, centered text
   - White button linking to contact form on homepage
   ========================================================================== */

.cta-section { padding: 5rem 2rem; background: var(--accent2); text-align: center; }
.cta-title { font-family: var(--serif); font-size: clamp(1.8rem,4vw,3rem); font-weight: 300; color: #fafaf8; margin-bottom: 1rem; }
.cta-sub { color: rgba(250,250,248,0.65); font-size: 14px; margin-bottom: 2.5rem; max-width: 420px; margin-left: auto; margin-right: auto; }

.btn-light { background: #fafaf8; color: var(--accent2); padding: 14px 38px; font-family: var(--sans); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; border: none; border-radius: 2px; cursor: pointer; text-decoration: none; display: inline-block; transition: all 0.2s; }
.btn-light:hover { background: var(--surface); transform: translateY(-1px); }


/* ==========================================================================
   OTHER SERVICES SECTION
   - White background, 3-column card grid
   - Links to the other 3 service pages
   ========================================================================== */

.others-section { padding: 4rem 2rem; background: var(--white); border-top: 0.5px solid var(--border); }
.others-inner { max-width: 1000px; margin: 0 auto; }
.others-label { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.5rem; }
.others-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }

.other-card { padding: 1.5rem; border: 0.5px solid var(--border-md); border-radius: 3px; text-decoration: none; transition: all 0.2s; display: block; }
.other-card:hover { border-color: var(--accent); background: var(--surface); }
.other-num   { font-family: var(--serif); font-size: 0.9rem; color: var(--muted); margin-bottom: 0.4rem; }
.other-name  { font-size: 13.5px; font-weight: 500; color: var(--accent2); }
.other-arrow { font-size: 11px; color: var(--accent); margin-top: 0.4rem; display: block; }


/* ==========================================================================
   FOOTER
   ========================================================================== */

footer { border-top: 0.5px solid var(--border); padding: 2rem 4rem; display: flex; align-items: center; justify-content: space-between; background: var(--surface); }
footer p { font-size: 12px; color: var(--muted); }
.footer-logo { font-family: var(--display); font-size: 1.1rem; font-weight: 700; color: var(--accent2); letter-spacing: 0.15em; text-transform: uppercase; }
.footer-logo span { color: var(--accent); font-family: var(--sans); font-weight: 300; font-size: 0.8rem; letter-spacing: 0.04em; text-transform: none; }


/* ==========================================================================
   RESPONSIVE — TABLET (max 800px)
   ========================================================================== */

@media (max-width: 800px) {
  nav { padding: 1rem 1.5rem; }
  .what-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .ba-cols { grid-template-columns: 1fr; }
  .ba-col-before { border-right: none; border-bottom: 0.5px solid var(--border-md); }
  .others-grid { grid-template-columns: 1fr 1fr; }
  footer { flex-direction: column; gap: 0.5rem; text-align: center; padding: 1.5rem; }
}


/* ==========================================================================
   RESPONSIVE — MOBILE (max 500px)
   ========================================================================== */

@media (max-width: 500px) {
  .others-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 8rem 1.5rem 3rem; }
}
