/*
Theme Name: Tourism Tulum
Theme URI: https://tourismtulum.com/
Author: Tourism Tulum
Description: A native WordPress theme converted from the Tourism Tulum travel guide design. Built for editorial travel guides, category archives, static destination pages, and affiliate-style article layouts.
Version: 1.0.5
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tourism-tulum
*/

:root {
  --background: hsl(39 46% 96%);
  --foreground: hsl(32 28% 16%);
  --card: hsl(42 52% 98%);
  --card-foreground: hsl(32 28% 16%);
  --primary: hsl(174 74% 31%);
  --primary-foreground: hsl(40 47% 97%);
  --secondary: hsl(43 44% 88%);
  --secondary-foreground: hsl(143 39% 18%);
  --muted: hsl(42 33% 89%);
  --muted-foreground: hsl(31 16% 38%);
  --accent: hsl(18 56% 49%);
  --accent-foreground: hsl(40 47% 97%);
  --border: hsl(38 25% 78%);
  --ring: hsl(174 74% 31%);
  --jungle: hsl(143 39% 18%);
  --palm: hsl(127 29% 35%);
  --cenote: hsl(185 78% 42%);
  --limestone: hsl(42 52% 94%);
  --sand: hsl(39 39% 84%);
  --gold: hsl(42 54% 55%);
  --radius: 1.1rem;
  --shadow-soft: 0 22px 60px -34px hsl(143 39% 18% / 0.45);
  --shadow-water: 0 24px 70px -36px hsl(185 78% 30% / 0.55);
  --container: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: 'DM Sans', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
h1, h2, h3, h4, .font-display {
  font-family: 'Fraunces', Georgia, serif;
  letter-spacing: 0;
  line-height: 1.04;
}
h1, h2, h3, p { margin-top: 0; }
.wp-site-blocks, .site, .site-main { min-height: 1px; }
.wrap, .container-wide {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
}
.container-narrow { width: min(860px, calc(100% - 2rem)); margin-inline: auto; }
.bg-background { background: var(--background); }
.bg-limestone { background: var(--limestone); }
.bg-secondary { background: var(--secondary); }
.bg-jungle { background: var(--jungle); color: var(--primary-foreground); }
.eyebrow {
  color: var(--accent);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.bg-jungle .eyebrow, .front-hero .eyebrow { color: var(--cenote); }
.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  left: 1rem; top: 1rem; width: auto; height: auto; z-index: 10000;
  background: var(--card); color: var(--jungle); padding: .8rem 1rem; border-radius: 999px;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid var(--border);
  background: var(--background);
  background: color-mix(in srgb, var(--background) 96%, white 4%);
  box-shadow: var(--shadow-soft);
}
.header-inner {
  min-height: 76px;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding-block: .95rem;
}
.site-branding {
  display: inline-flex; align-items: center; gap: .75rem; min-width: 235px;
}
.brand-icon {
  width: 44px; height: 44px; flex: 0 0 44px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--primary); color: var(--primary-foreground);
  box-shadow: var(--shadow-water);
  transition: transform .25s ease;
}
.site-branding:hover .brand-icon { transform: rotate(-5deg) scale(1.05); }
.brand-text { line-height: 1.05; }
.brand-title { display: block; color: var(--jungle); font-family: 'Fraunces', Georgia, serif; font-size: 1.27rem; font-weight: 650; }
.brand-tagline { display: block; margin-top: .18rem; color: var(--muted-foreground); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; }
.primary-menu { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .2rem; margin: 0; padding: 0; list-style: none; }
.primary-menu a {
  display: inline-flex; align-items: center; border-radius: 999px;
  padding: .55rem .95rem; color: var(--foreground); font-size: .93rem; font-weight: 650;
  transition: background .2s ease, color .2s ease;
}
.primary-menu a:hover, .primary-menu .current-menu-item > a { background: var(--secondary); color: var(--primary); }
.header-contact, .button, .wp-block-button__link, input[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; border: 0; border-radius: 999px;
  padding: .65rem 1.25rem;
  background: var(--primary); color: var(--primary-foreground);
  font-weight: 800; cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform .22s ease, background .22s ease, border-color .22s ease;
}
.header-contact:hover, .button:hover, .wp-block-button__link:hover, input[type="submit"]:hover { transform: translateY(-2px); color: var(--primary-foreground); background: var(--accent); }
.button-secondary { background: transparent; border: 1px solid hsl(40 47% 97% / .45); color: var(--primary-foreground); backdrop-filter: blur(8px); box-shadow: none; }
.button-secondary:hover { background: hsl(40 47% 97% / .13); color: white; }
.mobile-menu { display: none; border-top: 1px solid var(--border);
  border-top: 1px solid color-mix(in srgb, var(--border) 70%, transparent); overflow-x: auto; padding: .75rem 1rem; gap: .5rem; }
.mobile-menu a { white-space: nowrap; flex: 0 0 auto; border-radius: 999px; background: var(--secondary); padding: .52rem .9rem; color: var(--secondary-foreground); font-weight: 700; font-size: .9rem; }

/* Hero and homepage sections */
.front-hero {
  position: relative; min-height: 86vh; overflow: hidden;
  background: var(--jungle); color: var(--primary-foreground);
}
.front-hero__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.front-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, hsl(143 39% 12% / .78), hsl(143 39% 12% / .36), hsl(185 78% 28% / .12)); }
.front-hero::before { content: ""; pointer-events: none; position: absolute; inset-inline: 0; bottom: 0; height: 7rem; z-index: 1; background: linear-gradient(180deg, hsl(39 46% 96% / 0), var(--background)); }
.front-hero__content {
  position: relative; z-index: 2; min-height: 86vh;
  display: flex; flex-direction: column; justify-content: center;
  padding-block: 7rem 8.5rem;
}
.front-hero h1 { max-width: 850px; margin: 1.1rem 0 0; font-size: clamp(3.25rem, 9vw, 7.6rem); letter-spacing: -.045em; }
.front-hero p:not(.eyebrow) { max-width: 720px; margin: 1.4rem 0 0; color: hsl(40 47% 97% / .88); font-size: clamp(1.08rem, 1.8vw, 1.3rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.section { padding-block: clamp(4rem, 7vw, 6rem); }
.section-header-grid { display: grid; grid-template-columns: .8fr 1.2fr; align-items: end; gap: 3rem; }
.section-kicker h2, .section-title { margin: .65rem 0 0; color: var(--jungle); font-size: clamp(2.2rem, 5vw, 4rem); }
.section-lede { color: var(--muted-foreground); font-size: 1.13rem; line-height: 1.8; }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; margin-top: 3rem; }
.feature-card, .plan-card, .content-card, .newsletter-form, .article-aside-card, .callout {
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-soft);
}
.feature-card { padding: 1.55rem; transition: transform .25s ease; }
.feature-card:hover, .content-card:hover { transform: translateY(-4px); }
.icon-bubble { width: 34px; height: 34px; color: var(--primary); }
.feature-card h3, .plan-card h3 { margin: 1.25rem 0 .6rem; color: var(--jungle); font-size: 1.55rem; }
.feature-card p, .plan-card p { margin: 0; color: var(--muted-foreground); font-size: .96rem; line-height: 1.75; }
.split-section { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; align-items: center; }
.split-section img { width: 100%; min-height: 420px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; margin-top: 1.8rem; }
.category-tile { border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); padding: 1rem; color: var(--jungle); font-weight: 800; box-shadow: var(--shadow-soft); }
.category-tile:hover { border-color: var(--primary); }
.tour-grid, .post-card-grid, .planning-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.5rem; }
.tour-grid, .post-card-grid { margin-top: 3rem; }
.plan-card { padding: 1.75rem; background: var(--sand); }
.bg-jungle .split-section img { box-shadow: var(--shadow-water); }
.bg-jungle .section-title, .bg-jungle h2 { color: var(--primary-foreground); }
.bg-jungle p { color: hsl(40 47% 97% / .8); }
.section-header-row { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; }
.view-all { color: var(--primary); font-weight: 800; }

/* Archives and cards */
.archive-hero, .page-hero { background: var(--limestone); padding-block: clamp(4rem, 8vw, 6.5rem); }
.archive-hero h1, .page-hero h1 { margin: .7rem 0 0; color: var(--jungle); font-size: clamp(3rem, 7vw, 6rem); letter-spacing: -.03em; }
.archive-hero p:not(.eyebrow), .archive-description, .page-hero p { max-width: 780px; margin-top: 1.4rem; color: var(--muted-foreground); font-size: 1.13rem; line-height: 1.8; }
.category-filter { display: flex; gap: .7rem; overflow-x: auto; padding: .2rem 0 .5rem; margin-top: 2rem; }
.category-filter ul { list-style: none; padding: 0; margin: 0; display: contents; }
.category-filter li { list-style: none; }
.category-filter a, .pagination a, .pagination span, .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 999px; background: var(--card); padding: .55rem 1rem;
  color: var(--foreground); font-size: .92rem; font-weight: 800; white-space: nowrap;
}
.category-filter a:hover, .pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current, .page-numbers.current { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }
.post-index { padding-block: clamp(4rem, 7vw, 5.5rem); }
.content-card { overflow: hidden; transition: transform .25s ease; }
.content-card--featured { display: grid; grid-template-columns: 1.15fr .85fr; }
.content-card__image-link { overflow: hidden; background: var(--muted); min-height: 220px; }
.content-card__image { width: 100%; height: 235px; object-fit: cover; transition: transform .7s ease; }
.content-card--featured .content-card__image { height: 100%; min-height: 340px; }
.content-card:hover .content-card__image { transform: scale(1.045); }
.content-card__body { padding: 1.55rem; }
.content-card__category, .content-card__category a { color: var(--accent); font-size: .72rem; font-weight: 900; letter-spacing: .22em; text-transform: uppercase; }
.content-card__title { margin: .75rem 0 0; color: var(--jungle); font-size: 1.55rem; line-height: 1.15; }
.content-card--featured .content-card__title { font-size: clamp(2rem, 3vw, 2.7rem); }
.content-card__excerpt { margin: 1rem 0 0; color: var(--muted-foreground); font-size: .97rem; line-height: 1.75; }
.content-card__meta { margin-top: 1.3rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--muted-foreground); font-size: .92rem; }
.content-card__read-more { color: var(--primary); font-weight: 900; white-space: nowrap; }
.related-guides { background: var(--limestone); padding-block: clamp(4rem, 7vw, 5.5rem); }
.related-guides h2 { color: var(--jungle); font-size: clamp(2rem, 4vw, 3rem); }
.empty-state { border: 1px dashed var(--border); border-radius: var(--radius); padding: 2rem; background: var(--card); color: var(--muted-foreground); }

/* Static topic and pages */
.topic-hero-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: center; }
.topic-hero img { width: 100%; max-height: 540px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.planning-grid { margin-top: 0; }
.planning-note { padding: 1.6rem; }
.planning-note h2 { color: var(--jungle); font-size: 1.6rem; }
.planning-note p { margin: .75rem 0 0; color: var(--muted-foreground); font-size: .96rem; }
.standard-page { padding-block: clamp(4rem, 7vw, 5.5rem); }
.page-content, .entry-content { color: var(--foreground); }
.page-content > *, .entry-content > * { max-width: 860px; margin-left: auto; margin-right: auto; }
.page-content .alignwide, .entry-content .alignwide { max-width: var(--container); }
.page-content .alignfull, .entry-content .alignfull { max-width: none; width: 100%; }
.page-content p, .entry-content p { color: var(--muted-foreground); font-size: 1.08rem; line-height: 1.82; }
.page-content h2, .entry-content h2 { margin-top: 2.4rem; color: var(--jungle); font-size: clamp(1.9rem, 4vw, 2.65rem); }
.page-content h3, .entry-content h3 { margin-top: 2rem; color: var(--jungle); font-size: 1.65rem; }
.page-content ul, .entry-content ul, .page-content ol, .entry-content ol { color: var(--muted-foreground); font-size: 1.05rem; line-height: 1.8; }

/* Single posts */
.single-guide__hero { background: var(--limestone); padding-block: 3.5rem 3rem; }
.single-guide__meta { display: flex; flex-wrap: wrap; gap: .9rem 1.1rem; color: var(--muted-foreground); font-size: .92rem; }
.single-guide__meta a { color: var(--accent); font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.single-guide__hero h1 { max-width: 960px; margin: 1rem 0 1.3rem; color: var(--jungle); font-size: clamp(3rem, 7vw, 5.8rem); line-height: 1.02; }
.single-guide__excerpt { max-width: 860px; color: var(--muted-foreground); font-size: 1.18rem; line-height: 1.8; }
.single-guide__image { width: 100%; max-height: 620px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-soft); margin-top: 2rem; }
.single-guide__layout { display: grid; grid-template-columns: minmax(0, 760px) 280px; gap: 3rem; align-items: start; padding-block: 4rem; }
.single-guide__content, .article-body { font-size: 1.1rem; line-height: 1.82; color: var(--foreground); }
.single-guide__content .lead, .article-body .lead { color: var(--jungle); font-family: 'Fraunces', Georgia, serif; font-size: clamp(1.55rem, 3vw, 2rem); line-height: 1.35; }
.single-guide__content p, .article-body p { margin: 1.05rem 0 0; color: var(--muted-foreground); }
.single-guide__content h2, .article-body h2 { margin: 2.8rem 0 0; color: var(--jungle); font-size: clamp(2rem, 4vw, 2.75rem); }
.single-guide__content h3, .article-body h3 { margin: 2rem 0 0; color: var(--jungle); font-size: clamp(1.55rem, 3vw, 2rem); }
.single-guide__content ul, .single-guide__content ol, .article-body ul, .article-body ol { color: var(--muted-foreground); }
.single-guide__content img { border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.callout { margin: 2.5rem 0; padding: 1.6rem; background: var(--secondary); border-color: var(--primary);
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.article-aside { position: sticky; top: 110px; display: grid; gap: 1.25rem; }
.article-aside-card { padding: 1.25rem; }
.article-aside-card h2 { color: var(--jungle); font-size: 1.6rem; }
.share-links { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1rem; }
.share-links a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 999px; background: var(--secondary); color: var(--primary); font-weight: 800; }
.post-navigation { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; }
.post-navigation a { border: 1px solid var(--border); border-radius: 999px; padding: .85rem 1.1rem; font-weight: 800; }

/* Newsletter */
.newsletter { background: var(--secondary); padding-block: 4rem; }
.newsletter-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2rem; align-items: center; max-width: 1040px; }
.newsletter h2 { margin: .7rem 0 0; color: var(--jungle); font-size: clamp(2rem, 4vw, 3rem); }
.newsletter-form { padding: 1.25rem; }
.newsletter-form label { color: var(--foreground); font-weight: 800; font-size: .95rem; }
.newsletter-row { display: flex; gap: .8rem; margin-top: .8rem; }
.newsletter-form input[type="email"], .newsletter-form input[type="text"] {
  flex: 1; min-height: 48px; border: 1px solid var(--border); border-radius: 999px; background: var(--background);
  padding: 0 1.05rem; color: var(--foreground); outline: none;
}
.newsletter-form input:focus { border-color: var(--ring); box-shadow: 0 0 0 3px hsl(174 74% 31% / .16); }
.newsletter-form p { margin: .8rem 0 0; color: var(--muted-foreground); font-size: .8rem; }

/* Footer */
.site-footer { background: var(--jungle); color: var(--primary-foreground); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr 1fr .9fr; gap: 2.5rem; padding-block: 3.7rem; }
.footer-brand { display: inline-flex; align-items: center; gap: .75rem; }
.footer-brand .brand-icon { background: var(--cenote); color: var(--jungle); box-shadow: none; }
.footer-brand-title { font-family: 'Fraunces', Georgia, serif; font-size: 1.7rem; }
.site-footer p { color: hsl(40 47% 97% / .75); font-size: .92rem; line-height: 1.75; }
.site-footer h2 { color: var(--primary-foreground); font-size: 1.25rem; }
.site-footer ul { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .7rem; }
.footer-category-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.site-footer a, .site-footer address { color: hsl(40 47% 97% / .78); }
.site-footer a:hover { color: var(--cenote); }
.footer-contact { display: grid; gap: .7rem; margin-top: 1rem; font-style: normal; }
.footer-legal { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.2rem; font-size: .82rem; }
.footer-social { display: flex; gap: .7rem; margin-top: 1rem; }
.footer-social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid hsl(40 47% 97% / .25); border-radius: 999px; }

/* WordPress compatibility */
.aligncenter { margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, figcaption { color: var(--muted-foreground); font-size: .88rem; margin-top: .45rem; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
.bypostauthor { display: block; }
.gallery { display: grid; gap: 1rem; }
.search-form { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.25rem; }
.search-form input[type="search"] { min-height: 48px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); padding-inline: 1rem; min-width: min(100%, 320px); }

@media (max-width: 1120px) {
  .primary-navigation, .header-contact { display: none; }
  .mobile-menu { display: flex; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .section-header-grid, .split-section, .topic-hero-grid, .newsletter-grid, .single-guide__layout { grid-template-columns: 1fr; }
  .tour-grid, .post-card-grid, .planning-grid { grid-template-columns: 1fr; }
  .content-card--featured { grid-template-columns: 1fr; }
  .article-aside { position: static; }
  .front-hero__content { padding-top: 6rem; }
}
@media (max-width: 640px) {
  :root { --radius: .95rem; }
  .wrap, .container-wide, .container-narrow { width: min(100% - 1.25rem, var(--container)); }
  .header-inner { min-height: 68px; }
  .site-branding { min-width: 0; }
  .brand-icon { width: 40px; height: 40px; flex-basis: 40px; }
  .brand-title { font-size: 1.08rem; }
  .brand-tagline { font-size: .62rem; letter-spacing: .14em; }
  .front-hero, .front-hero__content { min-height: 78vh; }
  .feature-grid, .category-grid { grid-template-columns: 1fr; }
  .newsletter-row, .post-navigation { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .archive-hero h1, .page-hero h1, .single-guide__hero h1 { word-break: normal; overflow-wrap: anywhere; }
}

/* v1.0.1 — closer match to the original Lovable/Tailwind render */
h1, h2, h3, h4, .font-display, .brand-title, .footer-brand-title {
  font-weight: 500;
  letter-spacing: 0;
}
strong, b { font-weight: 600; }

.primary-menu a {
  font-size: .875rem;
  font-weight: 500;
  padding: .5rem 1rem;
}
.header-contact {
  min-height: auto;
  padding: .625rem 1.25rem;
  font-size: .875rem;
  font-weight: 600;
}
.brand-title {
  font-size: 1.25rem;
}
.brand-tagline {
  font-size: .75rem;
  letter-spacing: .24em;
}
.header-contact, .button, .wp-block-button__link, input[type="submit"] {
  font-weight: 600;
}
.button, .wp-block-button__link, input[type="submit"] {
  min-height: 48px;
  padding-inline: 1.75rem;
}
.front-hero h1 {
  max-width: 48rem;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: .95;
  letter-spacing: 0;
}
.front-hero p:not(.eyebrow) {
  max-width: 42rem;
  font-size: clamp(1.125rem, 1.6vw, 1.25rem);
  line-height: 1.6;
}
.section-kicker h2, .section-title {
  font-size: clamp(2.25rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}
.feature-card h3, .plan-card h3,
.content-card__title,
.archive-hero h1, .page-hero h1,
.single-guide__hero h1,
.article-aside-card h2,
.related-guides h2 {
  font-weight: 500;
  letter-spacing: 0;
}
.category-tile, .view-all, .content-card__read-more, .newsletter-form label {
  font-weight: 600;
}

.brand-icon svg,
.footer-brand .brand-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}
.footer-brand .brand-icon {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
}
.footer-brand-title {
  font-size: 1.5rem;
}
.site-footer h2 {
  font-size: 1.125rem;
  font-weight: 500;
}
.site-footer .footer-description {
  margin-top: 1.25rem;
  max-width: 24rem;
  color: hsl(40 47% 97% / .78);
  font-size: .875rem;
  line-height: 1.75rem;
}
.site-footer .footer-disclosure {
  margin-top: 1.25rem;
  color: hsl(40 47% 97% / .70);
  font-size: .75rem;
  line-height: 1.5rem;
}
.site-footer ul,
.footer-contact {
  font-size: .875rem;
  color: hsl(40 47% 97% / .78);
}
.site-footer ul {
  gap: .75rem;
}
.footer-category-list {
  gap: .75rem;
}
.footer-contact a,
.footer-contact span {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.footer-contact svg,
.footer-social svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
}
.footer-legal {
  margin-top: 1.5rem;
  font-size: .75rem;
  color: hsl(40 47% 97% / .70);
}
.footer-social a {
  width: 40px;
  height: 40px;
}


/* Homepage polish: title spacing and guide link icon */
.section-title + .section-lede {
  margin-top: 1.35rem;
}
.bg-jungle .section-title + .section-lede {
  margin-top: 1.45rem;
}
.view-all {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}
.view-all__icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
  transition: transform .22s ease;
}
.view-all:hover .view-all__icon {
  transform: translateX(3px);
}

/* v1.0.3 — post, newsletter, footer, and legal page refinements */
:root {
  --limestone: hsl(42 52% 95.5%);
}

.header-inner {
  min-height: 66px;
  padding-block: .7rem;
}
.site-branding {
  min-width: 205px;
  gap: .65rem;
}
.brand-icon {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
}
.brand-title {
  font-size: 1.08rem;
}
.brand-tagline {
  font-size: .62rem;
  letter-spacing: .2em;
}
.primary-menu a {
  font-size: .79rem;
  padding: .42rem .78rem;
}
.header-contact {
  font-size: .79rem;
  padding: .5rem 1.05rem;
}

.newsletter h2 {
  max-width: 33rem;
  font-size: clamp(1.85rem, 3vw, 2.55rem);
  line-height: 1.08;
}
.newsletter-form {
  padding: 1.5rem;
  border-radius: 1.2rem;
}
.newsletter-row {
  gap: .9rem;
}
.newsletter-form button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 0 1.35rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform .22s ease, background .22s ease;
}
.newsletter-form button[type="submit"]:hover {
  transform: translateY(-2px);
  background: var(--accent);
}
.newsletter-form button[type="submit"] svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
}

.single-guide {
  background: var(--limestone);
}
.single-guide__hero {
  background: var(--limestone);
  padding-block: 3rem 2.7rem;
}
.single-guide__category,
.single-guide__category a {
  color: var(--accent);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.single-guide__hero h1 {
  margin: .9rem 0 1rem;
  font-size: clamp(2.65rem, 5.8vw, 4.85rem);
  line-height: .98;
}
.single-guide__meta {
  margin-top: .35rem;
  font-size: .84rem;
  gap: .75rem 1rem;
}
.single-guide__image {
  margin-top: 2.1rem;
}
.single-guide__article-excerpt {
  margin: 0 0 1.45rem;
  color: var(--jungle);
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.28rem, 2vw, 1.72rem);
  font-weight: 600;
  line-height: 1.35;
}
.single-guide__content > .single-guide__article-excerpt:first-child + p {
  margin-top: 0;
}

.share-links a svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
}
.share-links a:hover {
  background: var(--primary);
  color: var(--primary-foreground);
}

.related-guides {
  background: var(--limestone);
}
.related-guides__title {
  color: var(--jungle);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0;
}
.related-guides .post-card-grid {
  gap: 1.5rem;
}
.related-guides .content-card__image {
  height: 235px;
}
.related-guides .content-card__body {
  padding: 1.5rem;
}
.related-guides .content-card__title {
  margin-top: .85rem;
  font-size: clamp(1.35rem, 1.7vw, 1.6rem);
  line-height: 1.16;
}
.related-guides .content-card__excerpt {
  margin-top: 1rem;
  font-size: .96rem;
  line-height: 1.75;
}
.related-guides .content-card__meta {
  margin-top: 1.25rem;
}
.post-navigation {
  align-items: center;
}
.post-navigation a,
.post-navigation span {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .85rem 1.2rem;
  font-weight: 700;
  background: var(--card);
  color: var(--foreground);
}
.post-navigation a:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-foreground);
}
.post-navigation .post-navigation__next {
  margin-left: auto;
}
.post-navigation svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
}
.post-navigation .is-disabled {
  opacity: .55;
}

.footer-grid {
  grid-template-columns: 1.2fr .8fr 1fr .9fr;
}
.footer-recaptcha,
.footer-copyright {
  margin-top: 1.2rem;
  color: hsl(40 47% 97% / .66);
  font-size: .72rem;
  line-height: 1.55;
}
.footer-recaptcha a {
  color: inherit;
  font-weight: 400;
  text-decoration: none;
}
.footer-recaptcha a:hover {
  color: inherit;
  text-decoration: none;
}
.footer-copyright {
  margin-top: .9rem;
}

.story-hero {
  background: linear-gradient(180deg, var(--limestone), var(--background));
  padding-block: clamp(4.5rem, 8vw, 7rem);
}
.story-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.story-hero h1 {
  max-width: 760px;
  margin: .8rem 0 0;
  color: var(--jungle);
  font-size: clamp(3rem, 6vw, 5.2rem);
  line-height: .98;
}
.story-hero p:not(.eyebrow) {
  max-width: 680px;
  margin-top: 1.35rem;
  color: var(--muted-foreground);
  font-size: 1.12rem;
  line-height: 1.8;
}
.story-hero img,
.contact-panel,
.info-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}
.story-hero img {
  width: 100%;
  min-height: 420px;
  object-fit: cover;
}
.info-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.info-card {
  padding: 1.7rem;
}
.info-card h2 {
  margin: 1rem 0 0;
  color: var(--jungle);
  font-size: 1.65rem;
  line-height: 1.12;
}
.info-card p {
  margin: .9rem 0 0;
  color: var(--muted-foreground);
  line-height: 1.78;
}
.story-band .split-section {
  align-items: start;
}
.story-band p:not(.eyebrow) {
  font-size: 1.1rem;
  line-height: 1.85;
}
.contact-panel {
  padding: clamp(1.5rem, 3vw, 2rem);
}
.contact-panel h2 {
  margin: 0;
  color: var(--jungle);
  font-size: 2rem;
}
.contact-list {
  display: grid;
  gap: .8rem;
  margin-top: 1.2rem;
}
.contact-list a,
.contact-list span {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: var(--foreground);
  font-weight: 600;
}
.contact-list svg,
.contact-hero__button svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
}
.contact-panel p {
  margin: 1.5rem 0 0;
  color: var(--muted-foreground);
}
.contact-hero__button {
  margin-top: 1.4rem;
}
.legal-content {
  max-width: 920px;
}
.legal-content strong {
  color: var(--jungle);
}
.legal-content h2 {
  border-top: 1px solid var(--border);
  padding-top: 1.7rem;
}

@media (max-width: 1120px) {
  .site-branding { min-width: 0; }
}
@media (max-width: 900px) {
  .story-hero__grid,
  .info-card-grid {
    grid-template-columns: 1fr;
  }
  .related-guides .post-card-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .newsletter-row {
    flex-direction: column;
  }
  .newsletter-form button[type="submit"] {
    width: 100%;
  }
  .single-guide__hero h1,
  .story-hero h1 {
    font-size: clamp(2.45rem, 13vw, 3.4rem);
  }
}

/* v1.0.4 — final Lovable parity pass for archive pages and cards */
.blog-featured-section {
  padding-block: 4rem 0;
}
.blog-featured-section + .post-index {
  padding-top: 2.5rem;
}
.content-card__read-more {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.content-card__read-more svg {
  width: .95rem;
  height: .95rem;
  flex: 0 0 .95rem;
  transition: transform .22s ease;
}
.content-card__read-more:hover svg {
  transform: translate(2px, -2px);
}
.content-card__category a + a::before {
  content: " ";
}
.single-guide__category a + a::before {
  content: " ";
}
.archive-hero .button,
.topic-hero .button {
  margin-top: 2rem;
}
.post-card-grid + .pagination,
.pagination {
  margin-top: 3rem;
}
.pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: .75rem;
  flex-wrap: wrap;
}
@media (min-width: 901px) {
  .blog-fallback-grid,
  .blog-index-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

