/* ===========================================================
   Perfinno Interiors — Design tokens
   Palette drawn from the material world of the trade: walnut
   timber, brass fittings, plaster-white walls, aged verdigris.
   =========================================================== */
:root {
  --walnut:        #241A14;
  --walnut-soft:   #3A2C22;
  --ivory:         #F6F1E8;
  --ivory-deep:    #EFE7D8;
  --brass:         #A9803D;
  --brass-light:   #C9A464;
  --verdigris:     #5B6355;
  --taupe:         #8A7A6D;
  --white:         #FFFFFF;
  --ink:           #2B211B;

  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1180px;
  --radius: 2px;
}

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 28px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 .5em;
  color: var(--walnut);
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; color: var(--walnut-soft); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 12.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 14px;
}

/* --- Signature motif: drafting/blueprint corner marks, echoing the
   corner-brackets used on architectural floor plans and framed art --- */
.framed {
  position: relative;
  padding: 22px;
}
.framed::before, .framed::after,
.framed .fc-tl, .framed .fc-br { display: none; }
.corner-mark { position: relative; }
.corner-mark::before, .corner-mark::after {
  content: '';
  position: absolute;
  width: 26px; height: 26px;
  border: 2px solid var(--brass);
  z-index: 2;
}
.corner-mark::before { top: -10px; left: -10px; border-right: none; border-bottom: none; }
.corner-mark::after { bottom: -10px; right: -10px; border-left: none; border-top: none; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: .02em;
  padding: 14px 26px;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all .2s ease;
}
.btn-primary { background: var(--walnut); color: var(--ivory); }
.btn-primary:hover { background: var(--brass); }
.btn-outline { border-color: var(--walnut); color: var(--walnut); background: transparent; }
.btn-outline:hover { background: var(--walnut); color: var(--ivory); }
.btn-outline.on-dark { border-color: var(--ivory); color: var(--ivory); }
.btn-outline.on-dark:hover { background: var(--ivory); color: var(--walnut); }

/* --- Header / Nav --- */
header.site-header {
  position: sticky; top: 0; z-index: 500;
  background: rgba(246,241,232,.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--ivory-deep);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand .brand-name { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--walnut); letter-spacing: .01em; }
.brand .brand-tag { font-size: 10.5px; letter-spacing: .18em; color: var(--brass); text-transform: uppercase; margin-top: 3px; }

nav.main-nav ul { list-style: none; display: flex; gap: 34px; margin: 0; padding: 0; }
nav.main-nav a {
  font-size: 14.5px; font-weight: 500; color: var(--walnut-soft);
  position: relative; padding-bottom: 4px;
}
nav.main-nav a.active, nav.main-nav a:hover { color: var(--brass); }
nav.main-nav a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--brass);
}

.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-phone { font-size: 14px; font-weight: 600; color: var(--walnut); }
.nav-phone span { color: var(--brass); }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--walnut); margin: 5px 0; }

@media (max-width: 880px) {
  nav.main-nav { position: fixed; inset: 68px 0 0 0; background: var(--ivory); padding: 30px 28px; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; }
  nav.main-nav.open { transform: translateX(0); }
  nav.main-nav ul { flex-direction: column; gap: 22px; }
  nav.main-nav a { font-size: 20px; }
  .menu-toggle { display: block; }
  .nav-phone { display: none; }
}

/* --- Hero --- */
.hero {
  position: relative;
  background: var(--walnut);
  color: var(--ivory);
  overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center;
  gap: 50px; padding: 90px 0 70px;
}
.hero h1 { color: var(--ivory); }
.hero h1 em { font-style: italic; color: var(--brass-light); }
.hero p.lead { color: #D9CDBB; font-size: 17px; max-width: 46ch; }
.hero-actions { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 46px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-family: var(--font-display); font-size: 28px; color: var(--brass-light); }
.hero-stats div span { font-size: 12.5px; color: #C9BBA4; letter-spacing: .05em; text-transform: uppercase; }
.hero-media { position: relative; }
.hero-media img { border-radius: var(--radius); width: 100%; height: 460px; object-fit: cover; }
.hero-media .corner-mark::before, .hero-media .corner-mark::after { border-color: var(--brass-light); }

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; padding: 50px 0 46px; }
  .hero-media img { height: 300px; }
}

/* --- Sections --- */
section { padding: 84px 0; }
section.tight { padding: 60px 0; }
.section-head { max-width: 640px; margin-bottom: 46px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.bg-alt { background: var(--ivory-deep); }
.bg-dark { background: var(--walnut); color: var(--ivory); }
.bg-dark h2, .bg-dark h3 { color: var(--ivory); }
.bg-dark p { color: #D9CDBB; }
.bg-dark .eyebrow { color: var(--brass-light); }

/* --- Grid cards --- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 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: 620px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--ivory-deep);
  padding: 30px 26px;
  border-radius: var(--radius);
}
.card .num { font-family: var(--font-display); font-size: 14px; color: var(--brass); margin-bottom: 10px; display: block; }

/* --- Service cards --- */
.service-card { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--ivory-deep); display: flex; flex-direction: column; }
.service-card img { height: 210px; object-fit: cover; width: 100%; }
.service-card .body { padding: 22px 22px 26px; flex: 1; display: flex; flex-direction: column; }
.service-card h3 { margin-bottom: 8px; }
.service-card p { font-size: 14.5px; flex: 1; }
.service-card .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.service-card .tags span { font-size: 11.5px; background: var(--ivory-deep); color: var(--walnut-soft); padding: 4px 10px; border-radius: 999px; }

/* --- Gallery --- */
.gallery-grid { columns: 3 260px; column-gap: 16px; }
.gallery-grid figure { margin: 0 0 16px; break-inside: avoid; position: relative; overflow: hidden; border-radius: var(--radius); }
.gallery-grid img { width: 100%; display: block; transition: transform .4s ease; cursor: pointer; }
.gallery-grid figure:hover img { transform: scale(1.04); }
.gallery-grid figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(36,26,20,.85));
  color: var(--ivory); font-size: 12.5px; opacity: 0; transition: opacity .25s ease;
}
.gallery-grid figure:hover figcaption { opacity: 1; }

/* Lightbox */
#lightbox { position: fixed; inset: 0; background: rgba(20,14,10,.92); display: none; align-items: center; justify-content: center; z-index: 2000; padding: 30px; }
#lightbox.open { display: flex; }
#lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 2px; }
#lightbox .lb-close { position: absolute; top: 22px; right: 30px; color: var(--ivory); font-size: 30px; cursor: pointer; background: none; border: none; }

/* --- Updates / blog cards --- */
.update-card { display: grid; grid-template-columns: 200px 1fr; gap: 22px; background: var(--white); border: 1px solid var(--ivory-deep); border-radius: var(--radius); overflow: hidden; }
.update-card img { height: 100%; object-fit: cover; }
.update-card .body { padding: 22px 22px 22px 0; }
.update-date { font-size: 12px; color: var(--brass); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 8px; display: block; }
@media (max-width: 620px) { .update-card { grid-template-columns: 1fr; } .update-card img { height: 200px; } .update-card .body { padding: 18px; } }

/* --- Testimonials --- */
.testimonial { background: var(--white); border-left: 3px solid var(--brass); padding: 26px 28px; border-radius: var(--radius); }
.testimonial p { font-style: italic; color: var(--walnut-soft); }
.testimonial .who { font-weight: 600; font-family: var(--font-display); color: var(--walnut); margin-top: 10px; }

/* --- Process steps --- */
.steps { display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: 70px 1fr; gap: 20px; padding: 22px 0; border-top: 1px solid var(--ivory-deep); }
.step:last-child { border-bottom: 1px solid var(--ivory-deep); }
.step .step-num { font-family: var(--font-display); font-size: 30px; color: var(--brass); }

/* --- CTA band --- */
.cta-band { background: var(--brass); color: var(--walnut); text-align: center; padding: 70px 0; }
.cta-band h2 { color: var(--walnut); }
.cta-band .btn-primary { background: var(--walnut); color: var(--ivory); }
.cta-band .btn-primary:hover { background: var(--walnut-soft); }

/* --- Forms --- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-size: 13px; font-weight: 600; color: var(--walnut); margin-bottom: 7px; letter-spacing: .01em; }
input, select, textarea {
  width: 100%; border: 1.5px solid var(--ivory-deep); background: var(--white);
  padding: 12px 14px; border-radius: var(--radius); font-family: var(--font-body); font-size: 14.5px; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brass); }
textarea { min-height: 120px; resize: vertical; }
.form-msg { font-size: 14px; margin-top: 14px; display: none; padding: 12px 14px; border-radius: var(--radius); }
.form-msg.ok { display: block; background: #E9EFE6; color: #3F5236; }
.form-msg.err { display: block; background: #F5E4E0; color: #8A3A2C; }

/* --- Contact info blocks --- */
.info-row { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-top: 1px solid var(--ivory-deep); }
.info-row:first-child { border-top: none; }
.info-row .ic { width: 20px; margin-top: 3px; color: var(--brass); flex-shrink: 0; }
.info-row strong { display: block; color: var(--walnut); font-size: 14.5px; }
.info-row span, .info-row a { font-size: 14px; color: var(--walnut-soft); }

/* --- Footer --- */
footer.site-footer { background: var(--walnut); color: #C9BBA4; padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
footer .brand-name { color: var(--ivory); }
footer h4 { color: var(--ivory); font-size: 14px; text-transform: uppercase; letter-spacing: .1em; font-family: var(--font-body); font-weight: 600; margin-bottom: 18px; }
footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
footer a { font-size: 14px; color: #C9BBA4; }
footer a:hover { color: var(--brass-light); }
.footer-bottom { border-top: 1px solid #3A2C22; margin-top: 46px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12.5px; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* --- Breadcrumb / page header for inner pages --- */
.page-header { background: var(--walnut); color: var(--ivory); padding: 56px 0 46px; }
.page-header h1 { color: var(--ivory); margin-bottom: 8px; }
.page-header p { color: #C9BBA4; max-width: 60ch; }
.crumb { font-size: 12.5px; color: var(--brass-light); letter-spacing: .05em; margin-bottom: 10px; }

/* --- Utility --- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 900;
  width: 56px; height: 56px; border-radius: 50%; background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
.wa-float svg { width: 28px; height: 28px; }
