/*
Theme Name: Montemor Arquitetura & Engenharia Blog
Theme URI: https://montemor.arq.br
Author: Montemor Arquitetura e Engenharia
Author URI: https://montemor.arq.br
Description: Tema do blog da Montemor Arquitetura e Engenharia. Design escuro com detalhes dourados, glassmorphism e tipografia moderna.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: montemor-blog
Tags: blog, dark, architecture, custom-menu, featured-images, translation-ready
*/

/* ==========================================================================
   DESIGN TOKENS
   ========================================================================== */

:root {
  --size: 1600;
  --color-black: #0b0b0b;
  --color-white: #fff;
  --color-gold: #c9a84c;
  --color-gold-light: #e2c97e;
  --color-grey: #1a1a1a;
  --color-grey-light: #2a2a2a;
  --color-cream: #f5f2ed;
  --color-text: #e8e8e8;
  --color-text-muted: #999;

  --ease-in-out-quart: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-in-out-cubic: cubic-bezier(0.645, 0.045, 0.355, 1);
  --ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
  --ease-out-cubic: cubic-bezier(0.215, 0.61, 0.355, 1);

  --font-s: calc((100vw / var(--size)) * 10);
  --font-f-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-f-mono: 'JetBrains Mono', monospace;
}

@media (max-width: 600px) {
  :root { --size: 375; }
}

/* ==========================================================================
   RESET
   ========================================================================== */

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

html {
  font-size: var(--font-s);
  scroll-behavior: smooth;
}

body {
  background: var(--color-black);
  color: var(--color-text);
  font-family: var(--font-f-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
button { background: none; border: none; color: inherit; cursor: pointer; font: inherit; }
img, video { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }

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

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

.heading-xl {
  font-family: var(--font-f-sans);
  font-size: 11rem;
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.heading-l {
  font-family: var(--font-f-sans);
  font-size: 6rem;
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.heading-m {
  font-family: var(--font-f-sans);
  font-size: 3.6rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.heading-s {
  font-family: var(--font-f-sans);
  font-size: 2.2rem;
  font-weight: 500;
  line-height: 1.2;
}

.body-l {
  font-family: var(--font-f-sans);
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.6;
}

.body-m {
  font-family: var(--font-f-sans);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.5;
}

.caption {
  font-family: var(--font-f-mono);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.text-muted { color: var(--color-text-muted); }

@media (max-width: 600px) {
  .heading-xl { font-size: 5.5rem; }
  .heading-l { font-size: 3.6rem; }
  .heading-m { font-size: 2.8rem; }
  .heading-s { font-size: 2rem; }
  .body-l { font-size: 1.6rem; }
}

/* ==========================================================================
   COMPONENTS
   ========================================================================== */

.base-title {
  align-items: center;
  color: var(--color-gold);
  display: flex;
  font-family: var(--font-f-mono);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
}

.base-title::before {
  background: var(--color-gold);
  content: "";
  display: block;
  height: 0.6rem;
  margin-right: 1.2rem;
  transform: rotate(45deg) translateY(-0.2rem);
  width: 0.6rem;
}

.base-button {
  align-items: center;
  display: inline-flex;
  font-family: var(--font-f-mono);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.3s var(--ease-out-cubic);
}

.base-button.is-gold {
  background: var(--color-gold);
  color: var(--color-black);
  padding: 1.8rem 3.2rem;
}

.base-button.is-gold:hover {
  background: var(--color-gold-light);
  transform: translateY(-2px);
}

.base-button.is-outline {
  background: none;
  border: 1px solid color-mix(in srgb, var(--color-gold) 50%, transparent);
  color: var(--color-gold);
  padding: 1.8rem 3.2rem;
}

.base-button.is-outline:hover {
  border-color: var(--color-gold);
  background: color-mix(in srgb, var(--color-gold) 8%, transparent);
}

/* --- Glass Panel --- */
.glass-panel {
  backdrop-filter: blur(2rem);
  background: color-mix(in srgb, var(--color-black) 85%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-gold) 15%, transparent);
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.header {
  align-items: center;
  display: flex;
  height: 5.5rem;
  justify-content: center;
  left: 50%;
  position: fixed;
  transform: translateX(-50%);
  width: 30rem;
  z-index: 100;
  border-radius: 0.4rem;
  transition: transform 0.4s var(--ease-out-cubic), background 0.3s;
}

@media (max-width: 600px) {
  .header { bottom: 2.5rem; width: 90%; }
}
@media (min-width: 601px) {
  .header { bottom: 3rem; }
}

.header.is-hidden {
  transform: translateX(-50%) translateY(150%);
}

.header.is-scrolled {
  background: color-mix(in srgb, var(--color-black) 95%, transparent);
}

.header__nav {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 0 2.4rem;
  width: 100%;
}

.header__logo {
  font-family: var(--font-f-mono);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--color-gold);
}

.header__menu-btn {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.5rem;
}

.header__menu-btn span {
  background: var(--color-white);
  display: block;
  height: 1px;
  transition: all 0.3s var(--ease-in-out-cubic);
  width: 2rem;
}

.header__menu-btn.is-active span:first-child {
  transform: rotate(45deg) translate(0.3rem, 0.3rem);
}
.header__menu-btn.is-active span:last-child {
  transform: rotate(-45deg) translate(0.3rem, -0.3rem);
}

/* ==========================================================================
   MENU OVERLAY
   ========================================================================== */

.menu {
  color: var(--color-white);
  left: 50%;
  padding: 5rem 4rem;
  pointer-events: none;
  position: fixed;
  transform: translateX(-50%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-out-cubic), visibility 0.4s;
  z-index: 99;
  border-radius: 0.4rem;
  bottom: 10rem;
  width: 30rem;
}

@media (max-width: 600px) {
  .menu { width: 90%; bottom: 9rem; }
}

.menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.menu__nav {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.menu__link {
  font-family: var(--font-f-sans);
  font-size: 2.4rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  transition: color 0.3s;
}

.menu__link:hover {
  color: var(--color-gold);
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.container {
  position: relative;
  margin: 0 4rem;
  max-width: 120rem;
}

@media (max-width: 600px) {
  .container { margin: 0 2rem; }
}

@media (min-width: 1400px) {
  .container { margin: 0 auto; }
}

.site-main {
  padding: 12rem 0 8rem;
  min-height: 70vh;
}

@media (max-width: 600px) {
  .site-main { padding: 8rem 0 6rem; }
}

/* ==========================================================================
   BLOG HERO
   ========================================================================== */

.blog-hero {
  padding: 16rem 0 8rem;
  text-align: center;
  border-bottom: 1px solid color-mix(in srgb, var(--color-gold) 15%, transparent);
  margin-bottom: 8rem;
}

@media (max-width: 600px) {
  .blog-hero { padding: 12rem 0 6rem; margin-bottom: 6rem; }
}

.blog-hero__title {
  margin-bottom: 2rem;
}

.blog-hero__description {
  color: var(--color-text-muted);
  max-width: 60rem;
  margin: 0 auto;
}

/* ==========================================================================
   POST GRID
   ========================================================================== */

.posts-grid {
  display: grid;
  gap: 4rem;
}

@media (min-width: 601px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
  }
}

@media (min-width: 1000px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 5rem;
  }
}

/* ==========================================================================
   POST CARD
   ========================================================================== */

.post-card {
  background: var(--color-grey);
  border: 1px solid color-mix(in srgb, var(--color-gold) 10%, transparent);
  border-radius: 0.4rem;
  overflow: hidden;
  transition: border-color 0.3s var(--ease-out-cubic), transform 0.3s var(--ease-out-cubic);
}

.post-card:hover {
  border-color: color-mix(in srgb, var(--color-gold) 30%, transparent);
  transform: translateY(-4px);
}

.post-card__thumbnail {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.post-card__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-cubic);
}

.post-card:hover .post-card__thumbnail img {
  transform: scale(1.05);
}

.post-card__thumbnail-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-grey-light), var(--color-grey));
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-card__thumbnail-placeholder svg {
  width: 4rem;
  height: 4rem;
  color: var(--color-gold);
  opacity: 0.4;
}

.post-card__body {
  padding: 3rem;
}

@media (max-width: 600px) {
  .post-card__body { padding: 2.5rem 2rem; }
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.post-card__category {
  color: var(--color-gold);
  font-family: var(--font-f-mono);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-card__date {
  color: var(--color-text-muted);
  font-size: 1.3rem;
}

.post-card__title {
  font-size: 2.2rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-white);
  margin-bottom: 1.5rem;
  transition: color 0.3s;
}

.post-card:hover .post-card__title {
  color: var(--color-gold);
}

.post-card__excerpt {
  color: var(--color-text-muted);
  font-size: 1.5rem;
  line-height: 1.6;
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 8rem;
  padding-top: 4rem;
  border-top: 1px solid color-mix(in srgb, var(--color-gold) 15%, transparent);
}

.pagination a,
.pagination span {
  font-family: var(--font-f-mono);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 1.2rem 2rem;
  border-radius: 0.4rem;
  transition: all 0.3s var(--ease-out-cubic);
}

.pagination a {
  color: var(--color-gold);
  border: 1px solid color-mix(in srgb, var(--color-gold) 30%, transparent);
}

.pagination a:hover {
  background: color-mix(in srgb, var(--color-gold) 10%, transparent);
  border-color: var(--color-gold);
}

.pagination .current {
  background: var(--color-gold);
  color: var(--color-black);
  padding: 1.2rem 2rem;
}

/* ==========================================================================
   SINGLE POST
   ========================================================================== */

.single-post__header {
  text-align: center;
  padding: 16rem 0 6rem;
  max-width: 80rem;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .single-post__header { padding: 12rem 0 4rem; }
}

.single-post__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.single-post__category {
  color: var(--color-gold);
  font-family: var(--font-f-mono);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.single-post__date {
  color: var(--color-text-muted);
  font-size: 1.4rem;
}

.single-post__title {
  font-size: 5rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--color-white);
}

@media (max-width: 600px) {
  .single-post__title { font-size: 3.2rem; }
}

.single-post__featured {
  margin: 4rem 0 6rem;
  border-radius: 0.4rem;
  overflow: hidden;
}

.single-post__featured img {
  width: 100%;
  height: auto;
  max-height: 50rem;
  object-fit: cover;
}

/* ==========================================================================
   POST CONTENT
   ========================================================================== */

.post-content {
  max-width: 72rem;
  margin: 0 auto;
  font-size: 1.7rem;
  line-height: 1.8;
  color: var(--color-text);
}

.post-content h2 {
  font-size: 3.2rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--color-white);
  margin: 5rem 0 2rem;
}

.post-content h3 {
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--color-white);
  margin: 4rem 0 1.5rem;
}

.post-content h4 {
  font-size: 2rem;
  font-weight: 500;
  color: var(--color-white);
  margin: 3rem 0 1rem;
}

.post-content p {
  margin-bottom: 2rem;
  color: var(--color-text-muted);
}

.post-content a {
  color: var(--color-gold);
  border-bottom: 1px solid color-mix(in srgb, var(--color-gold) 30%, transparent);
  transition: border-color 0.3s;
}

.post-content a:hover {
  border-color: var(--color-gold);
}

.post-content ul,
.post-content ol {
  margin: 2rem 0;
  padding-left: 3rem;
}

.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }

.post-content li {
  margin-bottom: 1rem;
  color: var(--color-text-muted);
}

.post-content blockquote {
  border-left: 3px solid var(--color-gold);
  padding: 2rem 3rem;
  margin: 3rem 0;
  background: color-mix(in srgb, var(--color-gold) 3%, transparent);
  border-radius: 0 0.4rem 0.4rem 0;
}

.post-content blockquote p {
  font-size: 1.9rem;
  font-style: italic;
  color: var(--color-text);
  margin-bottom: 0;
}

.post-content img {
  border-radius: 0.4rem;
  margin: 3rem 0;
}

.post-content pre {
  background: var(--color-grey);
  border: 1px solid color-mix(in srgb, var(--color-gold) 10%, transparent);
  border-radius: 0.4rem;
  padding: 2.5rem;
  overflow-x: auto;
  margin: 3rem 0;
  font-family: var(--font-f-mono);
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--color-text);
}

.post-content code {
  font-family: var(--font-f-mono);
  font-size: 1.4rem;
  background: var(--color-grey);
  padding: 0.3rem 0.6rem;
  border-radius: 0.3rem;
  color: var(--color-gold);
}

.post-content pre code {
  background: none;
  padding: 0;
  color: var(--color-text);
}

.post-content figure {
  margin: 3rem 0;
}

.post-content figcaption {
  font-size: 1.3rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 1rem;
}

/* ==========================================================================
   POST TAGS
   ========================================================================== */

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 6rem;
  padding-top: 4rem;
  border-top: 1px solid color-mix(in srgb, var(--color-gold) 15%, transparent);
}

.post-tags a {
  font-family: var(--font-f-mono);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  border: 1px solid color-mix(in srgb, var(--color-white) 15%, transparent);
  padding: 0.8rem 1.5rem;
  border-radius: 0.3rem;
  transition: all 0.3s var(--ease-out-cubic);
}

.post-tags a:hover {
  color: var(--color-gold);
  border-color: var(--color-gold);
}

/* ==========================================================================
   POST NAVIGATION
   ========================================================================== */

.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 6rem;
  padding-top: 4rem;
  border-top: 1px solid color-mix(in srgb, var(--color-gold) 15%, transparent);
}

@media (max-width: 600px) {
  .post-navigation { grid-template-columns: 1fr; gap: 2rem; }
}

.post-navigation__item {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.post-navigation__item--next {
  text-align: right;
}

.post-navigation__label {
  color: var(--color-gold);
  font-family: var(--font-f-mono);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-navigation__title {
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--color-white);
  transition: color 0.3s;
}

.post-navigation__title:hover {
  color: var(--color-gold);
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */

.site-layout {
  display: grid;
  gap: 6rem;
}

@media (min-width: 1000px) {
  .site-layout {
    grid-template-columns: 1fr 30rem;
    gap: 8rem;
  }
}

.sidebar .widget {
  background: var(--color-grey);
  border: 1px solid color-mix(in srgb, var(--color-gold) 10%, transparent);
  border-radius: 0.4rem;
  padding: 3rem;
  margin-bottom: 3rem;
}

.sidebar .widget-title {
  font-family: var(--font-f-mono);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid color-mix(in srgb, var(--color-gold) 15%, transparent);
}

.sidebar .widget ul li {
  padding: 1rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--color-white) 5%, transparent);
}

.sidebar .widget ul li:last-child {
  border-bottom: none;
}

.sidebar .widget ul li a {
  font-size: 1.4rem;
  color: var(--color-text-muted);
  transition: color 0.3s;
}

.sidebar .widget ul li a:hover {
  color: var(--color-gold);
}

.sidebar .tagcloud a {
  display: inline-block;
  font-family: var(--font-f-mono);
  font-size: 1.1rem !important;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  border: 1px solid color-mix(in srgb, var(--color-white) 12%, transparent);
  padding: 0.6rem 1.2rem;
  border-radius: 0.3rem;
  margin: 0.4rem;
  transition: all 0.3s var(--ease-out-cubic);
}

.sidebar .tagcloud a:hover {
  color: var(--color-gold);
  border-color: var(--color-gold);
}

/* ==========================================================================
   SEARCH FORM
   ========================================================================== */

.search-form {
  display: flex;
  gap: 0;
}

.search-form .search-field {
  flex: 1;
  background: color-mix(in srgb, var(--color-white) 5%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-gold) 20%, transparent);
  border-right: none;
  border-radius: 0.4rem 0 0 0.4rem;
  color: var(--color-white);
  font-family: var(--font-f-sans);
  font-size: 1.4rem;
  padding: 1.4rem 2rem;
  outline: none;
  transition: border-color 0.3s;
}

.search-form .search-field:focus {
  border-color: var(--color-gold);
}

.search-form .search-field::placeholder {
  color: color-mix(in srgb, var(--color-white) 30%, transparent);
}

.search-form .search-submit {
  background: var(--color-gold);
  color: var(--color-black);
  font-family: var(--font-f-mono);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 1.4rem 2rem;
  border: none;
  border-radius: 0 0.4rem 0.4rem 0;
  cursor: pointer;
  transition: background 0.3s;
}

.search-form .search-submit:hover {
  background: var(--color-gold-light);
}

/* ==========================================================================
   COMMENTS
   ========================================================================== */

.comments-area {
  margin-top: 8rem;
  padding-top: 6rem;
  border-top: 1px solid color-mix(in srgb, var(--color-gold) 15%, transparent);
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}

.comments-title {
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--color-white);
  margin-bottom: 4rem;
}

.comment-list {
  list-style: none;
  padding: 0;
}

.comment {
  padding: 3rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--color-white) 8%, transparent);
}

.comment:last-child {
  border-bottom: none;
}

.comment .comment-author {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.comment .comment-author img {
  border-radius: 50%;
  width: 4rem;
  height: 4rem;
}

.comment .comment-author .fn {
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--color-white);
}

.comment .comment-metadata {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.comment .comment-content p {
  font-size: 1.5rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.comment .reply a {
  font-family: var(--font-f-mono);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-top: 1rem;
  display: inline-block;
}

.comment .children {
  margin-left: 4rem;
  padding-left: 3rem;
  border-left: 1px solid color-mix(in srgb, var(--color-gold) 15%, transparent);
}

/* Comment Form */
.comment-respond {
  margin-top: 4rem;
}

.comment-respond .comment-reply-title {
  font-size: 2rem;
  font-weight: 400;
  color: var(--color-white);
  margin-bottom: 3rem;
}

.comment-form label {
  display: block;
  font-family: var(--font-f-mono);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.8rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  background: color-mix(in srgb, var(--color-white) 5%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-gold) 20%, transparent);
  border-radius: 0.4rem;
  color: var(--color-white);
  font-family: var(--font-f-sans);
  font-size: 1.5rem;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  outline: none;
  transition: border-color 0.3s;
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--color-gold);
}

.comment-form textarea {
  resize: vertical;
  min-height: 12rem;
}

.comment-form .form-submit input {
  background: var(--color-gold);
  color: var(--color-black);
  font-family: var(--font-f-mono);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1.8rem 3.2rem;
  border: none;
  border-radius: 0.4rem;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-cubic);
}

.comment-form .form-submit input:hover {
  background: var(--color-gold-light);
  transform: translateY(-2px);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  background: var(--color-black);
  border-top: 1px solid color-mix(in srgb, var(--color-gold) 20%, transparent);
  color: var(--color-white);
  padding: 12rem 0 6rem;
  position: relative;
}

@media (max-width: 600px) {
  .footer { padding: 8rem 0 4rem; }
}

.footer__content {
  margin: 0 4rem;
  max-width: 120rem;
}

@media (max-width: 600px) {
  .footer__content { margin: 0 2rem; }
}

@media (min-width: 1400px) {
  .footer__content { margin: 0 auto; }
}

.footer__top {
  margin-bottom: 8rem;
}

.footer__top .base-title {
  margin-bottom: 3rem;
}

.footer__info {
  display: grid;
  gap: 4rem;
  margin-bottom: 8rem;
}

@media (min-width: 601px) {
  .footer__info {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer__col .caption {
  color: var(--color-gold);
  display: block;
  margin-bottom: 1rem;
}

.footer__col .body-m {
  color: var(--color-text-muted);
  line-height: 1.8;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4rem;
  border-top: 1px solid color-mix(in srgb, var(--color-white) 10%, transparent);
}

@media (max-width: 600px) {
  .footer__bottom {
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
  }
}

.footer__social {
  display: flex;
  gap: 2.5rem;
}

.footer__link {
  font-size: 1.4rem;
  color: var(--color-text-muted);
  transition: color 0.3s;
}

.footer__link:hover {
  color: var(--color-gold);
}

.footer-text {
  font-size: 1.3rem;
  color: color-mix(in srgb, var(--color-white) 40%, transparent);
}

/* ==========================================================================
   WHATSAPP FLOAT
   ========================================================================== */

.whatsapp {
  position: fixed;
  bottom: 3rem;
  right: 3rem;
  z-index: 150;
}

@media (max-width: 600px) {
  .whatsapp { bottom: 2rem; right: 2rem; }
}

.whatsapp__btn {
  width: 5.6rem;
  height: 5.6rem;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px color-mix(in srgb, #25d366 40%, transparent);
  transition: transform 0.3s var(--ease-out-cubic), box-shadow 0.3s;
}

.whatsapp__btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px color-mix(in srgb, #25d366 50%, transparent);
}

.whatsapp__btn svg {
  width: 2.8rem;
  height: 2.8rem;
}

/* ==========================================================================
   ARCHIVE / SEARCH HEADER
   ========================================================================== */

.archive-header {
  padding: 16rem 0 6rem;
  text-align: center;
  border-bottom: 1px solid color-mix(in srgb, var(--color-gold) 15%, transparent);
  margin-bottom: 8rem;
}

@media (max-width: 600px) {
  .archive-header { padding: 12rem 0 4rem; margin-bottom: 6rem; }
}

.archive-header__label {
  margin-bottom: 2rem;
}

.archive-header__title {
  font-size: 4rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--color-white);
}

@media (max-width: 600px) {
  .archive-header__title { font-size: 3rem; }
}

/* ==========================================================================
   404 PAGE
   ========================================================================== */

.error-404 {
  text-align: center;
  padding: 20rem 0 12rem;
}

.error-404__code {
  font-family: var(--font-f-mono);
  font-size: 14rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--color-gold) 20%, transparent);
  line-height: 1;
  margin-bottom: 3rem;
}

@media (max-width: 600px) {
  .error-404__code { font-size: 8rem; }
}

.error-404__title {
  font-size: 3.2rem;
  font-weight: 300;
  color: var(--color-white);
  margin-bottom: 2rem;
}

.error-404__text {
  color: var(--color-text-muted);
  font-size: 1.6rem;
  margin-bottom: 4rem;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

.anim-fade-up {
  opacity: 0;
  transform: translateY(3rem);
  transition: opacity 0.8s var(--ease-out-cubic), transform 0.8s var(--ease-out-cubic);
}

.anim-fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.anim-border-reveal {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1s var(--ease-in-out-quart);
}

.anim-border-reveal.is-visible {
  transform: scaleX(1);
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

::selection {
  background: color-mix(in srgb, var(--color-gold) 30%, transparent);
  color: var(--color-white);
}
