/*
Theme Name: MC Support
Description: Move Concierge partner support pages (MC_2026_Website_SupportPages_Refresh). Requires the MC Support plugin.
Version: 1.0.0
Requires PHP: 5.6
Text Domain: mc-support
*/

:root {
    --mc-navy: #164a80;
    --mc-green: #73c421;
    --mc-blue: #2ea3df;
    --mc-orange: #ff8a3d;
    --mc-coral: #f4664f;
    --mc-yellow: #ffd12e;
    --mc-ink: #111;
    --mc-muted: #444;
    --mc-line: #d9d9d9;
    --mc-sans: "Red Hat Display", system-ui, sans-serif;
    --mc-serif: "PT Serif", Georgia, serif;
    --mc-radius-lg: 30px;
    --mc-radius: 22px;
    --mc-width: 1000px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: #fff;
    color: var(--mc-ink);
    font-family: var(--mc-sans);
    font-size: 18px;
    line-height: 1.45;
    overflow-x: hidden;
    overflow-wrap: anywhere;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

em { font-family: var(--mc-serif); font-style: italic; font-weight: 400; }

h1, h2, h3, h4 { margin: 0; line-height: 1.12; }

p { margin: 0 0 .5em; }

.mc-container {
    width: 100%;
    max-width: calc(var(--mc-width) + 32px);
    margin: 0 auto;
    padding: 0 16px;
}

.mc-center { text-align: center; }

.mc-section { padding: 48px 16px; }
.mc-container.mc-section { padding-left: 16px; padding-right: 16px; }

/* Type */
.mc-display { font-size: clamp(36px, 5.2vw, 56px); font-weight: 700; letter-spacing: -.01em; }
.mc-display--section { margin-bottom: 40px; }
.mc-h1 { font-size: clamp(28px, 3.6vw, 38px); font-weight: 700; }
.mc-h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; margin-bottom: 18px; }
.mc-h4 { font-size: 21px; font-weight: 700; margin-bottom: 32px; }
.mc-lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.35; }
.mc-subhead { font-size: 21px; margin: 12px 0 24px; }
.mc-referral-copy { max-width: 680px; margin: 0 auto; }

/* Header */
/* White label logo left, partner logo right, matching the flyer. */
.mc-site-header { position: relative; padding: 36px 0 12px; }
.mc-site-header__inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.mc-site-header__logo, .mc-site-header__partner { display: block; min-width: 0; text-decoration: none; }
/* The left logo keeps its size; a long partner name wraps instead of squeezing it. */
.mc-site-header__logo { flex: 0 0 auto; max-width: 60%; }
.mc-site-header__partner { text-align: right; }
.mc-logo { display: block; max-height: 76px; max-width: 290px; width: auto; }
.mc-logo-text { display: block; font-size: 26px; font-weight: 900; line-height: 1.15; color: var(--mc-navy); }

/* Blue and orange circles tucked behind the video's bottom-right corner. .mc-deco is a
   zero-size anchor on that corner, so scaling it on small screens scales the offsets too. */
.mc-hero__media { position: relative; }
/* The orange circle runs past the screen edge on tablets; clip it there instead of letting the page scroll sideways. */
.mc-main { overflow-x: clip; }
.mc-hero__media .mc-video { z-index: 1; }
.mc-deco { position: absolute; right: 0; bottom: 0; width: 0; height: 0; pointer-events: none; }
.mc-deco__blue, .mc-deco__orange { position: absolute; border-radius: 50%; }
.mc-deco__blue { width: 70px; height: 70px; background: var(--mc-blue); left: -145px; top: -25px; }
.mc-deco__orange { width: 170px; height: 170px; background: var(--mc-orange); left: -118px; top: -131px; }

/* Hero */
.mc-hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; padding-top: 36px; padding-bottom: 48px; position: relative; z-index: 1; }
.mc-hero__copy .mc-display { margin-bottom: 40px; }
.mc-video { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9; background: #1b2a2a; box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.mc-video img, .mc-video iframe, .mc-video video { width: 100%; height: 100%; object-fit: cover; border: 0; }
.mc-video__play { position: absolute; top: 50%; left: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%; border: 0; background: #4caf1e; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.mc-video__play::after { content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%); border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent #fff; }
.mc-video__play:hover, .mc-video__play:focus-visible { background: #3f9818; }

/* Services */
.mc-services { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: space-around; gap: 24px 12px; }
.mc-services__item { width: 130px; display: flex; flex-direction: column; align-items: center; gap: 14px; font-size: 21px; line-height: 1.15; }
.mc-services__item svg { width: 80px; height: 80px; }

/* Security bonus */
.mc-bonus { display: grid; grid-template-columns: 330px 1fr; align-items: center; gap: 32px; border-radius: var(--mc-radius-lg); padding: 24px 40px 24px 32px; color: #fff; background: linear-gradient(90deg, #6fc227 0%, #4db88a 45%, #2ea3df 100%); margin: 16px 0; }
.mc-bonus__art { position: relative; height: 200px; }
.mc-bonus__sun, .mc-bonus__moon { position: absolute; border-radius: 50%; }
.mc-bonus__sun { width: 160px; height: 160px; background: var(--mc-yellow); left: 0; top: 30px; }
.mc-bonus__moon { width: 140px; height: 140px; background: var(--mc-blue); left: 150px; top: 60px; }
.mc-bonus__art img { position: absolute; left: 50px; bottom: -24px; width: 230px; }
.mc-bonus__title { font-size: 21px; font-weight: 700; margin-bottom: 14px; }
.mc-bonus p { font-size: 21px; margin-bottom: 12px; }
.mc-bonus strong { font-weight: 700; }

/* Steps */
.mc-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.mc-step img { height: 200px; width: auto; margin: 0 auto 26px; }
.mc-step h3 { font-size: 28px; font-weight: 900; margin: 14px 0 18px; }
.mc-step p { font-size: 16px; line-height: 1.65; color: var(--mc-muted); }
.mc-pill { display: inline-block; padding: 4px 12px; border-radius: 99px; background: #eee; color: #555; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

/* Resources panel */
.mc-panel { border: 2px solid var(--mc-line); border-radius: var(--mc-radius-lg); padding: 64px 16px 40px; background: linear-gradient(135deg, #fff4f3 0%, #f4f3fb 50%, #e8edfd 100%); }
.mc-panel .mc-h2 { margin-top: 36px; }
.mc-panel .mc-h2:first-child { margin-top: 0; }
.mc-card { background: #fff; border: 2px solid var(--mc-line); border-radius: var(--mc-radius); }
.mc-card-grid { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 24px; padding: 26px 24px 20px; margin-bottom: 20px; }
.mc-card-grid__item { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 180px; }
.mc-card-grid__item h3 { font-size: 21px; font-weight: 500; }
.mc-quote { font-size: 18px; margin: -6px 0 4px; }
.mc-button { display: inline-flex; align-items: center; justify-content: center; min-width: 150px; padding: 11px 26px; border: 0; border-radius: 99px; background: var(--mc-navy); color: #fff; font: 700 17px/1.2 var(--mc-sans); text-decoration: none; cursor: pointer; }
.mc-button:hover, .mc-button:focus-visible { background: #0f3761; }
.mc-button.is-playing { background: var(--mc-green); }
.mc-button.is-disabled { background: #9aa9ba; cursor: default; }

/* Contacts (Goosehead) */
.mc-contacts { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 28px; }
.mc-contact { display: grid; grid-template-columns: 96px 1fr 1fr 1.4fr; align-items: center; gap: 16px; padding: 14px 28px; border: 2px solid var(--mc-line); border-radius: var(--mc-radius); text-align: center; font-size: 17px; }
.mc-contact__cell { display: flex; flex-direction: column; overflow-wrap: anywhere; }
.mc-contact__cell strong { font-size: 21px; }
.mc-contact__cell a { text-decoration: none; }
.mc-contact__photo { position: relative; width: 94px; height: 94px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; }
.mc-contact__photo--yellow { background: var(--mc-yellow); }
.mc-contact__photo--blue { background: var(--mc-blue); }
.mc-contact__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mc-contact__initials { font-size: 30px; font-weight: 700; color: #fff; }

/* Questions */
.mc-questions p { font-size: 20px; margin: 0; }
.mc-questions a { text-decoration: none; }
.mc-questions .mc-h2 { margin-bottom: 12px; }

/* Letters: email templates and scripts */
.mc-back { margin: 12px 0 0; font-size: 16px; }
.mc-back a { color: var(--mc-navy); text-decoration: none; font-weight: 500; }
.mc-letter { position: relative; padding: 48px clamp(20px, 11%, 118px); margin-bottom: 24px; font-size: 21px; line-height: 1.33; scroll-margin-top: 24px; }
.mc-letter__body p { margin: 0 0 1.33em; }
.mc-letter__body p:last-child { margin-bottom: 0; }
.mc-letter__body ol { margin: -1em 0 1.33em; padding-left: 1.5em; }
.mc-agent { color: var(--mc-green); }
.mc-audio { width: 100%; margin: 0 0 1.2em; }
.mc-copy { position: absolute; top: 16px; right: 16px; border: 2px solid var(--mc-line); background: #fff; border-radius: 99px; padding: 6px 14px; font: 700 14px var(--mc-sans); color: var(--mc-navy); cursor: pointer; }
.mc-copy:hover, .mc-copy:focus-visible { border-color: var(--mc-navy); }

/* Footer */
.mc-site-footer { margin-top: 48px; }
.mc-site-footer__card { position: relative; border: 1px solid #e3e3e3; border-bottom: 0; border-radius: 40px 40px 0 0; padding: 64px 16px 48px 128px; overflow: hidden; }
.mc-site-footer__line { position: absolute; left: -10px; top: 40px; width: 92px; height: 50px; border-bottom: 3px solid var(--mc-green); border-radius: 0 0 60px 0 / 0 0 30px 0; transform: rotate(8deg); }
/* Centered on the curve's end point (bottom-right corner arc of .mc-site-footer__line: 60px/30px radius on a 92x50 box, so the arc meets the right edge 30px above the box bottom). */
.mc-site-footer__line::after { content: ""; position: absolute; right: -7px; bottom: 23px; width: 14px; height: 14px; border-radius: 50%; background: var(--mc-green); box-shadow: 0 0 0 5px rgba(115, 196, 33, .25); }
.mc-site-footer__title { font-size: clamp(40px, 5.2vw, 57px); font-weight: 700; line-height: 1.12; margin: 0 0 40px; }
.mc-site-footer__legal { font-size: 14px; color: #777; margin: 0; }

.mc-prose { padding-top: 40px; padding-bottom: 40px; }

/* Desktop section rhythm (client feedback: tighter gap around "How referrals work",
   more room before the SPIF banner and above "What to expect"). No Figma spec was
   available for these; values below are proposed and open to adjustment. */
@media (min-width: 861px) {
    .mc-hero { padding-bottom: 16px; }
    .mc-section--referrals { padding-top: 16px; padding-bottom: 24px; }
    .mc-section--services { padding-top: 24px; padding-bottom: 72px; }
    .mc-section--expect { padding-top: 88px; }

    /* No SPIF banner between services and "What to expect" (generic page, white-label
       partners without a Security Bonus): the 88px top padding above stacks with the
       72px below services, so trim it back to match the gap partners with a banner get
       between the services row and the banner (72px + this section's 16px = 88px). */
    .mc-section--services + .mc-section--expect { padding-top: 16px; }
}

/* Tablet and phone */
@media (max-width: 860px) {
    .mc-hero { grid-template-columns: 1fr; gap: 28px; }
    .mc-hero__copy .mc-display { margin-bottom: 20px; }
    .mc-deco { transform: scale(.7); }
    .mc-logo { max-width: 200px; max-height: 60px; }
    .mc-bonus { grid-template-columns: 1fr; padding: 24px; text-align: center; }
    .mc-bonus__art { width: 290px; margin: 0 auto; }
    .mc-steps { grid-template-columns: 1fr; gap: 48px; }
    .mc-contact { grid-template-columns: 1fr; justify-items: center; padding: 20px; }
    .mc-panel { padding: 40px 12px 24px; }
    .mc-letter { padding-top: 64px; font-size: 18px; }
    .mc-site-footer__card { padding-left: 32px; padding-right: 20px; padding-top: 96px; }
    .mc-site-footer__line { top: 40px; }

    /* Fixed 3-column rows (client feedback: 3+3 for 6 services; any partial last row —
       e.g. 5 when Home Warranty is hidden — centers and stays tight instead of stretching). */
    .mc-services { justify-content: center; gap: 24px 10px; }
    .mc-services__item { width: auto; flex: 0 0 calc((100% - 20px) / 3); max-width: 130px; }
}

@media (max-width: 480px) {
    body { font-size: 16px; }
    .mc-site-header__inner { gap: 16px; }
    .mc-logo { max-width: 100%; max-height: 44px; }
    .mc-site-header__logo { max-width: 50%; }
    .mc-logo-text { font-size: 15px; }
    .mc-deco { transform: scale(.5); }
    .mc-hero { padding-top: 20px; }
    .mc-container, .mc-container.mc-section { padding-left: 20px; padding-right: 20px; }
    .mc-services__item { font-size: 16px; }
    .mc-services__item svg { width: 64px; height: 64px; }
    .mc-step h3 { font-size: 24px; }
    .mc-card-grid__item { min-width: 0; width: 100%; }
}
