/*
Theme Name: K.C.S. Carpentry
Theme URI: https://carpentrybykcs.com
Author: K.C.S. Carpentry, LLC
Author URI: https://carpentrybykcs.com
Description: Dark, editorial theme for K.C.S. Carpentry, LLC — custom homes and licensed & insured handyman services on Florida's Treasure Coast. Includes Home, About, Services, Gallery and Contact templates with a built-in enquiry form (stored in wp-admin and emailed to the site admin).
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kcs-carpentry
*/

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  background: #0A0A09;
  color: #F4F4F2;
  font-family: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body::after {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: #B4703A; color: #0A0A09; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: 1600px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
@media (min-width: 768px) { .wrap { padding-left: 48px; padding-right: 48px; } }
@media (min-width: 1024px) { .wrap { padding-left: 96px; padding-right: 96px; } }

.serif { font-family: 'Cormorant Garamond', Georgia, serif; }
.amber { color: #B4703A; }
.italic { font-style: italic; }
.fog { color: #8C8C88; }

.overline {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: #B4703A;
  margin-bottom: 24px;
}
.overline::before { content: ""; width: 48px; height: 1px; background: #B4703A; }

.h-display {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-size: clamp(2.75rem, 7vw, 7.5rem);
}
.h-2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
}
.lede { max-width: 36rem; color: #8C8C88; font-size: 1.05rem; margin-top: 32px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.btn-solid { background: #B4703A; color: #0A0A09; }
.btn-solid:hover { background: #C48045; }
.btn-outline { border-color: rgba(244,244,242,0.3); color: #F4F4F2; background: transparent; }
.btn-outline:hover { border-color: #B4703A; color: #B4703A; }
.btn .arrow { transition: transform 0.3s; }
.btn:hover .arrow { transform: translateX(4px); }

.link-quiet {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: #8C8C88;
  transition: color 0.3s;
}
.link-quiet:hover { color: #B4703A; }
.link-quiet .arrow { transition: transform 0.3s; }
.link-quiet:hover .arrow { transform: translateX(4px); }

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(18,17,16,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(42,40,37,0.7);
}
.admin-bar .site-header { top: 32px; }
.nav-inner {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}
@media (min-width: 768px) { .nav-inner { padding: 14px 48px; } }
.logo { display: flex; flex-direction: column; align-items: flex-start; }
.logo-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  transition: color 0.3s;
}
.logo:hover .logo-name { color: #C48045; }
.logo-tag {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #8C8C88;
}
.nav-links { display: none; align-items: center; gap: 36px; }
@media (min-width: 900px) { .nav-links { display: flex; } }
.nav-links a {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(244,244,242,0.7);
  transition: color 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: #B4703A; }
.nav-quote {
  border: 1px solid #B4703A;
  color: #B4703A !important;
  padding: 10px 20px;
  transition: background-color 0.3s, color 0.3s !important;
}
.nav-quote:hover { background: #B4703A; color: #0A0A09 !important; }
.nav-toggle {
  display: block;
  background: none;
  border: none;
  color: #F4F4F2;
  cursor: pointer;
  padding: 8px;
}
@media (min-width: 900px) { .nav-toggle { display: none; } }
.mobile-menu {
  display: none;
  border-top: 1px solid rgba(42,40,37,0.7);
  background: rgba(18,17,16,0.95);
  padding: 24px;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 12px 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.9rem;
  font-weight: 300;
  color: rgba(244,244,242,0.8);
}
.mobile-menu a.active { font-style: italic; color: #B4703A; }

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  min-height: 660px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero-bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; animation: heroDrift 20s ease-in-out infinite alternate; }
@keyframes heroDrift { from { transform: scale(1.05); } to { transform: scale(1.15); } }
.hero-bg::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, #0A0A09 0%, rgba(10,10,9,0.55) 50%, rgba(10,10,9,0.25) 100%);
}
.hero-content { position: relative; z-index: 2; padding-bottom: 112px; }
.hero .line { display: block; overflow: hidden; padding-bottom: 6px; }
.hero .line > span {
  display: block;
  transform: translateY(115%);
  animation: riseIn 1.15s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero .line:nth-child(2) > span { animation-delay: 0.15s; }
@keyframes riseIn { to { transform: translateY(0); } }
.fade-in { opacity: 0; animation: fadeUp 0.9s ease forwards; }
.fade-in.d1 { animation-delay: 0.5s; }
.fade-in.d2 { animation-delay: 0.7s; }
.fade-in.d3 { animation-delay: 0.9s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 40px; }

/* Marquee */
.marquee {
  border-top: 1px solid #2A2825;
  border-bottom: 1px solid #2A2825;
  background: #121110;
  padding: 18px 0;
  overflow: hidden;
}
.marquee-track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-item {
  display: flex;
  align-items: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  color: rgba(244,244,242,0.8);
  white-space: nowrap;
  padding: 0 24px;
}
.marquee-item::after { content: "◆"; font-size: 8px; color: #B4703A; margin-left: 48px; font-style: normal; }

/* Sections */
.section { padding: 112px 0; }
@media (min-width: 768px) { .section { padding: 160px 0; } }
.section-bordered { border-top: 1px solid #2A2825; }
.section-surface { background: #121110; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 64px; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(44px); transition: opacity 0.9s cubic-bezier(0.22,1,0.36,1), transform 0.9s cubic-bezier(0.22,1,0.36,1); }
.reveal.in { opacity: 1; transform: none; }

/* Manifesto statement */
.statement {
  max-width: 72rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: clamp(1.7rem, 4vw, 3.5rem);
  line-height: 1.3;
}

/* Bento (home services + featured work) */
.bento { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .bento { grid-template-columns: repeat(12, 1fr); }
  .bento .span-7 { grid-column: span 7; }
  .bento .span-5 { grid-column: span 5; }
  .bento .span-4 { grid-column: span 4; }
  .bento .span-3 { grid-column: span 3; }
  .bento .offset-8 { grid-column-start: 8; }
  .bento .up { margin-top: -40px; }
  .bento .down { margin-top: 64px; }
  .bento .down-2 { margin-top: 128px; }
}
.frame { position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.frame:hover img { transform: scale(1.05); }
.ratio-16-10 { aspect-ratio: 16/10; }
.ratio-4-3 { aspect-ratio: 4/3; }
.ratio-3-4 { aspect-ratio: 3/4; }
.ratio-4-5 { aspect-ratio: 4/5; }
.ratio-1-1 { aspect-ratio: 1/1; }
.frame-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  background: linear-gradient(to top, rgba(10,10,9,0.9), transparent);
}
.frame-caption .num { font-size: 12px; letter-spacing: 0.3em; color: #B4703A; margin-bottom: 8px; }
.frame-caption h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 300; font-size: 1.6rem; }
.caption-below { display: flex; align-items: baseline; justify-content: space-between; margin-top: 16px; }
.caption-below h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 300; font-size: 1.3rem; transition: color 0.3s; }
a:hover .caption-below h3 { color: #B4703A; }
.caption-below .cat { font-size: 10px; text-transform: uppercase; letter-spacing: 0.2em; color: #8C8C88; }

/* Stats */
.stats { display: grid; gap: 40px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1024px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat-value { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 300; font-size: clamp(3rem, 5vw, 3.75rem); color: #B4703A; }
.stat-label { margin-top: 12px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.25em; color: #8C8C88; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; border-top: 1px solid #2A2825; }
.cta-band > img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.25; }
.cta-band::after { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to right, #0A0A09, rgba(10,10,9,0.8), rgba(10,10,9,0.4)); }
.cta-band .wrap { position: relative; z-index: 2; }

/* Page header (inner pages) */
.page-header { position: relative; overflow: hidden; padding: 200px 0 80px; }
@media (min-width: 768px) { .page-header { padding: 240px 0 110px; } }
.page-header .ghost {
  position: absolute;
  right: -96px;
  top: 96px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: 22rem;
  line-height: 1;
  color: rgba(244,244,242,0.03);
  display: none;
  user-select: none;
}
@media (min-width: 1024px) { .page-header .ghost { display: block; } }
.page-header .line { display: block; overflow: hidden; padding-bottom: 8px; }
.page-header .line > span { display: block; transform: translateY(115%); animation: riseIn 1.15s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.page-header .line:nth-child(2) > span { animation-delay: 0.14s; }

/* Split (about story) */
.split { display: grid; gap: 48px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .split { grid-template-columns: repeat(12, 1fr); } .split .col-5 { grid-column: span 5; } .split .col-6 { grid-column: 7 / span 6; } }
.split .center { display: flex; flex-direction: column; justify-content: center; }
.split p + p { margin-top: 20px; }

/* Chapters */
.chapter { display: grid; gap: 24px; grid-template-columns: 1fr; border-top: 1px solid #2A2825; padding: 56px 0; }
@media (min-width: 768px) { .chapter { grid-template-columns: repeat(12, 1fr); } }
.chapter .num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: clamp(4.5rem, 8vw, 8rem);
  line-height: 1;
  color: rgba(180,112,58,0.25);
}
@media (min-width: 768px) { .chapter .num { grid-column: span 3; } .chapter .body { grid-column: 5 / span 8; } }
.chapter h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 300; font-style: italic; font-size: clamp(1.8rem, 3vw, 2.25rem); }
.chapter .body p { margin-top: 24px; max-width: 42rem; color: #8C8C88; }

/* Quote band */
.quote-band { position: relative; overflow: hidden; border-top: 1px solid #2A2825; text-align: center; }
.quote-band > img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.3; }
.quote-band::after { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to bottom, #0A0A09, rgba(10,10,9,0.7), #0A0A09); }
.quote-band .wrap { position: relative; z-index: 2; }
.quote-band blockquote {
  max-width: 56rem;
  margin: 0 auto;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1.35;
}
.quote-band .attribution { margin-top: 32px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.3em; color: #B4703A; }

/* Service rows */
.service-row { display: grid; gap: 32px; align-items: center; grid-template-columns: 1fr; border-top: 1px solid #2A2825; padding: 56px 0; }
@media (min-width: 768px) { .service-row { grid-template-columns: repeat(12, 1fr); } }
.service-row .num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: clamp(3.5rem, 6vw, 4.5rem);
  line-height: 1;
  color: rgba(180,112,58,0.25);
  transition: color 0.5s;
}
.service-row:hover .num { color: rgba(180,112,58,0.6); }
@media (min-width: 768px) {
  .service-row .num { grid-column: span 2; }
  .service-row .body { grid-column: span 6; }
  .service-row .body.wide { grid-column: span 10; }
  .service-row .img { grid-column: span 4; }
}
.service-row h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 300; font-size: clamp(1.8rem, 3vw, 2.25rem); transition: color 0.3s; }
.service-row:hover h3 { color: #B4703A; }
.service-row .body p { margin-top: 20px; max-width: 36rem; color: #8C8C88; }
.service-row .link-quiet { margin-top: 24px; }

/* Process */
.process { display: grid; gap: 1px; background: #2A2825; grid-template-columns: 1fr; }
@media (min-width: 640px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .process { grid-template-columns: repeat(4, 1fr); } }
.process-step { background: #121110; padding: 40px; height: 100%; transition: background-color 0.5s; }
.process-step:hover { background: #0A0A09; }
.process-step .numeral { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-weight: 300; font-size: 3rem; color: rgba(180,112,58,0.4); transition: color 0.5s; }
.process-step:hover .numeral { color: #B4703A; }
.process-step h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 300; font-size: 1.5rem; margin-top: 32px; }
.process-step p { margin-top: 16px; font-size: 0.9rem; color: #8C8C88; }

/* Gallery */
.masonry { columns: 1; column-gap: 24px; }
@media (min-width: 640px) { .masonry { columns: 2; } }
@media (min-width: 1024px) { .masonry { columns: 3; } }
.masonry figure { position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); margin-bottom: 24px; break-inside: avoid; cursor: pointer; }
.masonry figure img { width: 100%; object-fit: cover; transition: transform 0.7s ease; }
.masonry figure:hover img { transform: scale(1.05); }
.masonry figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(10,10,9,0.95), transparent);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s, transform 0.5s;
}
.masonry figure:hover figcaption { opacity: 1; transform: none; }
.masonry figcaption .cat { font-size: 10px; text-transform: uppercase; letter-spacing: 0.25em; color: #B4703A; }
.masonry figcaption h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 300; font-size: 1.5rem; margin-top: 8px; }

/* Contact */
.contact-grid { display: grid; gap: 64px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: repeat(12, 1fr); } .contact-grid .info { grid-column: span 5; } .contact-grid .form-col { grid-column: span 7; } }
.info-row { display: flex; gap: 20px; border-bottom: 1px solid #2A2825; padding-bottom: 32px; margin-bottom: 32px; }
.info-row:last-child { border-bottom: none; }
.info-row .icon { color: #B4703A; flex-shrink: 0; margin-top: 4px; }
.info-row .label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.25em; color: #8C8C88; margin-bottom: 4px; }
.info-row a:hover { color: #B4703A; }
.form-card { border: 1px solid #2A2825; background: #121110; padding: 32px; }
@media (min-width: 768px) { .form-card { padding: 48px; } }
.form-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, 1fr); } .form-grid .full { grid-column: span 2; } }
.field label { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.25em; color: #8C8C88; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%;
  background: #0A0A09;
  border: 1px solid #2A2825;
  color: #F4F4F2;
  padding: 16px 20px;
  font-size: 14px;
  font-family: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  outline: none;
  transition: border-color 0.3s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: #B4703A; }
.field textarea { resize: vertical; min-height: 150px; }
.notice {
  border: 1px solid #B4703A;
  background: rgba(180,112,58,0.1);
  color: #C48045;
  padding: 16px 20px;
  margin-bottom: 32px;
  font-size: 14px;
}
.form-note { margin-top: 20px; font-size: 12px; color: #8C8C88; }

/* Footer */
.site-footer { border-top: 1px solid #2A2825; background: #121110; }
.footer-grid { display: grid; gap: 56px; padding: 80px 0; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(12, 1fr); } .footer-grid .f-cta { grid-column: span 5; } .footer-grid .f-links { grid-column: span 3; } .footer-grid .f-contact { grid-column: span 4; } }
.footer-grid h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 300; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; }
.footer-grid .btn { margin-top: 32px; }
.f-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.25em; color: #8C8C88; margin-bottom: 20px; }
.f-links ul { list-style: none; }
.f-links li { margin-bottom: 12px; }
.f-links a, .f-contact p, .f-contact a { font-size: 14px; color: rgba(244,244,242,0.7); }
.f-links a:hover, .f-contact a:hover { color: #B4703A; }
.f-contact p { margin-bottom: 12px; }
.giant-word {
  overflow: hidden;
  border-top: 1px solid #2A2825;
  padding-top: 24px;
  text-align: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: 11vw;
  line-height: 1;
  white-space: nowrap;
  color: rgba(244,244,242,0.05);
  user-select: none;
}
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #2A2825;
  padding: 24px 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #8C8C88;
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; } }
