/*
 * Base styles for the portfolio site
 *
 * This stylesheet defines a restrained colour palette, typography and layout rules
 * to achieve the "product lab" style described in the planning phase.
 */

:root {
  /* Colour palette */
  --primary-color: #2563EB;     /* electric blue */
  --bg-light: #F5F7FA;          /* very light grey */
  --bg-white: #FFFFFF;          /* white */
  --text-dark: #111827;         /* charcoal for headings and body */
  --text-medium: #374151;       /* slightly lighter text */
  --border-color: #E5E7EB;      /* pale grey for card borders */
  --link-hover: #1D4ED8;        /* slightly darker blue for hover states */

  --max-width: 1200px;
}

/* Global resets and typography */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  font-weight: 600;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--link-hover);
}

/* Layout containers */
.container {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Navigation */
.site-header {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.nav-brand {
  font-weight: 700;
  font-size: 1.25rem;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

.nav-links li a {
  font-weight: 500;
}

/* Hero section */
.hero {
  background-color: var(--bg-light);
  padding: 4rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.hero p {
  color: var(--text-medium);
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  border: 2px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--bg-white);
}

.btn-primary:hover {
  background-color: var(--link-hover);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--bg-white);
}

/* Section spacing */
section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* Services section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--bg-light);
  padding: 2rem;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  height: 100%;
}

.service-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--text-medium);
}

/* Industries section */
.industries-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.industry-tag {
  background-color: var(--bg-light);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
  font-size: 0.875rem;
  text-transform: capitalize;
}

/* Case study cards */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.case-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 1.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.case-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-color);
}

.case-card h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.case-meta {
  font-size: 0.875rem;
  color: var(--text-medium);
  margin-bottom: 0.75rem;
}

.case-status {
  display: inline-block;
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  text-transform: uppercase;
}

/* Process steps */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.process-step {
  text-align: center;
}

.process-step h3 {
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  background-color: var(--bg-light);
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-medium);
}

footer a {
  margin: 0 0.5rem;
}

/* Form styles */
form {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

input, textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  margin-bottom: 1rem;
  font-family: inherit;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

/* Responsive typography */
@media (min-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }
}
/* =========================
   Quick Links / Cards
========================= */

.quick-links {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.quick-card {
  display: block;
  background: #ffffff;
  border-radius: 14px;
  padding: 1.75rem;
  text-decoration: none;
  color: var(--text-dark);
  border: 1px solid var(--border-color);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.quick-card h3 {
  margin-bottom: 0.5rem;
}

.quick-card p {
  color: var(--text-medium);
  font-size: 0.95rem;
  line-height: 1.4;
}

.quick-cta {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 500;
  color: var(--primary-color);
}

.quick-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}
.quick-link-card {
  display: block;          /* makes <a> behave like <div> */
  text-decoration: none;
  color: inherit;
}

.quick-link-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.quick-link-card:visited {
  color: inherit;
}

.quick-link-card:focus-visible {
  outline: 2px solid rgba(236, 72, 153, 0.7);
  outline-offset: 4px;
  border-radius: 1rem;
}

/* Normalize link cards so <a> cards match <div> cards */
.quick-link-card {
  text-decoration: none;
  color: inherit;
}

.quick-link-card:visited {
  color: inherit;
}

.quick-link-card:focus-visible {
  outline: 2px solid rgba(236, 72, 153, 0.7);
  outline-offset: 4px;
  border-radius: 1rem;
}
.quick-link-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}
