/*
 * SMART-Tex-IS — Fraunhofer-Style Complete v6
 * Culoare principală: #C1272D
 */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,300;0,400;0,600;0,700;1,400&family=Fira+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --frh-primary: #C1272D;
  --frh-primary-dark: #A01F24;
  --frh-blue: #2a6496;
  --frh-dark: #1a1a1a;
  --frh-gray-900: #222;
  --frh-gray-700: #444;
  --frh-gray-500: #666;
  --frh-gray-100: #f4f4f4;
  --frh-white: #fff;
  --frh-font-heading: 'Fira Sans', 'Helvetica Neue', Arial, sans-serif;
  --frh-font-body: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
  --frh-transition: all 0.3s ease;
}

body { font-family: var(--frh-font-body) !important; font-size: 18px !important; line-height: 1.8 !important; color: var(--frh-gray-900) !important; background: var(--frh-white) !important; -webkit-font-smoothing: antialiased; margin: 0 !important; }

/* === HEADER === */
header, header.wp-block-template-part, .wp-block-template-part { padding: 0 !important; margin: 0 !important; width: 100% !important; }
header .wp-block-group, header .wp-block-columns, header > div { border-bottom: none !important; box-shadow: none !important; background: var(--frh-white) !important; padding: 8px 0 !important; width: 100% !important; }
header { border-bottom: 3px solid var(--frh-primary) !important; box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important; background: var(--frh-white) !important; }
header .wp-block-columns { display: flex !important; align-items: center !important; justify-content: space-between !important; padding: 0 60px !important; }
header .wp-block-column:first-child { padding-left: 0 !important; justify-content: flex-start !important; }
header .wp-block-navigation, header nav { margin-left: auto !important; display: flex !important; justify-content: flex-end !important; }
header .wp-block-social-links { margin-left: 16px !important; }
header .wp-block-column:last-child { display: flex !important; justify-content: flex-end !important; align-items: center !important; }
.wp-block-navigation a, nav a { font-family: var(--frh-font-heading) !important; font-size: 15px !important; font-weight: 500 !important; color: var(--frh-gray-900) !important; text-decoration: none !important; }
.wp-block-navigation a:hover, nav a:hover { color: var(--frh-primary) !important; }

/* === HERO SLIDER === */
.frh-slider { position: relative !important; width: 100% !important; height: 80vh !important; min-height: 550px !important; max-height: 750px !important; overflow: hidden !important; margin: 0 !important; }
.frh-slide { position: absolute !important; top: 0; left: 0; width: 100%; height: 100%; display: flex !important; align-items: center !important; opacity: 0; transition: opacity 0.8s ease; z-index: 1; }
.frh-slide--active { opacity: 1 !important; z-index: 2 !important; }
.frh-slide-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.25); z-index: 1; }
.frh-slide-content { position: relative; z-index: 3; max-width: 600px; padding: 50px 60px; margin-left: 6%; background: rgba(0,0,0,0.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-left: 5px solid var(--frh-primary); }
.frh-slide-title { font-family: var(--frh-font-heading) !important; font-size: clamp(2.2rem, 5vw, 3.5rem) !important; font-weight: 700 !important; color: #fff !important; line-height: 1.1 !important; margin: 0 0 20px !important; }
.frh-slide-desc { font-family: var(--frh-font-body) !important; font-size: 19px !important; line-height: 1.65 !important; color: rgba(255,255,255,0.92) !important; margin: 0 0 30px !important; font-weight: 300 !important; }
.frh-slide-btn { display: inline-block; font-family: var(--frh-font-heading) !important; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; padding: 15px 40px; border: 2px solid #fff; color: #fff !important; background: transparent; text-decoration: none !important; transition: var(--frh-transition); cursor: pointer; }
.frh-slide-btn:hover { background: var(--frh-primary) !important; border-color: var(--frh-primary) !important; color: #fff !important; }
.frh-slider-dots { position: absolute; bottom: 30px; left: 6%; z-index: 10; display: flex; gap: 10px; }
.frh-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.6); background: transparent; cursor: pointer; transition: var(--frh-transition); padding: 0; }
.frh-dot--active { background: var(--frh-primary); border-color: var(--frh-primary); }
.frh-slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; background: rgba(0,0,0,0.35); color: #fff; border: none; padding: 18px 16px; font-size: 24px; cursor: pointer; transition: var(--frh-transition); }
.frh-slider-arrow:hover { background: var(--frh-primary); }
.frh-slider-arrow--prev { left: 0; }
.frh-slider-arrow--next { right: 0; }

/* === COMMON SECTION === */
.frh-section { padding: 70px 0; }
.frh-container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.frh-section-title { font-family: var(--frh-font-heading) !important; font-size: clamp(1.6rem, 3vw, 2.2rem) !important; font-weight: 700 !important; color: var(--frh-blue) !important; margin-bottom: 40px !important; padding-bottom: 12px !important; border-bottom: 2px solid var(--frh-gray-100) !important; }

/* === RESEARCH FIELDS — CONTINUOUS SCROLLING BAND === */
.frh-fields-band { width: 100% !important; overflow: hidden !important; padding: 40px 0 !important; background: var(--frh-white) !important; border-top: 1px solid rgba(0,0,0,0.08) !important; border-bottom: 1px solid rgba(0,0,0,0.08) !important; }
.frh-fields-band-track { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; gap: 40px !important; animation: frh-fields-scroll 35s linear infinite !important; white-space: nowrap !important; align-items: flex-start !important; width: max-content !important; }
.frh-fields-band:hover .frh-fields-band-track { animation-play-state: paused !important; }
.frh-field-scroll-item { flex: 0 0 auto !important; text-align: center !important; cursor: pointer !important; width: 120px !important; display: inline-block !important; }
.frh-field-circle { width: 90px !important; height: 90px !important; border-radius: 50% !important; background: #b0b0b0 !important; margin: 0 auto 12px !important; display: flex !important; align-items: center !important; justify-content: center !important; transition: var(--frh-transition) !important; }
.frh-field-circle svg { width: 44px !important; height: 44px !important; }
.frh-field-scroll-item:hover .frh-field-circle { background: var(--frh-blue) !important; transform: scale(1.1) !important; }
.frh-field-label { font-family: var(--frh-font-heading) !important; font-size: 13px !important; font-weight: 500 !important; color: var(--frh-blue) !important; line-height: 1.3 !important; display: block !important; white-space: normal !important; }
@keyframes frh-fields-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-33.33%); } }

/* === OFFER CARDS === */
.frh-offer { background: var(--frh-gray-100); }
.frh-offer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.frh-offer-card { background: var(--frh-white); overflow: hidden; transition: var(--frh-transition); }
.frh-offer-card:hover { box-shadow: 0 10px 35px rgba(0,0,0,0.12); transform: translateY(-3px); }
.frh-offer-img { height: 200px; display: flex; align-items: center; justify-content: center; }
.frh-offer-text { padding: 28px 32px; }
.frh-offer-text h3 { font-family: var(--frh-font-heading) !important; font-size: 20px !important; font-weight: 700 !important; color: var(--frh-dark) !important; margin: 0 0 10px !important; }
.frh-offer-text p { font-size: 16px !important; color: var(--frh-gray-700) !important; margin: 0 0 16px !important; line-height: 1.6 !important; }
.frh-offer-link { font-family: var(--frh-font-heading) !important; font-size: 13px !important; font-weight: 600 !important; text-transform: uppercase !important; letter-spacing: 1.5px !important; color: var(--frh-primary) !important; text-decoration: none !important; transition: var(--frh-transition) !important; }
.frh-offer-link:hover { color: var(--frh-primary-dark) !important; }

/* === STATIC BANNER === */
.frh-banner { background: linear-gradient(135deg, #1a3344 0%, #2a5a6a 50%, #1a3344 100%); padding: 0; min-height: auto; display: flex; flex-direction: column; overflow: hidden; position: relative; }
.frh-banner-inner { max-width: 1280px; margin: 0 auto; padding: 40px 32px 20px; display: flex; gap: 40px; align-items: center; width: 100%; position: relative; z-index: 2; }

/* Animated emoji ticker - standalone section */
.frh-banner-ticker { width: 100vw !important; overflow: hidden !important; padding: 16px 0; background: var(--frh-primary); position: relative; margin-left: calc(-50vw + 50%); }
.frh-banner-ticker-track { display: flex; animation: frh-emoji-scroll 25s linear infinite; white-space: nowrap; align-items: center; }
.frh-banner-ticker-item { display: inline-flex; align-items: center; gap: 12px; padding: 0 50px; font-family: var(--frh-font-heading); font-size: 16px; font-weight: 500; color: rgba(255,255,255,0.9); text-transform: uppercase; letter-spacing: 1px; white-space: nowrap; }
.frh-banner-ticker-item .frh-ticker-emoji { font-size: 32px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }
@keyframes frh-emoji-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.frh-banner-ticker:hover .frh-banner-ticker-track { animation-play-state: paused; }
.frh-banner-text { flex: 1.5; }
.frh-banner-text h2 { font-family: var(--frh-font-heading) !important; font-size: clamp(1.6rem, 3vw, 2.2rem) !important; font-weight: 700 !important; color: #fff !important; margin: 0 0 10px !important; }
.frh-banner-subtitle { font-size: 17px !important; color: rgba(255,255,255,0.85) !important; font-weight: 300 !important; margin: 0 0 16px !important; }
.frh-banner-text p { font-size: 15px !important; color: rgba(255,255,255,0.75) !important; line-height: 1.6 !important; margin: 0 0 8px !important; }
.frh-banner-text strong { color: #fff !important; }
.frh-banner-info { flex: 1; }
.frh-banner-contact { background: rgba(255,255,255,0.1); backdrop-filter: blur(8px); padding: 24px; border-left: 4px solid var(--frh-primary); }
.frh-banner-contact h3 { font-family: var(--frh-font-heading) !important; font-size: 18px !important; font-weight: 700 !important; color: #fff !important; margin: 0 0 10px !important; }
.frh-banner-contact p { color: rgba(255,255,255,0.8) !important; font-size: 14px !important; line-height: 1.6 !important; margin: 0 0 14px !important; }
.frh-banner-link { font-family: var(--frh-font-heading) !important; color: #fff !important; font-size: 14px !important; font-weight: 600 !important; text-decoration: none !important; letter-spacing: 0.5px !important; transition: var(--frh-transition) !important; }
.frh-banner-link:hover { color: var(--frh-primary) !important; }

/* === NEWS === */
.frh-news { background: var(--frh-white); }
.frh-news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.frh-news-card { padding: 28px 32px; border: 1px solid rgba(0,0,0,0.08); transition: var(--frh-transition); cursor: pointer; }
.frh-news-card:hover { border-color: var(--frh-primary); box-shadow: 0 6px 20px rgba(0,0,0,0.08); }
.frh-news-date { font-family: var(--frh-font-heading); font-size: 13px; color: var(--frh-gray-500); font-weight: 500; }
.frh-news-title { font-family: var(--frh-font-heading) !important; font-size: 19px !important; font-weight: 700 !important; color: var(--frh-blue) !important; margin: 8px 0 12px !important; line-height: 1.35 !important; }
.frh-news-desc { font-size: 15px !important; color: var(--frh-gray-700) !important; line-height: 1.6 !important; margin: 0 !important; }

/* === QUICK LINKS === */
.frh-quicklinks { background: var(--frh-blue); padding: 20px 0; }
.frh-quicklinks-inner { max-width: 1280px; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.frh-quicklinks-inner h3 { font-family: var(--frh-font-heading) !important; font-size: 20px !important; font-weight: 700 !important; color: #fff !important; margin: 0 !important; }
.frh-quicklinks-inner a { color: rgba(255,255,255,0.85) !important; font-size: 15px !important; text-decoration: none !important; font-family: var(--frh-font-heading) !important; transition: var(--frh-transition) !important; }
.frh-quicklinks-inner a:hover { color: #fff !important; }
.frh-quicklinks-inner a::before { content: '\u2192 '; }

/* === FOLLOW === */
.frh-follow { background: var(--frh-white); padding: 24px 0; border-bottom: 1px solid rgba(0,0,0,0.08); }
.frh-follow-inner { max-width: 1280px; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; gap: 24px; }
.frh-follow-inner h3 { font-family: var(--frh-font-heading) !important; font-size: 18px !important; font-weight: 600 !important; color: var(--frh-blue) !important; margin: 0 !important; }
.frh-social-icons { display: flex; gap: 12px; }
.frh-social-icons a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--frh-blue); color: #fff !important; text-decoration: none !important; font-size: 18px; transition: var(--frh-transition); }
.frh-social-icons a:hover { background: var(--frh-primary); }

/* === FOOTER BOTTOM === */
.frh-footer-bottom { background: var(--frh-gray-100); padding: 20px 0; }
.frh-footer-inner { max-width: 1280px; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; justify-content: center; }
.frh-footer-inner span { font-size: 13px; color: var(--frh-gray-500); font-family: var(--frh-font-body); }

/* === HIDE ORIGINAL FOOTER === */
footer.wp-block-template-part { display: none !important; }

/* === RESPONSIVE === */

/* Tablet */
@media (max-width: 1024px) {
  /* Header */
  #frh-custom-header > div { padding-left: 20px !important; padding-right: 20px !important; }
  
  /* Offer cards - 2 per row on tablet */
  .frh-page section > div[style*="flex-wrap"] > a,
  .frh-page section > div[style*="flex-wrap"] > div[style*="flex:0 0 25%"] {
    flex: 0 0 50% !important;
  }
}

/* Mobile */
@media (max-width: 768px) {
  /* Header - hide secondary nav, compact */
  #frh-custom-header > div:first-child { padding: 8px 16px !important; }
  #frh-custom-header > div:first-child > div:last-child { display: none !important; }
  #frh-custom-header > div:first-child img { height: 40px !important; }
  
  /* Red nav bar - scrollable + dropdowns mobile */
  #frh-custom-header > div:nth-child(2) { 
    padding: 0 !important; 
    overflow-x: visible !important;
  }
  #frh-custom-header > div:nth-child(2) > div:first-child { 
    flex-wrap: wrap !important; 
  }
  #frh-custom-header > div:nth-child(2) a { 
    padding: 12px 14px !important; 
    font-size: 11px !important; 
    white-space: nowrap !important; 
  }
  
  /* Dropdown menus - full width on mobile */
  .frh-dropdown { position: static !important; }
  .frh-dropdown .frh-dd-menu { 
    position: fixed !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-height: 60vh !important;
    overflow-y: auto !important;
    z-index: 9999 !important;
  }
  .frh-dropdown .frh-dd-menu a {
    padding: 14px 24px !important;
    font-size: 15px !important;
    border-bottom: 1px solid #eee !important;
  }
  
  /* Hero slider */
  .frh-slider { height: 50vh !important; min-height: 300px !important; max-height: 450px !important; }
  .frh-slide-content { margin: 0 4% !important; padding: 24px !important; max-width: 92% !important; }
  .frh-slide-title { font-size: 1.5rem !important; }
  .frh-slide-desc { font-size: 14px !important; }
  .frh-slide-btn { padding: 10px 20px !important; font-size: 11px !important; }
  .frh-slider-arrow { padding: 12px 10px !important; font-size: 18px !important; }
  .frh-slider-dots { left: 4% !important; bottom: 16px !important; }
  .frh-dot { width: 10px !important; height: 10px !important; }
  
  /* Research fields band - mobile */
  .frh-page section[style*="overflow:hidden"] { padding: 12px 0 !important; }
  .frh-page section[style*="overflow:hidden"] > div[style*="flex-direction:row"] { 
    flex-direction: column !important; 
    gap: 8px !important;
    padding-left: 0 !important;
  }
  .frh-page section[style*="overflow:hidden"] > div[style*="flex-direction:row"] > div[style*="flex:0 0 180px"],
  .frh-page section[style*="overflow:hidden"] > div[style*="flex-direction:row"] > div[style*="flex:0 0 140px"],
  .frh-page section[style*="overflow:hidden"] > div[style*="flex-direction:row"] > div[style*="flex:0 0 220px"] { 
    display: none !important;
  }
  .frh-page section[style*="overflow:hidden"] > div[style*="flex:1"] { width: 100% !important; }
  
  /* Smaller icons on mobile */
  .frh-page section[style*="overflow:hidden"] a[style*="width:120px"],
  .frh-page section[style*="overflow:hidden"] div[style*="width:120px"] { 
    width: 70px !important; 
  }
  .frh-page section[style*="overflow:hidden"] div[style*="width:90px"][style*="height:90px"] { 
    width: 50px !important; 
    height: 50px !important; 
    font-size: 22px !important;
  }
  .frh-page section[style*="overflow:hidden"] span[style*="font-size:13px"] {
    font-size: 9px !important;
  }
  
  /* Offer cards - 1 per row on mobile */
  .frh-page section > div[style*="flex-wrap"] > a,
  .frh-page section > div[style*="flex-wrap"] > div[style*="flex:0 0 25%"] {
    flex: 0 0 100% !important;
    min-height: 220px !important;
  }
  .frh-page section > div[style*="max-width:1280px"] { padding: 0 16px !important; }
  .frh-page section > div[style*="max-width:1280px"] h2 { font-size: 1.4rem !important; }
  
  /* Bottom section - stack columns */
  .frh-page section > div[style*="display:flex"][style*="gap:48px"] {
    flex-direction: column !important;
    padding: 0 16px !important;
  }
  .frh-page section > div[style*="display:flex"][style*="gap:48px"] > div[style*="border-left"] {
    border-left: none !important;
    padding-left: 0 !important;
    border-top: 1px solid rgba(0,0,0,0.08) !important;
    padding-top: 32px !important;
    margin-top: 16px !important;
  }
  
  /* Ticker */
  .frh-banner-ticker { padding: 10px 0 !important; }
  .frh-banner-ticker-item { font-size: 12px !important; padding: 0 24px !important; }
  
  /* Quick links */
  .frh-quicklinks-inner { flex-direction: column !important; text-align: center !important; gap: 12px !important; padding: 0 16px !important; }
  
  /* Follow */
  .frh-follow-inner { flex-direction: column !important; gap: 12px !important; padding: 0 16px !important; }
  
  /* General text */
  .frh-page p, .frh-page .frh-news-desc { font-size: 15px !important; }
  .frh-page h2 { font-size: 1.4rem !important; }
}

/* Small mobile */
@media (max-width: 480px) {
  .frh-slider { height: 45vh !important; min-height: 260px !important; }
  .frh-slide-content { padding: 18px !important; }
  .frh-slide-title { font-size: 1.2rem !important; margin-bottom: 10px !important; }
  .frh-slide-desc { font-size: 13px !important; margin-bottom: 16px !important; }
  #frh-custom-header > div:first-child img { height: 32px !important; }
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--frh-gray-100); }
::-webkit-scrollbar-thumb { background: var(--frh-primary); border-radius: 4px; }
