/* Philly Cabinets Painting — site styles */
:root {
  --navy: #1d2b3a;
  --navy-2: #2a3d52;
  --brass: #b9853a;
  --brass-dark: #8f6426;
  --cream: #faf7f2;
  --sand: #f1ebe1;
  --ink: #1f2328;
  --muted: #5b6470;
  --line: #e2dbcf;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(29, 43, 58, .08);
  --max: 1160px;
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brass-dark); }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 .6em;
  font-weight: 600;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.section { padding: 72px 0; }
.section.alt { background: var(--sand); }
.section.dark { background: var(--navy); color: #dfe6ee; }
.section.dark h2, .section.dark h3 { color: var(--white); }
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brass-dark);
  margin-bottom: .6em;
}
.section.dark .eyebrow { color: #e0b46e; }
.lead { font-size: 1.15rem; color: var(--muted); }
.center { text-align: center; }
.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brass); color: var(--white); }
.btn-primary:hover { background: var(--brass-dark); color: var(--white); }
.btn-outline { border-color: currentColor; color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-light { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn-light:hover { background: var(--white); color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.center .btn-row { justify-content: center; }

/* Header */
.topbar { background: var(--navy); color: #cfd8e2; font-size: .88rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: var(--white); text-decoration: none; font-weight: 600; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 242, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.logo svg { width: 38px; height: 38px; flex: none; }
.logo strong { font-family: var(--font-head); font-size: 1.25rem; line-height: 1.1; display: block; }
.logo span { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.nav a { display: block; padding: 8px 11px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brass-dark); background: var(--sand); }
.nav .has-sub { position: relative; }
.nav .sub {
  position: absolute; top: 100%; left: 0; min-width: 210px;
  display: none; flex-direction: column; align-items: stretch;
  background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow); padding: 6px;
}
.nav .has-sub:hover .sub, .nav .has-sub:focus-within .sub { display: flex; }
.header-cta { display: flex; gap: 10px; align-items: center; }
.header-cta .phone { font-weight: 700; color: var(--navy); text-decoration: none; white-space: nowrap; }
.menu-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 11px; cursor: pointer; color: var(--navy);
}
.menu-toggle svg { width: 22px; height: 22px; display: block; }

@media (max-width: 1080px) {
  .menu-toggle { display: block; }
  .header-cta .phone { display: none; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 10px 16px 18px; }
  .nav .sub { position: static; display: flex; box-shadow: none; border: 0; padding: 0 0 0 14px; background: transparent; }
}
@media (max-width: 560px) {
  .header-cta .btn { display: none; }
  .topbar .hide-sm { display: none; }
}

/* Hero */
.hero {
  position: relative;
  background:
    linear-gradient(115deg, rgba(29,43,58,.94) 0%, rgba(29,43,58,.82) 55%, rgba(29,43,58,.55) 100%),
    url("/assets/img/hero-kitchen.svg") center/cover no-repeat;
  color: #e6ecf2;
  padding: 96px 0 88px;
}
.hero h1 { color: var(--white); max-width: 780px; }
.hero .lead { color: #cfd9e3; max-width: 640px; }
.hero .eyebrow { color: #e0b46e; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px; padding: 0; list-style: none; font-size: .95rem; }
.trust-row li { display: flex; align-items: center; gap: 8px; }
.trust-row li::before { content: "✓"; color: #e0b46e; font-weight: 700; }

.page-hero { background: var(--navy); color: #cfd9e3; padding: 64px 0 56px; }
.page-hero h1 { color: var(--white); }
.page-hero .lead { color: #cfd9e3; max-width: 720px; }
.breadcrumbs { font-size: .85rem; margin-bottom: 14px; }
.breadcrumbs a { color: #e0b46e; text-decoration: none; }
.breadcrumbs span { color: #9fb0c1; }

/* Grids & cards */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.card .icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--sand); color: var(--brass-dark); margin-bottom: 16px; font-size: 1.4rem;
}
.card a.more { font-weight: 600; text-decoration: none; }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }
.check-list { list-style: none; padding: 0; margin: 0 0 1em; }
.check-list li { padding-left: 30px; position: relative; margin-bottom: .55em; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--brass-dark); font-weight: 700;
}
.x-list li::before { content: "–"; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stats strong { display: block; font-family: var(--font-head); font-size: 2rem; color: var(--white); }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Steps / timeline */
.steps { counter-reset: step; display: grid; gap: 22px; }
.step {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 26px 22px 86px; box-shadow: var(--shadow);
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 24px; top: 24px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: var(--white); display: grid; place-items: center;
  font-family: var(--font-head); font-size: 1.2rem; font-weight: 600;
}
.step .when { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brass-dark); }
.step h3 { margin: 2px 0 8px; }
.step p:last-child { margin-bottom: 0; }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--navy); color: var(--white); font-weight: 600; font-size: .95rem; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: #fcfbf8; }
td strong { color: var(--navy); }
.note { font-size: .88rem; color: var(--muted); margin-top: 12px; }

/* Price callout */
.price-callout {
  background: var(--white); border: 2px solid var(--brass); border-radius: var(--radius);
  padding: 30px; text-align: center; box-shadow: var(--shadow);
}
.price-callout .big { font-family: var(--font-head); font-size: clamp(2rem, 5vw, 3rem); color: var(--navy); font-weight: 600; line-height: 1.1; }

/* FAQ accordion */
.faq-group { margin-bottom: 40px; }
.faq-group h2 { font-size: 1.5rem; }
details.faq {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  margin-bottom: 12px; overflow: hidden;
}
details.faq summary {
  cursor: pointer; list-style: none; padding: 18px 54px 18px 22px; position: relative;
  font-weight: 600; color: var(--navy);
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--brass-dark); font-weight: 400;
}
details.faq[open] summary::after { content: "–"; }
details.faq .answer { padding: 0 22px 18px; color: #353c45; }
details.faq .answer p:last-child { margin-bottom: 0; }

/* Areas */
.area-region { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.area-region h2 { font-size: 1.45rem; margin-bottom: .3em; }
.area-list { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.area-list li { background: var(--sand); border-radius: 999px; padding: 5px 13px; font-size: .9rem; }
.region-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.region-nav a { background: var(--white); border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; text-decoration: none; color: var(--navy); font-weight: 600; font-size: .92rem; }
.region-nav a:hover { border-color: var(--brass); }

/* Gallery */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 30px; }
.filters button {
  font: inherit; font-weight: 600; font-size: .92rem; padding: 8px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white); color: var(--navy); cursor: pointer;
}
.filters button[aria-pressed="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.gallery-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery-item[hidden] { display: none; }
.ba { display: grid; grid-template-columns: 1fr 1fr; }
.ba figure { margin: 0; position: relative; aspect-ratio: 4 / 3.4; }
.ba figure span {
  position: absolute; left: 10px; top: 10px; background: rgba(0,0,0,.6); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 6px;
}
.ba img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item .caption { padding: 16px 20px 18px; }
.gallery-item .caption strong { display: block; color: var(--navy); }
.gallery-item .caption small { color: var(--muted); }

/* Blog */
.post-list { display: grid; gap: 28px; }
.post-card {
  display: grid; grid-template-columns: 300px 1fr; gap: 0; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.post-card img { width: 100%; height: 100%; object-fit: cover; min-height: 200px; }
.post-card .body { padding: 26px 28px; }
.post-card h2 { font-size: 1.45rem; margin-bottom: .35em; }
.post-card h2 a { color: var(--navy); text-decoration: none; }
.post-card h2 a:hover { color: var(--brass-dark); }
.meta { font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.meta .cat { color: var(--brass-dark); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; margin-right: 8px; }
@media (max-width: 720px) { .post-card { grid-template-columns: 1fr; } .post-card img { min-height: 0; aspect-ratio: 16/9; } }

.prose { font-size: 1.06rem; }
.prose h2 { margin-top: 1.6em; font-size: 1.7rem; }
.prose h3 { margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose .table-wrap { margin: 1.4em 0; }
.post-hero-img { border-radius: var(--radius); margin: 0 0 28px; box-shadow: var(--shadow); }
.inline-cta {
  background: var(--sand); border-left: 4px solid var(--brass); border-radius: 10px;
  padding: 20px 24px; margin: 1.8em 0;
}
.inline-cta p:last-child { margin-bottom: 0; }

/* Forms */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--navy); }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border-radius: 10px;
  border: 1px solid #cfc6b6; background: #fffdfa; color: var(--ink);
}
input:focus, select:focus, textarea:focus { border-color: var(--brass); outline: 2px solid rgba(185,133,58,.25); }
textarea { min-height: 130px; resize: vertical; }
.form-status { margin-top: 14px; font-weight: 600; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-list .icon { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--sand); display: grid; place-items: center; font-size: 1.2rem; }
.contact-list strong { display: block; color: var(--navy); }
.contact-list a { font-size: 1.1rem; font-weight: 600; text-decoration: none; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--navy), var(--navy-2)); color: #d5dee8; padding: 64px 0; text-align: center; }
.cta-band h2 { color: var(--white); }

/* Footer */
.site-footer { background: #141f2b; color: #aab7c4; font-size: .95rem; padding: 60px 0 28px; }
.site-footer h3 { color: var(--white); font-family: var(--font-body); font-size: 1rem; letter-spacing: .04em; margin-bottom: 14px; }
.site-footer a { color: #d5dee8; text-decoration: none; }
.site-footer a:hover { color: #e0b46e; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-bottom { border-top: 1px solid #2a3949; margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .85rem; }

/* Mobile call bar */
.mobile-bar { display: none; }
@media (max-width: 720px) {
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    box-shadow: 0 -4px 18px rgba(0,0,0,.15);
  }
  .mobile-bar a { padding: 15px; text-align: center; font-weight: 700; text-decoration: none; color: var(--white); }
  .mobile-bar a:first-child { background: var(--navy); }
  .mobile-bar a:last-child { background: var(--brass); }
  body { padding-bottom: 54px; }
}
