/* ==========================================================================
   SmartEdge — inner page chrome
   The shared hero / band / grid language used by Services, Industries,
   Portfolio, Careers, Contact and Hire a Developer. Every value comes from the
   approved design system in main.css, so these rules only describe layout.

   Loaded alongside main.css + components.css on the inner pages that need it.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Page hero — shared by Services, Careers, Contact and Hire a Developer
   -------------------------------------------------------------------------- */
.se-phero{position:relative;background:linear-gradient(165deg,var(--se-blue-soft) 0%,#fff 62%);border-bottom:1px solid var(--se-line-soft);overflow:hidden}
.se-phero__grid{display:grid;grid-template-columns:minmax(0,1.02fr) minmax(0,1fr);gap:clamp(24px,3.4vw,52px);align-items:center;padding-block:clamp(32px,4vw,58px) clamp(38px,4.6vw,66px)}
.se-phero__title{margin:0 0 .8rem;max-width:20ch}
.se-phero__lead{font-size:1.0625rem;line-height:1.66;color:var(--se-ink);margin:0 0 1.3rem;max-width:56ch}
.se-phero__actions{display:flex;flex-wrap:wrap;gap:12px}
.se-phero__media{display:flex}
.se-phero__img{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:var(--se-radius);box-shadow:var(--se-shadow-lg)}

/* --------------------------------------------------------------------------
   2. Value strip — a row of small icon + title + text points
   -------------------------------------------------------------------------- */
.se-vstrip{background:var(--se-white);border-bottom:1px solid var(--se-line-soft)}
.se-vstrip__grid{list-style:none;margin:0;padding:22px 0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.se-vstrip__item{display:flex;align-items:flex-start;gap:12px;min-width:0}
.se-vstrip__icon{flex:none;width:42px;height:42px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;background:var(--se-blue-soft);color:var(--se-orange-ink)}
.se-vstrip__body{display:flex;flex-direction:column;min-width:0}
.se-vstrip__title{font-family:var(--se-font-head);font-size:.9375rem;font-weight:800;color:var(--se-navy);line-height:1.35}
.se-vstrip__text{font-size:.8125rem;line-height:1.5;color:var(--se-ink-soft);margin-top:2px}

/* --------------------------------------------------------------------------
   3. Why grid — six capability points
   -------------------------------------------------------------------------- */
.se-whygrid{list-style:none;margin:clamp(24px,3vw,40px) 0 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.se-whygrid__item{display:flex;align-items:flex-start;gap:13px;background:#fff;border:1px solid var(--se-line);border-radius:var(--se-radius);padding:18px}
.se-whygrid__icon{flex:none;width:42px;height:42px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--se-orange) 12%,white);color:var(--se-orange-ink)}
.se-whygrid__body{display:flex;flex-direction:column;min-width:0}
.se-whygrid__title{font-family:var(--se-font-head);font-size:.9375rem;font-weight:800;color:var(--se-navy);line-height:1.35}
.se-whygrid__text{font-size:.8125rem;line-height:1.55;color:var(--se-ink-soft);margin-top:3px}

/* --------------------------------------------------------------------------
   4. Evidence-gated stat band
   -------------------------------------------------------------------------- */
.se-pstats{background:var(--se-cream);border-block:1px solid color-mix(in srgb,var(--se-orange) 12%,transparent)}
.se-pstats__grid{list-style:none;margin:0;padding:24px 0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.se-pstats__item{text-align:center;min-width:0}
.se-pstats__value{font-family:var(--se-font-head);font-size:1.875rem;font-weight:800;color:var(--se-navy);line-height:1.1;letter-spacing:-.02em}
.se-pstats__label{font-family:var(--se-font-head);font-size:.8125rem;font-weight:700;color:var(--se-ink-soft);margin-top:4px;display:block}

/* --------------------------------------------------------------------------
   5. Shared side panel (used by Portfolio, Blog, Careers, Hire)
   -------------------------------------------------------------------------- */
.se-sidepanel{background:var(--se-mist);border:1px solid var(--se-line-soft);border-radius:var(--se-radius);padding:20px}
.se-sidepanel--brand{background:linear-gradient(150deg,var(--se-navy) 0%,#0d3a7d 100%);border-color:transparent;color:#fff}
.se-sidepanel--tint{background:linear-gradient(150deg,var(--se-amber) 0%,#ffe6c9 100%);border-color:color-mix(in srgb,var(--se-orange) 30%,transparent);color:var(--se-navy)}
.se-sidepanel__title{font-family:var(--se-font-head);font-size:1.125rem;font-weight:800;line-height:1.3;margin:0 0 8px}
.se-sidepanel--brand .se-sidepanel__title{color:#fff}
.se-sidepanel__text{font-size:.875rem;line-height:1.6;margin:0 0 14px;color:inherit;opacity:.9}
.se-sidepanel__list{list-style:none;margin:0 0 14px;padding:0;display:grid;gap:7px}
.se-sidepanel__list li{display:flex;align-items:flex-start;gap:7px;font-size:.8125rem;line-height:1.45}
.se-sidepanel__list .se-icon{flex:none;margin-top:2px;color:var(--se-orange)}
.se-sidepanel--brand .se-sidepanel__list .se-icon{color:#ffb27a}

/* --------------------------------------------------------------------------
   6. Process step row
   -------------------------------------------------------------------------- */
.se-stepflow{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;counter-reset:seflow}
.se-stepflow__step{position:relative;background:#fff;border:1px solid var(--se-line);border-radius:var(--se-radius);padding:18px 16px;display:flex;flex-direction:column;gap:9px}
.se-stepflow__num{
  width:36px;height:36px;border-radius:50%;background:var(--se-orange);color:#fff;
  display:inline-flex;align-items:center;justify-content:center;
  font-family:var(--se-font-head);font-weight:800;font-size:.9375rem;
}
.se-stepflow__title{font-family:var(--se-font-head);font-size:.9375rem;font-weight:800;color:var(--se-navy);line-height:1.35;margin:0}
.se-stepflow__text{font-size:.8125rem;line-height:1.55;color:var(--se-ink-soft);margin:0}
/* The connector arrow between steps, as approved in the mockups. */
.se-stepflow__step+.se-stepflow__step::before{
  content:'\2192';position:absolute;left:-14px;top:18px;width:14px;text-align:center;
  color:var(--se-orange);font-weight:800;
}

/* --------------------------------------------------------------------------
   7. Technology marks

   09_HIRE_A_DEVELOPER/01_MOCKUP shows full-colour brand marks in a white
   card, two rows of eight, with the technology name beneath each mark. The
   grid keeps that shape; only the mark size and spacing were corrected, so the
   marks read as brand marks rather than as small outline icons.
   -------------------------------------------------------------------------- */
/*
 * The technology tiles.
 *
 * The column count follows the available width rather than a breakpoint.
 *
 * This was `repeat(8, minmax(0,1fr))` with a single step down to four at 1100px,
 * which meant that between 1024px and about 1400px every one of the sixteen tiles
 * was 121-141px wide. The labels are sentences — "Trusted & Secure Development
 * Environment", "Transparent Pricing With Extra Services" — and at that width they
 * broke to one or two words per line. Sixteen tiles at 141px looked like a dense
 * icon index rather than a list of capabilities.
 *
 * auto-fit with a 168px minimum gives six columns and roughly 194px cells in the
 * 1232px container, five at 1024px and two on a phone, which is what each label
 * needs to read. It also means the grid is right the first time it is rendered at
 * a width nobody wrote a breakpoint for.
 */
.se-techgrid{
  list-style:none;margin:0;padding:18px;display:grid;
  grid-template-columns:repeat(auto-fit,minmax(168px,1fr));gap:10px;
  background:#fff;border:1px solid var(--se-line);border-radius:var(--se-radius);box-shadow:var(--se-shadow-sm);
}
.se-techgrid__item{
  display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:10px;
  padding:10px 6px;text-align:center;min-width:0;border-radius:var(--se-radius-sm);
  transition:background-color .18s var(--se-ease);
}
.se-techgrid__item:hover{background:var(--se-mist)}
/* 44px displayed: large enough to recognise a brand mark at a glance, small
   enough that the grid still reads as a supporting section. */
.se-techgrid__markwrap{
  display:flex;align-items:center;justify-content:center;
  width:56px;height:56px;flex:none;padding:6px;border-radius:12px;background:#fff;
}
.se-techgrid__mark{width:44px;height:44px;object-fit:contain;display:block}
.se-techgrid__fallback{display:flex;align-items:center;justify-content:center;color:var(--se-navy)}
/*
   The technology name.
   
   word-break:break-word was letting a name break anywhere, so a cell too narrow for
   its label produced "JavaScrip" over "t" and "WordPres" over "s" rather than an
   overflowing word. The width is fixed by the grid instead; overflow-wrap is kept as
   a genuine last resort for an unusually long single word, which is what it is for.
*/
.se-techgrid__name{
  font-family:var(--se-font-head);font-size:.8125rem;font-weight:700;
  color:var(--se-navy);line-height:1.3;
  overflow-wrap:break-word;
}

/* --------------------------------------------------------------------------
   8. Comparison table (Hire a Developer)
   -------------------------------------------------------------------------- */
.se-compare{width:100%;border-collapse:collapse;font-size:.8125rem}
.se-compare caption{text-align:left;font-size:.75rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--se-ink-faint);padding-bottom:8px}
.se-compare th,.se-compare td{padding:8px 10px;text-align:left;vertical-align:top;border-bottom:1px solid var(--se-line-soft);line-height:1.4}
.se-compare thead th{font-family:var(--se-font-head);font-size:.8125rem;font-weight:800;color:var(--se-navy)}
.se-compare tbody th{font-weight:600;color:var(--se-ink-soft);width:1%}
.se-compare .se-icon{flex:none}
.se-compare__list{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.se-compare__list li{display:flex;align-items:flex-start;gap:6px}
.se-compare__yes{color:var(--se-success)}
.se-compare__no{color:var(--se-danger)}

/* --------------------------------------------------------------------------
   9. Two-column page body (form + information)
   -------------------------------------------------------------------------- */
.se-splitpage{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:clamp(22px,3vw,44px);align-items:start}
.se-splitpage__aside{display:grid;gap:18px;align-content:start}
.se-infocard{background:#fff;border:1px solid var(--se-line);border-radius:var(--se-radius);padding:18px;box-shadow:var(--se-shadow-sm);display:grid;gap:12px}
.se-infocard__row{display:flex;gap:11px;align-items:flex-start;min-width:0}
.se-infocard__icon{flex:none;width:40px;height:40px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:var(--se-blue-soft);color:var(--se-orange-ink)}
.se-infocard__body{min-width:0;display:flex;flex-direction:column}
.se-infocard__label{font-family:var(--se-font-head);font-size:.6875rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--se-ink-faint);margin:0 0 2px}
.se-infocard__value{font-family:var(--se-font-head);font-size:.9375rem;font-weight:700;color:var(--se-navy);word-break:break-word;text-decoration:none}
a.se-infocard__value:hover{color:var(--se-orange-ink)}
.se-infocard__text{margin:0;font-size:.8125rem;line-height:1.55;color:var(--se-ink-soft)}

.se-map{border:1px solid var(--se-line);border-radius:var(--se-radius);overflow:hidden;background:var(--se-mist)}
.se-map__frame{width:100%;aspect-ratio:16/10;border:0;display:block;background:var(--se-mist)}
.se-map__fallback{padding:22px;display:grid;gap:10px;place-items:center;text-align:center;color:var(--se-ink-soft);font-size:.875rem}
.se-map__pin{width:44px;height:44px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:var(--se-blue-soft);color:var(--se-orange-ink)}

/* --------------------------------------------------------------------------
   10. Contact channel cards
   -------------------------------------------------------------------------- */
/*
 * The contact-department cards.
 *
 * Also made container-driven, because this grid does not span the page. On the
 * contact page it sits inside the aside column, which is 565px wide at 1440 — so a
 * viewport breakpoint of `repeat(4, minmax(0,1fr))` produced four cards across
 * 527px, or 121px each, and a label like "For general inquiries, sales enquiries,
 * options or consultations" wrapped to thirteen lines in a box 103px wide.
 *
 * 190px minimum gives two columns in that aside at every desktop width, and still
 * four across if the cards are ever placed in a full-width section.
 */
.se-channels{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}
.se-channel{background:#fff;border:1px solid var(--se-line);border-radius:var(--se-radius);padding:18px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:8px;box-shadow:var(--se-shadow-sm)}
.se-channel__icon{width:44px;height:44px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:var(--se-amber);color:var(--se-orange-ink)}
.se-channel__label{font-family:var(--se-font-head);font-size:.875rem;font-weight:800;color:var(--se-navy);line-height:1.3}
/*
   The address in a department card.

   It is an email address, which is a single unbreakable token: at .8125rem
   "report@smartedgeitsolutions.com" needs 216px, so in a 199px card it broke
   mid-domain as "report@smartedgeitsolutions" over ".com" — a broken-looking
   address that is also awkward to select and copy.

   The card is widened to a 220px minimum and the value set to .75rem, which is
   191px for the longest address, so every one fits on a single line. word-break is
   dropped, because break-word permits a break anywhere and the fix is a card wide
   enough not to need one. overflow-wrap stays as the last resort for an address
   longer than the ones configured.
*/
.se-channel__value{font-size:.75rem;overflow-wrap:break-word}
a.se-channel__value{color:var(--se-navy);text-decoration:none;font-weight:600}
a.se-channel__value:hover{color:var(--se-orange-ink)}
.se-channel__note{font-size:.75rem;line-height:1.5;color:var(--se-ink-soft);margin:0}

/* --------------------------------------------------------------------------
   11. Support strip (Contact)
   -------------------------------------------------------------------------- */
.se-supportband{background:var(--se-cream);border-block:1px solid color-mix(in srgb,var(--se-orange) 12%,transparent)}
.se-supportband__grid{list-style:none;margin:0;padding:26px 0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}
.se-support{display:flex;align-items:flex-start;gap:12px;min-width:0}
.se-support__icon{flex:none;width:44px;height:44px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:var(--se-amber);color:var(--se-orange-ink)}
.se-support__body{min-width:0}
.se-support__title{font-family:var(--se-font-head);font-size:.9375rem;font-weight:800;color:var(--se-navy);line-height:1.35;margin:0 0 3px}
.se-support__text{margin:0;font-size:.8125rem;line-height:1.55;color:var(--se-ink-soft)}

/* --------------------------------------------------------------------------
   12. Responsive
   -------------------------------------------------------------------------- */
@media (max-width:1100px){
  .se-whygrid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .se-stepflow{grid-template-columns:repeat(3,minmax(0,1fr))}
  .se-stepflow__step+.se-stepflow__step::before{content:none}
  /* The technology tiles and the department cards size themselves from their
     container now, so they are not overridden here. Overriding an auto-fit track
     list with a fixed column count is what put eight tiles in a 121px cell in the
     first place. */
}
@media (max-width:1023px){
  .se-phero__grid{grid-template-columns:1fr}
  .se-phero__title{max-width:none}
  .se-phero__media{order:-1}
  .se-vstrip__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .se-splitpage{grid-template-columns:1fr}
}

@media (max-width:820px){
  .se-stepflow{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (max-width:640px){
  .se-whygrid{grid-template-columns:1fr}
  .se-techgrid{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px;gap:8px}
  .se-techgrid__item{gap:8px;padding:8px 4px}
  .se-techgrid__markwrap{width:48px;height:48px}
  .se-techgrid__mark{width:36px;height:36px}
  .se-techgrid__name{font-size:.75rem}
  .se-pstats__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .se-channels{grid-template-columns:1fr}
  .se-supportband__grid{grid-template-columns:1fr}
  .se-phero__actions .se-btn{width:100%}
}

@media (max-width:480px){
  .se-stepflow{grid-template-columns:1fr}
  .se-vstrip__grid{grid-template-columns:1fr}
}

@media (prefers-reduced-motion:reduce){
  .se-sidepanel,.se-infocard{transition:none}
}

@media print{
  .se-phero,.se-pstats,.se-supportband{background:#fff}
}
