/* Training in Malta — Neve draft brand layer */
:root{--tim-ink:#152e3a;--tim-burgundy:#800800;--tim-burgundy-hover:#a3231b;--tim-ocean:#800800;--tim-gold:#f8f5f0;--tim-paper:#f8f5f0;--tim-muted:#6b757b}
.tim-site-header,.tim-site-footer{font-family:"Trebuchet MS",Arial,sans-serif}
.tim-site-header{background:#fff;border-bottom:1px solid #e5eceb;position:relative;z-index:30}
.tim-header-inner{max-width:1320px;margin:auto;padding:16px 32px;display:flex;align-items:center;justify-content:space-between;gap:22px}
.tim-brand{display:inline-flex;gap:12px;align-items:center;text-decoration:none!important;color:var(--tim-ink)!important;flex-shrink:0}
.tim-brand-mark{display:flex;align-items:center;justify-content:center;width:55px;height:55px;background:var(--tim-ink);color:#fff;font-family:Georgia,serif;font-size:20px;font-weight:700;letter-spacing:-2px;position:relative}
.tim-brand-mark-dot{position:absolute;width:9px;height:9px;background:var(--tim-gold);border-radius:50%;top:7px;right:6px}
.tim-brand-copy{display:flex;flex-direction:column;line-height:1.05}
.tim-brand-copy strong{font-size:16px;letter-spacing:.015em;color:var(--tim-ink)}
.tim-brand-copy em{font-style:normal;color:var(--tim-ocean)}
.tim-brand-copy small{font-size:9px;letter-spacing:.19em;color:var(--tim-muted);margin-top:8px}
.tim-desktop-nav{display:flex;gap:clamp(10px,1.5vw,24px);align-items:center}
.tim-desktop-nav a{font-size:13px;font-weight:700;color:var(--tim-ink);text-decoration:none!important;white-space:nowrap;transition:color .2s}
.tim-desktop-nav a:hover,.tim-mobile-panel a:hover{color:var(--tim-ocean)}
.tim-desktop-nav .tim-contact-cta,.tim-mobile-panel .tim-contact-cta{background:var(--tim-gold);color:var(--tim-ink);border-radius:5px;padding:13px 16px}
.tim-contact-cta span{margin-left:7px}
.tim-mobile-menu{display:none}
.tim-site-footer{background:var(--tim-ink);color:#e2eeee}
.tim-footer-inner{max-width:1320px;padding:76px 32px 56px;margin:auto;display:grid;grid-template-columns:minmax(0,1.65fr) minmax(150px,.65fr) minmax(200px,.85fr);gap:7%}
.tim-footer-eyebrow{font-size:10px;color:var(--tim-gold);letter-spacing:.18em;font-weight:700}
.tim-footer-lead h2{font-family:Georgia,serif;color:#fff;font-size:clamp(32px,3.2vw,50px);line-height:1.13;margin:22px 0}
.tim-footer-lead h2 em{color:var(--tim-gold);font-style:italic}
.tim-footer-lead p,.tim-footer-org p{color:#cadbdc;font-size:14px;line-height:1.8}
.tim-footer-button{display:inline-block;background:var(--tim-gold);color:var(--tim-ink)!important;padding:14px 19px;font-size:14px;font-weight:bold;text-decoration:none!important;border-radius:5px;margin-top:14px}
.tim-footer-links h3,.tim-footer-org h3{color:#fff;font-size:16px;margin:0 0 22px}
.tim-footer-links a{display:block;color:#d5e1e2!important;text-decoration:none!important;font-size:14px;margin:0 0 13px}
.tim-footer-links a:hover{color:var(--tim-gold)!important}
.tim-footer-note{font-size:11px;color:#a9c2c3;line-height:1.6;display:block}
.tim-footer-bottom{border-top:1px solid rgba(255,255,255,.14);max-width:1320px;margin:auto;padding:22px 32px;display:flex;justify-content:space-between;gap:10px;font-size:11px;color:#b2c9ca}
.tim-mobile-menu summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:12px;font-size:13px;font-weight:700;color:var(--tim-ink)}
.tim-mobile-menu summary::-webkit-details-marker{display:none}
.tim-menu-icon{display:flex;flex-direction:column;gap:4px}
.tim-menu-icon i{display:block;background:var(--tim-ink);width:21px;height:2px}
.tim-mobile-panel{position:absolute;left:0;right:0;top:100%;background:#fff;box-shadow:0 18px 25px rgba(0,0,0,.1);padding:16px 26px 26px;display:flex;flex-direction:column;gap:4px}
.tim-mobile-panel a{font-weight:700;text-decoration:none!important;color:var(--tim-ink);padding:11px 8px;font-size:14px}
.tim-mobile-panel .tim-contact-cta{text-align:center;margin-top:9px}
.wp-block-columns{gap:clamp(18px,2.4vw,34px)}
.wp-block-group{border-radius:0}
.wp-block-cover h1{font-family:Georgia,serif;line-height:1.14}
.wp-block-cover .wp-block-button__link{border-radius:5px}
@media(max-width:1100px){.tim-desktop-nav{gap:10px}.tim-desktop-nav a{font-size:11px}.tim-brand-copy strong{font-size:14px}}
@media(max-width:920px){.tim-desktop-nav{display:none}.tim-mobile-menu{display:block}.tim-header-inner{padding:13px 20px}.tim-footer-inner{grid-template-columns:1fr 1fr;gap:45px}.tim-footer-lead{grid-column:1/-1}.tim-footer-lead h2{max-width:600px}}
@media(max-width:640px){.tim-header-inner{padding:12px 18px}.tim-brand-mark{width:46px;height:46px;font-size:17px}.tim-brand-copy strong{font-size:13px}.tim-brand-copy small{font-size:8px}.tim-footer-inner{padding:55px 22px 38px;grid-template-columns:1fr;gap:30px}.tim-footer-lead{grid-column:auto}.tim-footer-bottom{padding:20px 22px;flex-direction:column}.wp-block-cover h1{font-size:clamp(34px,10vw,50px)!important}.wp-block-group{padding-left:20px!important;padding-right:20px!important}.wp-block-columns{gap:22px}}

/* Brand alignment — Training in Malta verified logo palette (#800800) */
.tim-site-header{background:#ffffff;border-bottom:1px solid #eadedb;box-shadow:0 2px 18px rgba(80,9,6,.035)}
.tim-header-inner{max-width:1280px}
.tim-brand{gap:14px}
.tim-brand-mark{display:block;width:66px;height:66px;background:#800800;overflow:hidden;border-radius:4px;flex:0 0 66px}
.tim-brand-mark img{display:block;width:104px;height:104px;max-width:none;object-fit:unset;object-position:unset;transform:translate(-22px,-7px)}
.tim-brand-copy strong{font-family:Georgia,"Times New Roman",serif;font-size:23px;font-weight:700;letter-spacing:-.025em;color:#152e3a;line-height:1.08}
.tim-brand-copy em{color:#800800;font-style:normal}
.tim-brand-copy small{color:#6c6563;letter-spacing:.12em;font-size:9px;margin-top:8px}
.tim-desktop-nav a{color:#152e3a}
.tim-desktop-nav a:hover,.tim-mobile-panel a:hover{color:#800800}
.tim-desktop-nav .tim-contact-cta,.tim-mobile-panel .tim-contact-cta{background:#800800;color:#ffffff!important;border:1px solid #800800;border-radius:5px;font-weight:700;padding:13px 17px}
.tim-desktop-nav .tim-contact-cta:hover,.tim-mobile-panel .tim-contact-cta:hover{background:#a3231b;color:#ffffff!important}
.tim-site-footer{background:#800800;color:#faf4f0}
.tim-footer-inner{max-width:1280px}
.tim-footer-brand{display:flex;align-items:center;gap:16px;color:#ffffff;font-size:11px;letter-spacing:.11em;line-height:1.8;font-weight:700}
.tim-footer-brand img{display:block;width:86px;height:86px;object-fit:cover;flex-shrink:0}
.tim-footer-eyebrow{color:#f8f5f0}
.tim-footer-lead h2{color:#ffffff}
.tim-footer-lead h2 em{color:#f8f5f0}
.tim-footer-lead p,.tim-footer-org p{color:#f4e9e6}
.tim-footer-button{background:#ffffff;color:#800800!important;border:1px solid #ffffff}
.tim-footer-button:hover{background:#f8f5f0;color:#800800!important}
.tim-footer-links a{color:#f3e8e5!important}
.tim-footer-links a:hover{color:#ffffff!important;text-decoration:underline!important}
.tim-footer-bottom{color:#ead1cd}
.tim-mobile-menu summary,.tim-menu-icon i{color:#800800}
.tim-menu-icon i{background:#800800}
.tim-mobile-panel{border-top:1px solid #f1e7e3}
@media(max-width:1100px){.tim-brand-copy strong{font-size:20px}.tim-brand-copy small{font-size:8px}.tim-brand-mark{width:58px;height:58px;flex-basis:58px}.tim-brand-mark img{width:92px;height:92px;transform:translate(-19px,-6px)}}
@media(max-width:640px){.tim-brand-mark{width:48px;height:48px;flex-basis:48px}.tim-brand-mark img{width:76px;height:76px;transform:translate(-16px,-5px)}.tim-brand-copy strong{font-size:18px}.tim-brand-copy small{font-size:7px;letter-spacing:.09em}.tim-footer-brand img{width:74px;height:74px}.tim-footer-brand{font-size:10px}.tim-header-inner{gap:12px}}

/* Keyboard navigation and enquiry-form refinements */
.tim-site-header a:focus-visible,
.tim-site-footer a:focus-visible,
.tim-mobile-menu summary:focus-visible,
.tim-preview-draft-content a:focus-visible,
#wpforms-form-361 :is(input,select,textarea,button):focus-visible{
  outline:3px solid #bf655d;
  outline-offset:4px;
}
.tim-mobile-menu[open] .tim-mobile-panel{display:flex}
#wpforms-form-361 .wpforms-field-label{font-weight:700;color:#152e3a}
#wpforms-form-361 :is(input[type=text],input[type=email],input[type=number],select,textarea){
  border:1px solid #bbcacb;
  border-radius:5px;
  background:#ffffff;
  color:#152e3a;
  box-shadow:none;
  max-width:100%;
}
#wpforms-form-361 :is(input[type=text],input[type=email],input[type=number],select,textarea):focus{
  border-color:#800800;
}
#wpforms-form-361 button[type=submit]{
  background:#800800;
  color:#ffffff;
  font-weight:700;
  border:1px solid #800800;
  border-radius:5px;
  min-height:46px;
  padding:12px 25px;
}
#wpforms-form-361 button[type=submit]:hover{background:#a3231b;border-color:#a3231b}
@media(max-width:640px){
  .tim-mobile-panel{max-height:calc(100dvh - 72px);overflow-y:auto}
  #wpforms-form-361 :is(input[type=text],input[type=email],input[type=number],select,textarea){width:100%}
}



/* Responsive readability and touch targets — draft refinement */
.tim-brand-copy{min-width:0}
.tim-mobile-menu{flex-shrink:0}
.tim-mobile-menu summary{min-height:44px;min-width:44px}
.tim-mobile-panel a{min-height:44px}
.wp-block-image img{height:auto;max-width:100%;border-radius:8px}
.wp-block-column{min-width:0}
.wp-block-button__link{min-height:44px;display:inline-flex;align-items:center;justify-content:center;white-space:normal}
#wpforms-form-361 input,#wpforms-form-361 select,#wpforms-form-361 textarea{font-size:16px!important}
@media(max-width:781px){
 .wp-block-columns{flex-wrap:wrap!important}
 .wp-block-columns>.wp-block-column{flex-basis:100%!important}
 .wp-block-group h1{font-size:clamp(30px,8vw,42px)!important;line-height:1.2}
 .wp-block-group h2{font-size:clamp(25px,6.5vw,34px)!important;line-height:1.25}
 .wp-block-group{padding-top:40px!important;padding-bottom:40px!important}
 .wp-block-cover{min-height:480px!important;padding:32px 20px}
 .wp-block-buttons{gap:12px}
 .wp-block-button{max-width:100%}
 #wpforms-form-361 .wpforms-field-row{max-width:100%}
 #wpforms-form-361 .wpforms-one-half{width:100%;margin-left:0;float:none}
}
@media(max-width:380px){.tim-brand-copy strong{font-size:16px}.tim-brand-copy small{font-size:6px}.tim-header-inner{padding:10px 12px;gap:8px}}
@media(prefers-reduced-motion:reduce){.tim-desktop-nav a{transition:none}}

/* Keep form fields unobstructed on narrow screens. */
#scroll-to-top{background-color:#800800!important;color:#fff!important}
@media(max-width:640px){#scroll-to-top{display:none!important}.wp-block-cover p{font-size:17px!important;line-height:1.6}}
