/* martinfajnor.sk — domovská stránka, redesign 09/2026
   Vkladá sa cez wp_enqueue_style (pozri README-implementacia.md). */

:root {
  --mf-ink: #1f2a35;
  --mf-ink-soft: #45505b;
  --mf-cream: #f5f2ed;
  --mf-paper: #fbf9f5;
  --mf-sand: #efe9df;
  --mf-line: #ddd5c9;
  --mf-terra: #c45d3e;
  --mf-terra-dark: #a94c30;
  --mf-terra-light: #e0876b;
  --mf-rose: #f0ddd3;
  --mf-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --mf-serif: 'DM Serif Display', Georgia, serif;
}

.mf-home { background: var(--mf-cream); color: var(--mf-ink); }
.mf-home h1, .mf-home h2, .mf-home h3 { font-family: var(--mf-serif); font-weight: 400; margin: 0; }
.mf-home p { margin: 0; }
.mf-wrap { width: min(1280px, 100% - 48px); margin-inline: auto; }

.mf-eyebrow { font-family: var(--mf-mono); font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mf-terra-dark); margin: 0 0 .75rem; }
.mf-eyebrow--accent { color: var(--mf-terra-light); }
.mf-eyebrow--rose { color: #8a3d26; }
.mf-tag { font-family: var(--mf-mono); font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; color: var(--mf-terra-dark); margin: 0 0 .5rem; }
.mf-lead { font-size: 1.125rem; line-height: 1.65; color: var(--mf-ink-soft); }

.mf-btn { display: inline-block; padding: 1rem 1.6rem; border-radius: 4px; font-weight: 600; text-decoration: none; line-height: 1.2; }
.mf-btn--accent { background: var(--mf-terra); color: #fff; }
.mf-btn--accent:hover { background: var(--mf-terra-dark); color: #fff; }
.mf-btn--ghost { border: 1px solid #5a6978; color: var(--mf-cream); }
.mf-btn--dark { background: var(--mf-ink); color: var(--mf-cream); }
.mf-btn--outline { border: 1px solid var(--mf-ink); color: var(--mf-ink); }
.mf-btn--wide { width: 100%; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.mf-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.mf-more { font-weight: 600; color: var(--mf-terra-dark); text-decoration: none; }

/* HERO */
.mf-hero { background: var(--mf-ink); color: var(--mf-cream); padding: 4.5rem 0 0; background-image: linear-gradient(#2c3946 1px, transparent 1px), linear-gradient(90deg, #2c3946 1px, transparent 1px); background-size: 40px 40px; }
.mf-hero__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 4rem; align-items: start; }
.mf-hero h1 { font-size: clamp(2.25rem, 4vw, 3.75rem); line-height: 1.06; letter-spacing: -.01em; margin-bottom: 1.25rem; }
.mf-hero .mf-lead { color: #d6dbe0; max-width: 42rem; }

.mf-card { background: var(--mf-paper); color: var(--mf-ink); border-radius: 6px; box-shadow: 0 30px 60px rgba(0,0,0,.28); }
.mf-norms { padding: 1rem 1.5rem 1.25rem; }
.mf-norms__head { font-family: var(--mf-mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: #5b6570; padding-bottom: .75rem; border-bottom: 1px dashed #cfc6b8; }
.mf-norms dl { margin: 0; }
.mf-norms dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid #e6dfd4; }
.mf-norms dl > div:last-child { border-bottom: 0; }
.mf-norms dt { font-family: var(--mf-mono); font-weight: 500; }
.mf-norms dd { margin: 0; font-size: .9rem; color: #5b6570; text-align: right; }

.mf-facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; border-top: 1px solid #3e4c5a; margin-top: 3.5rem; padding: 1.75rem 0 2.25rem; }
.mf-facts strong { display: block; font-family: var(--mf-serif); font-weight: 400; font-size: 1.6rem; }
.mf-facts span { font-size: .875rem; color: #aab4be; }

/* SEKCIE */
.mf-section { padding: 5.5rem 0; }
.mf-section--sand { background: var(--mf-sand); }
.mf-section--dark { background: var(--mf-ink); color: var(--mf-cream); }
.mf-section--rose { background: var(--mf-rose); }
.mf-section--dark .mf-lead, .mf-section--dark p { color: #c3cad1; }
.mf-section--dark .mf-tag { color: #aab4be; }
.mf-section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 3rem; margin-bottom: 2.5rem; }
.mf-section__head h2 { font-size: clamp(1.75rem, 3vw, 2.75rem); }
.mf-section__note { max-width: 34rem; font-size: 1.0625rem; line-height: 1.6; color: var(--mf-ink-soft); }

.mf-grid { display: grid; gap: 1.25rem; }
.mf-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.mf-service { background: var(--mf-paper); border: 1px solid var(--mf-line); border-radius: 6px; padding: 2rem; }
.mf-service h3 { font-size: 1.6rem; margin-bottom: .75rem; }
.mf-service p { font-size: 1rem; line-height: 1.6; color: var(--mf-ink-soft); }
.mf-service--dark { background: var(--mf-ink); border-color: var(--mf-ink); color: var(--mf-cream); }
.mf-service--dark .mf-tag { color: var(--mf-terra-light); }
.mf-service--dark p { color: #d6dbe0; }

/* O NÁS */
.mf-about { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 4.5rem; align-items: start; }
.mf-about__photo { background: #e3dace; border-radius: 6px; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.mf-about__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mf-about__text h2 { font-size: clamp(1.75rem, 3vw, 2.75rem); line-height: 1.12; margin: 0 0 1.25rem; }
.mf-about__text p { font-size: 1.125rem; line-height: 1.7; margin-bottom: 1.25rem; }

/* REFERENCIE */
.mf-ref { border: 1px solid #3e4c5a; border-radius: 6px; padding: 1.75rem; display: flex; flex-direction: column; gap: .75rem; }
.mf-ref h3 { font-size: 1.5rem; }
.mf-ref p { font-size: .9375rem; line-height: 1.6; }
.mf-ref__result { margin-top: auto; border-top: 1px solid #3e4c5a; padding-top: .75rem; font-weight: 600; color: var(--mf-terra-light) !important; }

/* CONTENT & E-SHOP */
.mf-content { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 4.5rem; align-items: center; }
.mf-content h2 { font-size: clamp(1.75rem, 3vw, 2.75rem); line-height: 1.1; margin: 1rem 0; }
.mf-content .mf-lead { color: #3d3430; }
.mf-person { display: flex; align-items: center; gap: .875rem; }
.mf-person img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.mf-person strong { display: block; font-size: 1.125rem; }
.mf-person span { font-size: .9375rem; color: #6b5a52; }
.mf-content__services { margin-top: 1.5rem; }
.mf-content__services > div { border-top: 2px solid var(--mf-ink); padding-top: .875rem; }
.mf-content__services h3 { font-family: inherit; font-weight: 600; font-size: 1.0625rem; margin-bottom: .5rem; }
.mf-content__services p { font-size: .9375rem; line-height: 1.55; color: #3d3430; }

.mf-igcard { padding: 1.25rem; box-shadow: 0 20px 50px rgba(90,50,30,.18); }
.mf-igcard__head { display: flex; align-items: center; gap: .75rem; margin-bottom: .875rem; }
.mf-igcard__head img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 1px solid #e6dfd4; }
.mf-igcard__head strong { display: block; }
.mf-igcard__head span { font-size: .8125rem; color: #5b6570; }
.mf-igcard__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.mf-igcard__grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }

/* BLOG + FAQ */
.mf-bottom { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4.5rem; }
.mf-post a { display: block; background: var(--mf-paper); border: 1px solid var(--mf-line); border-radius: 6px; overflow: hidden; color: inherit; text-decoration: none; }
.mf-post img { width: 100%; height: 200px; object-fit: cover; display: block; }
.mf-post__body { padding: 1.75rem; }
.mf-post__body h3 { font-size: 1.6rem; line-height: 1.2; margin: .5rem 0 .75rem; }
.mf-post__body p { font-size: 1rem; line-height: 1.55; color: var(--mf-ink-soft); }
.mf-post__body .mf-more { margin-top: .75rem; }
.mf-faq > div { padding: 1.25rem 0; border-bottom: 1px solid #cfc6b8; }
.mf-faq > div:first-child { border-top: 1px solid #cfc6b8; }
.mf-faq h3 { font-family: inherit; font-weight: 600; font-size: 1.125rem; margin-bottom: .5rem; }
.mf-faq p { font-size: .9375rem; line-height: 1.6; color: var(--mf-ink-soft); }

/* KONTAKT */
.mf-contact { display: grid; grid-template-columns: minmax(0, 1fr) 560px; gap: 5rem; align-items: start; }
.mf-contact h2 { font-size: clamp(1.75rem, 3vw, 2.875rem); line-height: 1.1; margin: 0 0 1rem; }
.mf-contact__links { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.5rem; font-size: 1.125rem; }
.mf-contact__links a { color: var(--mf-cream); text-decoration: none; }
.mf-contact__links a:first-child { font-weight: 600; }

.mf-form { background: var(--mf-paper); color: var(--mf-ink); border-radius: 6px; padding: 2.25rem; }
.mf-form p { margin: 0 0 1rem; }
.mf-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.mf-form label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .5rem; }
.mf-form input[type="text"], .mf-form input[type="email"], .mf-form select, .mf-form textarea { width: 100%; border: 1px solid #cfc6b8; border-radius: 4px; padding: .75rem .875rem; font: inherit; background: #fff; box-sizing: border-box; }
.mf-form textarea { resize: vertical; }
.mf-form__gdpr label { display: flex; gap: .625rem; font-size: .8125rem; font-weight: 400; line-height: 1.5; color: var(--mf-ink-soft); }
.mf-form__gdpr input { width: 18px; height: 18px; margin-top: .15rem; flex-shrink: 0; }

/* RESPONZÍVNE */
@media (max-width: 1024px) {
  .mf-hero__grid, .mf-about, .mf-content, .mf-contact, .mf-bottom { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .mf-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mf-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 1.25rem; }
  .mf-about__photo { max-width: 340px; }
}
@media (max-width: 640px) {
  .mf-section { padding: 3.5rem 0; }
  .mf-grid--3, .mf-form__row, .mf-content__services { grid-template-columns: minmax(0, 1fr); }
  .mf-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mf-section__head { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .mf-btn { width: 100%; text-align: center; }
}
/* oprava: orezanie namiesto stlačenia (prebíja globálne pravidlá témy) */
.mf-igcard__grid img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 5 !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  max-width: none !important;
}
.mf-about__photo img,
.mf-person img,
.mf-igcard__head img {
  object-fit: cover !important;
  height: 100% !important;
}
.mf-person img,
.mf-igcard__head img {
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
}
.mf-post img {
  object-fit: cover !important;
}
/* oprava: orezanie namiesto stlačenia — prebíja main.css */
.mf-igcard__grid a {
  position: relative;
  display: block;
  padding-top: 125%;          /* pomer 4:5 */
  overflow: hidden;
  border-radius: 2px;
}
.mf-igcard__grid a img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}
.mf-about__photo { position: relative; overflow: hidden; }
.mf-about__photo img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
}
.mf-person img,
.mf-igcard__head img {
  width: 64px !important;
  height: 64px !important;
  max-width: none !important;
  object-fit: cover !important;
  border-radius: 50% !important;
}
.mf-post img {
  width: 100% !important;
  height: 200px !important;
  max-width: none !important;
  object-fit: cover !important;
}