/*
Theme Name: Moving to Mexico Expert Blog
Theme URI: https://movingtomexicoexpert.com/
Author: Gotcha Brands / PVDN
Author URI: https://vallartadaily.com/
Description: A lightweight WordPress blog theme designed to visually match the Moving to Mexico Expert landing page, privacy policy, and terms pages.
Version: 1.0.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mtme-blog
Tags: blog, custom-menu, featured-images, two-columns, responsive-layout
*/

:root {
  --navy: #123047;
  --teal: #1f8a83;
  --sand: #f4ead8;
  --cream: #fffaf0;
  --orange: #d66b2b;
  --text: #27313a;
  --muted: #65717c;
  --white: #ffffff;
  --border: #e6dccb;
  --shadow: 0 20px 50px rgba(18, 48, 71, 0.12);
  --radius: 22px;
  --max: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
}

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

a { color: inherit; }

.screen-reader-text,
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mtme-container {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

.mtme-topbar {
  background: var(--navy);
  color: var(--white);
  padding: 14px 0;
  font-family: Arial, sans-serif;
  font-size: 14px;
}

.mtme-topbar .mtme-container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.mtme-topbar a {
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
}

.mtme-site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.mtme-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  padding: 18px 0;
  font-family: Arial, sans-serif;
}

.mtme-brand {
  font-weight: 900;
  font-size: 20px;
  color: var(--navy);
  letter-spacing: -0.02em;
  text-decoration: none;
  line-height: 1.1;
}

.mtme-menu-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
}

.mtme-menu,
.mtme-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mtme-menu {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 14px;
  font-weight: 800;
}

.mtme-menu a {
  text-decoration: none;
  color: var(--navy);
}

.mtme-menu a:hover { color: var(--teal); }

.mtme-btn,
.wp-block-button__link,
input[type="submit"],
button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 14px 22px;
  font-family: Arial, sans-serif;
  font-weight: 800;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  line-height: 1.2;
  text-align: center;
}

.mtme-btn:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(18, 48, 71, 0.15);
}

.mtme-btn-primary,
.wp-block-button__link,
input[type="submit"],
button[type="submit"] {
  background: var(--orange);
  color: var(--white);
}

.mtme-btn-secondary { background: var(--navy); color: var(--white); }
.mtme-btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }

.mtme-hero {
  background:
    radial-gradient(circle at 75% 20%, rgba(31, 138, 131, 0.14), transparent 34%),
    linear-gradient(135deg, var(--cream), var(--sand));
  padding: 70px 0 58px;
  border-bottom: 1px solid var(--border);
}

.mtme-hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  align-items: center;
}

.mtme-eyebrow,
.cat-links a,
.tags-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(31, 138, 131, 0.12);
  color: var(--teal);
  border: 1px solid rgba(31, 138, 131, 0.22);
  border-radius: 999px;
  padding: 8px 13px;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  margin: 0 6px 8px 0;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin: 0 0 16px;
}

h1 { font-size: clamp(35px, 5.5vw, 68px); }
h2 { font-size: clamp(25px, 4vw, 48px); }
h3 { font-size: 20px; letter-spacing: -0.02em; }
h4 { font-size: 18px; }

.mtme-hero p {
  font-size: 21px;
  color: var(--text);
  max-width: 680px;
  margin: 20px 0 28px;
}

.mtme-hero-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
}

.mtme-hero-card h3 { margin-bottom: 10px; }
.mtme-hero-card p { font-size: 17px; color: var(--muted); margin: 0 0 20px; }

.mtme-main {
  padding: 64px 0;
}

.mtme-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 38px;
  align-items: start;
}

.mtme-post-list {
  display: grid;
  gap: 24px;
}

.mtme-post-card,
.mtme-sidebar-widget,
.comment-respond,
.comments-area,
.mtme-page-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(18, 48, 71, 0.06);
}

.mtme-post-card { overflow: hidden; }

.mtme-post-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.mtme-post-body { padding: 28px; }

.mtme-post-title {
  font-size: clamp(28px, 3vw, 42px);
  margin-bottom: 12px;
}

.mtme-post-title a { color: var(--navy); text-decoration: none; }
.mtme-post-title a:hover { color: var(--teal); }

.mtme-meta {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
}

.mtme-meta a { color: var(--muted); text-decoration: none; }
.mtme-meta a:hover { color: var(--teal); }

.mtme-excerpt,
.entry-content {
  color: var(--text);
}

.mtme-excerpt p { margin-top: 0; }

.mtme-read-more {
  margin-top: 18px;
}

.mtme-sidebar {
  display: grid;
  gap: 20px;
}

.mtme-sidebar-widget {
  padding: 25px;
}

.mtme-sidebar-widget h2,
.mtme-sidebar-widget h3,
.widget-title {
  font-size: 23px;
  margin-bottom: 12px;
}

.mtme-sidebar-widget p,
.mtme-sidebar-widget li {
  color: var(--muted);
  font-size: 16px;
}

.mtme-sidebar-widget ul {
  padding-left: 20px;
  margin: 12px 0 0;
}

.mtme-sidebar-widget a { color: var(--navy); text-decoration: none; font-weight: 700; }
.mtme-sidebar-widget a:hover { color: var(--teal); }

.mtme-kit-box {
  background: linear-gradient(160deg, var(--navy), #174e68 52%, var(--teal));
  color: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.mtme-kit-box h3 { color: var(--white); }
.mtme-kit-box p { color: rgba(255,255,255,0.82); margin-bottom: 20px; }

.entry-header {
  background:
    radial-gradient(circle at 75% 20%, rgba(31, 138, 131, 0.14), transparent 34%),
    linear-gradient(135deg, var(--cream), var(--sand));
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}

.entry-header .mtme-container { max-width: 930px; }
.entry-header h1 { font-size:40px; margin-bottom: 16px; }
.wpcf7 h2 { font-size:30px; margin-bottom: 20px; margin-top:20px; }

.single .entry-content,
.page .entry-content {
  max-width: 860px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(18, 48, 71, 0.06);
  padding: clamp(28px, 5vw, 54px);
}

.entry-content p { margin: 0 0 20px; }
.entry-content a { color: var(--teal); font-weight: 700; }
.entry-content ul, .entry-content ol { margin: 0 0 22px 22px; }
.entry-content li { margin-bottom: 8px; }
.entry-content blockquote {
  margin: 30px 0;
  padding: 24px 28px;
  border-left: 5px solid var(--teal);
  background: var(--sand);
  border-radius: 0 18px 18px 0;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.4;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-family: Arial, sans-serif;
}

.entry-content th,
.entry-content td {
  border: 1px solid var(--border);
  padding: 12px;
  text-align: left;
}

.entry-content th { background: var(--sand); color: var(--navy); }

.wp-caption,
.wp-caption-text,
.gallery-caption { color: var(--muted); font-family: Arial, sans-serif; font-size: 14px; }
.alignleft { float: left; margin: 0 24px 18px 0; }
.alignright { float: right; margin: 0 0 18px 24px; }
.aligncenter { margin-left: auto; margin-right: auto; }

.mtme-post-nav,
.pagination,
.nav-links {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 28px;
  font-family: Arial, sans-serif;
}

.page-numbers,
.nav-previous a,
.nav-next a,
.post-page-numbers {
  display: inline-flex;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--navy);
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
}

.page-numbers.current { background: var(--navy); color: var(--white); }

.comments-area,
.comment-respond {
  max-width: 860px;
  margin: 30px auto 0;
  padding: 30px;
}

.comment-list { padding-left: 0; list-style: none; }
.comment-body { border-bottom: 1px solid var(--border); padding: 18px 0; }
.comment-meta { font-family: Arial, sans-serif; font-size: 14px; }
.comment-meta a { color: var(--muted); text-decoration: none; }
.comment-reply-link { color: var(--teal); font-family: Arial, sans-serif; font-weight: 800; }

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  font-size: 16px;
  font-family: Arial, sans-serif;
}

textarea { min-height: 160px; }
label { font-family: Arial, sans-serif; color: var(--navy); font-weight: 800; }

.search-form {
  display: flex;
  gap: 8px;
}
.search-form label { flex: 1; }
.search-submit { white-space: nowrap; }

.mtme-site-footer {
  background: #0c2232;
  color: rgba(255,255,255,0.75);
  padding: 30px 0;
  font-family: Arial, sans-serif;
  font-size: 13px;
}

.mtme-site-footer .mtme-container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.mtme-site-footer a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
}

.mtme-footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 960px) {
  .mtme-hero-inner,
  .mtme-content-grid {
    grid-template-columns: 1fr;
  }

  .mtme-menu { display: none; }

  .mtme-main { padding: 46px 0; }
  .mtme-hero { padding: 52px 0 46px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }

  .mtme-topbar .mtme-container {
    justify-content: center;
    text-align: center;
  }

  .mtme-nav { align-items: flex-start; }
  .mtme-brand { max-width: 170px; }
  .mtme-btn { width: 100%; }
  .mtme-menu-wrap { width: auto; }
  .mtme-menu-wrap .mtme-btn { width: auto; padding: 12px 16px; }

  .mtme-post-body { padding: 24px; }
  .single .entry-content,
  .page .entry-content { padding: 26px; }

  .search-form { flex-direction: column; }
}
