/*
Theme Name: Tamara Minima Child
Description: Presentation-only child theme for approved Tamara Minima SEO changes.
Author: Tamara Minima
Template: tamaraminima
Version: 0.1.22
Text Domain: tamara-minima-child
*/

/* Phase 2E.4/2E.8: restrained homepage service discovery. */
.tm-home-intro { max-width: 920px; margin: 0 auto; padding: 3.5rem 1.5rem 3rem; text-align: center; }
.tm-home-intro h1 { font-size: 1.45rem; letter-spacing: .08em; margin: 0 0 .8rem; text-transform: none; }
.tm-home-intro h2 { font-size: 1rem; font-weight: 400; letter-spacing: .12em; margin: 0 0 1.25rem; text-transform: uppercase; }
.tm-home-intro p { max-width: 650px; margin: 0 auto 1.4rem; }
.tm-home-cta { display: inline-block; margin: .35rem auto 2.1rem; padding: .7rem 1.35rem; border: 1px solid #202020; color: inherit; font-size: .76rem; letter-spacing: .09em; line-height: 1.2; text-decoration: none; text-transform: uppercase; transition: background-color .18s ease, color .18s ease; }
.tm-home-cta:hover, .tm-home-cta:focus { background-color: #202020; color: #fff; }
.tm-service-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .85rem; max-width: 1000px; margin: 0 auto; }
.tm-service-grid a { display: flex; align-items: center; justify-content: center; min-height: 3.65rem; padding: .7rem .55rem; border: 1px solid rgba(0,0,0,.22); color: inherit; font-size: .72rem; letter-spacing: .07em; line-height: 1.32; text-align: center; text-decoration: none; text-transform: uppercase; transition: background-color .18s ease, border-color .18s ease, color .18s ease; }
.tm-service-grid a:hover, .tm-service-grid a:focus { background-color: #202020; border-color: #202020; color: #fff; }
@media (max-width: 768px) { .tm-home-intro { padding: 2.2rem 1.25rem; } .tm-home-intro h1 { font-size: 1.15rem; } .tm-home-cta { margin-bottom: 1.6rem; } .tm-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; } .tm-service-grid a { min-height: 3.35rem; font-size: .68rem; } }

/* Phase 2E.8: top-menu header has a white-on-white logo area on these four pages. */
@media only screen and (min-width: 1025px) {
  body.page-id-461 .edgtf-page-header .edgtf-logo-area,
  body.page-id-6295 .edgtf-page-header .edgtf-logo-area,
  body.page-id-925 .edgtf-page-header .edgtf-logo-area,
  body.page-id-6343 .edgtf-page-header .edgtf-logo-area { display: none; }
  body.page-id-461 .edgtf-content,
  body.page-id-6295 .edgtf-content,
  body.page-id-925 .edgtf-content,
  body.page-id-6343 .edgtf-content { margin-top: 72px; }
}
@media only screen and (max-width: 1024px) {
  body.page-id-461 .edgtf-content,
  body.page-id-6295 .edgtf-content,
  body.page-id-925 .edgtf-content,
  body.page-id-6343 .edgtf-content { margin-top: 40px !important; }
}

/* Phase 2E.16D/2E.16F: price-card title band and body-content spacing. */
.edgtf-price-table-inner { box-sizing: border-box; padding: 0; }
.edgtf-price-table-inner .edgtf-table-title { padding-left: 2rem; padding-right: 2rem; }
.edgtf-price-table-inner .edgtf-table-prices { padding-left: 2rem; padding-right: 2rem; }
/* Target only the body list: Kamera's table-content padding is otherwise reset by its later rule. */
body.page-id-698 .edgtf-price-table-inner > ul > li.edgtf-table-content,
body.page-id-6330 .edgtf-price-table-inner > ul > li.edgtf-table-content {
  box-sizing: border-box;
  padding: 15px 2rem 24px !important;
}
@media only screen and (max-width: 767px) {
  .edgtf-price-table-inner .edgtf-table-title { padding-left: 1.5rem; padding-right: 1.5rem; }
  .edgtf-price-table-inner .edgtf-table-prices { padding-left: 1.5rem; padding-right: 1.5rem; }
  body.page-id-698 .edgtf-price-table-inner > ul > li.edgtf-table-content,
  body.page-id-6330 .edgtf-price-table-inner > ul > li.edgtf-table-content { padding-right: 1.5rem !important; padding-left: 1.5rem !important; }
}
@media only screen and (min-width: 1025px) {
  /* Phase 2E.16G: these price-list pages have an unused 300 px Kamera logo area. */
  body.page-id-698 .edgtf-page-header .edgtf-logo-area,
  body.page-id-6330 .edgtf-page-header .edgtf-logo-area { display: none; }
  body.page-id-698 .edgtf-page-header,
  body.page-id-6330 .edgtf-page-header { display: block; height: 0; line-height: 0; }
  body.page-id-698 .edgtf-content,
  body.page-id-6330 .edgtf-content { margin-top: 70px; }
  body.page-template-default .wpb-content-wrapper > .vc_row:first-child .wpb_text_column + .vc_empty_space { height: 32px !important; }
  .tm-service-intro { padding-top: 0 !important; }
}

/* Phase 2E.16H: match the measured O meni/About heading position on these targets. */
@media only screen and (max-width: 767px) {
  body.page-id-698 .edgtf-content,
  body.page-id-925 .edgtf-content,
  body.page-id-6343 .edgtf-content { margin-top: 30px !important; }
  /* The English price-list title wraps at this width, so its title-area centering differs. */
  body.page-id-6330 .edgtf-content { margin-top: 44px !important; }
}
@media only screen and (max-width: 340px) {
  /* The Slovenian price-list title also wraps only at the narrowest width. */
  body.page-id-698 .edgtf-content { margin-top: 44px !important; }
}
@media only screen and (min-width: 768px) and (max-width: 1024px) {
  body.page-id-698 .edgtf-content,
  body.page-id-6330 .edgtf-content,
  body.page-id-925 .edgtf-content,
  body.page-id-6343 .edgtf-content { margin-top: 63px !important; }
}
@media only screen and (min-width: 1025px) {
  body.page-id-698 .edgtf-page-header,
  body.page-id-6330 .edgtf-page-header,
  body.page-id-925 .edgtf-page-header,
  body.page-id-6343 .edgtf-page-header { display: block; height: 0; line-height: 0; }
  body.page-id-698 .edgtf-content,
  body.page-id-6330 .edgtf-content,
  body.page-id-925 .edgtf-content,
  body.page-id-6343 .edgtf-content { margin-top: 122px; }
}

/* Phase 2E.5: service-page copy stays deliberately quiet; existing galleries lead. */
.tm-service-intro { padding: 2.8rem 1.5rem 2.1rem; text-align: center; }
.tm-service-intro > .vc_column_container > .vc_column-inner > .wpb_wrapper { max-width: 760px; margin: 0 auto; }
.tm-service-intro h1, .tm-service-intro h2 { margin: 0 0 1rem; font-size: 1.2rem; letter-spacing: .07em; }
.tm-service-intro h3 { margin: 1.5rem 0 .55rem; }
.tm-service-intro p { margin: 0 auto 1rem; }
.tm-service-intro a { border-bottom: 1px solid currentColor; }
.tm-service-gallery { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.tm-service-gallery > .vc_column_container > .vc_column-inner { padding-left: 0; padding-right: 0; }
.tm-service-gallery .edgtf-portfolio-list-holder { width: 100%; }
@media (max-width: 768px) { .tm-service-intro { padding: 2rem 1.25rem 1.5rem; } .tm-service-intro h1, .tm-service-intro h2 { font-size: 1.05rem; } }

/* Phase 2E.11: these paired Maternity headers lack the established 32 px pre-logo spacing. */
body.page-id-6096 .wpb-content-wrapper > .vc_row:first-child,
body.page-id-6616 .wpb-content-wrapper > .vc_row:first-child { padding-top: 32px; }

/* Phase 2E.14/2E.14B: compact, continuously fixed Kamera mobile header. */
@media only screen and (max-width: 1024px) {
  .edgtf-mobile-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    z-index: 1100;
    background: #fff;
    opacity: 1;
  }
  .edgtf-mobile-header ~ .edgtf-content { padding-top: 73px; }
  body.admin-bar .edgtf-mobile-header { top: 32px; }
  .edgtf-mobile-header .edgtf-mobile-header-inner {
    height: 72px !important;
    position: relative;
    z-index: 1100;
    background: #fff !important;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
    opacity: 1;
  }
  .edgtf-mobile-header .edgtf-mobile-header-holder,
  .edgtf-mobile-header .edgtf-mobile-header-holder > .edgtf-grid { height: 100%; }
  .edgtf-mobile-header .edgtf-mobile-header-holder > .edgtf-grid { width: 100%; }
  .edgtf-mobile-header .edgtf-mobile-header-holder .edgtf-vertical-align-containers {
    height: 100%;
    padding: 0 24px;
  }
  .edgtf-mobile-header .edgtf-position-center {
    position: absolute !important;
    top: 0;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
    z-index: 1;
  }
  .edgtf-mobile-header .edgtf-position-center::before { display: none !important; }
  .edgtf-mobile-header .edgtf-position-center-inner {
    display: block !important;
    position: absolute !important;
    top: 50%;
    left: 50%;
    width: 190px;
    line-height: 0;
    transform: translate(-50%, -50%) !important;
  }
  .edgtf-mobile-header .edgtf-mobile-logo-wrapper,
  .edgtf-mobile-header .edgtf-mobile-logo-wrapper a {
    display: block;
    height: auto !important;
    max-height: none !important;
    line-height: 0;
  }
  .edgtf-mobile-header .edgtf-mobile-logo-wrapper img {
    display: block;
    width: 190px;
    max-width: calc(100vw - 120px);
    height: auto !important;
    max-height: none !important;
    margin: 0 auto;
  }
  .edgtf-mobile-header .edgtf-mobile-menu-opener { z-index: 3; }
  .edgtf-sticky-up-mobile-header .edgtf-animate-mobile-header .edgtf-mobile-header-inner,
  .edgtf-sticky-up-mobile-header .mobile-header-appear .edgtf-mobile-header-inner {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    transform: none !important;
    transition: none !important;
    z-index: 1100 !important;
    background: #fff !important;
    opacity: 1 !important;
  }
}
@media screen and (max-width: 782px) {
  body.admin-bar .edgtf-mobile-header { top: 46px; }
}

/* Phase 2E.14C: primary WPBakery service titles need a mobile editorial scale. */
@media only screen and (max-width: 1024px) {
  .edgtf-content .wpb_text_column h1 {
    box-sizing: border-box;
    max-width: 100%;
    font-size: clamp(1.5rem, calc(8vw - 1px), 1.8125rem);
    line-height: 1.15;
    letter-spacing: .1em;
    overflow-wrap: normal;
    word-break: normal;
  }
  .edgtf-content .tm-home-intro h1 {
    font-size: 1.45rem;
    line-height: 1.2381;
    letter-spacing: .08em;
  }
}
@media only screen and (max-width: 768px) {
  .edgtf-content .tm-home-intro h1 { font-size: 1.15rem; }
}

/* Phase 2E.16: mobile service title/copy rhythm; page-default services only. */
@media only screen and (max-width: 1024px) {
  body.page-template-default .wpb-content-wrapper > .vc_row:first-child .wpb_single_image + .vc_empty_space { height: 50px !important; }
  body.page-template-default .wpb-content-wrapper > .vc_row:first-child .wpb_text_column + .vc_empty_space { height: 50px !important; }
  /* Existing empty intermediate row on the paired Events pages only. */
  body.page-id-6102 .wpb-content-wrapper > .vc_row:nth-child(2),
  body.page-id-6591 .wpb-content-wrapper > .vc_row:nth-child(2) { display: none; }
  .tm-service-intro { padding-top: 0; }
  .tm-service-intro .tm-service-cta { margin-top: 1.25rem; margin-bottom: 0; }
}
