/* Handyman Ollie — shared styles
   Palette: ink navy, warm bone, brass, warm taupe
   Type: Fraunces (display serif) + Inter (body/nav sans) */

:root {
  --olive-dark: #1F2A33;
  --olive: #1F2A33;
  --olive-light: #1F2A33;
  --taupe: #C9BFAE;
  --taupe-light: #C9BFAE;
  --cream: #F3EDE3;
  --ink: #1F2A33;
  --gold: #C08A34;

  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--olive-dark);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { max-width: 68ch; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Nav ---------- */

.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--taupe-light);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand img { height: 52px; width: auto; }

.brand-text {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--olive-dark);
  font-size: 1.1rem;
}

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

.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--olive-dark);
  border-bottom-color: var(--gold);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--olive-dark);
}

.nav-row {
  position: relative;
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--taupe-light);
    padding: 0.5rem 1.5rem 1rem;
    z-index: 30;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--taupe-light);
    width: 100%;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--cream);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media.placeholder {
  background: var(--taupe-light);
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  padding: 2rem;
  border: none;
  border-radius: 0;
}

.hero-overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  background: linear-gradient(180deg, rgba(31,42,51,0) 0%, rgba(31,42,51,0.75) 55%, rgba(31,42,51,0.94) 100%);
  padding: 6rem 1.5rem 3rem;
}

.hero-content, .hero-content * {
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-content > * { max-width: 620px; }

.hero h1 { color: var(--cream); }

.hero .eyebrow {
  font-family: var(--serif);
  font-style: italic;
  color: var(--cream);
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  display: inline-block;
  background: rgba(31, 42, 51, 0.55);
  padding: 0.35rem 1rem;
  border-radius: 999px;
}

.hero p {
  color: var(--taupe-light);
  font-size: 1.1rem;
}

.hero-actions {
  margin-top: 1.75rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .hero { min-height: 460px; }
  .hero-overlay { padding: 4rem 1.5rem 2.5rem; }
}

/* ---------- Trust strip ---------- */

.trust-strip {
  background: var(--cream);
  padding: 1.5rem 1.5rem;
  border-bottom: 1px solid var(--taupe-light);
}

.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--olive-dark);
}

.trust-item::before {
  content: '\2713';
  color: var(--gold);
  font-weight: 700;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  padding: 0.85rem 1.6rem;
  border-radius: 2px;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--gold);
  color: var(--olive-dark);
}

.btn-primary:hover { background: #d3a052; }

.btn-outline {
  border: 1px solid var(--taupe-light);
  color: var(--cream);
}

.btn-outline:hover { background: rgba(255,255,255,0.08); }

.btn-dark-outline {
  border: 1px solid var(--olive-dark);
  color: var(--olive-dark);
}

.btn-dark-outline:hover { background: var(--olive-dark); color: var(--cream); }

/* ---------- Page header banner (non-home pages) ---------- */

.page-banner {
  background: var(--taupe-light);
  padding: 3rem 1.5rem;
  text-align: left;
}

.page-banner p {
  color: var(--olive);
  font-size: 1.05rem;
}

.page-banner-photo {
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 5rem 1.5rem;
}

.page-banner-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(31, 42, 51, 0.6);
}

.page-banner-photo .container {
  position: relative;
  z-index: 1;
}

.page-banner-photo h1 { color: var(--cream); }

.page-banner-photo p {
  color: var(--taupe-light);
}

/* ---------- Staff area ---------- */

.staff-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.staff-card {
  background: var(--cream);
  border: 1px solid var(--taupe-light);
  padding: 2rem;
  border-radius: 3px;
  margin-bottom: 2rem;
}

.staff-photo-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--taupe-light);
}

.staff-photo-row img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}

.staff-photo-row form { margin-left: auto; }

.staff-error {
  color: #a83232;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* ---------- Sections ---------- */

.photo-band {
  width: 100%;
  height: 340px;
  overflow: hidden;
}

.photo-band-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 720px) {
  .photo-band { height: 220px; }
}

.section {
  padding: 4rem 1.5rem;
}

.section-alt {
  background: var(--taupe-light);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 820px) {
  .two-col { grid-template-columns: 1fr; }
}

/* ---------- Placeholder blocks (stand-in for real photos) ---------- */

.placeholder {
  background: repeating-linear-gradient(
    45deg,
    var(--taupe-light),
    var(--taupe-light) 10px,
    #b3a891 10px,
    #b3a891 20px
  );
  border: 1px dashed var(--taupe);
  color: var(--olive);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 1rem;
  min-height: 220px;
  border-radius: 2px;
}

.placeholder.tall { min-height: 340px; }
.placeholder.square { aspect-ratio: 1 / 1; min-height: 0; }

/* ---------- Gallery grid ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.gallery-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}

.recent-work-photo {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}

@media (max-width: 820px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ---------- Snapshot strip (home) ---------- */

.snapshot-strip {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1.25rem;
}

.snapshot-strip > *:first-child {
  grid-row: 1 / span 2;
}

@media (max-width: 820px) {
  .snapshot-strip {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .snapshot-strip > *:first-child {
    grid-row: auto;
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .snapshot-strip { grid-template-columns: 1fr; }
  .snapshot-strip > *:first-child { grid-column: auto; }
}

/* ---------- Service cards ---------- */

.service-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

@media (max-width: 820px) {
  .service-columns { grid-template-columns: 1fr; }
}

.service-card {
  background: var(--cream);
  border: 1px solid var(--taupe-light);
  padding: 2rem;
  border-radius: 3px;
}

.service-card.out-of-scope {
  background: var(--taupe-light);
  border-color: var(--taupe);
}

.service-card h3 {
  color: var(--olive-dark);
  margin-bottom: 1rem;
}

.service-card ul {
  padding-left: 1.1rem;
  margin: 0;
}

.service-card li { margin-bottom: 0.6rem; }

/* ---------- Testimonial ---------- */

.testimonial {
  background: var(--olive-light);
  color: var(--cream);
  padding: 3rem;
  border-radius: 3px;
  margin-top: 3rem;
}

.testimonial p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--cream);
  max-width: 60ch;
}

.testimonial .stars {
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}

.testimonial cite {
  display: block;
  margin-top: 1.25rem;
  font-style: normal;
  font-weight: 600;
  color: var(--taupe-light);
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-detail {
  margin-bottom: 1.5rem;
}

.contact-detail .label {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--taupe);
  display: block;
  margin-bottom: 0.25rem;
}

.contact-detail .value {
  font-size: 1.15rem;
  font-family: var(--serif);
  color: var(--olive-dark);
}

.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
  padding: 0;
  list-style: none;
}

.area-tags li {
  background: var(--cream);
  border: 1px solid var(--taupe);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--olive-dark);
}

form.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--olive-dark);
  margin-bottom: 0.35rem;
  display: block;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--taupe);
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 0.95rem;
  background: var(--cream);
}

.contact-form textarea { min-height: 130px; resize: vertical; }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--taupe-light);
  padding: 3.5rem 1.5rem;
  text-align: left;
}

.cta-heading {
  font-size: clamp(1.9rem, 4.2vw, 2.8rem);
  font-weight: 600;
}

.cta-band-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--olive-light);
  color: var(--taupe-light);
  padding: 3rem 1.5rem 2rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; }
}

.footer-inner h3 {
  color: var(--cream);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.footer-inner a {
  color: var(--taupe-light);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-inner a:hover { color: var(--gold); }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.footer-brand img { height: 220px; }

.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.8rem;
  color: var(--taupe);
}

/* ---------- Placeholder content marker ---------- */

.needs-content {
  outline: 1px dashed var(--gold);
  outline-offset: 4px;
}
