/* Jack's Odd Jobs — flyer-inspired stylesheet
   Palette: navy, workwear gold, warm off-white, charcoal.
   Designed for semantic HTML: header, nav, main, section, article, aside, footer.
*/

:root {
  --navy: #061f3d;
  --navy-2: #0b2d55;
  --gold: #e3a313;
  --gold-2: #f0b323;
  --paper: #f7f1e6;
  --paper-2: #fffaf0;
  --ink: #111827;
  --muted: #596579;
  --line: rgba(6, 31, 61, 0.18);
  --white: #ffffff;

  --max-width: 1120px;
  --radius: 18px;
  --shadow: 0 18px 45px rgba(6, 31, 61, 0.16);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 15%, rgba(227, 163, 19, 0.12), transparent 28rem),
    linear-gradient(135deg, var(--paper-2), var(--paper));
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(90deg, rgba(6,31,61,0.06) 1px, transparent 1px),
    linear-gradient(rgba(6,31,61,0.05) 1px, transparent 1px);
  background-size: 42px 42px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

.container,
header > div,
main,
footer > div {
  width: min(var(--max-width), calc(100% - 2rem));
  margin-inline: auto;
}

/* Header / hero */

header {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(6, 31, 61, 0.96), rgba(6, 31, 61, 0.86)),
    url("tools-hero.jpg");
  background-size: cover;
  background-position: center;
  border-bottom: 8px solid var(--gold);
}

header::after {
  content: "";
  position: absolute;
  right: -8rem;
  top: -10rem;
  width: 28rem;
  height: 28rem;
  border: 2.5rem solid rgba(227, 163, 19, 0.18);
  border-radius: 50%;
}

header > div {
  position: relative;
  z-index: 1;
  padding: 3.5rem 0 4rem;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

nav a {
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

nav a:hover,
nav a:focus-visible {
  color: var(--gold-2);
}

.logo,
header h1 {
  margin: 0;
  font-size: clamp(3rem, 9vw, 6.8rem);
  line-height: 0.9;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: -0.06em;
}

.logo span,
header h1 span {
  color: var(--gold-2);
}

header p {
  max-width: 43rem;
  margin: 1.25rem 0 0;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 700;
}

.tagline {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-top: 1.5rem;
  color: var(--navy);
  background: var(--gold);
  padding: 0.65rem 1rem;
  border-radius: 999px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.16);
}

.tagline span:not(:last-child)::after {
  content: "•";
  margin-left: 0.65rem;
  color: var(--white);
}

/* Buttons */

.button,
a[href^="tel:"],
a[href^="mailto:"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.9rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  color: var(--navy);
  background: var(--gold);
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 5px 0 rgba(6, 31, 61, 0.25);
}

.button:hover,
a[href^="tel:"]:hover,
a[href^="mailto:"]:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.button.secondary {
  color: var(--white);
  background: var(--navy);
}

/* Main layout */

main {
  padding: 3rem 0;
}

section {
  margin: 0 0 3rem;
}

section > h2,
article > h2,
aside > h2 {
  position: relative;
  display: inline-block;
  margin: 0 0 1.25rem;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: -0.04em;
}

section > h2::after,
article > h2::after,
aside > h2::after {
  content: "";
  display: block;
  height: 0.35rem;
  margin-top: 0.35rem;
  background: var(--gold);
  border-radius: 999px;
}

.lead {
  max-width: 62rem;
  font-size: 1.18rem;
  font-weight: 650;
  color: var(--navy);
}

/* Cards and service lists */

.card,
article,
aside {
  background: rgba(255, 250, 240, 0.86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card,
article,
aside {
  padding: clamp(1.2rem, 3vw, 2rem);
}

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.9rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}

.services li {
  position: relative;
  padding: 0.95rem 1rem 0.95rem 3rem;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-weight: 850;
}

.services li::before {
  content: "✓";
  position: absolute;
  left: 0.95rem;
  top: 0.72rem;
  width: 1.45rem;
  height: 1.45rem;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: var(--gold);
  border-radius: 50%;
  font-size: 0.95rem;
  font-weight: 950;
}

/* Alternating feature bands */

.band {
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  border-left: 10px solid var(--gold);
}

.band h2,
.band h3,
.band p {
  color: var(--white);
}

.band h2::after {
  background: var(--gold);
}

/* Callout, similar to “No job is too small” */

.callout {
  position: relative;
  overflow: hidden;
  text-align: center;
  color: var(--white);
  background:
    radial-gradient(circle at center, rgba(227, 163, 19, 0.18), transparent 14rem),
    var(--navy);
  border: 0.55rem solid var(--white);
  outline: 0.25rem solid var(--navy);
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  width: min(18rem, 100%);
  display: grid;
  place-items: center;
  margin-inline: auto;
  box-shadow: var(--shadow);
}

.callout strong {
  display: block;
  font-size: clamp(2.2rem, 7vw, 4rem);
  line-height: 0.9;
  font-weight: 950;
  text-transform: uppercase;
}

.callout span {
  display: block;
  margin-top: 0.4rem;
  color: var(--gold-2);
  font-size: clamp(1rem, 3vw, 1.4rem);
  font-weight: 950;
  text-transform: uppercase;
}

/* Contact section */

.contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), #031326);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow);
}

.contact h2 {
  color: var(--white);
}

.contact h2::after {
  background: var(--gold);
}

.contact p {
  margin: 0.4rem 0;
}

.contact .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1rem;
}

.contact a[href^="mailto:"] {
  text-transform: none;
  letter-spacing: normal;
}

/* Footer */

footer {
  color: var(--white);
  background: var(--navy);
  border-top: 6px solid var(--gold);
}

footer > div {
  padding: 1.4rem 0;
  text-align: center;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

footer span {
  color: var(--gold-2);
}

/* Simple responsive split layout */

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 760px) {
  .split {
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  }

  .contact {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}

@media (max-width: 640px) {
  nav {
    align-items: flex-start;
    flex-direction: column;
  }

  nav ul {
    font-size: 0.92rem;
  }

  header > div {
    padding-block: 2rem 3rem;
  }

  .tagline {
    border-radius: 14px;
  }

  .button,
  a[href^="tel:"],
  a[href^="mailto:"] {
    width: 100%;
  }
}

/* Accessibility */

:focus-visible {
  outline: 4px solid var(--gold-2);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.contact-form {
  display: grid;
  gap: 1rem;
  color: var(--navy);
  background: var(--paper-2);
  border-radius: var(--radius);
  padding: clamp(1rem, 3vw, 1.5rem);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.form-row {
  display: grid;
  gap: 0.35rem;
}

.contact-form label {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 2px solid rgba(6, 31, 61, 0.2);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
  outline: 3px solid rgba(227, 163, 19, 0.28);
}

.contact-form small {
  color: var(--muted);
  font-weight: 650;
}

.form-status {
  margin: 0;
  font-weight: 850;
}

.form-status.success {
  color: #116329;
}

.form-status.error {
  color: #9f1239;
}

.honeypot {
  position: absolute;
  left: -9999px;
}
