/* MyPainter — Richo Petersen */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--dark);
  background: var(--cream);
}

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

ul {
  list-style: none;
}

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

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

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

:root {
  --navy: #0f3a5f;
  --orange: #e8833a;
  --cream: #faf6f0;
  --dark: #1a1a1a;
  --grey: #555;
  --light: #f5efe3;
  --white: #ffffff;
  --space-sm: 0.75rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --radius: 10px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(250, 246, 240, 0.95);
  border-bottom: 1px solid rgba(15, 58, 95, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.logo {
  font-weight: 800;
  font-size: clamp(1.15rem, 3vw, 1.35rem);
  letter-spacing: 0.04em;
  color: var(--navy);
  text-decoration: none;
}

.logo:hover {
  color: var(--orange);
}

/* Mobile nav — checkbox */
.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-toggle:focus-visible + .nav-hamburger {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.nav-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
  color: var(--navy);
  font-size: 1.5rem;
  line-height: 1;
  border-radius: 6px;
  border: 2px solid var(--navy);
  background: var(--white);
  user-select: none;
}

.nav-hamburger:hover {
  background: var(--light);
}

header nav {
  display: none;
  width: 100%;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 0 0.5rem;
}

header nav a {
  color: var(--navy);
  font-weight: 600;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(15, 58, 95, 0.1);
}

header nav a:last-child {
  border-bottom: none;
  margin-top: 0.25rem;
}

.nav-toggle:checked ~ nav {
  display: flex;
}

@media (min-width: 768px) {
  .nav-hamburger {
    display: none;
  }

  header nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    gap: 1.25rem;
    padding: 0;
  }

  header nav a {
    border-bottom: none;
    padding: 0;
    margin-top: 0;
  }

  .nav-toggle:checked ~ nav {
    display: flex;
  }
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.9rem 1.8rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-cta {
  background: var(--orange);
  color: var(--white);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 131, 58, 0.35);
  color: var(--white);
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 131, 58, 0.35);
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-hover);
}

header nav .btn-cta {
  padding: 0.65rem 1.25rem;
  font-size: 0.95rem;
}

/* Hero */
.hero {
  padding: clamp(3rem, 10vh, 8rem) 1rem;
  background: var(--cream);
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 2.85rem);
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 1rem;
}

.hero .subhead {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: var(--grey);
  margin-bottom: 1.75rem;
  max-width: 36ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-image,
.placeholder-block {
  background: var(--light);
  border: 2px dashed rgba(15, 58, 95, 0.2);
  border-radius: var(--radius);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey);
  font-weight: 600;
  text-align: center;
  padding: 2rem;
}

.hero-image--photo {
  padding: 0;
  border: none;
  background: var(--light);
  display: block;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  min-height: 220px;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

@media (min-width: 1024px) {
  .hero-image,
  .placeholder-block {
    min-height: 320px;
  }

  .hero-img {
    min-height: 320px;
  }
}

/* Trust strip */
.trust-strip {
  background: var(--navy);
  color: var(--cream);
  padding: 1rem 1rem;
  display: flex;
  gap: 1.25rem 2rem;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.95rem;
  font-weight: 600;
}

.trust-strip span {
  white-space: nowrap;
}

/* Sections */
.section {
  padding: var(--space-xl) 0;
}

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

.section-cream {
  background: var(--cream);
}

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

.section h2 {
  font-size: clamp(1.65rem, 3.5vw, 2rem);
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.section-intro {
  max-width: 65ch;
  color: var(--grey);
  margin-bottom: 2rem;
}

/* Grids */
.grid-services {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-services {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-services {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-why {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-why {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-why {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

a.card {
  color: inherit;
  text-decoration: none;
}

a.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  color: inherit;
}

.card-img {
  width: calc(100% + 4rem);
  max-width: none;
  margin: -2rem -2rem 1rem -2rem;
  height: 200px;
  object-fit: cover;
}

@media (min-width: 768px) {
  .card-img {
    height: 220px;
  }
}

.card h3 {
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--grey);
  flex-grow: 1;
}

.card .card-icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.why-item {
  text-align: center;
  padding: 1.5rem;
}

.why-item .emoji {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}

.why-item h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.why-item p {
  color: var(--grey);
  font-size: 0.95rem;
}

/* Service area */
.service-area-box {
  max-width: 70ch;
}

.service-area-box p + p {
  margin-top: 1rem;
}

/* CTA band */
.cta-band {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) 1rem;
}

.cta-band p.lead {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.cta-band .hero-ctas {
  justify-content: center;
}

.cta-band .btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.cta-band .btn-secondary:hover {
  background: var(--white);
  color: var(--navy);
}

/* Painting alternating sections */
.painting-block {
  padding: var(--space-lg) 0;
}

.painting-block:nth-child(odd) {
  background: var(--cream);
}

.painting-block:nth-child(even) {
  background: var(--white);
}

.painting-row {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 768px) {
  .painting-row {
    grid-template-columns: 1fr 1fr;
  }

  .painting-row.reverse .painting-text {
    order: 2;
  }

  .painting-row.reverse .painting-img-wrap {
    order: 1;
  }
}

.painting-text h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  color: var(--navy);
  margin-bottom: 1rem;
}

.painting-text ul {
  list-style: disc;
  padding-left: 1.25rem;
  color: var(--grey);
}

.painting-text li + li {
  margin-top: 0.5rem;
}

.painting-img-wrap .placeholder-block {
  min-height: 200px;
  aspect-ratio: 4 / 3;
}

.painting-img-wrap img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Handyman categories */
.handyman-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .handyman-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .handyman-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.handyman-card h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--orange);
}

.handyman-card ul {
  list-style: disc;
  padding-left: 1.25rem;
  color: var(--grey);
}

.handyman-card li + li {
  margin-top: 0.4rem;
}

.tagline-big {
  text-align: center;
  padding: var(--space-xl) 1rem;
  background: var(--cream);
}

.tagline-big p {
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 700;
  color: var(--navy);
  max-width: 32ch;
  margin: 0 auto;
  line-height: 1.35;
}

/* Gallery */
.gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

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

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-item {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0;
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(
    to top,
    rgba(15, 58, 95, 0.92),
    rgba(15, 58, 95, 0.5),
    transparent
  );
  color: var(--cream);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.35;
  text-align: center;
}

.gallery-note {
  text-align: center;
  margin-top: 2.5rem;
}

.gallery-note p {
  margin-bottom: 1.25rem;
  color: var(--grey);
}

/* About */
.about-prose {
  max-width: 700px;
  margin: 0 auto;
  color: var(--grey);
}

.about-prose p + p {
  margin-top: 1.25rem;
}

.about-prose .signoff {
  margin-top: 2rem;
  font-weight: 600;
  color: var(--navy);
}

.about-hero-photo {
  padding: 0;
  border: none;
  background: transparent;
  display: block;
  overflow: hidden;
}

.about-hero-img {
  width: 100%;
  min-height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
}

@media (min-width: 1024px) {
  .about-hero-img {
    min-height: 320px;
  }
}

.about-figure {
  margin: 2rem 0;
}

.about-photo {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.facts-strip {
  background: var(--navy);
  color: var(--cream);
  padding: 1.25rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

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

.contact-details h2 {
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.contact-details p,
.contact-details a {
  font-size: 1.1rem;
  margin-bottom: 0.85rem;
  color: var(--dark);
}

.contact-details a {
  font-weight: 600;
}

.contact-details .area-note {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(15, 58, 95, 0.15);
  font-size: 1rem;
  color: var(--grey);
}

.form-success {
  background: #e8f5e9;
  border: 1px solid #2e7d32;
  color: #1b5e20;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.contact-form-wrap label {
  display: block;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.contact-form-wrap input,
.contact-form-wrap select,
.contact-form-wrap textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(15, 58, 95, 0.2);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 1.1rem;
  background: var(--white);
}

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

.contact-form-wrap button[type="submit"] {
  width: 100%;
  margin-top: 0.5rem;
}

.form-footnote {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--grey);
}

/* Footer */
footer {
  background: var(--navy);
  color: var(--cream);
  padding: 3rem 0 0;
}

footer a {
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 2px;
}

footer a:hover {
  color: var(--orange);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-grid h4 {
  font-size: 1rem;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  color: var(--white);
}

.footer-grid p,
.footer-grid li {
  font-size: 0.95rem;
  line-height: 1.55;
  opacity: 0.95;
}

.footer-grid ul li + li {
  margin-top: 0.35rem;
}

.footer-bottom {
  border-top: 1px solid rgba(250, 246, 240, 0.2);
  padding: 1.25rem 1rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* Print */
@media print {
  header,
  footer,
  .nav-hamburger,
  .trust-strip,
  .cta-band,
  .facts-strip {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  a {
    color: black;
    text-decoration: underline;
  }
}
