/* ============================================================================
   Portfolio / marketing pages — shared layout primitives used by home, work,
   about, and contact. Layered on top of main.css so the existing background,
   header, footer, and Raleway type system are preserved.
   ========================================================================= */

/* Hero ---------------------------------------------------------------------- */
.hero {
  text-align: center;
  padding: 1.5rem 0 1rem;
  margin-bottom: 3rem;
}
.hero .hero-logo {
  display: block;
  margin: 0 auto 1.5rem;
  width: 200px;
  height: auto;
  max-width: 60%;
}
@media screen and (max-width: 736px) {
  .hero .hero-logo { width: 150px; margin-bottom: 1.1rem; }
}
.hero .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brand-blue);
  font-weight: 600;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: 2.85rem;
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin: 0 0 1.1rem;
  text-transform: none;
  font-weight: 300;
  color: #1c1f24;
}
.hero h1 .accent {
  color: var(--brand-blue);
  font-weight: 500;
}
.hero p.lede {
  max-width: 680px;
  margin: 0 auto 1.75rem;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #4a4f57;
}
.hero .cta-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}
.hero .cta-row .button.primary {
  background-color: var(--brand-blue);
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(var(--brand-blue-rgb), 0.18);
}
.hero .cta-row .button.primary:hover {
  background-color: var(--brand-blue-hover);
  box-shadow: 0 10px 22px rgba(var(--brand-blue-rgb), 0.25);
}
.hero .cta-row .button.ghost {
  background-color: rgba(var(--brand-blue-rgb), 0.06);
  color: var(--brand-blue) !important;
  box-shadow: inset 0 0 0 1px rgba(var(--brand-blue-rgb), 0.2);
}
.hero .cta-row .button.ghost:hover {
  background-color: rgba(var(--brand-blue-rgb), 0.1);
  box-shadow: inset 0 0 0 1px rgba(var(--brand-blue-rgb), 0.35);
}

@media screen and (max-width: 736px) {
  .hero h1 { font-size: 2.1rem; }
  .hero p.lede { font-size: 1rem; }
}

/* Section heading ----------------------------------------------------------- */
.section-heading {
  text-align: center;
  margin: 3rem 0 1.75rem;
}
.section-heading h2 {
  margin-bottom: 0.6rem;
  font-size: 1.8rem;
  text-transform: uppercase;
}
.section-heading p {
  max-width: 640px;
  margin: 0 auto;
  color: #555;
}

/* Capability tiles (Home: "What I do") -------------------------------------- */
.capabilities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 1rem 0 3rem;
}
.capability {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(var(--brand-blue-rgb), 0.08);
  border-radius: 10px;
  padding: 1.6rem 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.capability:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(var(--brand-blue-rgb), 0.12);
  border-color: rgba(var(--brand-blue-rgb), 0.22);
}
.capability .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(var(--brand-blue-rgb), 0.08), rgba(74, 144, 255, 0.14));
  color: var(--brand-blue);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.capability h3 {
  font-size: 1.05rem;
  text-transform: none;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 0 0 0.55rem;
  color: #1c1f24;
}
.capability p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #4a4f57;
  margin: 0;
}
.capability ul.stack {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.capability ul.stack li {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-blue);
  background: rgba(var(--brand-blue-rgb), 0.06);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  margin: 0;
}

/* Work groups (Work page) --------------------------------------------------- */
.work-group {
  margin: 0 0 3rem;
}
.work-group .group-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid rgba(var(--brand-blue-rgb), 0.1);
}
.work-group .group-head .icon {
  font-size: 1.4rem;
  color: var(--brand-blue);
}
.work-group .group-head h2 {
  margin: 0;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.work-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.work-item {
  background: #ffffff;
  border: 1px solid rgba(var(--brand-blue-rgb), 0.07);
  border-radius: 10px;
  padding: 1.5rem 1.5rem 1.35rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.work-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(var(--brand-blue-rgb), 0.1);
  border-color: rgba(var(--brand-blue-rgb), 0.2);
}
.work-item h3 {
  font-size: 1.05rem;
  text-transform: none;
  font-weight: 600;
  margin: 0 0 0.55rem;
  color: #1c1f24;
  letter-spacing: -0.005em;
}
.work-item .role {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-blue);
  font-weight: 600;
  margin-bottom: 0.55rem;
}
.work-item p {
  font-size: 0.94rem;
  line-height: 1.6;
  color: #4a4f57;
  margin: 0 0 0.85rem;
}
.work-item ul.stack {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.work-item ul.stack li {
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #444;
  background: #f1f3f7;
  border-radius: 6px;
  padding: 0.22rem 0.55rem;
  margin: 0;
}

/* About page ---------------------------------------------------------------- */
.about-shell {
  max-width: 720px;
  margin: 0 auto;
}
.about-shell p {
  font-size: 1.02rem;
  line-height: 1.75;
  color: #3c4047;
}
.about-shell h2 {
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 2.5rem 0 1rem;
}
.skill-rows {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1rem 0 2rem;
}
.skill-row {
  background: #ffffff;
  border: 1px solid rgba(var(--brand-blue-rgb), 0.07);
  border-radius: 10px;
  padding: 1.25rem 1.4rem;
}
.skill-row h3 {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin: 0 0 0.65rem;
  font-weight: 600;
}
.skill-row p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #4a4f57;
}

/* Contact page -------------------------------------------------------------- */
.contact-shell {
  max-width: 720px;
  margin: 0 auto;
}
.contact-card {
  background: #ffffff;
  border: 1px solid rgba(var(--brand-blue-rgb), 0.08);
  border-radius: 12px;
  padding: 2rem 2rem 1.5rem;
  box-shadow: 0 6px 22px rgba(var(--brand-blue-rgb), 0.06);
  margin: 1rem 0 2rem;
}
.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.contact-methods li {
  margin: 0;
  padding: 0;
}
.contact-methods a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  background: #f8faff;
  border: 1px solid rgba(var(--brand-blue-rgb), 0.1);
  border-radius: 10px;
  color: #1c1f24;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}
.contact-methods a:hover {
  transform: translateY(-2px);
  background: #eef3ff;
  border-color: rgba(var(--brand-blue-rgb), 0.3);
}
.contact-methods .icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(var(--brand-blue-rgb), 0.1), rgba(74, 144, 255, 0.18));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-methods .label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 0.15rem;
}
.contact-methods .value {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: #1c1f24;
  word-break: break-word;
}
.contact-shell .helper-heading {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
  margin: 1.5rem 0 0.5rem;
  color: #1c1f24;
}
.contact-shell .helper-copy {
  max-width: 620px;
  margin: 0.5rem auto 0;
  text-align: center;
  color: #4a4f57;
  line-height: 1.7;
}

/* Preview blocks linking to other pages (used on Home) ---------------------- */
.preview-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1rem 0 3rem;
}
.preview-card {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(var(--brand-blue-rgb), 0.08);
  border-radius: 12px;
  padding: 1.5rem 1.5rem 1.25rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.preview-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(var(--brand-blue-rgb), 0.12);
  border-color: rgba(var(--brand-blue-rgb), 0.22);
}
.preview-card .eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-blue);
  font-weight: 600;
}
.preview-card h3 {
  margin: 0;
  font-size: 1.15rem;
  text-transform: none;
  font-weight: 600;
  color: #1c1f24;
  letter-spacing: -0.005em;
}
.preview-card p {
  margin: 0;
  color: #4a4f57;
  font-size: 0.95rem;
  line-height: 1.6;
}
.preview-card .more {
  margin-top: auto;
  padding-top: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-blue);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.preview-card .more:after {
  content: "\2192"; /* right arrow */
  transition: transform 180ms ease;
}
.preview-card:hover .more:after {
  transform: translateX(3px);
}

/* CTA banner (shared across Work, Services). -------------------------------- */
.cta-banner {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-tint) 100%);
  color: #ffffff;
  border-radius: 14px;
  padding: 2.75rem 2rem;
  text-align: center;
  margin: 3rem 0 1rem;
  box-shadow: 0 14px 32px rgba(var(--brand-blue-rgb), 0.22);
}
.cta-banner h3 {
  color: #ffffff;
  margin-bottom: 0.85rem;
  font-size: 1.6rem;
  text-transform: none;
  letter-spacing: -0.005em;
  font-weight: 500;
}
.cta-banner p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 620px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}
.cta-banner .cta-button {
  display: inline-block;
  background: #ffffff;
  color: var(--brand-blue);
  padding: 0.85rem 2.25rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.cta-banner .cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}
.cta-banner .cta-button .icon { margin-right: 0.55rem; }

@media screen and (max-width: 736px) {
  .cta-banner { padding: 2.1rem 1.5rem; }
  .cta-banner h3 { font-size: 1.35rem; }
}

/* Sticky footer + wrapper inherits (mirrors content-alignment.css). --------- */
html, body { height: 100%; }
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.wrapper { flex: 1; }
/* .wrapper-inherit-padding lives in brand-colors.css; it loads on every page. */
#footer { margin-top: auto; }
