/*
Theme Name: KN Tops
Theme URI: https://kntops.com
Author: KN Tops
Description: Lightweight portfolio theme for KN Tops residential and commercial countertop projects.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: kntops
*/

:root {
  --ink: #171918;
  --muted: #656a67;
  --paper: #f4f2ed;
  --white: #fff;
  --stone: #d6d0c6;
  --accent: #8d6b42;
  --line: rgba(23, 25, 24, .14);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 242, 237, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: .12em; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; color: var(--white); background: var(--ink); font-size: 12px; letter-spacing: 0; }
.menu { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; font-size: 14px; }
.menu a:hover, .menu a:focus-visible { color: var(--accent); }
.menu-toggle { display: none; border: 1px solid var(--line); background: transparent; padding: 9px 12px; font: inherit; }

.hero { min-height: 72vh; display: grid; align-items: end; padding: 92px 0 72px; background: linear-gradient(135deg, #e8e3da 0%, #f5f3ef 58%, #d8d1c6 100%); }
.eyebrow { margin: 0 0 16px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.hero h1 { max-width: 920px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(52px, 8vw, 108px); font-weight: 400; line-height: .96; letter-spacing: -.045em; }
.hero-copy { max-width: 690px; margin: 30px 0 0; color: var(--muted); font-size: clamp(18px, 2vw, 23px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 0 22px; background: var(--ink); color: var(--white); border: 1px solid var(--ink); font-size: 13px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.button.secondary { background: transparent; color: var(--ink); }
.button:hover, .button:focus-visible { background: var(--accent); border-color: var(--accent); color: var(--white); }

.section { padding: 92px 0; border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 1fr 2fr; gap: 30px; align-items: start; margin-bottom: 44px; }
.section h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(38px, 5vw, 66px); font-weight: 400; line-height: 1.04; letter-spacing: -.035em; }
.section-intro { max-width: 700px; margin: 8px 0 0; color: var(--muted); font-size: 18px; }
.services { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.service { padding: 30px 28px 30px 0; border-bottom: 1px solid var(--line); }
.service + .service { padding-left: 28px; border-left: 1px solid var(--line); }
.service span { color: var(--accent); font-size: 12px; font-weight: 800; }
.service h3 { margin: 50px 0 10px; font-size: 23px; }
.service p { margin: 0; color: var(--muted); }

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-card { background: var(--white); border: 1px solid var(--line); transition: transform .2s ease; }
.project-card:hover { transform: translateY(-4px); }
.project-media { aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(145deg, #d8d2c8, #eeeae3); }
.project-media img { height: 100%; object-fit: cover; }
.project-placeholder { height: 100%; display: grid; place-items: center; color: rgba(23,25,24,.42); font-family: Georgia, serif; font-size: 23px; }
.project-body { padding: 20px; }
.project-body h3 { margin: 0; font-size: 19px; }
.project-body p { margin: 7px 0 0; color: var(--muted); font-size: 14px; }
.empty-projects { grid-column: 1 / -1; padding: 48px; text-align: center; color: var(--muted); border: 1px dashed var(--line); background: rgba(255,255,255,.45); }
.portfolio-group + .portfolio-group { margin-top: 58px; }
.portfolio-label { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 20px; }
.portfolio-label h3 { margin: 0; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; }

.story { display: grid; grid-template-columns: 1.15fr .85fr; gap: 7vw; align-items: start; }
.story-copy { color: var(--muted); font-size: 18px; }
.story-copy p:first-child { margin-top: 0; }
.proof { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.proof-item { padding: 24px; background: var(--paper); }
.proof-item strong { display: block; font-family: Georgia, serif; font-size: 28px; font-weight: 400; }
.proof-item span { color: var(--muted); font-size: 13px; }

.contact { background: var(--ink); color: var(--white); }
.contact .section-head { margin-bottom: 34px; }
.contact .eyebrow, .contact a:hover { color: #d5b183; }
.contact .section-intro { color: rgba(255,255,255,.68); }
.contact-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.18); }
.contact-item { min-height: 140px; padding: 26px; background: var(--ink); }
.contact-item span { display: block; margin-bottom: 26px; color: rgba(255,255,255,.55); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.contact-item strong { font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }

.site-footer { padding: 30px 0; color: rgba(255,255,255,.55); background: var(--ink); border-top: 1px solid rgba(255,255,255,.15); font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; }

.content-page { min-height: 70vh; padding: 80px 0; }
.content-page h1 { font-family: Georgia, serif; font-size: clamp(44px, 7vw, 78px); font-weight: 400; letter-spacing: -.035em; }
.entry-content { max-width: 780px; }
.entry-content img { margin: 28px 0; }
.entry-meta { color: var(--muted); font-size: 14px; }

@media (max-width: 800px) {
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  .header-inner { min-height: 66px; }
  .menu-toggle { display: inline-flex; }
  .main-nav { position: absolute; inset: 66px 0 auto; display: none; padding: 18px 14px 24px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .main-nav.open { display: block; }
  .menu { align-items: stretch; flex-direction: column; gap: 0; }
  .menu a { display: block; padding: 12px 0; }
  .hero { min-height: 68vh; padding: 76px 0 50px; }
  .section { padding: 68px 0; }
  .section-head, .story { grid-template-columns: 1fr; gap: 18px; }
  .services, .project-grid, .contact-list { grid-template-columns: 1fr; }
  .service + .service { padding-left: 0; border-left: 0; }
  .service h3 { margin-top: 24px; }
  .footer-inner { flex-direction: column; }
}



/* KN Tops primary logo */
.brand-logo {
  display: block;
  width: clamp(190px, 22vw, 260px);
  max-width: 56vw;
  height: auto;
}

.brand {
  flex: 0 0 auto;
  width: clamp(210px, 26vw, 260px);
  letter-spacing: normal;
}
.brand-logo {
  width: 100%;
  max-width: none;
}
@media (max-width: 420px) {
  .brand { width: 180px; }
  .header-inner { gap: 12px; }
}
