/* Martin Woodworks — static export */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Geist', ui-sans-serif, system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: oklch(0.22 0.03 40);
  background: oklch(0.96 0.014 52);
  overflow-x: hidden;
}
body.dyslexia-font { font-family: 'Lexend', ui-sans-serif, system-ui, sans-serif; }
a { color: oklch(0.42 0.1 45); text-decoration: none; }
a:hover { color: oklch(0.34 0.1 45); }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* Top utility bar */
.topbar { background: oklch(0.24 0.03 45); border-bottom: 1px solid oklch(0.18 0.025 42); }
.topbar-inner { max-width: 1280px; margin: 0 auto; padding: 9px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.tagline { font-style: italic; font-size: 15px; color: oklch(0.8 0.06 45); }
.topbar-phone { font-size: 14px; color: oklch(0.93 0.012 60); letter-spacing: 0.03em; white-space: nowrap; }
.topbar-phone:hover { color: oklch(0.99 0.005 60); }

/* Sticky header + nav */
header.site-header { position: sticky; top: 0; z-index: 900; background: oklch(0.32 0.045 48 / 0.97); border-bottom: 1px solid oklch(0.22 0.03 45 / 0.6); }
.header-inner { max-width: 1280px; margin: 0 auto; padding: 14px 24px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; }
.brand { font-size: 17px; font-weight: 600; letter-spacing: 0.01em; color: oklch(0.95 0.012 60); white-space: nowrap; }
nav.site-nav { display: contents; }
.nav-links { grid-column: 2; justify-self: center; display: flex; align-items: center; gap: 18px; }
.nav-link { color: oklch(0.93 0.012 60); font-size: 15px; padding-bottom: 2px; background-image: linear-gradient(oklch(0.99 0.002 60), oklch(0.99 0.002 60)); background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 1px; transition: background-size .3s; }
.nav-link:hover, .nav-link.active { background-size: 100% 1px; color: oklch(0.99 0.002 60); }
.dropdown { position: relative; }
.dropdown-toggle { background: none; border: none; cursor: pointer; color: oklch(0.93 0.012 60); font-size: 15px; display: flex; align-items: center; gap: 4px; }
.dropdown-menu { position: absolute; top: 32px; left: 50%; transform: translateX(-50%); background: oklch(0.97 0.008 55); border: 1px solid oklch(0.55 0.05 48 / 0.6); border-radius: 10px; padding: 8px; width: 240px; box-shadow: 0 12px 30px rgba(0,0,0,0.25); display: none; flex-direction: column; gap: 2px; z-index: 10; }
.dropdown.open .dropdown-menu { display: flex; }
.dropdown-menu a { display: block; padding: 8px 10px; border-radius: 6px; color: oklch(0.22 0.03 40); font-size: 15px; }
.dropdown-menu a:hover { background: oklch(0.55 0.06 50 / 0.14); }
.header-actions { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 22px; }
.header-phone { color: oklch(0.99 0.002 60); font-size: 15px; font-weight: 600; white-space: nowrap; }
.cta-btn { background: oklch(0.42 0.1 45); color: oklch(0.99 0.005 60); border: none; border-radius: 8px; padding: 10px 18px; font-size: 15px; font-weight: 600; cursor: pointer; transition: transform .2s, background .2s; display: inline-block; }
.cta-btn:hover { background: oklch(0.34 0.1 45); transform: translateY(-2px); color: oklch(0.99 0.005 60); }
.cta-btn.large { padding: 16px 28px; font-size: 17px; }

.hamburger { display: none; width: 44px; height: 44px; background: none; border: none; border-radius: 8px; cursor: pointer; align-items: center; justify-content: center; color: oklch(0.95 0.012 60); grid-column: 3; justify-self: end; flex-direction: column; gap: 5px; }
.hamburger span { display: block; height: 2px; width: 22px; background: currentColor; border-radius: 2px; }

.mobile-drawer { display: none; position: fixed; inset: 0; z-index: 950; background: oklch(0.99 0.004 60); overflow-y: auto; padding: 24px 20px 40px; }
.mobile-drawer.open { display: block; }
.mobile-drawer-inner { max-width: 440px; margin: 0 auto; display: flex; flex-direction: column; gap: 26px; }
.mobile-close-row { display: flex; justify-content: flex-end; }
.mobile-close { background: none; border: none; color: oklch(0.22 0.03 40); font-size: 26px; cursor: pointer; width: 44px; height: 44px; }
.mobile-nav { display: flex; flex-direction: column; gap: 4px; font-size: 19px; }
.mobile-nav a { padding: 12px 6px; color: oklch(0.22 0.03 40); border-bottom: 1px solid oklch(0.55 0.05 48 / 0.4); }
.mobile-nav a:last-child { border-bottom: none; }
.mobile-links { display: flex; flex-direction: column; gap: 2px; }
.mobile-links a { display: flex; align-items: center; gap: 8px; padding: 12px 6px; color: oklch(0.22 0.03 40); font-size: 16px; }

@media (max-width: 768px) {
  .nav-links, .header-actions { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 480px) {
  .topbar-inner { flex-direction: column; align-items: flex-start; gap: 4px; }
  .topbar-phone { white-space: normal; }
}
@media (max-width: 440px) { .brand { font-size: 15px; } }

/* Hero */
.hero { position: relative; overflow: hidden; display: flex; align-items: center; }
.hero.hero-tall { height: 88vh; min-height: 560px; }
.hero.hero-short { height: 52vh; min-height: 380px; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, oklch(0.14 0.012 55 / 0.4) 0%, oklch(0.14 0.012 55 / 0.8) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 1280px; margin: 0 auto; padding: 0 24px; width: 100%; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: oklch(0.75 0.06 45); margin: 0 0 14px; }
.hero h1 { font-size: clamp(30px, 4.6vw, 48px); font-weight: 700; line-height: 1.1; margin: 0 0 14px; max-width: 640px; color: oklch(0.99 0.005 60); }
.hero.hero-tall h1 { font-size: clamp(34px, 5.6vw, 60px); line-height: 1.08; letter-spacing: -0.01em; }
.hero p { font-size: 19px; color: oklch(0.88 0.015 55); margin: 0; max-width: 520px; }
.hero-actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; margin-top: 28px; }
.hero-note { font-size: 14px; color: oklch(0.75 0.015 55); }

/* Sections */
.section { max-width: 1280px; margin: 0 auto; padding: 56px 24px 90px; position: relative; z-index: 3; }
h2 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 32px; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; align-items: center; }
.img-box { border-radius: 14px; overflow: hidden; height: 360px; }
.img-box img { width: 100%; height: 100%; object-fit: cover; }
.read-more { font-weight: 600; font-size: 16px; background-image: linear-gradient(oklch(0.42 0.1 45), oklch(0.42 0.1 45)); background-repeat: no-repeat; background-position: 0 100%; background-size: 100% 2px; padding-bottom: 2px; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; }
.service-card { background: oklch(0.97 0.008 55); border: 1px solid oklch(0.55 0.05 48 / 0.5); border-radius: 14px; overflow: hidden; transition: transform .35s, box-shadow .35s; display: block; text-decoration: none; color: inherit; cursor: pointer; }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,0.4); }
.service-card .card-img { height: 220px; overflow: hidden; }
.service-card .card-img img { width: 100%; height: 100%; object-fit: cover; }
.service-card .card-body { padding: 26px; }
.service-card h3 { margin: 0 0 10px; font-size: 20px; }
.service-card p { margin: 0 0 14px; color: oklch(0.35 0.03 42); font-size: 16px; }
.learn-more-link { color: oklch(0.42 0.1 45); font-weight: 600; font-size: 15px; }

.why-strip { background: repeating-linear-gradient(95deg, oklch(0.36 0.05 47) 0px, oklch(0.36 0.05 47) 4px, oklch(0.31 0.045 43) 4px, oklch(0.31 0.045 43) 8px, oklch(0.33 0.048 45) 8px, oklch(0.33 0.048 45) 12px); padding: 70px 24px; margin-bottom: 40px; }
.why-strip-inner { max-width: 1280px; margin: 0 auto; }
.why-strip h2 { color: oklch(0.98 0.005 60); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 36px; }
.why-num { width: 40px; height: 40px; border-radius: 50%; border: 2px solid oklch(0.9 0.03 55); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; color: oklch(0.95 0.02 55); margin-bottom: 14px; }
.why-grid h3 { margin: 0 0 8px; font-size: 19px; color: oklch(0.98 0.005 60); }
.why-grid p { margin: 0; color: oklch(0.82 0.02 55); font-size: 16px; }

.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.testimonial-card { position: relative; background: oklch(0.99 0.004 60); border: 1px solid oklch(0.55 0.05 48 / 0.35); border-radius: 6px; padding: 40px 28px 32px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.06); }
.testimonial-card .quote-mark { position: absolute; top: 14px; right: 20px; font-size: 56px; line-height: 1; font-weight: 800; color: oklch(0.22 0.03 40); font-family: Georgia, serif; }
.testimonial-card .stars { color: oklch(0.22 0.03 40); font-size: 20px; letter-spacing: 2px; margin-bottom: 18px; }
.testimonial-card .who { font-size: 19px; font-weight: 600; color: oklch(0.22 0.03 40); margin-bottom: 4px; }
.testimonial-card .quote { margin: 20px 0 0; font-size: 16px; font-weight: 600; color: oklch(0.35 0.02 45); line-height: 1.6; }

.cta-strip { position: relative; padding: 110px 24px; text-align: center; overflow: hidden; }
.cta-strip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-strip-overlay { position: absolute; inset: 0; background: oklch(0.14 0.012 55 / 0.65); }
.cta-strip-inner { position: relative; z-index: 2; max-width: 640px; margin: 0 auto; }
.cta-strip h2 { color: oklch(0.99 0.005 60); font-size: clamp(26px, 3.4vw, 36px); }
.cta-strip p { color: oklch(0.88 0.015 55); font-size: 17px; margin: 0 0 28px; }

/* Services page detail blocks */
.service-detail { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 36px; align-items: center; margin-bottom: 70px; }
.service-detail.reverse .slider { order: 2; }
.slider { position: relative; border-radius: 14px; overflow: hidden; height: 360px; }
.slider .slides { position: relative; width: 100%; height: 100%; }
.slider img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; opacity: 0; transition: opacity .5s; }
.slider img.active { opacity: 1; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: none; background: oklch(0.99 0.005 60 / 0.85); color: oklch(0.22 0.03 40); cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; z-index: 2; }
.slider-btn.prev { left: 12px; }
.slider-btn.next { right: 12px; }
.slider-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.slider-dots button { width: 9px; height: 9px; border-radius: 50%; border: none; cursor: pointer; padding: 0; background: oklch(0.8 0.02 50); }
.slider-dots button.active { background: oklch(0.42 0.1 45); }
.service-detail h2 { font-size: 26px; margin: 0 0 14px; }
.service-detail p.desc { font-size: 17px; color: oklch(0.32 0.03 42); margin: 0 0 20px; }
.service-detail ul { margin: 0 0 24px; padding-left: 20px; color: oklch(0.32 0.03 42); font-size: 16px; display: flex; flex-direction: column; gap: 8px; }
.service-detail .cta-btn { padding: 14px 24px; font-size: 16px; }

.gallery-pair { margin-bottom: 60px; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; }
.gallery-block h3 { font-size: 20px; margin: 0 0 20px; }
.gallery-main { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 1/1; margin: 0 0 14px; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery-thumbs { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumbs button { flex-shrink: 0; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; background: none; cursor: pointer; padding: 0; }
.gallery-thumbs button.active { border-color: oklch(0.42 0.1 45); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* Contact */
.contact-page { background: oklch(0.91 0.02 48); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 36px; }
.contact-form { background: oklch(0.98 0.006 55); border: 1px solid oklch(0.55 0.05 48 / 0.5); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 24px 60px rgba(0,0,0,0.35); }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: oklch(0.32 0.03 42); }
.contact-form input, .contact-form select, .contact-form textarea { display: block; width: 100%; background: #f2ece4; border: 1px solid #8a6a4a; border-radius: 8px; padding: 12px; color: oklch(0.22 0.03 40); font-size: 16px; font-family: inherit; box-sizing: border-box; }
.contact-form textarea { resize: vertical; }
.contact-side { display: flex; flex-direction: column; gap: 20px; }
.contact-card { background: oklch(0.98 0.006 55); border: 1px solid oklch(0.55 0.05 48 / 0.5); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.contact-card .label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: oklch(0.48 0.035 45); margin-bottom: 5px; }
.contact-card .value { color: oklch(0.22 0.03 40); font-size: 17px; font-weight: 600; }
.contact-card hr { border: none; height: 1px; background: oklch(0.55 0.05 48 / 0.3); margin: 0; }
.map-box { border-radius: 16px; overflow: hidden; border: 1px solid oklch(0.55 0.05 48 / 0.5); flex: 1; min-height: 220px; }
.map-box iframe { border: 0; width: 100%; height: 100%; min-height: 220px; filter: grayscale(0.15) contrast(0.98); }

/* Footer */
footer.site-footer { position: relative; z-index: 3; border-top: 1px solid oklch(0.22 0.03 45 / 0.6); background: oklch(0.28 0.04 48); padding: 60px 24px 32px; color: oklch(0.93 0.012 60); }
.footer-inner { max-width: 1280px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer-brand { max-width: 280px; }
.footer-brand .name { font-weight: 600; color: oklch(0.95 0.012 60); }
.footer-brand .tag { font-size: 14px; color: oklch(0.78 0.02 55); }
.footer-brand .bio { font-size: 13px; color: oklch(0.72 0.02 55); line-height: 1.5; margin: 10px 0 0; }
.footer-nav { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.footer-nav a { color: oklch(0.93 0.012 60); background-image: linear-gradient(oklch(0.99 0.002 60), oklch(0.99 0.002 60)); background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 1px; transition: background-size .3s; padding-bottom: 2px; width: fit-content; }
.footer-nav a:hover { background-size: 100% 1px; color: oklch(0.93 0.012 60); }
.footer-contact { display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: oklch(0.93 0.012 60); }
.footer-contact a { color: oklch(0.93 0.012 60); }
.footer-bottom { max-width: 1280px; margin: 40px auto 0; padding-top: 24px; border-top: 1px solid oklch(0.4 0.03 48 / 0.6); font-size: 13px; color: oklch(0.75 0.02 55); }

/* Page loader */
.page-loader { position: fixed; inset: 0; z-index: 1200; background: oklch(0.99 0.004 60); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 22px; transition: opacity .4s ease; }
.page-loader.hide { opacity: 0; pointer-events: none; }
.loader-ring { transform-origin: 44px 44px; animation: mw-ring-grow 1.4s ease-in-out infinite; }
.loader-crack { animation: mw-crack 1.4s ease-in-out infinite; }
@keyframes mw-ring-grow { 0% { transform: scale(0.15); opacity: 0; } 12% { opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes mw-crack { 0%, 30% { stroke-dashoffset: 42; opacity: 0; } 45% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 1; } }

/* Lightbox */
.lightbox { display: none; position: fixed; inset: 0; z-index: 970; background: rgba(0,0,0,0.85); align-items: center; justify-content: center; padding: 40px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.lightbox-close { position: absolute; top: 20px; right: 24px; background: none; border: none; color: oklch(0.99 0.005 60); font-size: 32px; cursor: pointer; }
