/*
Theme Name: Mariana Malek
Theme URI: https://malek.uy
Author: Mariana Malek
Author URI: https://malek.uy
Description: Tema editorial sobrio para marca personal. Diseño basado en tipografía serif, grilla editorial y estética de medios de referencia.
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: malek
Tags: blog, portfolio, custom-colors, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&display=swap');

/* ── Variables ── */
:root {
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --black: #111110;
  --gray-dark: #444441;
  --gray-mid: #888780;
  --gray-light: #D3D1C7;
  --gray-pale: #F1EFE8;
  --white: #FAFAF8;
  --border: 0.5px solid #D3D1C7;
  --max: 900px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--black);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Layout ── */
.site { display: flex; flex-direction: column; min-height: 100vh; }
.site-content { flex: 1; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 2rem; }

/* ── Nav ── */
.site-header {
  border-bottom: var(--border);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 100;
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}
.site-branding a {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.01em;
  color: var(--black);
  text-decoration: none;
}
.main-navigation ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.main-navigation a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-mid);
  text-decoration: none;
  transition: color 0.2s;
}
.main-navigation a:hover,
.main-navigation .current-menu-item a { color: var(--black); }
.nav-cta {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 18px;
  background: var(--black);
  color: var(--white);
  text-decoration: none;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--gray-dark); }

/* ── Buttons ── */
.btn-primary, .wp-block-button__link, button[type="submit"], input[type="submit"] {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 11px 24px;
  background: var(--black);
  color: var(--white);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-block;
  border-radius: 0;
  text-decoration: none;
}
.btn-primary:hover, .wp-block-button__link:hover, button[type="submit"]:hover { background: var(--gray-dark); color: var(--white); }
.btn-ghost {
  font-size: 13px;
  color: var(--gray-mid);
  background: none;
  border: none;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s;
  display: inline-block;
}
.btn-ghost:hover { color: var(--black); }

/* ── Hero ── */
.hero {
  display: grid;
  grid-template-columns: 1fr 320px;
  border-bottom: var(--border);
  min-height: 520px;
}
.hero-left {
  padding: 3.5rem 3rem 3.5rem 0;
  border-right: var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}
.hero-right {
  position: relative;
  background: var(--gray-pale);
  overflow: hidden;
}
.hero-right img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-bottom: 1rem;
}
.hero-headline {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 1.2rem;
}
.hero-headline em { font-style: italic; font-weight: 400; }
.hero-sub { font-size: 15px; line-height: 1.75; color: var(--gray-dark); font-weight: 300; margin-bottom: 0.8rem; }
.hero-bajada { font-size: 13px; line-height: 1.7; color: var(--gray-mid); font-weight: 300; }
.cred-strip { border-top: var(--border); }
.cred-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: var(--border);
  text-decoration: none;
  transition: background 0.15s;
}
a.cred-row:hover { background: var(--gray-pale); }
.cred-org { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray-mid); min-width: 72px; flex-shrink: 0; }
.cred-role { font-size: 13px; font-weight: 500; flex: 1; color: var(--black); }
.cred-desc { font-size: 12px; color: var(--gray-mid); font-weight: 300; }
.cta-row { display: flex; gap: 1rem; align-items: center; padding-top: 1rem; }

/* ── Section label ── */
.section-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0; }
.section-label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray-mid); display: block; }
.section-link { font-size: 12px; color: var(--gray-mid); text-decoration: underline; transition: color 0.2s; }
.section-link:hover { color: var(--black); }

/* ── Services ── */
.services { margin: 3rem 0; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: var(--border);
  border-left: var(--border);
}
.service-card { padding: 1.75rem 1.5rem; border-right: var(--border); border-bottom: var(--border); transition: background 0.2s; }
.service-card:hover { background: var(--gray-pale); }
.service-number { font-family: var(--serif); font-size: 34px; color: var(--gray-light); line-height: 1; margin-bottom: 1rem; }
.service-title { font-size: 14px; font-weight: 500; margin-bottom: 0.5rem; }
.service-desc { font-size: 13px; color: var(--gray-dark); line-height: 1.6; font-weight: 300; }

/* ── Tagline ── */
.tagline-block { padding: 3.5rem 0; border-top: var(--border); border-bottom: var(--border); margin: 3rem 0; text-align: center; }
.tagline { font-family: var(--serif); font-size: 26px; font-style: italic; line-height: 1.45; max-width: 600px; margin: 0 auto; }

/* ── Work grid ── */
.work { margin-bottom: 3rem; }
.work-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: var(--border); border-left: var(--border); }
.work-card { padding: 1.5rem; border-right: var(--border); border-bottom: var(--border); transition: background 0.2s; display: block; text-decoration: none; color: inherit; }
.work-card:hover { background: var(--gray-pale); }
.work-tag { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-mid); margin-bottom: 0.5rem; }
.work-title { font-family: var(--serif); font-size: 17px; line-height: 1.3; margin-bottom: 0.4rem; color: var(--black); }
.work-meta { font-size: 12px; color: var(--gray-mid); font-weight: 300; }

/* ── Blog grid ── */
.blog { margin-bottom: 3rem; }
.blog-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; border-top: var(--border); border-left: var(--border); }
.blog-card { padding: 1.5rem; border-right: var(--border); border-bottom: var(--border); display: flex; flex-direction: column; justify-content: space-between; min-height: 220px; transition: background 0.2s; text-decoration: none; color: inherit; }
.blog-card:hover { background: var(--gray-pale); }
.blog-card.featured { padding: 2rem 1.75rem; }
.blog-category { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray-mid); margin-bottom: 0.6rem; }
.blog-title { font-family: var(--serif); line-height: 1.3; margin-bottom: 0.75rem; color: var(--black); }
.blog-card.featured .blog-title { font-size: 21px; }
.blog-card:not(.featured) .blog-title { font-size: 15px; }
.blog-excerpt { font-size: 13px; color: var(--gray-dark); line-height: 1.65; font-weight: 300; margin-bottom: 1rem; flex: 1; }
.blog-footer { display: flex; justify-content: space-between; align-items: center; }
.blog-date { font-size: 11px; color: var(--gray-mid); }

/* ── Blog list page ── */
.page-header { padding: 3rem 0 2rem; border-bottom: var(--border); margin-bottom: 0; }
.page-title { font-family: var(--serif); font-size: 38px; font-weight: 700; margin-bottom: 0.5rem; }
.page-sub { font-size: 14px; color: var(--gray-mid); font-weight: 300; }
.blog-list { margin: 0 0 4rem; }
.blog-list-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 2rem;
  align-items: baseline;
  padding: 1.5rem 0;
  border-bottom: var(--border);
  text-decoration: none;
  color: inherit;
}
.blog-list-item:hover .blog-list-title { text-decoration: underline; }
.blog-list-date { font-size: 12px; color: var(--gray-mid); font-weight: 300; }
.blog-list-title { font-family: var(--serif); font-size: 18px; line-height: 1.3; color: var(--black); }
.blog-list-cat { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-mid); white-space: nowrap; }

/* ── Single post ── */
.post-header { padding: 3rem 0 2rem; border-bottom: var(--border); margin-bottom: 2.5rem; }
.post-meta { display: flex; gap: 1.5rem; align-items: center; margin-bottom: 1rem; }
.post-cat { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray-mid); }
.post-date-label { font-size: 12px; color: var(--gray-mid); font-weight: 300; }
.post-title { font-family: var(--serif); font-size: 42px; font-weight: 700; line-height: 1.1; margin-bottom: 1rem; color: var(--black); }
.post-excerpt-lede { font-size: 17px; color: var(--gray-dark); font-weight: 300; line-height: 1.7; font-family: var(--serif); font-style: italic; }
.post-body { max-width: 680px; margin: 2rem auto 4rem; }
.post-body p { font-size: 16px; line-height: 1.85; color: var(--gray-dark); font-weight: 300; margin-bottom: 1.5rem; }
.post-body h2 { font-family: var(--serif); font-size: 26px; font-weight: 700; margin: 2.5rem 0 1rem; color: var(--black); }
.post-body h3 { font-family: var(--serif); font-size: 20px; font-weight: 400; font-style: italic; margin: 2rem 0 0.75rem; color: var(--black); }
.post-body a { text-decoration: underline; color: var(--black); }
.post-body blockquote { font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.45; border-left: 2px solid var(--black); padding-left: 1.5rem; margin: 2rem 0; color: var(--black); }
.post-back { font-size: 12px; color: var(--gray-mid); text-decoration: underline; display: inline-block; margin-bottom: 2rem; }
.post-back:hover { color: var(--black); }

/* ── WordPress post content ── */
.entry-content p { font-size: 16px; line-height: 1.85; color: var(--gray-dark); font-weight: 300; margin-bottom: 1.5rem; }
.entry-content h2 { font-family: var(--serif); font-size: 26px; font-weight: 700; margin: 2.5rem 0 1rem; }
.entry-content h3 { font-family: var(--serif); font-size: 20px; font-style: italic; font-weight: 400; margin: 2rem 0 0.75rem; }
.entry-content blockquote { font-family: var(--serif); font-style: italic; font-size: 20px; border-left: 2px solid var(--black); padding-left: 1.5rem; margin: 2rem 0; }
.entry-content a { text-decoration: underline; color: var(--black); }
.entry-content img { filter: grayscale(100%); transition: filter 0.3s; }
.entry-content img:hover { filter: grayscale(0%); }

/* ── Contact bar ── */
.contact-bar { display: flex; justify-content: space-between; align-items: center; padding: 2.5rem 0; border-top: var(--border); }
.contact-left { font-family: var(--serif); font-size: 22px; color: var(--black); }
.contact-email { font-size: 14px; color: var(--gray-dark); text-decoration: underline; transition: color 0.2s; }
.contact-email:hover { color: var(--black); }

/* ── Contact form ── */
.contact-section { margin-bottom: 3rem; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: var(--border); border-left: var(--border); }
.contact-info { padding: 2rem 2rem 2rem 0; border-right: var(--border); border-bottom: var(--border); }
.contact-info-title { font-family: var(--serif); font-size: 28px; margin-bottom: 1rem; line-height: 1.2; color: var(--black); }
.contact-info p { font-size: 14px; color: var(--gray-dark); font-weight: 300; line-height: 1.7; margin-bottom: 1rem; }
.contact-form-wrap { padding: 2rem; border-bottom: var(--border); }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-mid); margin-bottom: 0.4rem; }
.form-group input,
.form-group select,
.form-group textarea,
.wpcf7-form input,
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100%;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  color: var(--black);
  background: var(--white);
  border: var(--border);
  border-radius: 0;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--gray-dark); }
.form-group textarea { resize: vertical; min-height: 100px; }

/* ── Sobre mí ── */
.sobre-hero { display: grid; grid-template-columns: 1fr 300px; gap: 0; border-bottom: var(--border); margin-bottom: 3rem; }
.sobre-left { padding: 3rem 3rem 3rem 0; border-right: var(--border); }
.sobre-right { background: var(--gray-pale); min-height: 420px; position: relative; overflow: hidden; }
.sobre-right img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.sobre-headline { font-family: var(--serif); font-size: 38px; line-height: 1.1; font-weight: 700; margin-bottom: 1.5rem; color: var(--black); }
.sobre-headline em { font-style: italic; font-weight: 400; }
.sobre-bio { font-size: 15px; line-height: 1.8; color: var(--gray-dark); font-weight: 300; margin-bottom: 1.2rem; }
.sobre-bio strong { font-weight: 500; color: var(--black); }
.tray-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: var(--border); border-left: var(--border); }
.tray-card { padding: 1.5rem; border-right: var(--border); border-bottom: var(--border); }
.tray-period { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray-mid); margin-bottom: 0.5rem; }
.tray-role { font-family: var(--serif); font-size: 17px; margin-bottom: 0.3rem; line-height: 1.3; color: var(--black); }
.tray-org { font-size: 13px; color: var(--gray-mid); font-weight: 300; }
.tray-desc { font-size: 13px; color: var(--gray-dark); line-height: 1.6; font-weight: 300; margin-top: 0.5rem; }
.entrevistas-nota { padding: 2rem; background: var(--gray-pale); border-top: var(--border); border-bottom: var(--border); margin-bottom: 3rem; }
.nota-label { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray-mid); margin-bottom: 1rem; }
.entrevistas-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.entrevista-pill { font-size: 13px; padding: 5px 12px; border: var(--border); background: var(--white); color: var(--gray-dark); }
.marcas-strip { display: flex; flex-wrap: wrap; border-top: var(--border); border-left: var(--border); }
.marca-tag { padding: 0.75rem 1.25rem; border-right: var(--border); border-bottom: var(--border); font-size: 13px; font-weight: 500; color: var(--gray-dark); }
.form-list { border-top: var(--border); }
.form-item { display: flex; gap: 2rem; padding: 1rem 0; border-bottom: var(--border); align-items: baseline; }
.form-inst { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-mid); min-width: 140px; flex-shrink: 0; }
.form-title { font-size: 14px; font-weight: 500; flex: 1; color: var(--black); }
.form-sub { font-size: 12px; color: var(--gray-mid); font-weight: 300; white-space: nowrap; }

/* ── Portfolio ── */
.canva-wrapper { position: relative; width: 100%; padding-bottom: 62%; height: 0; border: var(--border); margin-bottom: 3rem; background: var(--gray-pale); }
.canva-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

/* ── Footer ── */
.site-footer { border-top: var(--border); padding: 1.5rem 0; background: var(--white); }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 0 2rem; display: flex; justify-content: space-between; align-items: center; }
.footer-copy { font-size: 11px; color: var(--gray-mid); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 11px; color: var(--gray-mid); letter-spacing: 0.08em; text-transform: uppercase; transition: color 0.2s; text-decoration: none; }
.footer-links a:hover { color: var(--black); }

/* ── WordPress core overrides ── */
.wp-block-button__link { border-radius: 0 !important; }
.wp-block-separator { border-color: var(--gray-light); }
.wp-block-quote { border-left: 2px solid var(--black); font-family: var(--serif); font-style: italic; }
.wp-block-post-title { font-family: var(--serif); }
.wp-block-post-date { font-size: 11px; color: var(--gray-mid); letter-spacing: 0.08em; text-transform: uppercase; }
.wp-block-post-excerpt__excerpt { font-size: 13px; color: var(--gray-dark); font-weight: 300; }
.wp-block-post-terms a { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-mid); text-decoration: none; }

/* ── Animations ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.hero-left > * { animation: fadeUp 0.6s ease both; }
.hero-left > *:nth-child(1) { animation-delay: 0.05s; }
.hero-left > *:nth-child(2) { animation-delay: 0.15s; }
.hero-left > *:nth-child(3) { animation-delay: 0.25s; }

/* ── Mobile ── */
@media (max-width: 700px) {
  .hero, .sobre-hero { grid-template-columns: 1fr; }
  .hero-right, .sobre-right { min-height: 300px; order: -1; }
  .hero-left, .sobre-left { padding: 2rem 0; border-right: none; }
  .hero-headline { font-size: 30px; }
  .services-grid, .work-grid, .blog-grid, .tray-grid, .contact-grid { grid-template-columns: 1fr; }
  .main-navigation { display: none; }
  .blog-list-item { grid-template-columns: 1fr; gap: 0.4rem; }
  .cred-desc { display: none; }
  .post-title { font-size: 28px; }
}

/* ── Site name ── */
.site-name {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.01em;
  color: var(--black);
  text-decoration: none;
}
.site-name-dot { opacity: 0.5; }

/* ── Mobile nav toggle ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--black);
  transition: transform 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Form fallback styles ── */
.malek-form .form-group { margin-bottom: 1.25rem; }
.malek-form label { display: block; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-mid); margin-bottom: 0.4rem; }
.malek-form input,
.malek-form select,
.malek-form textarea { width: 100%; font-family: var(--sans); font-size: 14px; font-weight: 300; color: var(--black); background: var(--white); border: var(--border); border-radius: 0; padding: 10px 12px; outline: none; transition: border-color 0.2s; appearance: none; }
.malek-form input:focus,
.malek-form textarea:focus { border-color: var(--gray-dark); }
.malek-form textarea { resize: vertical; min-height: 100px; }
.btn-submit { width: 100%; font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; padding: 13px 24px; background: var(--black); color: var(--white); border: none; cursor: pointer; transition: background 0.2s; }
.btn-submit:hover { background: var(--gray-dark); }

/* ── CF7 overrides ── */
.wpcf7-form input:not([type="submit"]),
.wpcf7-form select,
.wpcf7-form textarea { width: 100%; font-family: var(--sans); font-size: 14px; font-weight: 300; color: var(--black); background: var(--white); border: var(--border) !important; border-radius: 0 !important; padding: 10px 12px; outline: none; margin-bottom: 1rem; }
.wpcf7-form input[type="submit"] { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; padding: 13px 24px; background: var(--black); color: var(--white); border: none; cursor: pointer; border-radius: 0; width: 100%; }
.wpcf7-form input[type="submit"]:hover { background: var(--gray-dark); }

@media (max-width: 700px) {
  .nav-toggle { display: flex; }
  .main-navigation { display: none; }
  .main-navigation.is-open,
  .main-navigation #primary-menu.is-open { display: block; }
  .main-navigation #primary-menu.is-open {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: var(--border);
    padding: 1rem 2rem;
    z-index: 99;
  }
  .main-navigation #primary-menu.is-open li { padding: 0.5rem 0; border-bottom: var(--border); }
  .main-navigation #primary-menu.is-open a { font-size: 13px; letter-spacing: 0.08em; }
}

/* ── Work card con imagen ── */
.work-card--has-img { padding: 0; }
.work-card-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: var(--gray-pale);
}
.work-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(100%);
  transition: filter 0.3s, transform 0.3s;
  display: block;
}
.work-card--has-img:hover .work-card-img img {
  filter: grayscale(0%);
  transform: scale(1.03);
}
.work-card-body { padding: 1.25rem 1.5rem; }
.work-card:not(.work-card--has-img) .work-card-body { padding: 0; }
