/*

Theme Name: Pro - Child Theme (Teleki)
Theme URI: https://telekiter.com/
Author: Teleki Téri Imaház
Description: Brand Guidelines design for telekiter.com on Pro: Shtiebel Blue, Heritage Gold (buttons only), Paper Cream, Playfair Display and Roboto, the TTI logo, and the big photo on top. DRAFT 2026-11-03.
Version: 0.2.0
Template: pro

*/

:root {
  --tt-blue: #1A4375;   /* Shtiebel Blue */
  --tt-gold: #E5B742;   /* Heritage Gold: buttons and single words only, never gold text on white */
  --tt-cream: #F9F7F2;  /* Paper Cream: page background */
  --tt-slate: #333333;  /* body text */
  --tt-display: "Playfair Display", Georgia, serif;
  --tt-body: "Roboto", "Open Sans", Arial, sans-serif;
}

/* Page: cream paper, slate text, Roboto (html too, so no white shows at the edges or on overscroll) */
html { background: var(--tt-cream) !important; }
html body, html body .x-root, html body .x-site {
  background: var(--tt-cream) !important;
  color: var(--tt-slate);
  font-family: var(--tt-body) !important;
  line-height: 1.65;
}
html body p, html body li, html body .entry-content, html body .x-main {
  font-family: var(--tt-body) !important;
  color: var(--tt-slate);
}

/* H1 Playfair Display Bold, Title Case, -2% tracking, Shtiebel Blue */
html body h1, html body h1 *, html body .entry-title, html body .h-landmark {
  font-family: var(--tt-display) !important; font-weight: 700 !important; letter-spacing: -0.02em !important;
  color: var(--tt-blue) !important; text-transform: none !important;
}
/* H2 Roboto Black, ALL CAPS, +10% tracking */
html body h2, html body h2 * {
  font-family: var(--tt-body) !important; font-weight: 900 !important; text-transform: uppercase !important;
  letter-spacing: 0.1em !important; color: var(--tt-blue) !important;
}
html body h3, html body h4, html body h5, html body h6 {
  font-family: var(--tt-body) !important; font-weight: 700 !important; color: var(--tt-blue) !important; letter-spacing: 0 !important;
}
/* Captions and quotes: Playfair Display Italic ("scholarly" archival feel) */
html body figcaption, html body .wp-caption-text, html body blockquote, html body blockquote p, html body .gallery-caption {
  font-family: var(--tt-display) !important; font-style: italic !important; font-weight: 400 !important;
}
html body blockquote { border-left: 4px solid var(--tt-blue); padding-left: 1em; }
html body a { color: var(--tt-blue); }
html body a:hover { color: #0f2a4a; }
html body hr { border-color: var(--tt-blue); }

/* Buttons: Heritage Gold with navy text */
html body .x-btn, html body .button, html body input[type="submit"], html body button[type="submit"],
html body .wp-block-button__link, html body .mc4wp-form input[type="submit"] {
  background-color: var(--tt-gold) !important; color: var(--tt-blue) !important; border: 0 !important; border-radius: 2px; font-weight: 700;
}

/* Top: the big photo across the full width, logo on a cream panel in its corner */
.tt-top { position: relative; background: var(--tt-blue); }
.tt-hero { display: block; width: 100%; height: auto; min-height: 180px; max-height: 60vh; object-fit: cover; }
.tt-logo {
  position: absolute; left: 1.5rem; top: 1rem; background: var(--tt-cream); padding: .75rem 1rem;
  border-bottom: 3px solid var(--tt-blue); box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.tt-logo img { display: block; width: clamp(170px, 22vw, 300px); height: auto; }
@media (max-width: 600px) { .tt-logo { left: .5rem; top: .5rem; padding: .4rem .6rem; } }

/* Language switch: HU | EN, top right on the photo, cream pill */
.tt-lang { position: absolute; right: 1.5rem; top: 1rem; display: flex; background: var(--tt-blue); border-bottom: 3px solid var(--tt-gold); box-shadow: 0 2px 6px rgba(0,0,0,.25); }
html body .tt-lang a { padding: .45rem .9rem; font-family: var(--tt-body); font-weight: 900; font-size: .85rem; letter-spacing: .1em; color: #fff !important; background: var(--tt-blue); text-decoration: none; }
html body .tt-lang a[aria-current] { background: var(--tt-cream); color: var(--tt-blue) !important; }
html body .tt-lang a:not([aria-current]):hover { background: #0f2a4a; color: #fff !important; }
@media (max-width: 600px) { .tt-lang { right: .5rem; top: .5rem; } html body .tt-lang a { padding: .35rem .6rem; } }

/* Menu bar: Shtiebel Blue, white Roboto bold; Pro's own title text is replaced by the logo */
html body .x-navbar { background-color: var(--tt-blue) !important; border: 0 !important; }
html body .x-brand { display: none !important; }
html body .x-navbar .x-nav > li > a, html body .x-navbar .x-nav-wrap .x-nav > li > a, html body .x-navbar .desktop .x-nav > li > a {
  color: #fff !important; font-family: var(--tt-body) !important; font-weight: 700 !important; letter-spacing: 0.04em !important;
}
html body .x-navbar .x-nav > li > a:hover, html body .x-navbar .x-nav > li.current-menu-item > a { color: var(--tt-gold) !important; }
html body .x-navbar .x-nav li > ul { background-color: var(--tt-blue) !important; }
html body .x-navbar .x-nav li > ul a { color: #fff !important; }
html body .x-colophon.bottom, html body .x-colophon.top { display: none !important; }   /* Pro "Powered by" footer */

/* Content: white card on cream with a blue top rule */
html body .x-main .hentry, html body .x-main article { background: #fff; border-top: 4px solid var(--tt-blue); padding: 1.5rem; margin-bottom: 1.5rem; }

/* Bilingual rule: Hungarian bold, translation regular */
.tt-hu { font-weight: 700; }
.tt-en { font-weight: 400; }

/* Footer: Shtiebel Blue block, white text */
.tt-footer { background: var(--tt-blue); color: #fff; padding: 2rem 1rem; margin-top: 3rem; }
.tt-footer-inner { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; align-items: start; }
.tt-footer-logo { width: 240px; max-width: 100%; height: auto; }
html body .tt-footer, html body .tt-footer p, html body .tt-footer a, html body .tt-footer h3, html body .tt-footer label { color: #fff !important; }
.tt-footer a { text-decoration: underline; }
.tt-footer input[type="text"], .tt-footer input[type="email"] { width: 100%; padding: .5rem; border: 0; margin-bottom: .5rem; }
.tt-footer-lang { max-width: 1140px; margin: 1.5rem auto 0; text-align: center; display: flex; gap: 1.5rem; justify-content: center; }
html body .tt-footer-lang a { font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
html body .tt-footer-lang a[aria-current] { border-bottom: 2px solid var(--tt-gold); }
html body .tt-footer .mc4wp-form label { display: block; font-weight: 700; margin-bottom: .25rem; }
html body .tt-footer .mc4wp-form-fields p { margin: 0 0 .75rem; }

html body .x-btn, html body .button, html body input[type="submit"], html body button[type="submit"] { box-shadow: none !important; text-shadow: none !important; }

/* Pro's red accent (menu hover bar, links, "Read more") becomes Shtiebel Blue / Heritage Gold */
html body .x-navbar .desktop .x-nav > li > a:hover, html body .x-navbar .desktop .x-nav > li.current-menu-item > a,
html body .x-navbar .desktop .x-nav > li.current_page_item > a, html body .x-navbar .desktop .x-nav > li.x-active > a,
html body .x-navbar .desktop .x-nav > li.current-menu-ancestor > a {
  box-shadow: inset 0 4px 0 0 var(--tt-gold) !important; color: #fff !important;
}
html body .x-navbar .desktop .x-nav > li > a { box-shadow: inset 0 4px 0 0 transparent; }
html body .more-link, html body .entry-title a:hover, html body .x-main a:hover { color: var(--tt-blue) !important; }
html body .x-scroll-top { background-color: var(--tt-blue) !important; }

/* Hero: taller on the home page with the title, motto and two buttons over a dark gradient;
   a slimmer band on the other pages */
.tt-hero { max-height: 340px; }
html body.home .tt-hero { max-height: none; height: auto; min-height: clamp(380px, 34vw, 540px); }
/* Pro's hidden top "widget bar" and its black corner button are not used */
html body #x-btn-widgetbar, html body .x-widgetbar { display: none !important; }
html body.home .entry-content > form, html body.home .entry-content > div:not(.tt-explore) { max-width: 46rem; margin-left: auto; margin-right: auto; }
.home .tt-top::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14,34,60,.82) 0%, rgba(14,34,60,.35) 38%, rgba(14,34,60,0) 62%); pointer-events: none; }
.tt-hero-text { position: absolute; left: clamp(1rem, 4vw, 4rem); bottom: clamp(1.25rem, 4vw, 3.5rem); right: 1rem; z-index: 2; color: #fff; max-width: 58rem; }
html body .tt-hero-text p { margin: 0 0 .6rem; color: #fff !important; }
html body .tt-motto { font-family: var(--tt-body) !important; font-weight: 900; text-transform: uppercase; letter-spacing: .16em; font-size: clamp(.8rem, 1.2vw, 1rem); }
html body .tt-hero-title { font-family: var(--tt-display) !important; font-weight: 700; letter-spacing: -.02em; font-size: clamp(2rem, 4.6vw, 3.9rem); line-height: 1.05; text-shadow: 0 2px 14px rgba(0,0,0,.45); }
.tt-hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem !important; }
html body .tt-hero-cta .x-btn { padding: .8rem 1.5rem; font-size: 1rem; }
html body .tt-ghost { display: inline-block; padding: .8rem 1.5rem; border: 2px solid #fff; color: #fff !important; font-weight: 700; text-decoration: none; letter-spacing: .04em; }
html body .tt-ghost:hover { background: #fff; color: var(--tt-blue) !important; }

/* Home page content: no repeated title, motto as a quote, readable lead and text */
html body.home .entry-header, html body.home .x-header-landmark { display: none !important; }
html body.home .x-main .hentry, html body.home .x-main article { border-top: 0; background: transparent; padding: 0; }
html body.home .entry-wrap { background: transparent !important; box-shadow: none !important; padding: 2.5rem 1rem !important; max-width: 1040px; margin: 0 auto; }
html body.home .entry-content > p.tt-motto-line { text-align: center !important; font-family: var(--tt-display) !important; font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.9rem); color: var(--tt-blue) !important; letter-spacing: 0; margin: 0 0 2rem; max-width: none; }
html body.home .entry-content > p.tt-lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.65; text-align: left !important; max-width: 46rem; margin: 0 auto 2.5rem; }
html body.home .entry-content > p { text-align: left !important; max-width: 46rem; margin-left: auto; margin-right: auto; }
html body.home .entry-content > p:nth-child(n+4), html body.home .entry-content > form, html body.home .entry-content > ul { background: transparent; }

/* Explore cards */
.tt-explore { margin: 0 auto 3rem; max-width: 1040px; }
html body .tt-explore h2 { text-align: center; margin-bottom: 1.5rem; }
.tt-explore-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.25rem; }
html body .tt-explore-card { display: flex; flex-direction: column; background: #fff; border-top: 4px solid var(--tt-blue); padding: 1.5rem 1.25rem 1.25rem; text-decoration: none !important; color: var(--tt-slate) !important; box-shadow: 0 1px 3px rgba(0,0,0,.12); transition: transform .18s ease, box-shadow .18s ease; }
html body .tt-explore-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(26,67,117,.18); }
.tt-explore-title { font-family: var(--tt-display); font-weight: 700; font-size: 1.55rem; line-height: 1.15; color: var(--tt-blue); margin-bottom: .6rem; }
.tt-explore-text { flex: 1; font-size: .98rem; line-height: 1.55; }
.tt-explore-more { margin-top: 1rem; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; color: var(--tt-blue); border-bottom: 3px solid var(--tt-gold); align-self: flex-start; padding-bottom: .15rem; }
@media (prefers-reduced-motion: reduce) { .tt-explore-card { transition: none; } .tt-explore-card:hover { transform: none; } }

/* Awards / people cards (used by new pages) */
.tt-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; }
.tt-person { background: #fff; border-top: 4px solid var(--tt-blue); padding: 0 0 1rem; }
.tt-person img { display: block; width: 100%; height: auto; }
html body .tt-person h3 { font-family: var(--tt-display) !important; font-size: 1.3rem !important; line-height: 1.25 !important; margin: .75rem 1rem .25rem !important; }
html body .tt-person h3 a { text-decoration: none; }
.tt-person p { margin: 0 1rem; font-size: .95rem; }
