/* Mesa Construction — styles.css */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700;900&family=Lexend:wght@400;500;700&display=swap');

:root {
  --ease: cubic-bezier(0.22,1,0.36,1);
  --gold: #c9a96e; --gold-dk: #a8874d;
  --grn: #30721d; --grn-lt: rgba(48,114,29,0.18); --grn-brd: rgba(48,114,29,0.28);
  --bg: #0c0c0e; --surf: #151518; --surf2: #1d1d22;
  --txt: #f0ede8; --mut: rgba(240,237,232,0.72); --brd: rgba(201,169,110,0.14);
}
body.lm {
  --bg: #f0ede8; --surf: #e5e1da; --surf2: #d8d3ca;
  --txt: #1a1714; --mut: rgba(26,23,20,0.72); --brd: rgba(168,135,77,0.2);
  --grn-lt: rgba(48,114,29,0.1); --grn-brd: rgba(48,114,29,0.22);
}
body.dy { font-family: 'Lexend', system-ui, sans-serif !important; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--txt);
  font-family: 'Geist', system-ui, sans-serif;
  font-size: 18px; line-height: 1.65;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}

/* Scroll progress */
#mc-prog {
  position: fixed; top: 0; left: 0; height: 2px;
  background: linear-gradient(90deg, #1e5a14, var(--grn), #4da832);
  z-index: 99997; width: 0%; transition: width .1s linear; pointer-events: none;
}

/* Keyframes */
@keyframes kb { 0% { transform: scale(1) translate(0,0); } 100% { transform: scale(1.12) translate(-2%,-1.5%); } }
@keyframes fu { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fi { from { opacity: 0; } to { opacity: 1; } }
@keyframes sl { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes gr { 0%,100% { transform: translate(0,0); } 33% { transform: translate(-2px,1px); } 66% { transform: translate(1px,-2px); } }
@keyframes scrollHint { 0%,100% { transform: translateY(0); opacity: .6; } 50% { transform: translateY(6px); opacity: 1; } }

/* Reveal animations */
.rv { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.d1 { transition-delay: .07s; } .d2 { transition-delay: .14s; } .d3 { transition-delay: .21s; }
.d4 { transition-delay: .28s; } .d5 { transition-delay: .35s; }

/* Button classes */
.nb {
  background: transparent; border: none; color: var(--txt); cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 500; letter-spacing: .04em;
  padding: 4px 0; position: relative; text-decoration: none; display: inline-block;
}
.nb::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 1px; background: var(--grn); transform: scaleX(0);
  transform-origin: left; transition: transform .35s var(--ease);
}
.nb:hover::after, .nb.on::after { transform: scaleX(1); }

.fb {
  background: transparent; border: none; text-align: left; color: var(--mut);
  cursor: pointer; font-family: inherit; font-size: 14px; padding: 0;
  position: relative; display: block; transition: color .2s; text-decoration: none;
}
.fb::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 1px; background: var(--grn); transform: scaleX(0);
  transform-origin: left; transition: transform .3s var(--ease);
}
.fb:hover { color: var(--txt); }
.fb:hover::after { transform: scaleX(1); }

.ib {
  background: transparent; border: none; color: var(--txt); cursor: pointer;
  padding: 8px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 6px; transition: background .2s, color .2s;
}
.ib:hover { background: rgba(48,114,29,.12); color: var(--grn); }

.gb {
  background: var(--grn); color: #fff; border: none; cursor: pointer;
  font-family: inherit; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  transition: background .25s var(--ease), transform .2s;
  display: inline-flex; align-items: center; justify-content: center;
}
.gb:hover { background: #256018; transform: translateY(-1px); }

.gho {
  background: transparent; color: var(--gold); border: 1px solid var(--gold);
  cursor: pointer; font-family: inherit; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  transition: background .25s, color .25s;
  display: inline-flex; align-items: center; justify-content: center;
}
.gho:hover { background: var(--gold); color: #0c0c0e; }

/* Tag label */
.tg { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--grn); font-weight: 600; }

/* Service card */
.sc {
  background: var(--surf); border: 1px solid var(--brd); overflow: hidden;
  cursor: pointer; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.sc:hover { transform: translateY(-6px); box-shadow: 0 24px 64px rgba(0,0,0,.5); border-color: rgba(48,114,29,.5); }
.sc .ci { overflow: hidden; }
.sc .ci img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s var(--ease); }
.sc:hover .ci img { transform: scale(1.06); }
.sc .ar { display: inline-flex; transition: transform .3s var(--ease); }
.sc:hover .ar { transform: translateX(4px); }

/* Hero */
.hero { position: relative; overflow: hidden; display: flex; align-items: flex-start; }
.hero .kb { position: absolute; inset: 0; animation: kb 22s ease-in-out infinite alternate; will-change: transform; }
.hero .kb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero .ov { position: absolute; inset: 0; background: linear-gradient(150deg, rgba(12,12,14,.3) 0%, rgba(12,12,14,.6) 45%, rgba(12,12,14,.94) 85%); }
.hero .fd { position: absolute; bottom: 0; left: 0; right: 0; height: 160px; background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none; }
.hero .ct { position: relative; z-index: 2; width: 100%; padding: clamp(100px,15vh,160px) clamp(20px,6vw,100px) clamp(80px,10vw,130px); }

/* Grain */
#mc-grain {
  position: fixed; inset: -10%; width: 120%; height: 120%;
  pointer-events: none; z-index: 8000; opacity: .042;
  animation: gr 8s steps(3) infinite;
}

/* Cursor */
#cr-ring {
  position: fixed; top: -40px; left: -40px; width: 30px; height: 30px;
  border: 1.5px solid rgba(48,114,29,.8); border-radius: 50%;
  pointer-events: none; z-index: 99999; transform: translate(-50%,-50%);
  opacity: 0; transition: opacity .3s; box-shadow: 0 0 18px 4px rgba(48,114,29,0.12);
}
#cr-dot {
  position: fixed; top: -40px; left: -40px; width: 5px; height: 5px;
  background: var(--grn); border-radius: 50%; pointer-events: none;
  z-index: 99999; transform: translate(-50%,-50%); opacity: 0; transition: opacity .3s;
}

/* Header */
header {
  position: sticky; top: 0; z-index: 5000;
  background: rgba(10,10,12,.95); backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px); border-bottom: 1px solid rgba(201,169,110,.15);
}
.header-inner {
  max-width: 1360px; margin: 0 auto; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(16px,4vw,56px); gap: 16px;
}
.logo-btn { background: transparent; border: none; cursor: pointer; padding: 0; display: flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.logo-btn img { height: 46px; width: auto; display: block; filter: drop-shadow(0 2px 8px rgba(48,114,29,0.2)); }

nav.desktop-nav { display: flex; gap: 0; align-items: center; }
nav.desktop-nav a {
  background: transparent; border: none; color: var(--txt); cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 500; letter-spacing: .04em;
  padding: 8px 18px; position: relative; text-decoration: none; display: block;
}
nav.desktop-nav a::after {
  content: ''; position: absolute; bottom: -2px; left: 18px; right: 18px;
  height: 1px; background: var(--grn); transform: scaleX(0);
  transform-origin: left; transition: transform .35s var(--ease);
}
nav.desktop-nav a:hover::after, nav.desktop-nav a.on::after { transform: scaleX(1); }

/* Phone pill */
.ph-pill {
  display: flex; align-items: center; gap: 7px; background: transparent;
  border: 1px solid rgba(201,169,110,.3); color: var(--txt);
  padding: 8px 14px; cursor: pointer; font-family: inherit; font-size: 12px;
  font-weight: 600; letter-spacing: .04em; transition: border-color .2s, background .2s;
}
.ph-pill:hover { border-color: var(--gold); background: rgba(201,169,110,.06); }

/* Mobile menu */
#mobile-menu {
  display: none; background: var(--surf); border-top: 1px solid var(--brd);
  padding: 8px 20px 20px; animation: fi .15s;
}
#mobile-menu.open { display: block; }
#mobile-menu a {
  display: block; width: 100%; text-align: left; background: transparent;
  border: none; cursor: pointer; color: var(--txt); font-size: 17px;
  font-weight: 500; padding: 15px 0; border-bottom: 1px solid var(--brd);
  text-decoration: none; font-family: inherit;
}
#mobile-menu .gb { width: 100%; padding: 14px; font-size: 14px; margin-top: 14px; }

/* Settings panel */
#settings-panel {
  position: fixed; top: 0; right: 0; width: min(360px,100vw); height: 100dvh;
  z-index: 6000; background: var(--surf); border-left: 1px solid var(--brd);
  padding: 28px; overflow-y: auto; animation: sl .3s var(--ease);
  box-shadow: -20px 0 60px rgba(0,0,0,.4); display: none;
}
#settings-panel.open { display: block; }
#settings-overlay { position: fixed; inset: 0; z-index: 5999; background: rgba(0,0,0,.45); display: none; }
#settings-overlay.open { display: block; }

/* Toggle switch */
.toggle-wrap { display: flex; width: 44px; height: 24px; border-radius: 12px; background: rgba(255,255,255,0.07); border: 1px solid rgba(201,169,110,0.2); position: relative; cursor: pointer; transition: background .3s; flex-shrink: 0; padding: 3px; align-items: center; }
.toggle-wrap.on { background: var(--grn); }
.toggle-dot { width: 16px; height: 16px; border-radius: 50%; background: white; box-shadow: 0 1px 3px rgba(0,0,0,0.3); transition: transform .3s var(--ease); flex-shrink: 0; }
.toggle-wrap.on .toggle-dot { transform: translateX(20px); }

/* Carousel */
.carousel { position: relative; }
.carousel-track { position: relative; overflow: hidden; }
.carousel-track img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.45); border: none; color: #fff;
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  font-size: 18px; display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px); z-index: 2;
}
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }
.carousel-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 2; }
.carousel-dot { width: 8px; height: 8px; border-radius: 50%; cursor: pointer; transition: background .3s; background: rgba(255,255,255,0.5); border: none; padding: 0; }
.carousel-dot.active { background: rgba(48,114,29,1); }

/* Testimonial dots */
.t-dot { height: 8px; border-radius: 4px; border: none; cursor: pointer; transition: all .35s var(--ease); background: rgba(48,114,29,0.25); width: 8px; }
.t-dot.active { background: #30721d; width: 24px; }

/* FAQ */
details { border-bottom: 1px solid var(--brd); }
details summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; align-items: center; justify-content: space-between; font-size: clamp(1rem,1.8vw,1.08rem); font-weight: 600; }
details summary::-webkit-details-marker { display: none; }
details summary .faq-icon { width: 22px; height: 22px; border-radius: 50%; background: rgba(48,114,29,.1); border: 1px solid var(--brd); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--grn); font-size: 16px; transition: transform .3s; }
details[open] summary .faq-icon { transform: rotate(45deg); }
details .faq-body { padding-bottom: 20px; color: var(--mut); line-height: 1.8; font-size: 15px; }

/* Footer */
footer { background: var(--surf); border-top: 1px solid var(--brd); padding: clamp(60px,8vw,96px) clamp(20px,6vw,80px) 34px; }
.footer-inner { max-width: 1340px; margin: 0 auto; }

/* Social icons */
.social-link {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 9px 11px; background: var(--surf2); border: 1px solid var(--grn-brd);
  border-radius: 10px; color: rgba(48,114,29,0.85); text-decoration: none;
  transition: border-color .2s, color .2s, background .2s; font-size: 9px;
  font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.social-link:hover { border-color: var(--grn); color: var(--grn); background: var(--grn-lt); }

/* Map */
.map-wrap { border-radius: 10px; overflow: hidden; border: 1px solid var(--brd); position: relative; margin-bottom: 36px; }
.map-badge { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--surf); border: 1px solid var(--brd); border-radius: 8px; padding: 8px 13px; display: flex; align-items: center; gap: 8px; box-shadow: 0 4px 20px rgba(0,0,0,.4); }
.map-wrap iframe { display: block; border: none; filter: invert(0.88) hue-rotate(175deg) saturate(0.45) brightness(0.82); opacity: .9; }

/* Responsive grid utilities */
.mc-svc-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--brd); }
.mc-ft-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: clamp(28px,4vw,56px); margin-bottom: 52px; }
.mc-cf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.mc-how-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 1px; background: var(--brd); }

/* Form inputs */
input, select, textarea {
  background: var(--surf); border: 1px solid var(--brd); color: var(--txt);
  padding: 12px 14px; font-size: 15px; font-family: inherit; outline: none;
  transition: border-color .2s; width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--grn); }
textarea { resize: vertical; line-height: 1.6; }
label { font-size: 11px; letter-spacing: .13em; text-transform: uppercase; font-weight: 600; color: var(--mut); display: block; margin-bottom: 6px; }

/* Scroll hint */
.scroll-hint { animation: scrollHint 2s ease-in-out infinite; display: flex; flex-direction: column; align-items: center; gap: 5px; opacity: .5; }

/* Pointer: fine — custom cursor */
@media (pointer: fine) { html { cursor: none; } * { cursor: none !important; } }

/* Desktop only / mobile only */
@media (max-width: 767px) { .dk { display: none !important; } }
@media (min-width: 768px) { .mo { display: none !important; } }

/* Responsive grids */
@media (max-width: 680px) {
  .mc-svc-grid { grid-template-columns: 1fr !important; }
  .mc-ft-grid { grid-template-columns: 1fr 1fr !important; gap: 32px !important; }
  .mc-cf-grid { grid-template-columns: 1fr !important; }
  .mc-how-grid { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 420px) {
  .mc-ft-grid { grid-template-columns: 1fr !important; }
  .mc-how-grid { grid-template-columns: 1fr !important; }
}
@media (min-width: 681px) and (max-width: 900px) {
  .mc-svc-grid { grid-template-columns: repeat(2,1fr) !important; }
}

/* Draw lines */
.draw-line { display: block; height: 1px; background: var(--grn); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.rv.in .draw-line { transform: scaleX(1); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .rv { opacity: 1 !important; transform: none !important; }
}


/* mm-batch-patch: drawer centering */
#mobile-menu{align-items:center;}
#mobile-menu > *:not(button){width:100%;max-width:440px;margin-left:auto;margin-right:auto;}
