/*

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 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-cream); border-bottom: 3px solid var(--tt-blue); 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: var(--tt-blue); text-decoration: none; }
html body .tt-lang a[aria-current] { background: var(--tt-blue); color: #fff; }
html body .tt-lang a:not([aria-current]):hover { background: var(--tt-gold); color: var(--tt-blue); }
@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; }

/* 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; }
