/*
Theme Name: MATSONNS Growth
Theme URI: https://matsonns.com/
Author: MATSONNS
Author URI: https://matsonns.com/
Description: A complete, responsive WordPress theme for MATSONNS ecommerce retail, wholesale supply, ecommerce consultancy and training, and IT services. Inspired by modern ecommerce education and agency websites, with original MATSONNS copy and imagery.
Version: 1.0.0
Requires at least: 6.1
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: matsonns-growth
Tags: business, blog, ecommerce, custom-logo, custom-menu, featured-images, full-width-template, translation-ready
*/

:root {
  --ms-ink: #102b36;
  --ms-ink-2: #183d49;
  --ms-teal: #10a9a2;
  --ms-teal-dark: #087d79;
  --ms-gold: #c59a42;
  --ms-paper: #f5f8f7;
  --ms-white: #ffffff;
  --ms-muted: #61737a;
  --ms-line: #dce6e5;
  --ms-shadow: 0 18px 48px rgba(16,43,54,.09);
  --ms-radius: 22px;
  --ms-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ms-ink); background: #fff; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--ms-teal-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ms-ink); }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid var(--ms-gold); outline-offset: 3px; }
.container { width: min(var(--ms-width), calc(100% - 44px)); margin-inline: auto; }
.narrow { max-width: 780px; }
.section { padding: clamp(62px, 8vw, 104px) 0; }
.section--soft { background: var(--ms-paper); }
.section--dark { color: white; background: var(--ms-ink); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: white; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px; color: var(--ms-teal-dark); font-size: .78rem; line-height: 1.2; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; display: inline-block; width: 25px; height: 2px; background: var(--ms-gold); }
h1, h2, h3, h4 { color: var(--ms-ink); font-weight: 750; letter-spacing: -.04em; line-height: 1.12; margin: 0 0 18px; }
h1 { font-size: clamp(2.6rem, 5.2vw, 4.7rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
h4 { font-size: 1.1rem; }
p { margin: 0 0 18px; }
.lead { color: #4d6269; font-size: clamp(1.08rem, 1.8vw, 1.27rem); line-height: 1.7; max-width: 720px; }
.section-heading { max-width: 760px; margin-bottom: 38px; }
.section-heading.center { margin-inline: auto; text-align: center; }
.section-heading.center .eyebrow { justify-content: center; }
.section-heading.center p { margin-inline: auto; }
.muted { color: var(--ms-muted); }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 13px 21px; border: 1px solid transparent; border-radius: 9px; font-size: .95rem; font-weight: 750; line-height: 1.2; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; cursor: pointer; }
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn--primary { color: white; background: var(--ms-teal); box-shadow: 0 8px 20px rgba(16,169,162,.19); }
.btn--primary:hover { color: white; background: var(--ms-teal-dark); box-shadow: 0 12px 26px rgba(16,169,162,.22); }
.btn--dark { color: white; background: var(--ms-ink); }
.btn--dark:hover { color: white; background: var(--ms-ink-2); }
.btn--outline { color: var(--ms-ink); border-color: #b9cdcf; background: rgba(255,255,255,.75); }
.btn--outline:hover { color: var(--ms-ink); border-color: var(--ms-teal); background: white; }
.btn--white { color: var(--ms-ink); background: white; }
.btn--white:hover { color: var(--ms-ink); background: #f1fbfa; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 750; text-decoration: none; }
.text-link::after { content: "→"; transition: transform .2s ease; }
.text-link:hover::after { transform: translateX(4px); }

/* Header & navigation */
.site-header { position: relative; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(220,230,229,.75); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 86px; gap: 28px; }
.site-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ms-ink); text-decoration: none; min-width: 190px; }
.site-brand:hover { color: var(--ms-ink); }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 39px; height: 39px; border-radius: 11px; color: white; background: var(--ms-ink); font-size: 1.18rem; font-weight: 900; letter-spacing: -.08em; box-shadow: inset -5px -5px 0 rgba(16,169,162,.8); }
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: 1.16rem; letter-spacing: .06em; font-weight: 900; }
.brand-tagline { margin-top: 7px; color: var(--ms-muted); font-size: .59rem; font-weight: 800; letter-spacing: .13em; white-space: nowrap; }
.custom-logo-link { display: inline-flex; max-width: 220px; align-items: center; }
.custom-logo { max-width: 210px; max-height: 58px; width: auto; height: auto; object-fit: contain; }
.primary-nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 27px); }
.primary-nav ul { list-style: none; display: flex; align-items: center; gap: clamp(13px, 1.8vw, 23px); margin: 0; padding: 0; }
.primary-nav li { margin: 0; padding: 0; }
.primary-nav a { color: #29434c; font-size: .88rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--ms-teal-dark); }
.nav-cta { min-height: 43px; padding: 11px 17px; font-size: .86rem; white-space: nowrap; }
.menu-toggle { display: none; color: var(--ms-ink); border: 1px solid var(--ms-line); border-radius: 9px; background: white; width: 45px; height: 43px; font-size: 1.3rem; cursor: pointer; }
.mobile-cta { display: none; }

/* Homepage */
.hero { overflow: hidden; padding: clamp(48px, 7vw, 92px) 0 66px; background: linear-gradient(130deg, #f5faf9 0%, #fff 58%, #eef9f7 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); align-items: center; gap: clamp(34px, 6vw, 82px); }
.hero h1 { max-width: 710px; margin-bottom: 22px; }
.hero h1 .accent { color: var(--ms-teal-dark); }
.hero-copy .lead { margin-bottom: 0; }
.hero-micro { display: flex; flex-wrap: wrap; gap: 17px; color: #51656c; font-size: .86rem; font-weight: 650; margin-top: 26px; }
.hero-micro span { display: inline-flex; align-items: center; gap: 7px; }
.hero-micro span::before { content: "✓"; display: inline-flex; align-items: center; justify-content: center; width: 19px; height: 19px; border-radius: 50%; background: #d9f5f1; color: var(--ms-teal-dark); font-size: .72rem; font-weight: 900; }
.hero-visual { position: relative; min-height: 420px; }
.hero-image-frame { overflow: hidden; position: absolute; inset: 0 0 24px 12px; border-radius: 30px 30px 95px 30px; background: #d9e5e0; box-shadow: var(--ms-shadow); }
.hero-image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-image-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 56%, rgba(16,43,54,.16)); }
.hero-badge { position: absolute; right: -12px; bottom: 0; z-index: 2; width: min(250px, 60%); padding: 21px 23px; border: 1px solid rgba(255,255,255,.7); border-radius: 18px; background: rgba(255,255,255,.96); box-shadow: var(--ms-shadow); }
.hero-badge strong { display: block; color: var(--ms-ink); font-size: 1rem; line-height: 1.35; }
.hero-badge span { display: block; color: var(--ms-muted); font-size: .82rem; margin-top: 6px; }
.hero-orbit { position: absolute; z-index: 1; left: -18px; top: -19px; width: 86px; height: 86px; border-radius: 50%; border: 16px solid rgba(16,169,162,.15); }
.proof-strip { border-top: 1px solid var(--ms-line); border-bottom: 1px solid var(--ms-line); background: #fff; }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 23px 0; }
.proof-item { display: flex; align-items: center; justify-content: center; gap: 11px; color: var(--ms-ink); font-size: .92rem; font-weight: 750; }
.proof-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px; color: var(--ms-teal-dark); background: #e6f7f5; font-size: 1.05rem; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card-grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.service-card, .info-card, .post-card { min-width: 0; border: 1px solid var(--ms-line); border-radius: var(--ms-radius); background: white; box-shadow: 0 7px 25px rgba(16,43,54,.035); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.service-card:hover, .info-card:hover, .post-card:hover { transform: translateY(-4px); border-color: #b6dcd8; box-shadow: var(--ms-shadow); }
.service-card { padding: 29px; }
.card-icon { display: inline-flex; align-items: center; justify-content: center; width: 49px; height: 49px; margin-bottom: 21px; border-radius: 14px; background: #e2f6f4; color: var(--ms-teal-dark); font-size: 1.35rem; }
.service-card p, .info-card p { color: var(--ms-muted); font-size: .95rem; }
.service-card h3 { margin-bottom: 13px; }
.service-card .text-link { margin-top: 4px; }
.split-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(35px, 7vw, 90px); }
.split-visual { position: relative; border-radius: 26px; overflow: hidden; background: #e0ece9; min-height: 390px; }
.split-visual img { display: block; width: 100%; height: 100%; min-height: 390px; object-fit: cover; }
.split-visual--plain { padding: 34px; display: flex; flex-direction: column; justify-content: center; background: linear-gradient(145deg, var(--ms-ink), #24515c); color: #fff; }
.split-visual--plain h3 { color: #fff; font-size: 2rem; }
.mini-points { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin: 26px 0 0; }
.mini-point { padding: 14px 15px; border-radius: 12px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); font-size: .9rem; font-weight: 700; }
.check-list { list-style: none; margin: 24px 0; padding: 0; }
.check-list li { position: relative; padding: 0 0 13px 30px; }
.check-list li::before { position: absolute; left: 0; top: 3px; content: "✓"; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; color: var(--ms-teal-dark); background: #dff5f2; font-weight: 900; font-size: .75rem; }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.pill-list li { border: 1px solid var(--ms-line); border-radius: 999px; padding: 7px 13px; color: #415960; background: white; font-size: .84rem; font-weight: 650; }
.cta-band { overflow: hidden; position: relative; padding: clamp(35px, 5vw, 60px); border-radius: 25px; color: white; background: var(--ms-ink); display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.cta-band::after { content: ""; position: absolute; right: 17%; top: -110px; width: 280px; height: 280px; border: 45px solid rgba(16,169,162,.19); border-radius: 50%; pointer-events: none; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { margin-bottom: 10px; color: white; max-width: 700px; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.cta-band p { margin: 0; color: #c7d9dc; max-width: 700px; }
.cta-band .btn { flex-shrink: 0; }

/* Pages / content */
.page-hero { padding: clamp(52px, 7vw, 86px) 0 50px; background: linear-gradient(130deg, #f4faf9, #fff 70%); border-bottom: 1px solid var(--ms-line); }
.page-hero h1 { max-width: 900px; font-size: clamp(2.5rem, 4.8vw, 4rem); }
.page-hero .lead { max-width: 780px; }
.page-body { padding: clamp(45px, 6vw, 76px) 0; }
.entry-content { color: #3b525a; }
.entry-content > * { max-width: 840px; }
.entry-content > .alignwide { max-width: var(--ms-width); }
.entry-content > .alignfull { max-width: none; }
.entry-content h2 { margin-top: 1.7em; }
.entry-content h3 { margin-top: 1.3em; }
.entry-content img { border-radius: 15px; }
.entry-content blockquote { margin: 32px 0; padding: 10px 0 10px 25px; border-left: 4px solid var(--ms-teal); color: var(--ms-ink); font-size: 1.2rem; }
.entry-content ul, .entry-content ol { padding-left: 1.35rem; }
.entry-content li { margin-bottom: 7px; }
.wp-block-group.ms-section { padding: 48px; margin: 40px 0; border-radius: var(--ms-radius); background: var(--ms-paper); }
.wp-block-columns { gap: 24px; }
.wp-block-button__link { border-radius: 9px; background: var(--ms-teal); font-weight: 750; }
.wp-block-image img { height: auto; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--ms-muted); font-size: .86rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .82rem; margin-bottom: 18px; color: var(--ms-muted); }
.breadcrumbs a { text-decoration: none; }

/* Blog cards and articles */
.blog-intro { padding: 58px 0 35px; background: var(--ms-paper); }
.blog-intro h1 { font-size: clamp(2.4rem, 4vw, 3.7rem); }
.blog-layout { padding: 54px 0 90px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 25px; }
.post-card { overflow: hidden; display: flex; flex-direction: column; }
.post-card__image { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #eaf0ef; }
.post-card__image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .post-card__image img { transform: scale(1.04); }
.post-card__placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--ms-teal-dark); background: radial-gradient(circle at 70% 25%, #d1f2ec, transparent 30%), linear-gradient(135deg,#eef6f5,#dfeae8); font-size: 2rem; font-weight: 900; }
.post-card__body { display: flex; flex: 1; flex-direction: column; padding: 23px; }
.post-card__meta { margin-bottom: 9px; color: var(--ms-muted); font-size: .79rem; font-weight: 650; }
.post-card h2 { margin-bottom: 12px; font-size: 1.32rem; }
.post-card h2 a { color: var(--ms-ink); text-decoration: none; }
.post-card h2 a:hover { color: var(--ms-teal-dark); }
.post-card p { color: var(--ms-muted); font-size: .93rem; }
.post-card .text-link { margin-top: auto; padding-top: 8px; }
.pagination, .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 12px; color: var(--ms-ink); background: white; border: 1px solid var(--ms-line); border-radius: 9px; text-decoration: none; font-weight: 700; }
.page-numbers.current, .page-numbers:hover { color: white; border-color: var(--ms-teal); background: var(--ms-teal); }
.single-head { padding: 58px 0 38px; background: var(--ms-paper); }
.single-head h1 { font-size: clamp(2.4rem, 4.5vw, 3.8rem); max-width: 900px; }
.single-featured { max-height: 600px; width: 100%; object-fit: cover; margin: 0 auto 36px; border-radius: var(--ms-radius); }
.single-content { max-width: 820px; margin: 0 auto; padding: 45px 0 80px; }
.single-content .entry-content { font-size: 1.07rem; line-height: 1.9; }
.single-content .entry-content > * { max-width: 100%; }
.post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 50px; padding-top: 25px; border-top: 1px solid var(--ms-line); }
.post-navigation a { text-decoration: none; font-weight: 750; }

/* Contact / forms */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 35px; align-items: start; }
.contact-panel { padding: 30px; border: 1px solid var(--ms-line); border-radius: var(--ms-radius); background: var(--ms-paper); }
.contact-form { padding: clamp(23px, 4vw, 38px); border: 1px solid var(--ms-line); border-radius: var(--ms-radius); background: white; box-shadow: var(--ms-shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 17px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { display: block; margin-bottom: 7px; font-size: .9rem; font-weight: 750; color: var(--ms-ink); }
.form-field input, .form-field textarea, .form-field select { width: 100%; padding: 13px 14px; border: 1px solid #cbd8d9; border-radius: 9px; color: var(--ms-ink); background: #fff; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: 2px solid rgba(16,169,162,.25); border-color: var(--ms-teal); }
.form-field textarea { min-height: 150px; resize: vertical; }
.form-notice { padding: 13px 15px; margin-bottom: 20px; border-radius: 9px; color: #0b5e57; background: #e2f8f3; }
.form-notice--error { color: #8f2828; background: #fff0ef; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

/* Footer */
.site-footer { color: #d6e4e6; background: #0c242d; }
.footer-main { display: grid; grid-template-columns: 1.45fr 1fr 1fr 1fr; gap: 42px; padding: 61px 0 45px; }
.footer-brand .site-brand { color: #fff; }
.footer-brand .brand-tagline { color: #9bb4b7; }
.footer-brand p { max-width: 330px; margin-top: 20px; color: #a8c0c4; font-size: .92rem; }
.footer-col h3 { margin-bottom: 18px; color: white; font-size: .95rem; letter-spacing: 0; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #b4c8ca; font-size: .9rem; text-decoration: none; }
.footer-col a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; padding: 19px 0 23px; border-top: 1px solid rgba(255,255,255,.12); color: #8fa9ad; font-size: .82rem; }
.footer-bottom a { color: #bfd1d3; text-decoration: none; }

/* Utility */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.alignwide { max-width: var(--ms-width); margin-left: auto; margin-right: auto; }
.alignfull { max-width: none; }
.wp-caption, .gallery-caption { color: var(--ms-muted); }
.sticky { display: block; }
.wp-block-separator { border: 0; border-top: 1px solid var(--ms-line); }
.no-results { padding: 30px; border-radius: 18px; background: var(--ms-paper); }

@media (max-width: 1040px) {
  .primary-nav { gap: 14px; }
  .primary-nav ul { gap: 12px; }
  .primary-nav a { font-size: .82rem; }
  .header-inner { gap: 16px; }
  .card-grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-main { grid-template-columns: 1.3fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { max-width: 530px; }
}
@media (max-width: 800px) {
  .container { width: min(var(--ms-width), calc(100% - 34px)); }
  .header-inner { min-height: 74px; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 15px 22px 22px; background: white; border-bottom: 1px solid var(--ms-line); box-shadow: 0 22px 35px rgba(16,43,54,.10); align-items: stretch; }
  .primary-nav.is-open { display: flex; flex-direction: column; }
  .primary-nav ul { display: flex; flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .primary-nav li { border-bottom: 1px solid #edf1f0; }
  .primary-nav a { display: block; padding: 12px 2px; font-size: .98rem; }
  .nav-cta { display: none; }
  .mobile-cta { display: inline-flex; width: fit-content; margin-top: 13px; }
  .hero { padding-top: 48px; }
  .hero-grid, .split-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { min-height: min(68vw, 440px); }
  .hero-image-frame { inset: 0 8px 20px 7px; }
  .hero-badge { right: 0; }
  .proof-grid { grid-template-columns: repeat(2,1fr); }
  .card-grid, .blog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .split-visual, .split-visual img { min-height: 320px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 31px 25px; }
}
@media (max-width: 540px) {
  body { font-size: 15.5px; }
  .container { width: calc(100% - 28px); }
  .brand-name { font-size: 1.04rem; }
  .brand-tagline { font-size: .52rem; }
  .hero { padding: 42px 0 48px; }
  .hero h1 { font-size: clamp(2.45rem, 12vw, 3.4rem); }
  .hero-visual { min-height: 310px; }
  .hero-badge { width: 220px; padding: 16px; }
  .proof-grid { gap: 12px 8px; }
  .proof-item { justify-content: flex-start; font-size: .82rem; gap: 8px; }
  .proof-icon { width: 31px; height: 31px; flex-basis: 31px; }
  .card-grid, .card-grid--4, .blog-grid { grid-template-columns: 1fr; }
  .service-card { padding: 24px; }
  .mini-points { grid-template-columns: 1fr; }
  .cta-band { align-items: flex-start; flex-direction: column; padding: 28px 23px; }
  .page-hero { padding: 45px 0 32px; }
  .wp-block-group.ms-section { padding: 24px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .footer-main { grid-template-columns: 1fr 1fr; padding-top: 45px; gap: 29px 18px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .post-navigation { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
