/* =====================================================================
   Computer Xperts — Services section styles (css/services.css)
   Loaded on the eight Services pages after css/site.css and css/section.css
   (hero, section menu, two-column blocks, band and call-to-action strip live there):
     web_development.html, shopify_store_design.html, wordpress_woo_commerce.html,
     ebay_store_design_services.html, amazon.html, seo_marketing.html,
     logo_design.html, domain_hosting.html

   Each page is themed in its service's colour (body class theme-*, set in services_pages.THEME),
   like the Alibaba pages are in Alibaba orange; site red stays for the buttons.
   Flat cards with thin borders; icons in tiles of the page's colour.

   Contents
    0. Compact layout: bigger hero illustration, tighter sections
    1. Colour themes
    1b. The bold band in the service's colour
    2. Hero: platform logo
    3. Item grids: numbered items, checklist
    4. Icon cards
    5. Big numbers (stat cards)
    6. Real work pictures
    7. Responsive: 1180px, 1023px, 640px
   ===================================================================== */


/* 0. Compact layout ------------------------------------------------------ */
.services {
  --sec-head-gap: 16px;
  --split-gap: 32px;
  --split-img: 340px;
  --hero-img: 640px;
}
.services .page-hero__inner { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 32px; }
.services .page-hero__title { font-size: clamp(34px, 3.8vw, 52px); }
.services .page-hero__text { font-size: 16px; line-height: 1.6; }

/* long intro (SEO/SEM, WordPress): more room for the text, so the banner keeps the same height as the others */
.services .sec-hero--long .page-hero__inner { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); align-items: center; }
.services .sec-hero--long .page-hero__title { font-size: clamp(32px, 3.2vw, 46px); }
.services .sec-hero--long .sec-hero__sub { margin-top: 10px; font-size: 19px; }
.services .sec-hero--long .page-hero__text { max-width: none; margin-top: 12px; font-size: 15.5px; }


/* 1. Colour themes -------------------------------------------------------
   --accent: the service's colour; --accent-text: a shade dark enough for small text on white;
   --accent-on-dark: a shade light enough for text on black; --accent-tint: pale background;
   --accent-deep / --accent-hi: the dark and bright ends of the colour bands (css/section.css section 1);
   --accent-ink: icons on the accent colour (dark on Amazon orange, white elsewhere). */
.theme-web       { --accent: #e44d26; --accent-text: #cd4522; --accent-on-dark: #e65833; --accent-tint: #fcede9; --accent-deep: #b3300f; --accent-hi: #ff7a3d; }
.theme-shopify   { --accent: #5e8e3e; --accent-text: #558038; --accent-on-dark: #7aa65c; --accent-tint: #eff4ec; --accent-deep: #3f6a24; --accent-hi: #8cc63f; }
.theme-wordpress { --accent: #21759b; --accent-text: #21759b; --accent-on-dark: #5c9cba; --accent-tint: #e9f1f5; --accent-deep: #11506e; --accent-hi: #3aa5d4; }
.theme-ebay      { --accent: #0064d2; --accent-text: #0064d2; --accent-on-dark: #4d93e0; --accent-tint: #e6f0fa; --accent-deep: #00449a; --accent-hi: #2f9bff; }
.theme-amazon    { --accent: #ff9900; --accent-text: #a86500; --accent-on-dark: #ffb340; --accent-tint: #fff5e6; --accent-deep: #d96a00; --accent-hi: #ffc04d; --accent-ink: #131921; }
.theme-seo       { --accent: #1a73e8; --accent-text: #1971e3; --accent-on-dark: #5a9bef; --accent-tint: #e8f1fd; --accent-deep: #0d47a1; --accent-hi: #34a853; }
.theme-logo      { --accent: #8e44ad; --accent-text: #8e44ad; --accent-on-dark: #b07fc6; --accent-tint: #f4ecf7; --accent-deep: #5e2580; --accent-hi: #e056c1; }
.theme-hosting   { --accent: #0f9d8a; --accent-text: #0c8171; --accent-on-dark: #3fb1a1; --accent-tint: #e7f5f3; --accent-deep: #08665a; --accent-hi: #2fd3b4; }


/* 1b. The bold band in the service's own colour (the coloured menu strip and pale bands: css/section.css
   section 1), with white cards that carry a stripe of it: the icon cards ("Benefits", "Why choose us" ...),
   or the numbered list on a page without icon cards (Amazon). */
.services .sec:has(.icon-cards),
.services main:not(:has(.icon-cards)) .sec:has(.num-grid) { background: var(--accent-band); }
.services .sec:has(.icon-cards) :is(h2, .sec-head p),
.services main:not(:has(.icon-cards)) .sec:has(.num-grid) :is(h2, .sec-head p) { color: var(--white); }
.services .icon-card { border-top: 4px solid var(--accent); }
.services .sec:has(.icon-cards) .icon-card { border-color: transparent; border-top-color: var(--accent-hi); box-shadow: 0 22px 40px -26px rgba(0, 0, 0, .55); }


/* 2. Hero: platform logo (Shopify, eBay, Amazon on a white pill; WordPress is white already) */
.hero-logo { display: inline-flex; align-items: center; height: 54px; margin-bottom: 14px; }
.hero-logo img { width: auto; height: 100%; }
.hero-logo--pill { padding: 10px 18px; border-radius: 14px; background: var(--white); }
.sec-hero h3.sec-hero__sub + h4 { margin-top: 10px; color: #cfcfcf; font-size: 17px; font-weight: 400; line-height: 1.6; }


/* 3. Item grids ---------------------------------------------------------- */
/* numbered items: "01  Shopify Store Development" */
.num-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: item; }
.num-grid > li {
  display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 16px;
  border-radius: 12px; background: var(--white); border: 1px solid var(--line);
  color: var(--ink); font-size: 16px; font-weight: 700; line-height: 1.35; counter-increment: item;
}
.num-grid > li::before {
  content: counter(item, decimal-leading-zero); flex: none; display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 10px; background: var(--accent); color: var(--accent-ink, var(--white)); font-size: 14px; font-weight: 900;
}
.num-grid--1 { grid-template-columns: 1fr; margin-top: 18px; }

/* checklist: tick + text */
.check-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.check-list > li { display: flex; align-items: flex-start; gap: 10px; color: var(--ink); font-size: 16px; line-height: 1.5; }
.check-list .ic { flex: none; width: 22px; height: 22px; padding: 4px; margin-top: 1px; border-radius: 50%; background: var(--accent); color: var(--accent-ink, var(--white)); stroke-width: 3; }


/* 4. Icon cards ---------------------------------------------------------- */
.icon-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.icon-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.icon-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px 22px;
  border-radius: 16px; background: var(--white); border: 1px solid var(--line); transition: border-color .2s ease;
}
.icon-card:hover { border-color: var(--accent) #c4c4c4 #c4c4c4; }   /* the coloured stripe stays */
.icon-card__icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; background: var(--accent); color: var(--accent-ink, var(--white)); }
.icon-card__icon .ic { width: 30px; height: 30px; stroke-width: 1.9; }
.icon-card__num { position: absolute; margin: 0; top: 18px; right: 20px; color: #949494; font-size: 40px; font-weight: 900; line-height: 1; }
.icon-card__step { color: var(--accent-text); font-size: 13px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.icon-card h3,
.icon-card h6,
.icon-card p.icon-card__title { position: relative; color: var(--ink); font-size: 18px; font-weight: 900; line-height: 1.3; }
.icon-card p { position: relative; color: var(--muted); font-size: 15.5px; line-height: 1.65; }


/* 5. Big numbers --------------------------------------------------------- */
.stat-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.stat-card { padding: 24px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); }
.stat-card--dark { background: var(--ink); border-color: var(--ink); }
.stat-card b { display: block; color: var(--accent-text); font-size: clamp(40px, 4.4vw, 60px); font-weight: 900; line-height: 1; letter-spacing: -.02em; }
.stat-card span { display: block; margin-top: 8px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.stat-card--dark b { color: var(--accent-on-dark, var(--red-on-dark)); }
.stat-card--dark span { color: #d6d6d6; }


/* 6. Real work pictures (the graphic design gallery is in css/section.css) */
.work-shot img { width: 100%; max-width: 480px; height: auto; }   /* real work mockups (transparent PNGs), no frame */


/* 7. Responsive ---------------------------------------------------------- */
@media (max-width: 1180px) {
  .icon-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1023px) {
  .services .page-hero__inner,
  .services .sec-hero--long .page-hero__inner { grid-template-columns: 1fr; }
  .services { --hero-img: 560px; }
  .num-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .icon-cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .services { --split-img: 260px; }
  .hero-logo { height: 44px; }
  .num-grid, .check-list { grid-template-columns: 1fr; }
  .num-grid > li { min-height: 0; font-size: 15.5px; }
  .icon-cards, .icon-cards--3 { grid-template-columns: 1fr; gap: 12px; }
  .icon-card { padding: 20px 18px; }
  .stat-cards { gap: 10px; }
  .stat-card { padding: 18px; }
}
