/* Pepo Build — mobile-first contractor marketing site */

:root {
  --navy: #0f2744;
  --navy-deep: #0a1a2e;
  --steel: #1e3a5f;
  --amber: #e8a317;
  --amber-hover: #d4920f;
  --amber-ink: #1a1408;
  --cream: #f7f4ef;
  --white: #ffffff;
  --slate: #4a5568;
  --muted: #6b7280;
  --line: #d9e0ea;
  --card: #ffffff;
  --shadow: 0 8px 24px rgba(15, 39, 68, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --max: 1100px;
  --header-h: 64px;
  --mobile-bar-h: 64px;
  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--navy);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--mobile-bar-h);
}

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

a {
  color: var(--steel);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

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

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--navy);
  color: var(--white);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 39, 68, 0.97);
  backdrop-filter: blur(8px);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
}

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

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--amber);
  color: var(--amber-ink);
  font-weight: 800;
  font-size: 1.1rem;
}

.logo-mark.small {
  width: 32px;
  height: 32px;
  font-size: 1rem;
}

.logo-text {
  font-size: 1.15rem;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: var(--header-h);
  background: var(--navy-deep);
  padding: 1rem 1rem 1.25rem;
  flex-direction: column;
  gap: 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-nav.is-open {
  display: flex;
}

.site-nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.site-nav .nav-cta {
  margin-top: 0.5rem;
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: inherit;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  line-height: 1.2;
  text-align: center;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.95rem 1.4rem;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--amber);
  color: var(--amber-ink);
  border-color: var(--amber);
}

.btn-primary:hover {
  background: var(--amber-hover);
  border-color: var(--amber-hover);
  color: var(--amber-ink);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.section .btn-secondary,
.contact-form ~ .btn-secondary,
.about-copy .btn-secondary,
.footer-cta .btn-secondary {
  color: var(--navy);
  border-color: var(--navy);
  background: var(--white);
}

.section .btn-secondary:hover,
.about-copy .btn-secondary:hover,
.footer-cta .btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.section-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}

/* Hero */
.hero {
  background:
    linear-gradient(145deg, rgba(10, 26, 46, 0.94) 0%, rgba(30, 58, 95, 0.88) 55%, rgba(15, 39, 68, 0.92) 100%),
    radial-gradient(ellipse at 80% 20%, rgba(232, 163, 23, 0.25), transparent 50%),
    var(--navy);
  color: var(--white);
  padding: 3.25rem 0 3.75rem;
}

.hero-inner {
  max-width: 40rem;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.85rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(232, 163, 23, 0.18);
  color: var(--amber);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 6vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.hero-lead {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 36rem;
}

.hero .cta-row {
  margin-bottom: 1.15rem;
}

.hero-phone {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
}

.hero-phone a {
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.hero-phone a:hover {
  color: var(--amber);
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

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

.section-head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 2rem;
}

.section-head.left {
  text-align: left;
  margin-left: 0;
}

.section-head h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.6rem, 4vw, 2rem);
  letter-spacing: -0.02em;
  font-weight: 800;
}

.section-head p {
  margin: 0;
  color: var(--slate);
}

.section-head a {
  font-weight: 600;
}

/* Services */
.service-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem;
  box-shadow: 0 2px 8px rgba(15, 39, 68, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

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

.service-card:hover {
  border-color: #c5d0de;
  box-shadow: var(--shadow);
}

.service-icon {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.service-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.service-card p {
  margin: 0;
  color: var(--slate);
  font-size: 0.95rem;
}

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

.portfolio-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(15, 39, 68, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #c5d0de;
}


.portfolio-placeholder {
  aspect-ratio: 16 / 10;
  background:
    repeating-linear-gradient(
      -45deg,
      #e8edf3,
      #e8edf3 12px,
      #dde4ee 12px,
      #dde4ee 24px
    );
  position: relative;
}

.portfolio-placeholder::after {
  content: "Photos coming soon";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--steel);
  background: rgba(247, 244, 239, 0.55);
  font-size: 0.95rem;
}

.portfolio-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--navy-deep);
}

.portfolio-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

.portfolio-card:hover .portfolio-media img {
  transform: scale(1.04);
}

.portfolio-body {
  padding: 1rem 1.15rem 1.25rem;
}

.portfolio-tag {
  display: inline-block;
  margin: 0 0 0.45rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(232, 163, 23, 0.16);
  color: var(--amber-hover);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.portfolio-body h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.portfolio-body p:not(.portfolio-tag) {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* About */
.about-grid {
  display: grid;
  gap: 1.75rem;
}

.about-copy p {
  color: var(--slate);
  margin: 0 0 1rem;
  max-width: 38rem;
}

.about-copy .cta-row {
  margin-top: 0.5rem;
}

.about-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow);
}

.about-card h3 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

.about-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.about-card li {
  display: grid;
  gap: 0.15rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.98rem;
}

.about-card li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.about-card strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--amber);
  font-weight: 700;
}

.about-card a {
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}

.about-card a:hover {
  color: var(--amber);
}

/* Contact form */
.contact-wrap {
  max-width: 32rem;
}

.contact-form {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  box-shadow: 0 4px 16px rgba(15, 39, 68, 0.06);
}

.form-row {
  margin-bottom: 1.1rem;
}

.form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.optional {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.85rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  font: inherit;
  color: var(--navy);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  appearance: none;
}

.form-row select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.5rem;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(232, 163, 23, 0.25);
}

.form-row textarea {
  resize: vertical;
  min-height: 110px;
}

.form-hint {
  margin: 0 0 1rem;
  color: #b42318;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-alt {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--slate);
}

.form-alt a {
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
}

.form-alt a:hover {
  color: var(--amber-hover);
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.8);
  padding: 2.5rem 0 2rem;
}

.footer-inner {
  display: grid;
  gap: 1.25rem;
  text-align: center;
  justify-items: center;
}

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

.footer-brand strong {
  display: block;
  color: var(--white);
  font-size: 1.05rem;
}

.footer-brand p {
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
}

.footer-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.footer-cta .btn-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
  background: transparent;
}

.footer-cta .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.footer-meta {
  margin: 0;
  font-size: 0.95rem;
}

.footer-meta a {
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.footer-meta a:hover {
  color: var(--amber);
}

.footer-copy {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Sticky mobile CTA bar */
.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
  background: rgba(15, 39, 68, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.2);
}

.mobile-bar .btn {
  flex: 1;
}

.mobile-bar .btn-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

/* Tablet+ */
@media (min-width: 640px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-form {
    padding: 1.75rem 1.5rem;
  }
}

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

  .site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
    background: transparent;
    padding: 0;
    border: 0;
  }

  .site-nav a {
    padding: 0.45rem 0.7rem;
    font-size: 0.95rem;
  }

  .site-nav .nav-cta {
    margin-top: 0;
    margin-left: 0.4rem;
  }

  .hero {
    padding: 4.5rem 0 5rem;
  }

  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-grid {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
    gap: 2.5rem;
  }

  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .mobile-bar {
    display: none;
  }

  body {
    padding-bottom: 0;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
    text-align: left;
    justify-items: stretch;
    align-items: center;
  }

  .footer-cta {
    justify-content: flex-end;
  }

  .footer-meta,
  .footer-copy {
    grid-column: 1 / -1;
  }
}

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

  /* Last row of 11 cards: center the remaining 3 conceptually by spanning — keep simple 3+3+3+2 */
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
