/*
Theme Name: Myter om Snus DK
Theme URI: https://myteromsnus.dk/
Author: Trident Web Solutions
Author URI: https://tridentws2023.com/
Description: A fast, medical-style WordPress theme for Danish content about snus, nicotine and quitting smoking. Frontend is Danish, admin settings are English.
Version: 1.0.7
Requires at least: 6.1
Tested up to: 6.7
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: myteromsnus
*/

:root {
  --mt-navy: #133c72;
  --mt-blue: #2b8bd7;
  --mt-cyan: #66d9cf;
  --mt-mint: #73f2a8;
  --mt-yellow: #ffd66b;
  --mt-orange: #f3a83b;
  --mt-ink: #172033;
  --mt-muted: #687684;
  --mt-bg: #f6f8fc;
  --mt-soft: #eef5ff;
  --mt-card: #ffffff;
  --mt-border: rgba(23, 32, 51, .11);
  --mt-shadow: 0 22px 55px rgba(19, 60, 114, .13);
  --mt-radius-xl: 30px;
  --mt-radius-lg: 22px;
  --mt-radius-md: 16px;
  --mt-font: "Avenir Next", "Nunito Sans", "Trebuchet MS", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--mt-ink);
  background: #fff;
  font-family: var(--mt-font);
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--mt-navy); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover, a:focus { color: #0d6eb8; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; }
::selection { background: rgba(115, 242, 168, .45); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 1000;
  width: auto;
  height: auto;
  padding: 10px 14px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--mt-shadow);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(23,32,51,.08);
}
.header-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-branding { flex: 0 0 auto; }
.custom-logo-link, .fallback-logo-link { display: inline-flex; align-items: center; text-decoration: none; }
.custom-logo-link img, .fallback-logo-link img {
  max-width: clamp(132px, 15vw, 210px);
  max-height: 58px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.main-navigation { flex: 1; display: flex; justify-content: center; }
.main-navigation ul { margin: 0; padding: 0; list-style: none; display: flex; align-items: center; gap: 8px; }
.main-navigation a {
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--mt-ink);
  font-size: 16px;
  font-weight: 650;
  text-decoration: none;
}
.main-navigation a:hover, .main-navigation .current-menu-item > a {
  background: rgba(43,139,215,.10);
  color: var(--mt-navy);
}
.header-actions { display: flex; align-items: center; gap: 12px; position: relative; }
.header-cta, .mt-button, .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, var(--mt-mint), #76e9f0);
  color: var(--mt-ink);
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(67, 207, 146, .28);
  transition: transform .18s ease, box-shadow .18s ease;
}
.header-cta:hover, .mt-button:hover, .wp-block-button__link:hover { transform: translateY(-2px); color: var(--mt-ink); box-shadow: 0 16px 36px rgba(67, 207, 146, .35); }
.search-toggle, .menu-toggle {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--mt-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(23, 32, 51, .09);
}
.search-toggle svg { width: 24px; height: 24px; stroke-width: 2.7; }
.menu-toggle { display: none; position: relative; }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after {
  display: block;
  width: 22px;
  height: 3px;
  background: var(--mt-ink);
  border-radius: 99px;
  content: "";
  transition: transform .18s ease, opacity .18s ease;
}
.menu-toggle::before { position: absolute; transform: translateY(-8px); }
.menu-toggle::after { position: absolute; transform: translateY(8px); }
body.nav-open .menu-toggle span { opacity: 0; }
body.nav-open .menu-toggle::before { transform: rotate(45deg); }
body.nav-open .menu-toggle::after { transform: rotate(-45deg); }
.header-search {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: min(340px, 86vw);
  background: #fff;
  padding: 12px;
  border-radius: 20px;
  box-shadow: var(--mt-shadow);
}
body.search-open .header-search { display: block; }
.search-form { display: flex; gap: 8px; }
.search-field, .contact-form input, .contact-form textarea {
  width: 100%;
  border: 1px solid var(--mt-border);
  border-radius: 16px;
  padding: 13px 14px;
  background: #fff;
  color: var(--mt-ink);
  outline: none;
}
.search-field:focus, .contact-form input:focus, .contact-form textarea:focus { border-color: var(--mt-blue); box-shadow: 0 0 0 4px rgba(43,139,215,.13); }
.search-submit {
  border: 0;
  border-radius: 14px;
  background: var(--mt-navy);
  color: #fff;
  font-weight: 750;
  padding: 0 16px;
  cursor: pointer;
}

.site-main { min-height: 56vh; overflow-x: hidden; }
.mt-container, .content-area, .archive-wrap, .single-wrap, .page-wrap, .error-wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* Front page */
.hero-shell { padding: 46px 0 38px; background: linear-gradient(180deg, #fff, #f7fbff 72%, #fff); }
.hero-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
  gap: 34px;
  align-items: center;
  min-height: 390px;
  border-radius: 34px;
  overflow: hidden;
  padding: clamp(28px, 5vw, 66px);
  color: #fff;
  background:
    radial-gradient(circle at 7% 70%, rgba(150,207,255,.5) 0 8px, transparent 9px),
    radial-gradient(circle at 9% 58%, rgba(150,207,255,.5) 0 8px, transparent 9px),
    radial-gradient(circle at 11% 67%, rgba(150,207,255,.5) 0 8px, transparent 9px),
    radial-gradient(circle at 88% 20%, rgba(189,238,255,.45) 0 12px, transparent 13px),
    linear-gradient(110deg, #173f78 0%, #287fc5 55%, #51b8dd 100%);
  box-shadow: 0 22px 55px rgba(25, 88, 154, .22);
}
.hero-card::before {
  content: "";
  position: absolute;
  width: 510px;
  height: 510px;
  right: 7%;
  top: -62px;
  border-radius: 999px;
  border: 34px solid rgba(118, 219, 246, .55);
  opacity: .75;
}
.hero-card::after {
  content: "";
  position: absolute;
  width: 335px;
  height: 335px;
  right: 11%;
  top: 35px;
  border-radius: 999px;
  border: 22px solid var(--mt-orange);
  opacity: .95;
}
.hero-copy, .hero-visual { position: relative; z-index: 2; }
.hero-kicker { font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.76); margin: 0 0 10px; }
.hero-title {
  margin: 0 0 20px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: .98;
  letter-spacing: -.04em;
  color: #fff;
}
.hero-text { max-width: 670px; margin: 0; font-size: clamp(18px, 2.1vw, 23px); line-height: 1.55; color: rgba(255,255,255,.95); font-weight: 600; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-actions .mt-button.secondary { background: #fff; color: var(--mt-ink); box-shadow: 0 14px 34px rgba(10,40,72,.15); }
.hero-visual { justify-self: center; width: min(370px, 88%); }
.hero-visual-frame {
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  background: #fff8ec;
  padding: 24px;
  box-shadow: inset 0 0 0 12px rgba(255,255,255,.36), 0 20px 40px rgba(6, 48, 89, .2);
  overflow: hidden;
}
.hero-visual-frame img { width: 100%; height: 100%; object-fit: contain; }

.section { padding: 48px 0; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 24px; }
.section-title { margin: 0; font-size: clamp(30px, 4vw, 46px); line-height: 1.05; letter-spacing: -.035em; }
.section-lead { margin: 8px 0 0; color: var(--mt-muted); font-size: 19px; max-width: 700px; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.service-card {
  position: relative;
  min-height: 360px;
  border-radius: 28px;
  overflow: hidden;
  background: #dfe8ef;
  color: #fff;
  text-decoration: none;
  box-shadow: var(--mt-shadow);
  transform: translateZ(0);
}
.service-card.highlight { outline: 7px solid rgba(255, 214, 107, .96); outline-offset: -7px; }
.service-card img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; transition: transform .35s ease; }
.service-card:hover img { transform: scale(1.05); }
.service-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2,14,31,.05) 15%, rgba(9,20,38,.8) 100%); z-index: 1; }
.service-badge { position: absolute; z-index: 2; top: 24px; left: 24px; right: 24px; display: inline-flex; width: fit-content; padding: 9px 16px; border-radius: 999px; background: var(--mt-yellow); color: var(--mt-ink); font-weight: 800; font-size: 14px; }
.service-content { position: absolute; z-index: 2; left: 28px; right: 26px; bottom: 26px; }
.service-title { margin: 0 0 10px; font-size: clamp(32px, 4vw, 46px); line-height: .98; letter-spacing: -.05em; color: #fff; }
.service-text { margin: 0; max-width: 330px; color: rgba(255,255,255,.92); font-weight: 600; }
.service-arrow { position: absolute; z-index: 3; right: 24px; bottom: 24px; width: 58px; height: 58px; border-radius: 999px; display: grid; place-items: center; background: var(--mt-yellow); color: var(--mt-ink); font-size: 34px; font-weight: 750; }

.articles-showcase-section { padding-top: 58px; }
.articles-showcase-header { margin-bottom: 30px; }
.article-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.article-visual-card {
  position: relative;
  display: block;
  min-height: clamp(360px, 32vw, 430px);
  border-radius: 26px;
  overflow: hidden;
  background: #dce6ef;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 18px 42px rgba(23, 32, 51, .12);
  transform: translateZ(0);
  isolation: isolate;
  border: 7px solid rgba(255, 214, 107, .97);
}
.article-visual-card:nth-child(3n) { border-color: transparent; }
.article-visual-main-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
}
.article-visual-image,
.article-visual-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.article-visual-image img { object-fit: cover; transition: transform .35s ease; }
.article-visual-card:hover .article-visual-image img { transform: scale(1.055); }
.article-visual-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(5,14,29,.10) 0%, rgba(6,13,25,.32) 44%, rgba(7,14,27,.88) 100%);
}
.article-visual-badge {
  position: absolute;
  z-index: 5;
  top: 24px;
  left: 24px;
  max-width: calc(100% - 48px);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--mt-yellow);
  color: var(--mt-ink);
  font-weight: 800;
  font-size: 15px;
  line-height: 1.05;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(13, 19, 32, .10);
  pointer-events: auto;
}
.article-visual-content {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  left: 28px;
  right: 28px;
  bottom: 90px;
}
.article-visual-title {
  display: block;
  margin: 0;
  color: #fff;
  font-size: clamp(22px, 2.15vw, 32px);
  line-height: 1.06;
  letter-spacing: -.055em;
  font-weight: 800;
  text-shadow: 0 2px 18px rgba(0,0,0,.18);
}
.article-visual-title.title-medium { font-size: clamp(20px, 1.9vw, 28px); line-height: 1.05; letter-spacing: -.05em; }
.article-visual-title.title-long { font-size: clamp(18px, 1.55vw, 24px); line-height: 1.04; letter-spacing: -.04em; }
.article-visual-title.title-very-long { font-size: clamp(16px, 1.25vw, 20px); line-height: 1.03; letter-spacing: -.025em; }
.article-visual-card.title-long .article-visual-content,
.article-visual-card.title-very-long .article-visual-content { bottom: 86px; }
.article-visual-text {
  display: none;
  color: rgba(255,255,255,.94);
  font-size: 17px;
  line-height: 1.22;
  font-weight: 650;
}
.article-visual-arrow {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  right: 24px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--mt-yellow);
  color: var(--mt-ink);
  font-size: 36px;
  line-height: 1;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(13, 19, 32, .13);
}
.article-visual-card:hover { color: #fff; transform: translateY(-3px); }
.empty-posts-note { grid-column: 1 / -1; margin: 0; color: var(--mt-muted); font-weight: 750; }
.info-band { background: var(--mt-bg); padding: 66px 0; margin: 34px 0 0; }
.info-grid { display: grid; grid-template-columns: .95fr 1fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: start; }
.support-logos { display: grid; gap: 22px; }
.support-logo-line { display: flex; align-items: center; gap: 14px; color: var(--mt-navy); font-weight: 800; text-transform: uppercase; line-height: 1.08; }
.support-symbol { width: 70px; height: 70px; border-radius: 22px; background: #fff; display: grid; place-items: center; box-shadow: 0 12px 24px rgba(23,32,51,.08); }
.support-symbol img { width: 54px; height: 54px; object-fit: contain; }
.support-text { margin: 0; color: var(--mt-muted); font-size: 16px; }
.link-list h2 { margin: 0 0 22px; font-size: clamp(27px, 3vw, 38px); line-height: 1.1; }
.link-list ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.link-list a { color: #697782; text-decoration: none; font-weight: 750; font-size: clamp(19px, 2vw, 25px); line-height: 1.22; }
.link-list a:hover { color: var(--mt-navy); }
.posts-grid, .archive-grid, .related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: 26px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(23,32,51,.08);
  box-shadow: 0 15px 38px rgba(23,32,51,.08);
  text-decoration: none;
  color: var(--mt-ink);
}
.post-card:hover { color: var(--mt-ink); transform: translateY(-2px); box-shadow: 0 22px 48px rgba(23,32,51,.12); }
.post-card-image { aspect-ratio: 16 / 10; background: linear-gradient(135deg, #dcecff, #dffbf2); overflow: hidden; }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 22px; }
.post-card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; color: var(--mt-muted); font-size: 14px; font-weight: 750; }
.post-card-title { margin: 0 0 10px; font-size: 23px; line-height: 1.18; letter-spacing: -.02em; }
.post-card-excerpt { margin: 0; color: var(--mt-muted); }
.all-posts-action { display: flex; justify-content: center; margin-top: 28px; }

/* Content */
.single-wrap, .page-wrap, .archive-wrap, .error-wrap { padding: 50px 0 72px; }
.single-hero, .page-hero, .archive-hero, .error-card {
  background: linear-gradient(135deg, #f5faff, #effaf5);
  border-radius: var(--mt-radius-xl);
  padding: clamp(28px, 5vw, 52px);
  margin-bottom: 32px;
  border: 1px solid rgba(23,32,51,.07);
}
.single-title, .page-title, .archive-title, .error-title {
  margin: 0 0 14px;
  max-width: 920px;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.02;
  letter-spacing: -.045em;
}
.entry-meta { color: var(--mt-muted); font-weight: 700; display: flex; gap: 12px; flex-wrap: wrap; }
.single-featured { margin: 28px 0 0; border-radius: 32px; overflow: hidden; box-shadow: var(--mt-shadow); }
.single-featured img { width: 100%; max-height: 570px; object-fit: cover; }
.entry-content {
  width: min(820px, 100%);
  margin: 0 auto;
  font-size: 19px;
  line-height: 1.78;
}
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2, .entry-content h3, .entry-content h4 { color: var(--mt-ink); line-height: 1.16; letter-spacing: -.025em; margin: 2.1em 0 .7em; }
.entry-content h2 { font-size: clamp(30px, 4vw, 42px); }
.entry-content h3 { font-size: clamp(25px, 3vw, 32px); }
.entry-content h4 { font-size: 23px; }
.entry-content p { margin: 0 0 1.15em; }
.entry-content a { font-weight: 750; color: #0867b2; }
.entry-content strong, .entry-content b { font-weight: 800; color: #0f284a; }
.entry-content em, .entry-content i { color: #33465c; }
.entry-content ul, .entry-content ol { margin: 1.1em 0 1.3em; padding-left: 1.35em; }
.entry-content li { margin-bottom: .45em; padding-left: .1em; }
.entry-content ul li::marker { color: var(--mt-blue); font-size: 1.1em; }
.entry-content ol li::marker { color: var(--mt-navy); font-weight: 800; }
.entry-content blockquote {
  position: relative;
  margin: 2em 0;
  padding: 28px 30px 28px 92px;
  border-radius: 28px;
  background: linear-gradient(135deg, #eef8ff, #f3fff7);
  border: 1px solid rgba(43,139,215,.18);
  box-shadow: 0 14px 34px rgba(23,32,51,.06);
  color: #24415e;
  font-weight: 700;
}
.entry-content blockquote::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 26px;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: #fff url('assets/images/quit-icon.svg') center / 34px 34px no-repeat;
  box-shadow: 0 10px 22px rgba(23,32,51,.08);
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content .wp-block-pullquote { padding: 0; }
.entry-content table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 1.8em 0;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(23,32,51,.1);
  -webkit-overflow-scrolling: touch;
}
.entry-content table tbody, .entry-content table thead, .entry-content table tr { width: 100%; }
.entry-content th, .entry-content td { min-width: 150px; padding: 14px 16px; border: 1px solid rgba(23,32,51,.11); text-align: left; vertical-align: top; }
.entry-content th { background: #eef6ff; font-weight: 800; color: #163d70; }
.entry-content .wp-block-image img { border-radius: 24px; }
.entry-content .wp-block-separator { border: 0; height: 1px; background: rgba(23,32,51,.12); margin: 2.5em 0; }

.related-section { width: min(1120px, 100%); margin: 58px auto 0; }
.related-title { font-size: clamp(28px, 4vw, 42px); line-height: 1.1; margin: 0 0 22px; }
.pagination, .nav-links { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 34px; }
.page-numbers { min-width: 42px; min-height: 42px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; padding: 8px 13px; background: #fff; border: 1px solid var(--mt-border); text-decoration: none; font-weight: 800; color: var(--mt-ink); }
.page-numbers.current, .page-numbers:hover { background: var(--mt-navy); color: #fff; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(300px, 1fr); gap: 34px; align-items: start; }
.contact-form-card { background: #fff; border-radius: 28px; box-shadow: var(--mt-shadow); border: 1px solid rgba(23,32,51,.08); padding: clamp(24px, 4vw, 38px); }
.contact-form { display: grid; gap: 16px; }
.contact-form label { display: grid; gap: 7px; font-weight: 750; color: #263850; }
.contact-form textarea { min-height: 160px; resize: vertical; }
.notice-success { border-radius: 16px; padding: 14px 16px; background: #e7fbef; color: #14542d; font-weight: 750; margin-bottom: 16px; }

/* Product CTA Gutenberg block */
.mt-product-cta {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, .8fr);
  gap: 24px;
  align-items: center;
  padding: clamp(24px, 4vw, 44px);
  border-radius: 30px;
  margin: 2.4em auto;
  background: linear-gradient(135deg, #153e73, #2485ca 58%, #62d9ce);
  color: #fff;
  box-shadow: 0 24px 58px rgba(25, 88, 154, .22);
}
.mt-product-cta::before { content: ""; position: absolute; inset: auto -90px -130px auto; width: 280px; height: 280px; border-radius: 999px; background: rgba(255,214,107,.55); }
.mt-product-content { position: relative; z-index: 2; }
.mt-product-kicker { display: inline-flex; padding: 8px 14px; border-radius: 999px; background: var(--mt-yellow); color: var(--mt-ink); font-weight: 800; font-size: 14px; margin-bottom: 14px; }
.mt-product-title { margin: 0 0 12px; color: #fff; font-size: clamp(29px, 4vw, 44px); line-height: 1.05; }
.mt-product-text { margin: 0 0 22px; color: rgba(255,255,255,.92); font-size: 18px; }
.mt-product-image { position: relative; z-index: 2; justify-self: end; width: min(300px, 100%); aspect-ratio: 1 / 1; border-radius: 28px; background: rgba(255,255,255,.18); padding: 16px; }
.mt-product-image img { width: 100%; height: 100%; object-fit: contain; border-radius: 20px; }
.mt-product-cta .mt-button { background: #fff; color: var(--mt-ink); box-shadow: 0 14px 30px rgba(9,35,65,.2); }

/* Footer */
.site-footer {
  background: #f3f6fb;
  padding: 76px 0 34px;
  color: #566575;
  margin-top: 22px;
}
.footer-grid {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: .92fr 1fr 1fr;
  gap: clamp(34px, 6vw, 86px);
  align-items: start;
}
.footer-brand img { max-width: 238px; height: auto; margin-bottom: 30px; }
.footer-brand .custom-logo-link,
.footer-brand .fallback-logo-link { margin-bottom: 28px; }
.footer-text {
  max-width: 390px;
  margin: 0 0 20px;
  color: #687684;
  font-size: 15px;
  line-height: 1.52;
  font-weight: 600;
}
.footer-socials { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-socials a {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #fff;
  box-shadow: 0 8px 20px rgba(23,32,51,.08);
  color: var(--mt-navy);
  text-decoration: none;
  font-weight: 800;
}
.footer-menu-title {
  margin: 0 0 24px;
  color: var(--mt-ink);
  font-size: clamp(21px, 2.1vw, 28px);
  line-height: 1.1;
  letter-spacing: -.055em;
  font-weight: 800;
}
.footer-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.footer-menu a {
  color: #6c7782;
  text-decoration: none;
  font-weight: 800;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.32;
  letter-spacing: -.025em;
}
.footer-menu a:hover { color: var(--mt-navy); }
.footer-bottom {
  width: min(1180px, calc(100% - 40px));
  margin: 50px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(23,32,51,.1);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #687684;
  font-weight: 650;
}

.error-card { text-align: center; }
.error-card img { width: 130px; margin: 0 auto 20px; }

@media (max-width: 1024px) {
  .header-inner { width: min(100% - 28px, 1180px); min-height: 72px; }
  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .main-navigation {
    position: fixed;
    inset: 72px 14px auto 14px;
    display: none;
    border-radius: 24px;
    background: #fff;
    padding: 14px;
    box-shadow: var(--mt-shadow);
  }
  body.nav-open .main-navigation { display: block; }
  .main-navigation ul { display: grid; gap: 4px; }
  .main-navigation a { padding: 14px 16px; font-size: 18px; }
  .hero-card { grid-template-columns: 1fr; }
  .hero-card::before, .hero-card::after { right: -90px; top: auto; bottom: -120px; opacity: .35; }
  .hero-visual { width: min(310px, 78%); }
  .service-grid, .article-showcase-grid, .posts-grid, .archive-grid, .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info-grid, .footer-grid, .contact-layout { grid-template-columns: 1fr; }
  .mt-product-cta { grid-template-columns: 1fr; }
  .mt-product-image { justify-self: start; width: min(260px, 100%); }
}

@media (max-width: 680px) {
  body { font-size: 18px; line-height: 1.68; }
  .mt-container, .content-area, .archive-wrap, .single-wrap, .page-wrap, .error-wrap { width: min(100% - 26px, 1120px); }
  .hero-shell { padding: 22px 0 24px; }
  .hero-card { padding: 30px 22px; border-radius: 28px; min-height: unset; }
  .hero-title { font-size: clamp(40px, 11vw, 54px); }
  .hero-text { font-size: 19px; }
  .hero-actions .mt-button { width: 100%; }
  .section { padding: 34px 0; }
  .section-header { display: block; }
  .service-grid, .article-showcase-grid, .posts-grid, .archive-grid, .related-grid { grid-template-columns: 1fr; }
  .service-card, .service-card img, .article-visual-card { min-height: 330px; }
  .service-title { font-size: 39px; }
  .article-visual-title { font-size: 25px; line-height: 1.05; }
  .article-visual-title.title-medium { font-size: 22px; }
  .article-visual-title.title-long { font-size: 19px; }
  .article-visual-title.title-very-long { font-size: 17px; }
  .article-visual-content { left: 24px; right: 24px; bottom: 86px; }
  .article-visual-badge { top: 22px; left: 22px; max-width: calc(100% - 44px); }
  .info-band { padding: 42px 0; }
  .entry-content { font-size: 18px; line-height: 1.72; }
  .entry-content blockquote { padding: 84px 22px 24px; }
  .entry-content blockquote::before { left: 22px; top: 22px; }
  .single-wrap, .page-wrap, .archive-wrap, .error-wrap { padding: 28px 0 52px; }
  .single-hero, .page-hero, .archive-hero, .error-card { padding: 26px 20px; border-radius: 24px; }
  .single-featured { border-radius: 24px; }
  .footer-grid, .footer-bottom { width: min(100% - 26px, 1180px); }
  .footer-menu-title { font-size: 21px; }
  .footer-menu a { font-size: 15px; }
  .mt-product-cta { padding: 24px 20px; border-radius: 24px; }
  .custom-logo-link img, .fallback-logo-link img { max-width: 145px; max-height: 50px; }
}
