/* Tech Amigo: simple, pure CSS stylesheet.
   Palette and typography follow brand/brand.md and brand/visual-identity.md. */

:root {
  /* Brand palette */
  --blue: #1E4D8A;
  --yellow: #FFB833;
  --green: #00FF7F;
  --pink: #E6004D;
  --beige: #D9A06F;
  --dark: #424242;

  /* Derived tints (for readable backgrounds) */
  --blue-dark: #163a69;
  --cream: #FFF9F0;
  --beige-light: #F6E7D5;

  --font-body: "Merriweather", Georgia, serif;
  --font-display: "Lobster Two", "Segoe UI", cursive;

  --radius: 16px;
  --shadow: 0 6px 20px rgba(66, 66, 66, 0.12);
  --space: clamp(3rem, 8vw, 6rem);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-optical-sizing: auto;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--dark);
  background: var(--cream);
}

h1, h2, h3 {
  margin: 0 0 0.75rem;
  color: var(--blue);
  line-height: 1.2;
}
h1 { font-size: clamp(2.5rem, 7vw, 4.5rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }

p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: var(--blue); }
a:hover { color: var(--pink); }

:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { width: min(100% - 2.5rem, 68rem); margin-inline: auto; }
.narrow { max-width: 42rem; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--yellow);
  color: var(--dark);
  border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

/* Wordmark: "Tech" in Merriweather, "Amigo" in Lobster Two */
.wordmark { text-decoration: none; font-size: 1.75rem; line-height: 1; margin: 0; }
.wordmark-tech { font-family: var(--font-body); font-weight: 700; color: #fff; }
.wordmark-amigo { font-family: var(--font-display); font-weight: 700; color: var(--yellow); margin-left: 0.15em; font-size: 1.15em; }

/* Logo badge in the header */
.logo-link { display: block; line-height: 0; }
.logo-badge { width: 4rem; height: 4rem; border-radius: 50%; background: #fff; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--blue);
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 0.85rem;
}
.nav-list { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.25rem; }
.nav-list a:not(.button) { color: #fff; text-decoration: none; font-size: 0.95rem; }
.nav-list a:not(.button):hover { color: var(--yellow); text-decoration: underline; }
.site-header :focus-visible { outline-color: var(--yellow); }

/* Buttons */
.button {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  background: var(--yellow);
  color: var(--dark);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--yellow);
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, background 0.15s ease;
}
.button:hover { background: #ffc85c; color: var(--dark); transform: translateY(-2px); }
.button-small { padding: 0.4rem 1.1rem; font-size: 0.95rem; box-shadow: none; }
.button-outline { background: transparent; color: var(--blue); border-color: var(--blue); box-shadow: none; }
.button-outline:hover { background: var(--blue); color: #fff; }
.button-yellow { font-size: 1.1rem; }

/* Hero */
.hero {
  padding-bottom: var(--space);
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 184, 51, 0.35), transparent 40%),
    var(--beige-light);
}
/* The photo already contains the Tech Amigo wordmark, so it is shown whole (no cropping). */
.hero-banner {
  width: 100%;
  aspect-ratio: 2816 / 1024;
  max-height: 80vh;
  background: var(--blue-dark) url("techamigo-home-bg-banner.webp") center top / cover no-repeat;
  border-bottom: 6px solid var(--yellow);
}
.hero-inner { padding-top: var(--space); }
.hero-text { max-width: 40rem; }
.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.2rem 0.9rem;
  background: var(--blue);
  color: #fff;
  font-size: 0.85rem;
  border-radius: 999px;
}
.accent { font-family: var(--font-display); font-weight: 700; font-size: 1.15em; color: var(--pink); }
.lead { font-size: 1.25rem; max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.75rem; }

/* Sections */
.section { padding-block: var(--space); }
.section-alt { background: var(--beige-light); }

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.card {
  padding: 1.5rem;
  background: #fff;
  border-top: 6px solid var(--yellow);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card:nth-child(even) { border-top-color: var(--blue); }
.card p { margin: 0; font-size: 0.95rem; }

/* Two-column layout */
.two-col { display: grid; gap: 2.5rem; }
@media (min-width: 52rem) {
  .two-col { grid-template-columns: 1.1fr 1fr; align-items: start; }
}

/* Checklist */
.checklist li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.9rem;
}
.checklist li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 1.3rem;
  height: 1.3rem;
  display: grid;
  place-items: center;
  background: var(--green);
  color: var(--dark);
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1;
  border-radius: 50%;
}

/* Tone card */
.tone-card {
  margin: 0;
  padding: 1.5rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.tone-card figcaption {
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--blue);
}
.tone-card blockquote {
  margin: 0 0 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
}
.tone-card blockquote:last-child { margin-bottom: 0; }
.tone-before { background: #f1f1f1; color: #5a5a5a; text-decoration: line-through; text-decoration-color: rgba(230, 0, 77, 0.5); }
.tone-after { background: var(--blue); color: #fff; font-weight: 700; }
.tone-label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}
.tone-after .tone-label { color: var(--yellow); }

/* Pills */
.pills { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.pills li {
  padding: 0.5rem 1.1rem;
  background: #fff;
  border: 2px solid var(--blue);
  border-radius: 999px;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.95rem;
}

/* Call to action */
.cta { background: var(--blue); text-align: center; }
.cta h2,
.cta p { color: #fff; }
.cta .narrow { margin-inline: auto; }

/* Footer */
.site-footer { padding-block: 2rem; background: var(--blue-dark); color: #fff; text-align: center; }
.site-footer p { margin: 0 0 0.5rem; }
.copyright { font-size: 0.85rem; opacity: 0.85; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
  .button:hover { transform: none; }
}
