/* Perrys Painting & Construction – static site. Colors taken from the logo. */
:root {
  --navy: #1f3a6b;
  --navy-dark: #142849;
  --sky: #8ccbee;
  --sky-light: #eaf6fc;
  --teal: #1fa39a;
  --pink: #e6327a;
  --ink: #23303f;
  --muted: #5b6878;
  --line: #e3e9ef;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 40, 73, .12);
  --round: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", "Arial Rounded MT Bold", "Nunito", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: #fff; color: var(--ink);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--navy); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--round); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.eyebrow { display: inline-block; margin-bottom: 10px; color: var(--teal); font-weight: 700; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }
.section { padding: 88px 0; }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-pink { background: var(--pink); color: #fff; }
.btn-pink:hover { background: #cc2468; }
.btn-light { border-color: rgba(255,255,255,.85); color: #fff; }
.btn-light:hover { background: #fff; color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.logo img { width: 170px; }
.menu { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.menu a {
  display: block; padding: 8px 14px; border-radius: 999px;
  color: var(--ink); font-weight: 600; font-size: 16px; text-decoration: none;
}
.menu a:hover { background: var(--sky-light); color: var(--navy); }
.menu a[aria-current="page"] { color: var(--pink); }
.menu .cta a { background: var(--pink); color: #fff; margin-left: 6px; }
.menu .cta a:hover { background: #cc2468; color: #fff; }
.menu-toggle { display: none; }

/* Hero */
.hero { position: relative; min-height: 600px; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(20,40,73,.88) 0%, rgba(20,40,73,.6) 45%, rgba(20,40,73,.1) 100%);
}
.hero .wrap { position: relative; z-index: 2; width: 100%; }
.hero-text { max-width: 600px; }
.hero h1 { color: #fff; font-size: clamp(38px, 6vw, 64px); margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--sky); }
.hero p { font-size: 20px; opacity: .92; margin-bottom: 30px; }
.hero .eyebrow { color: var(--sky); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 2; width: 100%; height: 60px; }

/* Page hero (inner pages) */
.page-hero { background: linear-gradient(135deg, var(--navy) 0%, #2b5aa0 60%, var(--teal) 140%); color: #fff; padding: 72px 0 96px; position: relative; text-align: center; }
.page-hero h1 { color: #fff; font-size: clamp(36px, 5vw, 54px); margin: 0 0 8px; }
.page-hero p { margin: 0 auto; max-width: 560px; opacity: .9; font-size: 19px; }
.page-hero .eyebrow { color: var(--sky); }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: 0 2px 0 rgba(20,40,73,.03);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; }
.icon {
  width: 58px; height: 58px; border-radius: 16px; margin-bottom: 20px;
  display: grid; place-items: center; background: var(--sky-light); color: var(--navy);
}
.card:nth-child(2) .icon { background: #e4f6f4; color: var(--teal); }
.card:nth-child(3) .icon { background: #fdeaf2; color: var(--pink); }
.icon svg { width: 30px; height: 30px; }

/* Work tiles */
.tinted { background: var(--sky-light); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 5 / 3.4; color: #fff; text-decoration: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile:hover img { transform: scale(1.06); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(20,40,73,.85)); }
.tile-text { position: absolute; left: 28px; right: 28px; bottom: 24px; z-index: 1; }
.tile-text h3 { color: #fff; font-size: 30px; margin: 0 0 4px; }
.tile-text span { font-weight: 600; opacity: .9; }
.tile-text span::after { content: " →"; }

/* About teaser / about page */
.split { display: grid; grid-template-columns: 5fr 6fr; gap: 64px; align-items: center; }
.photo-frame { margin: 0 22px 0 0; }
.photo-frame img { border-radius: var(--radius); box-shadow: 22px 22px 0 rgba(140, 203, 238, .45), var(--shadow); }
.photo-frame figcaption { margin-top: 38px; text-align: center; color: var(--muted); font-size: 15px; }
.split p { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 0 0 28px; }
.checks li { position: relative; padding-left: 32px; margin-bottom: 10px; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--teal); font-weight: 800; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery button { padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: var(--line); aspect-ratio: 2 / 1.3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery button:hover img { transform: scale(1.05); }
.gallery button:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.lightbox { padding: 0; border: 0; background: transparent; max-width: 92vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(10,20,36,.88); }
.lightbox img { max-width: 92vw; max-height: 84vh; border-radius: 10px; }
.lightbox .lb-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--navy); font-size: 28px; cursor: pointer; }
.lightbox .lb-prev { left: 20px; }
.lightbox .lb-next { right: 20px; }
.lightbox .lb-close { position: fixed; top: 18px; right: 20px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--navy); font-size: 24px; cursor: pointer; }

/* Contact band */
.contact-band { background: linear-gradient(120deg, var(--teal), #2b8fd0); color: #fff; padding: 72px 0; text-align: center; }
.contact-band h2 { color: #fff; }
.contact-band p { opacity: .92; font-size: 19px; max-width: 560px; margin: 0 auto 28px; }
.contact-band .hero-actions { justify-content: center; }
.btn-white { background: #fff; color: var(--navy); }

/* Contact page */
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 820px; margin: 0 auto; }
.contact-cards .card { text-align: center; }
.contact-cards .icon { margin: 0 auto 18px; }
.contact-cards a.big { font-size: 19px; font-weight: 700; word-break: break-all; }

/* Footer */
footer { background: var(--navy-dark); color: rgba(255,255,255,.75); padding: 48px 0 28px; font-size: 15px; }
footer a { color: #fff; text-decoration: none; }
footer a:hover { color: var(--sky); }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.foot-logo { background: #fff; border-radius: 12px; padding: 10px 14px; display: inline-block; margin-bottom: 14px; }
.foot-logo img { width: 150px; }
footer h4 { color: #fff; margin: 0 0 10px; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 6px; }
.copy { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 18px; font-size: 14px; }

@media (max-width: 900px) {
  .services, .tiles, .split, .contact-cards, .foot { grid-template-columns: 1fr; }
  .split { gap: 48px; }
  .photo-frame { max-width: 420px; margin: 0 auto; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .section { padding: 64px 0; }
}
@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px;
    background: #fff; color: var(--navy); font-size: 22px; cursor: pointer;
  }
  .site-header nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); display: none; }
  .site-header nav.open { display: block; }
  .menu { flex-direction: column; align-items: stretch; padding: 10px 16px 18px; }
  .menu a { padding: 12px 14px; }
  .menu .cta a { margin: 6px 0 0; text-align: center; }
  .logo img { width: 140px; }
  .hero { min-height: 540px; }
  .hero::before { background: linear-gradient(180deg, rgba(20,40,73,.55), rgba(20,40,73,.88)); }
  .gallery { grid-template-columns: 1fr; }
  .gallery button:first-child { grid-column: auto; grid-row: auto; aspect-ratio: 2 / 1.3; }
}
