/* =========================================================
   GRIDS
   ========================================================= */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* =========================================================
   SERVICE CARDS
   ========================================================= */
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 34px 30px;
  position: relative;
  overflow: hidden;
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), border-color var(--speed) var(--ease);
  display: flex; flex-direction: column; height: 100%;
}
.service-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--primary-red); transform: scaleY(0); transform-origin: bottom;
  transition: transform var(--speed) var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(20,20,20,.08); border-color: transparent; }
.service-card:hover::before { transform: scaleY(1); }
.service-card .num { font-size: .85rem; font-weight: 800; color: var(--primary-red); letter-spacing: .05em; margin-bottom: 18px; display: block; }
.service-card .icon { width: 48px; height: 48px; border-radius: 12px; background: var(--primary-red-light); color: var(--primary-red); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.service-card .icon svg { width: 24px; height: 24px; }
.service-card h3 { margin-bottom: .5em; font-size: 1.2rem; }
.service-card p { color: var(--text-muted); font-size: .93rem; flex-grow: 1; }
.service-card .card-actions { display: flex; gap: 18px; align-items: center; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.service-card .card-actions a { font-size: .84rem; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.service-card .card-actions a.link-primary { color: var(--primary-red); }
.service-card .card-actions svg { width: 14px; height: 14px; transition: transform var(--speed) var(--ease); }
.service-card .card-actions a:hover svg { transform: translateX(3px); }

.service-hero-icon {
  width: 84px; height: 84px; border-radius: 18px;
  background: rgba(227,29,37,.12); color: var(--primary-red);
  display: flex; align-items: center; justify-content: center;
}
.service-hero-icon svg { width: 46%; height: 46%; }

/* =========================================================
   FEATURE / WHY CARDS
   ========================================================= */
.feature-card { display: flex; gap: 18px; padding: 28px; border-radius: var(--radius-md); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.feature-card .icon-box { width: 52px; height: 52px; flex-shrink: 0; border-radius: 12px; background: var(--primary-red); display: flex; align-items: center; justify-content: center; }
.feature-card .icon-box svg { width: 24px; height: 24px; color: var(--white); }
.feature-card h3 { color: var(--white); font-size: 1.08rem; margin-bottom: .4em; }
.feature-card p { color: rgba(255,255,255,.65); font-size: .92rem; margin: 0; }

.info-card { padding: 30px; border-radius: var(--radius-md); background: var(--white); border: 1px solid var(--border); height: 100%; }
.info-card .icon-box { width: 50px; height: 50px; border-radius: 12px; background: var(--dark); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.info-card .icon-box svg { width: 22px; height: 22px; color: var(--white); }
.info-card h3 { font-size: 1.08rem; }
.info-card p { color: var(--text-muted); font-size: .92rem; margin: 0; }

/* =========================================================
   PROCESS STEPS (How We Work)
   ========================================================= */
.process-track { position: relative; }
.process-steps { display: grid; grid-template-columns: repeat(7, 1fr); gap: 16px; }
.process-step { text-align: center; position: relative; }
.process-step .step-circle {
  width: 64px; height: 64px; border-radius: 50%; background: var(--white); border: 2px solid var(--primary-red);
  color: var(--primary-red); font-weight: 800; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
  position: relative; z-index: 1;
}
.process-step .step-circle svg { width: 26px; height: 26px; }
.process-step h4 { font-size: .92rem; margin-bottom: 6px; color: var(--text-dark); }
.process-step p { font-size: .8rem; color: var(--text-muted); margin: 0; }
.process-track::before {
  content: ''; position: absolute; top: 32px; left: 7%; right: 7%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--border) 0 8px, transparent 8px 14px);
  z-index: 0;
}

/* Stacked process (mobile / vertical, e.g. import & procurement) */
.process-vertical { display: flex; flex-direction: column; }
.process-vertical .process-step { display: flex; gap: 20px; text-align: left; padding: 22px 0; border-bottom: 1px solid var(--border); }
.process-vertical .process-step:last-child { border-bottom: none; }
.process-vertical .step-circle { margin: 0; flex-shrink: 0; }

/* =========================================================
   TIMELINE / STORY (About)
   ========================================================= */
.story-block { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.story-block img { border-radius: var(--radius-md); }
.story-block.reverse { grid-template-columns: 1.1fr .9fr; }
.story-block.reverse .story-media { order: 2; }

.approach-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.approach-item { background: var(--white); padding: 34px 26px; }
.approach-item .badge-number { display: block; margin-bottom: 14px; }
.approach-item h3 { font-size: 1.02rem; margin-bottom: .4em; }
.approach-item p { font-size: .87rem; color: var(--text-muted); margin: 0; }

/* =========================================================
   CLIENT LOGOS
   ========================================================= */
.clients-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.client-logo {
  background: var(--white); aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; padding: 28px;
}
.client-logo img {
  max-height: 56px; max-width: 100%; width: auto; object-fit: contain;
  filter: grayscale(100%); opacity: .6;
  transition: filter var(--speed) var(--ease), opacity var(--speed) var(--ease), transform var(--speed) var(--ease);
}
.client-logo:hover img { filter: grayscale(0%); opacity: 1; transform: scale(1.04); }

/* =========================================================
   SUPPLY CATALOGUE
   ========================================================= */
.catalogue-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.catalogue-card {
  padding: 30px 26px; border-radius: var(--radius-md); background: var(--light-grey);
  transition: background var(--speed) var(--ease), transform var(--speed) var(--ease);
  display: flex; gap: 16px; align-items: flex-start;
}
.catalogue-card:hover { background: var(--dark); transform: translateY(-4px); }
.catalogue-card:hover h4, .catalogue-card:hover p { color: var(--white); }
.catalogue-card:hover p { color: rgba(255,255,255,.65); }
.catalogue-card .icon { width: 42px; height: 42px; border-radius: 10px; background: var(--white); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.catalogue-card:hover .icon { background: var(--primary-red); }
.catalogue-card .icon svg { width: 20px; height: 20px; color: var(--primary-red); }
.catalogue-card:hover .icon svg { color: var(--white); }
.catalogue-card h4 { font-size: .98rem; margin-bottom: 4px; }
.catalogue-card p { font-size: .84rem; color: var(--text-muted); margin: 0; }

/* =========================================================
   TEAM
   ========================================================= */
.lead-card { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; background: var(--light-grey); border-radius: var(--radius-lg); padding: 52px; }
.lead-card .photo-wrap { position: relative; }
.lead-card .photo-wrap img { border-radius: var(--radius-md); aspect-ratio: 4/5; object-fit: cover; }
.lead-card .role-tag { position: absolute; bottom: -14px; left: 20px; background: var(--primary-red); color: var(--white); padding: 10px 18px; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.team-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.team-pillar { text-align: center; padding: 30px 20px; }
.team-pillar .icon-box { width: 58px; height: 58px; border-radius: 50%; background: var(--primary-red-light); color: var(--primary-red); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.team-pillar .icon-box svg { width: 26px; height: 26px; }

/* =========================================================
   PROJECTS / PORTFOLIO
   ========================================================= */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; }
.filter-btn {
  padding: 10px 20px; border-radius: 999px; border: 1px solid var(--border); background: var(--white);
  font-size: .84rem; font-weight: 600; color: var(--text-dark); transition: all var(--speed) var(--ease);
}
.filter-btn:hover { border-color: var(--primary-red); color: var(--primary-red); }
.filter-btn.is-active { background: var(--dark); border-color: var(--dark); color: var(--white); }

.project-card { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); background: var(--white); }
.project-media { aspect-ratio: 4/3; background: var(--light-grey); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.project-media .placeholder-label { color: var(--text-muted); font-size: .82rem; font-weight: 600; text-align: center; padding: 20px; }
.project-media .cat-pill { position: absolute; top: 14px; left: 14px; background: rgba(20,20,20,.75); color: var(--white); font-size: .72rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.project-info { padding: 22px; }
.project-info h3 { font-size: 1rem; margin-bottom: .3em; }
.project-info p { font-size: .86rem; color: var(--text-muted); margin: 0; }

/* =========================================================
   FORMS
   ========================================================= */
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 48px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: .86rem; font-weight: 700; color: var(--text-dark); }
.form-group .required { color: var(--primary-red); }
.form-group input[type=text],
.form-group input[type=email],
.form-group input[type=tel],
.form-group input[type=date],
.form-group select,
.form-group textarea {
  padding: 14px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--white); font-size: .95rem; color: var(--text-dark);
  transition: border-color var(--speed) var(--ease);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary-red); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group .hint { font-size: .78rem; color: var(--text-muted); }

.radio-group, .checkbox-group { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-pill { position: relative; }
.radio-pill input { position: absolute; opacity: 0; }
.radio-pill span {
  display: inline-block; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--border);
  font-size: .84rem; font-weight: 600; cursor: pointer; transition: all var(--speed) var(--ease);
}
.radio-pill input:checked + span { background: var(--dark); border-color: var(--dark); color: var(--white); }
.radio-pill input:focus-visible + span { outline: 3px solid var(--primary-red); outline-offset: 2px; }

.file-drop {
  border: 2px dashed var(--border); border-radius: var(--radius-sm); padding: 28px; text-align: center;
  cursor: pointer; transition: border-color var(--speed) var(--ease), background var(--speed) var(--ease);
}
.file-drop:hover, .file-drop.is-dragover { border-color: var(--primary-red); background: var(--primary-red-light); }
.file-drop svg { width: 30px; height: 30px; color: var(--text-muted); margin: 0 auto 10px; }
.file-drop .file-list { margin-top: 12px; font-size: .82rem; color: var(--text-dark); text-align: left; }

.consent-row { display: flex; align-items: flex-start; gap: 12px; margin: 26px 0; }
.consent-row input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--primary-red); flex-shrink: 0; }
.consent-row label { font-size: .86rem; color: var(--text-muted); }

.form-msg { padding: 16px 20px; border-radius: var(--radius-sm); font-size: .9rem; font-weight: 600; margin-bottom: 22px; display: none; }
.form-msg.is-success { display: block; background: #E9F8EF; color: #1E7B42; border: 1px solid #BEE9CC; }
.form-msg.is-error { display: block; background: #FDECEC; color: #B7141B; border: 1px solid #F6C6C6; }

/* Honeypot */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

/* Contact page split */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-methods { display: flex; flex-direction: column; gap: 18px; margin-top: 30px; }
.contact-method { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--radius-md); background: var(--light-grey); }
.contact-method .icon-box { width: 46px; height: 46px; border-radius: 12px; background: var(--white); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-method .icon-box svg { width: 20px; height: 20px; color: var(--primary-red); }
.contact-method h4 { font-size: .92rem; margin-bottom: 4px; }
.contact-method p, .contact-method a { font-size: .9rem; color: var(--text-muted); }
.map-embed { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); margin-top: 30px; }
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }

/* =========================================================
   404
   ========================================================= */
.error-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; background: var(--dark); color: var(--white); padding: 40px 24px; }
.error-page .error-code { font-size: clamp(5rem, 16vw, 10rem); font-weight: 800; color: var(--primary-red); line-height: 1; margin-bottom: 0; }
.error-page h1 { color: var(--white); }
.error-page p { color: rgba(255,255,255,.65); max-width: 440px; margin: 0 auto 2em; }
.error-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* Confirmation notices used across pages */
.confirm-flag {
  display: inline-block; font-size: .74rem; font-weight: 700; color: var(--primary-red-dark);
  background: var(--primary-red-light); padding: 3px 10px; border-radius: 5px; letter-spacing: .02em;
}
