/*
Theme Name: GM Lifestyle
Theme URI: https://dietnavi.com/pc/
Author: GetMoney! Best Car Life
Author URI: https://dietnavi.com/pc/
Description: 車好きのためのウェブマガジン「GetMoney! Best Car Life」用のオリジナルテーマ。自動車・バイク関連の記事をカテゴリ別に発信するSEO最適化マガジンテーマです。
Version: 1.6.5
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gm-lifestyle
Tags: blog, magazine, automotive, two-columns, custom-menu, featured-images, seo-ready
*/

/* ============================================================
   Design tokens
   Concept: "Garage Editorial" — GetMoney! light-blue accent on a clean,
   high-contrast editorial canvas for an automotive web magazine.
   ============================================================ */
:root {
  --gm-accent: #3693ec;
  --gm-accent-dark: #1565c0;
  --gm-ink: #1a1c1f;
  --gm-ink-soft: #45494f;
  --gm-muted: #7a8088;
  --gm-line: #e6e8ec;
  --gm-bg: #ffffff;
  --gm-bg-alt: #f5f6f8;
  --gm-brandbar: #ffffff;
  /* GetMoney! brand palette (matches dietnavi.com header/footer) */
  --gm-blue: #3693ec;
  --gm-blue-dark: #1565c0;
  --gm-gold: #fac42d;
  --gm-navy: #1d2087;
  --gm-brown: #62463c;
  --gm-brown-dark: #4a352d;
  --gm-footer: #e9eef4;
  --gm-footer-line: #b3b5e5;
  --gm-max: 1140px;
  --gm-radius: 10px;
  --gm-shadow: 0 6px 24px rgba(20, 22, 26, 0.08);
  --gm-shadow-hover: 0 12px 34px rgba(20, 22, 26, 0.14);
  --gm-font: "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--gm-font);
  color: var(--gm-ink);
  background: var(--gm-bg);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--gm-accent); text-decoration: none; transition: color .15s ease, opacity .15s ease; }
a:hover { color: var(--gm-accent-dark); }

.gm-container {
  width: 100%;
  max-width: var(--gm-max);
  margin: 0 auto;
  padding: 0 20px;
}

.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px; height: 1px; overflow: hidden;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--gm-ink); color: #fff; padding: 10px 16px; z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; color: #fff; }

/* ============================================================
   GetMoney! brand bar (matches existing site header)
   ============================================================ */
.gm-brandbar {
  background: var(--gm-brandbar);
  border-top: 4px solid var(--gm-blue);
  border-bottom: 1px solid #e0e2e4;
}
.gm-brandbar__inner {
  display: flex; align-items: center; gap: 18px; min-height: 72px; flex-wrap: wrap;
}
.gm-brandbar__logo { flex: none; }
.gm-brandbar__logo img { width: 185px; height: auto; max-width: 60vw; display: block; }
.gm-brandbar .site-branding {
  min-width: 0; padding-left: 18px; border-left: 1px solid #e0e2e4;
}

/* ============================================================
   Site header
   ============================================================ */
.site-header {
  background: var(--gm-bg);
  border-bottom: 3px solid var(--gm-blue);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 12px rgba(20,22,26,.05);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding-top: 14px; padding-bottom: 14px;
}
.site-branding { min-width: 0; }
.site-title {
  margin: 0; font-size: 1.5rem; font-weight: 800; letter-spacing: .01em; line-height: 1.2;
}
.site-title a { color: var(--gm-brown); }
.site-title a:hover { color: var(--gm-brown-dark); }
.site-title .gm-accent { color: var(--gm-accent); }
.site-description {
  margin: 2px 0 0; font-size: .8rem; color: var(--gm-muted); line-height: 1.5;
}

/* Navigation */
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  display: block; padding: 10px 14px; color: var(--gm-ink); font-weight: 700; font-size: .92rem;
  border-radius: 6px;
}
.main-nav a { position: relative; }
.main-nav a:hover { background: var(--gm-bg-alt); color: var(--gm-blue-dark); }
.main-nav .current-menu-item > a,
.main-nav .current-cat > a { color: var(--gm-blue-dark); }
.main-nav .current-menu-item > a::after,
.main-nav .current-cat > a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 3px; border-radius: 2px; background: var(--gm-gold);
}

.nav-toggle {
  display: none; align-items: center; gap: 8px;
  background: var(--gm-ink); color: #fff; border: 0; border-radius: 6px;
  padding: 9px 14px; font-weight: 700; font-size: .9rem; cursor: pointer;
}
.nav-toggle__bar { display: inline-block; width: 18px; height: 2px; background: #fff; position: relative; }
.nav-toggle__bar::before,
.nav-toggle__bar::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: #fff; }
.nav-toggle__bar::before { top: -6px; }
.nav-toggle__bar::after { top: 6px; }

/* ============================================================
   Layout: content + sidebar
   ============================================================ */
.site-main { padding: 28px 0 56px; }
.gm-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 40px; }
@media (max-width: 900px) { .gm-layout { grid-template-columns: 1fr; gap: 36px; } }

/* ============================================================
   Breadcrumbs
   ============================================================ */
.gm-breadcrumbs {
  font-size: .8rem; color: var(--gm-muted); margin: 0 0 20px; line-height: 1.6;
}
.gm-breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.gm-breadcrumbs li::after { content: "›"; margin-left: 6px; color: var(--gm-line); }
.gm-breadcrumbs li:last-child::after { content: ""; }
.gm-breadcrumbs a { color: var(--gm-ink-soft); }
.gm-breadcrumbs a:hover { color: var(--gm-accent); }

/* ============================================================
   Page / section headings
   ============================================================ */
.gm-page-head { margin: 0 0 24px; }
.gm-page-title {
  font-size: 1.7rem; font-weight: 800; margin: 0; line-height: 1.25;
  padding-left: 14px; border-left: 6px solid var(--gm-accent);
}
.gm-page-desc { color: var(--gm-ink-soft); margin: 10px 0 0; font-size: .95rem; }

.gm-section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin: 0 0 18px; border-bottom: 2px solid var(--gm-ink); padding-bottom: 8px;
}
.gm-section-title { font-size: 1.2rem; font-weight: 800; margin: 0; }
.gm-section-title .gm-accent { color: var(--gm-accent); }
.gm-section-more { font-size: .85rem; font-weight: 700; }

/* ============================================================
   Hero (front page featured)
   ============================================================ */
.gm-hero { margin: 0 0 40px; }
.gm-hero__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; }
@media (max-width: 760px) { .gm-hero__grid { grid-template-columns: 1fr; } }
.gm-hero__main, .gm-hero__side article { position: relative; border-radius: var(--gm-radius); overflow: hidden; }
.gm-feature {
  position: relative; display: block; border-radius: var(--gm-radius); overflow: hidden;
  background: var(--gm-ink); min-height: 220px; box-shadow: var(--gm-shadow);
}
.gm-feature img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; opacity: .82; transition: transform .4s ease, opacity .3s ease; }
.gm-feature:hover img { transform: scale(1.05); opacity: .7; }
.gm-feature__body {
  position: relative; z-index: 2; padding: 24px; color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 220px;
  background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.15) 55%, rgba(0,0,0,0) 100%);
}
.gm-hero__main .gm-feature, .gm-hero__main .gm-feature__body { min-height: 380px; }
.gm-feature__title { font-size: 1.15rem; font-weight: 800; margin: 8px 0 0; line-height: 1.4; color: #fff; }
.gm-hero__main .gm-feature__title { font-size: 1.6rem; }
.gm-feature__cat {
  align-self: flex-start; background: var(--gm-accent); color: #fff; font-size: .72rem; font-weight: 700;
  padding: 4px 10px; border-radius: 4px;
}
.gm-hero__side { display: grid; gap: 18px; }

/* ============================================================
   Article cards grid
   ============================================================ */
.gm-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
@media (max-width: 560px) { .gm-card-grid { grid-template-columns: 1fr; } }

.gm-card {
  position: relative;
  background: var(--gm-bg); border: 1px solid var(--gm-line); border-radius: var(--gm-radius);
  overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s ease, transform .2s ease;
}
.gm-card:hover { box-shadow: var(--gm-shadow-hover); transform: translateY(-3px); }
.gm-card__thumb { position: relative; display: block; aspect-ratio: 16/9; background: var(--gm-bg-alt); overflow: hidden; }
.gm-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gm-card:hover .gm-card__thumb img { transform: scale(1.06); }
.gm-card__thumb--placeholder {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--gm-muted);
  font-weight: 800; letter-spacing: .08em; background: repeating-linear-gradient(135deg,#f0f1f4,#f0f1f4 12px,#eaecef 12px,#eaecef 24px);
}
.gm-card__cat {
  position: absolute; top: 10px; left: 10px; z-index: 2; background: var(--gm-accent); color: #fff;
  font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 4px;
}
.gm-card__cat:hover { background: var(--gm-accent-dark); color: #fff; }
.gm-card__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.gm-card__title { font-size: 1.05rem; font-weight: 800; margin: 0; line-height: 1.45; }
.gm-card__title a { color: var(--gm-ink); }
.gm-card__title a:hover { color: var(--gm-accent); }
.gm-card__excerpt { font-size: .88rem; color: var(--gm-ink-soft); margin: 0; }

/* ============================================================
   Single post
   ============================================================ */
.gm-article { background: var(--gm-bg); }
.gm-article__header { margin: 0 0 22px; }
.gm-article__cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.gm-chip {
  background: var(--gm-accent); color: #fff; font-size: .76rem; font-weight: 700;
  padding: 4px 12px; border-radius: 4px;
}
.gm-chip:hover { background: var(--gm-accent-dark); color: #fff; }
.gm-article__title { font-size: 2rem; font-weight: 800; line-height: 1.3; margin: 0 0 14px; }
@media (max-width: 560px) { .gm-article__title { font-size: 1.5rem; } }
.gm-article__thumb { margin: 22px 0; border-radius: var(--gm-radius); overflow: hidden; }

.gm-entry { font-size: 1.02rem; line-height: 1.95; color: var(--gm-ink); }
.gm-entry > * { margin-top: 0; margin-bottom: 1.4em; }
.gm-entry h2 { font-size: 1.45rem; font-weight: 800; margin: 2em 0 .8em; padding: 8px 0 8px 14px; border-left: 6px solid var(--gm-accent); line-height: 1.4; }
.gm-entry h3 { font-size: 1.2rem; font-weight: 800; margin: 1.8em 0 .6em; padding-bottom: 6px; border-bottom: 2px solid var(--gm-line); }
.gm-entry h4 { font-size: 1.05rem; font-weight: 800; margin: 1.6em 0 .5em; }
.gm-entry img { border-radius: 8px; margin: 1em auto; }
.gm-entry a { text-decoration: underline; }
.gm-entry blockquote { margin: 1.4em 0; padding: 14px 20px; background: var(--gm-bg-alt); border-left: 4px solid var(--gm-accent); color: var(--gm-ink-soft); border-radius: 0 8px 8px 0; }
.gm-entry ul, .gm-entry ol { padding-left: 1.4em; }
.gm-entry li { margin-bottom: .5em; }
.gm-entry table { width: 100%; border-collapse: collapse; }
.gm-entry th, .gm-entry td { border: 1px solid var(--gm-line); padding: 10px 12px; text-align: left; }
.gm-entry th { background: var(--gm-bg-alt); }
.gm-entry code { background: var(--gm-bg-alt); padding: 2px 6px; border-radius: 4px; font-size: .9em; }
.gm-entry pre { background: var(--gm-ink); color: #f5f6f8; padding: 16px; border-radius: 8px; overflow: auto; }

.gm-tags { margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.gm-tags__label { font-size: .82rem; font-weight: 700; color: var(--gm-muted); }
.gm-tag { background: var(--gm-bg-alt); color: var(--gm-ink-soft); font-size: .8rem; padding: 4px 12px; border-radius: 20px; }
.gm-tag:hover { background: var(--gm-accent); color: #fff; }

.gm-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 36px 0 0; }
@media (max-width: 560px) { .gm-postnav { grid-template-columns: 1fr; } }
.gm-postnav a { display: block; padding: 14px 16px; border: 1px solid var(--gm-line); border-radius: var(--gm-radius); color: var(--gm-ink); }
.gm-postnav a:hover { border-color: var(--gm-accent); }
.gm-postnav .gm-postnav__label { display: block; font-size: .72rem; color: var(--gm-muted); font-weight: 700; margin-bottom: 4px; }
.gm-postnav .gm-postnav__next { text-align: right; }

/* ============================================================
   Sidebar / widgets
   ============================================================ */
.gm-sidebar .widget { margin: 0 0 30px; }
.gm-widget-title {
  font-size: 1.02rem; font-weight: 800; margin: 0 0 14px; padding-bottom: 8px;
  border-bottom: 2px solid var(--gm-ink); position: relative;
}
.gm-widget-title::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 56px; height: 2px; background: var(--gm-accent); }
.gm-sidebar ul { list-style: none; margin: 0; padding: 0; }
.gm-sidebar .widget > ul:not(.gm-recent):not(.gm-cats) > li { padding: 8px 0; border-bottom: 1px dashed var(--gm-line); font-size: .9rem; }
.gm-sidebar .widget > ul:not(.gm-recent):not(.gm-cats) > li a { color: var(--gm-ink-soft); }
.gm-sidebar .widget > ul:not(.gm-recent):not(.gm-cats) > li a:hover { color: var(--gm-accent); }
.gm-sidebar .gm-empty { font-size: .85rem; color: var(--gm-muted); margin: 0; }

/* Categories (rich) */
.gm-cats { display: flex; flex-direction: column; gap: 6px; }
.gm-sidebar .gm-cats .gm-cats__item { padding: 0; border: 0; }
.gm-cats__link {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border-radius: 8px; background: var(--gm-bg-alt);
  border-left: 3px solid transparent; color: var(--gm-ink-soft);
  font-size: .9rem; font-weight: 700; line-height: 1.3;
  transition: background .15s ease, border-color .15s ease, transform .15s ease, color .15s ease;
}
.gm-cats__link:hover, .gm-cats__link:focus-visible {
  background: #eaf3fd; border-left-color: var(--gm-accent); color: var(--gm-accent-dark); transform: translateX(2px);
}
.gm-cats__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gm-cats__count {
  flex: none; min-width: 24px; text-align: center; font-size: .72rem; font-weight: 800;
  color: #fff; background: var(--gm-accent); border-radius: 20px; padding: 2px 8px;
  transition: background .15s ease;
}
.gm-cats__link:hover .gm-cats__count, .gm-cats__link:focus-visible .gm-cats__count { background: var(--gm-accent-dark); }

/* Recent posts (rich) */
.gm-recent { display: flex; flex-direction: column; }
.gm-sidebar .gm-recent .gm-recent__item { padding: 0; border-bottom: 1px dashed var(--gm-line); font-size: 1rem; }
.gm-sidebar .gm-recent .gm-recent__item:last-child { border-bottom: 0; }
.gm-recent__link {
  display: flex; gap: 12px; align-items: center; padding: 12px 6px;
  border-radius: 8px; transition: background .15s ease;
}
.gm-recent__link:hover, .gm-recent__link:focus-visible { background: var(--gm-bg-alt); }
.gm-recent__thumb {
  position: relative; flex: none; width: 72px; height: 54px; border-radius: 8px;
  overflow: hidden; background: var(--gm-bg-alt);
}
.gm-recent__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.gm-recent__link:hover .gm-recent__thumb img, .gm-recent__link:focus-visible .gm-recent__thumb img { transform: scale(1.08); }
.gm-recent__thumb-ph {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  font-weight: 800; font-size: .8rem; letter-spacing: .06em; color: var(--gm-muted);
  background: repeating-linear-gradient(135deg,#f0f1f4,#f0f1f4 10px,#eaecef 10px,#eaecef 20px);
}
.gm-recent__body { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.gm-recent__title {
  font-size: .85rem; font-weight: 700; line-height: 1.45; color: var(--gm-ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color .15s ease;
}
.gm-recent__link:hover .gm-recent__title, .gm-recent__link:focus-visible .gm-recent__title { color: var(--gm-accent-dark); }

/* Block widgets (core Latest Posts / Categories) in the sidebar */
.gm-sidebar .widget_block { margin: 0 0 30px; }
.gm-sidebar .widget_block .wp-block-group__inner-container > * { margin-top: 0; }
.gm-sidebar .wp-block-heading {
  font-size: 1.02rem; font-weight: 800; margin: 0 0 14px; padding-bottom: 8px;
  border-bottom: 2px solid var(--gm-ink); position: relative;
}
.gm-sidebar .wp-block-heading::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 56px; height: 2px; background: var(--gm-accent); }

/* Categories block */
.gm-sidebar .wp-block-categories { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.gm-sidebar .wp-block-categories li.cat-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--gm-bg-alt);
  border-left: 3px solid transparent;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.gm-sidebar .wp-block-categories li.cat-item:hover { background: #eaf3fd; border-left-color: var(--gm-accent); transform: translateX(2px); }
.gm-sidebar .wp-block-categories li.cat-item a {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--gm-ink-soft); font-size: .9rem; font-weight: 700;
}
.gm-sidebar .wp-block-categories li.cat-item:hover a { color: var(--gm-accent-dark); }
.gm-cat-count {
  flex: none; min-width: 24px; text-align: center; font-size: .72rem; font-weight: 800;
  color: #fff; background: var(--gm-accent); border-radius: 20px; padding: 2px 8px;
  transition: background .15s ease;
}
.gm-sidebar .wp-block-categories li.cat-item:hover .gm-cat-count { background: var(--gm-accent-dark); }

/* Latest Posts block */
.gm-sidebar .wp-block-latest-posts__list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.gm-sidebar .wp-block-latest-posts__list > li {
  display: grid; grid-template-columns: 72px 1fr; column-gap: 12px; row-gap: 4px; align-items: center;
  padding: 12px 6px; border-bottom: 1px dashed var(--gm-line); border-radius: 8px; transition: background .15s ease;
}
.gm-sidebar .wp-block-latest-posts__list > li:hover { background: var(--gm-bg-alt); }
.gm-sidebar .wp-block-latest-posts__list > li:last-child { border-bottom: 0; }
.gm-sidebar .wp-block-latest-posts__list > li:not(:has(.wp-block-latest-posts__featured-image)) { grid-template-columns: 1fr; }
.gm-sidebar .wp-block-latest-posts__featured-image {
  grid-column: 1; margin: 0; width: 72px; height: 54px;
  border-radius: 8px; overflow: hidden; background: var(--gm-bg-alt);
}
.gm-sidebar .wp-block-latest-posts__featured-image a,
.gm-sidebar .wp-block-latest-posts__featured-image img { display: block; width: 100%; height: 100%; }
.gm-sidebar .wp-block-latest-posts__featured-image img { object-fit: cover; transition: transform .4s ease; }
.gm-sidebar .wp-block-latest-posts__list > li:hover .wp-block-latest-posts__featured-image img { transform: scale(1.08); }
.gm-sidebar .wp-block-latest-posts__post-title {
  grid-column: 2; align-self: center; font-size: .85rem; font-weight: 700; line-height: 1.45; color: var(--gm-ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .15s ease;
}
.gm-sidebar .wp-block-latest-posts__list > li:hover .wp-block-latest-posts__post-title { color: var(--gm-accent-dark); }

.gm-searchform { display: flex; gap: 8px; }
.gm-searchform input[type="search"] {
  flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid var(--gm-line); border-radius: 6px; font-size: .9rem;
}
.gm-searchform button {
  background: var(--gm-accent); color: #fff; border: 0; border-radius: 6px; padding: 0 18px; font-weight: 700; cursor: pointer;
}
.gm-searchform button:hover { background: var(--gm-accent-dark); }

/* ============================================================
   Pagination
   ============================================================ */
.gm-pagination { margin: 36px 0 0; }
.gm-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.gm-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px;
  border: 1px solid var(--gm-line); border-radius: 6px; color: var(--gm-ink); font-weight: 700;
}
.gm-pagination .page-numbers.current { background: var(--gm-accent); border-color: var(--gm-accent); color: #fff; }
.gm-pagination a.page-numbers:hover { border-color: var(--gm-accent); color: var(--gm-accent); }

/* ============================================================
   Footer (matches existing GetMoney! footer)
   ============================================================ */
.site-footer { background: var(--gm-footer); color: var(--gm-ink-soft); margin-top: 40px; border-top: 2px solid var(--gm-navy); }
.site-footer a { color: #333; }
.site-footer a:hover { color: var(--gm-blue-dark); }
.gm-footer-widgets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 44px 0; border-bottom: 1px dotted var(--gm-footer-line); }
@media (max-width: 760px) { .gm-footer-widgets { grid-template-columns: 1fr; gap: 26px; } }
.gm-footer-widgets .gm-widget-title { color: #3a3a3a; border-bottom-color: var(--gm-footer-line); }
.gm-footer-widgets .widget > ul > li { border-bottom-color: rgba(29,32,135,.12); }
.gm-footer-widgets .widget > ul > li a { color: #333; }
.gm-footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0;
}
.gm-footer-logo img { width: 185px; height: auto; max-width: 60vw; }
.gm-copyright { font-size: .8rem; color: #666; margin: 0; }
.gm-footer-menu {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center;
}
.gm-footer-menu a { font-size: .85rem; font-weight: 700; color: #333; }
.gm-footer-menu a:hover { color: var(--gm-blue-dark); }
@media (max-width: 600px) {
  .gm-footer-menu { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ============================================================
   Contact form
   ============================================================ */
.gm-contact-form { margin: 24px 0 0; max-width: 640px; }
.gm-field { margin: 0 0 20px; }
.gm-field label {
  display: block; font-weight: 700; font-size: .92rem; margin: 0 0 6px; color: var(--gm-ink);
}
.gm-required, .gm-optional {
  display: inline-block; font-size: .68rem; font-weight: 700; padding: 2px 8px; border-radius: 4px;
  margin-left: 6px; vertical-align: middle; line-height: 1.4;
}
.gm-required { background: #e7392e; color: #fff; }
.gm-optional { background: var(--gm-bg-alt); color: var(--gm-muted); }
.gm-field input,
.gm-field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--gm-line); border-radius: 8px;
  font-size: 1rem; font-family: inherit; color: var(--gm-ink); background: #fff; line-height: 1.6;
}
.gm-field textarea { resize: vertical; min-height: 160px; }
.gm-field input:focus,
.gm-field textarea:focus {
  outline: none; border-color: var(--gm-accent); box-shadow: 0 0 0 3px rgba(54,147,236,.18);
}

.gm-form-submit { margin: 6px 0 0; }
.gm-form-submit button {
  background: var(--gm-accent); color: #fff; border: 0; border-radius: 8px;
  padding: 13px 36px; font-weight: 700; font-size: 1rem; cursor: pointer; transition: background .15s ease;
}
.gm-form-submit button:hover { background: var(--gm-accent-dark); }

.gm-form-notice {
  padding: 14px 18px; border-radius: 8px; margin: 0 0 24px; font-size: .92rem; line-height: 1.7;
}
.gm-form-notice--success { background: #e7f6ec; border: 1px solid #b6e0c4; color: #1a7a3e; }
.gm-form-notice--error { background: #fdecea; border: 1px solid #f5c2bd; color: #b3261e; }
.gm-form-notice p { margin: 0 0 6px; font-weight: 700; }
.gm-form-notice ul { margin: 0; padding-left: 1.3em; }
.gm-form-notice li { margin: 2px 0; }

/* Honeypot: hidden from humans, present for bots. */
.gm-hp {
  position: absolute !important; left: -9999px !important; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

/* Utilities */
.gm-empty { padding: 40px; text-align: center; color: var(--gm-muted); background: var(--gm-bg-alt); border-radius: var(--gm-radius); }
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { display: none; width: 100%; }
  .main-nav.is-open { display: block; }
  .site-header__inner { flex-wrap: wrap; }
  .main-nav ul { flex-direction: column; gap: 2px; width: 100%; padding-top: 8px; }
  .main-nav a { padding: 12px 8px; border-bottom: 1px solid var(--gm-line); border-radius: 0; }
  .gm-brandbar__inner { gap: 12px; min-height: 60px; }
  .gm-brandbar__logo img { width: 150px; }
  .gm-brandbar .site-branding { padding-left: 12px; }
  .site-title { font-size: 1.2rem; }
  .site-description { font-size: .72rem; }
}
