/*
Theme Name: Mr Service MN
Theme URI: https://mrservicemn.com/
Description: A fast, conversion-focused Twenty Twenty-Five child block theme for Mr Service MN.
Author: Mr Service MN
Template: twentytwentyfive
Version: 1.1.0
Text Domain: mr-service-mn
*/

:root {
  --ms-orange: #f4511e;
  --ms-orange-dark: #c9360f;
  --ms-blue: #0875c9;
  --ms-blue-dark: #064f89;
  --ms-ink: #17201f;
  --ms-muted: #5d6968;
  --ms-cream: #fff9f5;
  --ms-line: #dde5e4;
  --ms-shadow: 0 18px 48px rgba(23, 32, 31, .12);
}

html { scroll-behavior: smooth; }
body { color: var(--ms-ink); background: #fff; }
a { text-underline-offset: .2em; }
:focus-visible { outline: 3px solid #ffb399; outline-offset: 4px; }
.wp-site-blocks { padding: 0; }
.ms-main { min-height: 55vh; }
.ms-wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.ms-narrow { width: min(780px, calc(100% - 40px)); margin-inline: auto; }
.ms-section { padding: clamp(64px, 8vw, 108px) 0; }
.ms-section-tight { padding: clamp(44px, 6vw, 72px) 0; }
.ms-eyebrow { color: var(--ms-orange-dark); font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.ms-lead { color: var(--ms-muted); font-size: clamp(1.05rem, 1.8vw, 1.25rem); line-height: 1.7; }
.ms-center { text-align: center; }
.ms-center .ms-lead { max-width: 720px; margin-inline: auto; }

.ms-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--ms-line); backdrop-filter: blur(12px); }
.ms-header-inner { width: min(1180px, calc(100% - 32px)); margin: auto; min-height: 88px; display: flex; align-items: center; gap: 26px; justify-content: space-between; }
.ms-brand img { width: 152px; height: auto; display: block; }
.ms-nav { font-size: .88rem; font-weight: 700; }
.ms-nav .wp-block-navigation-item__content { color: var(--ms-ink); text-decoration: none; padding: 10px 4px; }
.ms-nav .wp-block-navigation-item__content:hover { color: var(--ms-orange-dark); }
.ms-call, .ms-button .wp-block-button__link { border-radius: 999px !important; background: var(--ms-orange) !important; color: #fff !important; box-shadow: 0 8px 22px rgba(244,81,30,.25); font-weight: 800; text-decoration: none; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.ms-call { padding: 13px 20px; white-space: nowrap; }
.ms-call:hover, .ms-button .wp-block-button__link:hover { transform: translateY(-2px); background: var(--ms-orange-dark) !important; box-shadow: 0 12px 28px rgba(244,81,30,.3); }
.ms-button-secondary .wp-block-button__link { border-radius: 999px !important; background: transparent !important; border: 2px solid currentColor; color: var(--ms-ink) !important; font-weight: 800; }
.ms-hero .ms-button-secondary .wp-block-button__link,
.ms-cta .ms-button-secondary .wp-block-button__link,
.ms-dark .ms-button-secondary .wp-block-button__link { color: #fff !important; }

.ms-hero { min-height: 720px; display: grid; align-items: center; position: relative; isolation: isolate; color: #fff; background-image: linear-gradient(90deg, rgba(15,23,22,.94) 0%, rgba(15,23,22,.82) 46%, rgba(15,23,22,.25) 100%), url(assets/images/hero-team.webp); background-size: cover; background-position: center right; }
.ms-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 8px; background: linear-gradient(90deg, var(--ms-orange) 0 50%, var(--ms-blue) 50%); z-index: -1; }
.ms-hero-content { width: min(1120px, calc(100% - 40px)); margin: auto; padding: 90px 0; }
.ms-hero h1 { max-width: 760px; font-size: clamp(3rem, 7vw, 5.9rem); line-height: .98; letter-spacing: -.055em; margin: 12px 0 24px; }
.ms-hero p { max-width: 650px; font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.65; color: #edf3f2; }
.ms-hero .ms-eyebrow { color: #ffb399; }
.ms-hero-actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.ms-trust-strip { background: var(--ms-ink); color: #fff; padding: 19px 0; }
.ms-trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; text-align: center; font-weight: 750; }
.ms-trust-grid span { color: #8fd0ff; margin-right: 8px; }

.ms-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 32px; }
.ms-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.ms-card { background: #fff; border: 1px solid var(--ms-line); border-radius: 20px; padding: 30px; box-shadow: 0 10px 30px rgba(23,32,31,.06); height: 100%; transition: transform .22s ease, box-shadow .22s ease; }
.ms-card:hover { transform: translateY(-5px); box-shadow: var(--ms-shadow); }
.ms-card h3 { margin: 16px 0 10px; font-size: 1.35rem; }
.ms-card p { color: var(--ms-muted); line-height: 1.7; }
.ms-icon { width: 50px; height: 50px; display: grid; place-items: center; background: #fff0ea; color: var(--ms-orange-dark); border-radius: 14px; font-size: 1.4rem; font-weight: 900; }
.ms-card-blue .ms-icon { background: #e9f5ff; color: var(--ms-blue-dark); }
.ms-card a { font-weight: 800; color: var(--ms-blue-dark); }
.ms-soft { background: var(--ms-cream); }
.ms-dark { background: var(--ms-ink); color: #fff; }
.ms-dark .ms-lead { color: #cbd5d4; }
.ms-photo-frame { height: 100%; min-height: 440px; border-radius: 24px; overflow: hidden; box-shadow: var(--ms-shadow); background: #fff; }
.ms-photo-frame figure,
.ms-photo-frame .ms-photo-image { margin: 0; height: 100%; }
.ms-photo-frame img { width: 100%; height: 100%; min-height: 440px; object-fit: cover; display: block; }
.ms-contact-image { margin: 24px 0 !important; border-radius: 18px; overflow: hidden; }
.ms-contact-image img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; }
.ms-work-grid { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ms-work-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ms-work-card { background: #fff; border: 1px solid var(--ms-line); border-radius: 22px; overflow: hidden; box-shadow: 0 10px 30px rgba(23,32,31,.08); transition: transform .22s ease, box-shadow .22s ease; }
.ms-work-card:hover { transform: translateY(-4px); box-shadow: var(--ms-shadow); }
.ms-work-card figure { margin: 0; }
.ms-work-card img { width: 100%; height: 270px; object-fit: cover; display: block; }
.ms-work-card h3 { margin: 22px 24px 8px; font-size: 1.25rem; }
.ms-work-card p { margin: 0 24px 26px; color: var(--ms-muted); line-height: 1.65; }
.ms-center-actions { justify-content: center; }
.ms-checklist { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 12px; }
.ms-checklist li { position: relative; padding-left: 34px; }
.ms-checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: #e8f7ef; color: #157347; display: grid; place-items: center; font-weight: 900; }
.ms-process { counter-reset: ms-step; }
.ms-process .ms-card { position: relative; padding-top: 62px; }
.ms-process .ms-card::before { counter-increment: ms-step; content: "0" counter(ms-step); position: absolute; left: 28px; top: 24px; color: var(--ms-orange); font-weight: 900; letter-spacing: .1em; }
.ms-cta { background: linear-gradient(135deg, var(--ms-blue-dark), var(--ms-blue)); color: #fff; border-radius: 26px; padding: clamp(38px, 6vw, 72px); box-shadow: var(--ms-shadow); }
.ms-cta h2 { margin-top: 0; }
.ms-city-grid { columns: 3 180px; column-gap: 40px; }
.ms-city-grid p { break-inside: avoid; margin: 0 0 12px; }
.ms-page-hero { padding: clamp(70px, 10vw, 130px) 0; background: linear-gradient(135deg, #101817, #263331); color: #fff; }
.ms-page-hero h1 { font-size: clamp(2.8rem, 6vw, 5rem); letter-spacing: -.045em; margin: 10px 0 20px; }
.ms-form-shell { background: #fff; border: 1px solid var(--ms-line); border-radius: 22px; padding: clamp(24px, 5vw, 48px); box-shadow: var(--ms-shadow); }
.wpforms-container input, .wpforms-container select, .wpforms-container textarea { border: 1px solid #bac6c5 !important; border-radius: 10px !important; padding: 13px 14px !important; }
.wpforms-container button[type=submit] { background: var(--ms-orange) !important; color: #fff !important; border: 0 !important; border-radius: 999px !important; padding: 14px 24px !important; font-weight: 800 !important; }
.ms-mobile-bar { display: none; }

.ms-footer { background: #111918; color: #dce4e3; padding: 64px 0 28px; }
.ms-footer-grid { width: min(1120px, calc(100% - 40px)); margin: auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; }
.ms-footer img { width: 170px; background: #fff; border-radius: 14px; padding: 8px; }
.ms-footer a { color: #fff; }
.ms-footer ul { list-style: none; padding: 0; line-height: 2; }
.ms-footer-bottom { width: min(1120px, calc(100% - 40px)); margin: 40px auto 0; border-top: 1px solid #33403e; padding-top: 24px; font-size: .82rem; color: #9eabaa; }
.ms-attribution { font-size: .72rem; opacity: .75; }

@media (max-width: 960px) {
  .ms-header-inner { min-height: 76px; }
  .ms-header .ms-call { display: none; }
  .ms-nav { order: 3; }
  .ms-grid-3 { grid-template-columns: 1fr 1fr; }
  .ms-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  body { padding-bottom: 66px; }
  .ms-brand img { width: 126px; }
  .ms-hero { min-height: 650px; background-image: linear-gradient(rgba(15,23,22,.88), rgba(15,23,22,.78)), url(assets/images/hero-team.webp); background-position: 64% center; }
  .ms-hero-content, .ms-wrap, .ms-narrow { width: min(100% - 28px, 1120px); }
  .ms-grid-2, .ms-grid-3, .ms-trust-grid, .ms-footer-grid { grid-template-columns: 1fr; }
  .ms-trust-grid { text-align: left; }
  .ms-photo-frame, .ms-photo-frame img { min-height: 300px; }
  .ms-work-grid, .ms-work-grid-3 { grid-template-columns: 1fr; }
  .ms-work-card img { height: 280px; }
  .ms-city-grid { columns: 2 130px; }
  .ms-mobile-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; z-index: 120; bottom: 0; left: 0; right: 0; box-shadow: 0 -8px 28px rgba(0,0,0,.18); }
  .ms-mobile-bar a { padding: 15px 8px; text-align: center; color: #fff; text-decoration: none; font-weight: 850; background: var(--ms-orange); }
  .ms-mobile-bar a:last-child { background: var(--ms-blue-dark); }
  .ms-footer { padding-bottom: 90px; }
}
@media (max-width: 390px) {
  .ms-city-grid { columns: 1; }
  .ms-hero h1 { font-size: 2.75rem; }
  .ms-card { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Mr Service WPForms anti-spam field visibility fix */
#wpforms-form-10 #wpforms-10-field_8-container { position: absolute !important; left: -10000px !important; top: auto !important; width: 1px !important; height: 1px !important; overflow: hidden !important; opacity: 0 !important; pointer-events: none !important; }
