/*
    Theme Name: Fanny Hirsch 1.6
    Author: Webbyrån Konsulterna
    Author URI: https://webbyrankonsulterna.se
    Description: Custom theme for Stiftelsen Fanny Hirsch Minne
    Version: 1.6
*/

body {
    font-size: 1rem;
    color: #002B2B;
    font-family: 'Gilroy-Regular';
}
label {
    width: 100%;
    font-size: 20px;
}
a:hover {
    color: #000000;
    font-weight: 700;
}
.social-icons img {
  max-height: 30px;
}

.navbar .social-icons {
    margin-left: 1.5rem;
}

textarea.form-control {
    height: 100px;
    min-height: auto;
}
.bg-purple {
    background: #E6E6FF !important;
}
.bg-light {
    background: #f7fbfc !important;
}
.bg-dark-2 {
    color: #fff;
    background: #002B2B !important;
}
.bg-dark-2 .form-control {
    border-color:#fff;
    color:#fff;
}
.bg-dark-2 .btn {
    color:#fff;
}
.bg-dark-2 .btn:hover,
.bg-dark-2 .btn:focus {
    color:#000;
}
a {
  color: inherit;
}
.container {
    max-width: 1500px;
    padding-left: 3.5rem;
    padding-right: 3.5rem;
}
#mainNav li {
    text-transform: uppercase;
}
.nav-container {
    max-width: 100vw;
    padding-right: 4.5rem;
    padding-left: 2rem;
}
@media (max-width: 1200px) {
    .nav-container {
        padding-right: 1rem;
        padding-left: 1rem;
    }
}
.navbar-light .navbar-nav {
    /*margin-left: auto;*/
}
.navbar-light li a {
    color: #002B2B!important;
    font-size: 1rem!important;
    display: block;
    padding: 0 0.75rem;
}

.navbar-light li a:hover,
.navbar-light li a:focus,
.navbar-light li.current_page_item a,
.nav-link[class*="active"] {
    text-decoration: underline;
    color: #002B2B!important;
    font-weight: 600;
}
@media (min-width: 1200px) and (max-width: 1400px)  {
    .navbar-light li a {
        font-size: 0.9rem !important;
    }
}
@media (min-width: 992px) and (max-width: 1199.98px)  {
    .navbar-light li a {
        font-size: 0.84rem !important;
    }
}
.navbar-light .button-holder a {
    color:#fff!important;
    background: #002B2B;
    border-radius: 500px;
    padding: 0.65rem 2rem!important;
    margin-left: 1.5rem;
}

.navbar-light .button-holder a:hover,
.navbar-light .button-holder a:focus,
.navbar-light li.button-holder.current_page_item a {
    background: #075252;
    text-decoration: none;
}

.text-green {
  color: #8FEAAA !important;
}
.bg-primary {
    background: #E6E6FF !important;
}
.bg-secondary {
  background: #FEF2F7 !important;
}
.border-dark {
    border-color: #002B2B !important;
}
.btn {
    padding:0.85rem 2.5rem 0.75rem 2.5rem;
    border-radius: 500px;
    font-size: 1.3rem;
    font-family: 'Gilroy-Bold';
}
.btn-primary {
    background: #002B2B;
    border-color: #002B2B;
    color: #fff;
}
.btn-primary:hover,
.btn-primary:focus {
  background: none;
  border-color: #002B2B;
  color: #002B2B;
}
.btn-outline-primary {
    color: #002B2B;
    border-color: #002B2B;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus {
 background: #002B2B;
 border-color: #002B2B;
 color: #fff;
}
h1,h2,h3,h4,h5,h6,
.navbar-light .navbar-nav .nav-link {
  font-family: 'Open Sans';
  font-weight: 700;
}
.navbar {
    padding: 1rem 0;
}
.nav-icon {
    font-size: 3rem;
}
.btn-outline-light {
    color: #fff;
}
.btn-outline-light:hover,
.btn-outline-light:focus {
    color: #000;
    background-color: #c6d5ff;
}
/*
.btn-outline-light:hover, .btn-outline-light:hover a,
.btn-outline-light:focus, .btn-outline-light:focus a {
    color: #000!important;
}
*/
.display-2 {
    font-size: 90px;
    font-family: 'Gilroy-ExtraBold';
}
h1,.h1 {
  font-family: 'Gilroy-Bold';
}
h2,.h2 {
    font-size: 48px;
    font-family: 'Gilroy-Bold';
    font-weight: normal;
}
h3,.h3 {
    font-size: 30px;
    font-family: 'Gilroy-Bold';
    font-weight: normal;
}
h4,.h4 {
    font-size: 22px;
    font-family: 'Gilroy-Bold';
    font-weight: normal;
}
h2 {
    margin-top: 1em;
}
.eyebrow {
    font-size: 30px;
    font-weight: normal;
    text-transform: uppercase;
    font-family: 'Gilroy-Regular';
}
.font-weight-bold {
    font-weight: 600;
}
.lead {
    font-size: 20px;
}
.equal-md-3-4::before {
    padding-top: 100%;
}
.equal-md-1-1::before {
    padding-top: 70%;
}
/*
.logos img {
    width: auto !important;
    height: 4rem !important;
}
*/
.logos img {
    display: inline-block !important;
    width: auto;
    height: auto;
    width:auto;
    max-width: 100%;
    max-height: 98px;
}
.image-height {
    margin: 0;
    padding: 0;
    overflow: hidden;
}
.image-height img {
    object-fit: cover;
    height: 500px;
    width: 100%;
}
.section-repeat .container .row .col-md-7 {
    order:1;
}
.section-repeat .container .row .col-md-5 {
    order:2;
}
.section-repeat:nth-child(odd) .container .row .col-md-7 {
  order:2;
}
.section-repeat:nth-child(odd) .container .row .col-md-5 {
  order:1;
}
.accordion-button {
    font-size: 40px;
    font-weight: 300;
    font-family: 'Gilroy-Regular';
}
.accordion .accordion-button::after {
    font-size: 60px;
    line-height: 60px;
}
.accordion-minimal .accordion-button {
    padding: 2rem 0 2rem 6rem;
    border-bottom: 1px solid #000;
}
.accordion-minimal .accordion-body {
  padding: 2rem 2rem 2rem 6rem;
  font-size: 19px;
}
.form-control {
    border:0;
    border-bottom:1px solid #000;
    padding: 0;
    height: auto;
    background: none;
}
.wpcf7-spinner {
    display: block !important;
    width: 100%;
}
.equal-md-1-1::before,
.equal-md-3-4::before {
    display: block !important;
}
.sbi_load_btn {
    border-radius: 500px !important;
    padding:0.85rem 2.5rem 0.75rem 2.5rem !important;
    border-radius: 500px !important;
    font-size: 1.3rem !important;
    color: #002B2B !important;
    border:1px solid #002B2B !important;
    background: none  !important;
}
.offcanvas-end {
  width: 90% !important;
  background: #002B2B;
  padding: 1rem;
}
/*
.nav-minimal .nav-link[aria-expanded]::before {
    right: -9%;
}
*/
.navbar-collapse.collapse.show .nav-minimal .nav-link[aria-expanded]::before {
    right: -9%;
}
ul.dropdown-menu {
    /*
    background:#E6E6FF;
    background: rgba(230,230,255,0.85);
    */
    background: #c6d5ff;
    padding: 1.5rem 1rem;
    border: none;
}
ul.dropdown-menu li {
    margin-bottom: 1rem;
}
ul.dropdown-menu li:last-child {
    margin-bottom: unset;
}
ul.navbar-nav.nav-minimal li a, .nav-minimal li a {
    font-size: 1.55rem;
    display: block;
    padding: 0.5rem 0;
    color: #fff;
    text-align: center;
}
.nav-minimal .nav-link[class*="active"], ul.navbar-nav.nav-minimal li.current-menu-item a, .nav-minimal li.current-menu-item a, .nav-minimal .nav-link:hover {
    text-decoration:underline;
    color: #002B2B!important;
    font-weight: 700;
}
.nav-minimal ul.dropdown-menu li a, .nav-minimal ul.dropdown-menu li.current-menu-item a {
    color: #002B2B!important;
}
li.menu-item {
    margin-right: 0.5rem!important
}
.nav-minimal ul.dropdown-menu li a,
.nav-minimal ul.dropdown-menu li.current-menu-item a, 
.nav-minimal ul.dropdown-menu li a, 
.nav-minimal ul.dropdown-menu li.current-menu-item a,
.dropdown-menu .dropdown-item.active {
    color: #002B2B!important;
}
.nav-minimal .nav-link[aria-expanded]::before {
    right: -0.2rem;
}
.navbar-collapse.collapse.show .nav-minimal .nav-link[aria-expanded]::before {
    right: -1.4rem;
}

.btn-close {
    padding: 0.5rem;
    opacity: 1;
}
.nav-minimal .nav-item:not(:first-child) {
    margin-top: unset; 
}
a.nav-link.dropdown-toggle {
    padding: 0.5rem 0.8rem !important;
}
.dropdown-toggle::after { 
    display: none;
}
#mainNav .dropdown-toggle::after{
  display: inline-block !important;
}


.navbar-brand img {
    max-height: 3.4rem;
}
@media (min-width: 992px) {
    .navbar-nav .nav-link {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
}
/*
@media (min-width: 1249px) {
    .navbar-brand img {
        max-height: 3.4rem;
    }
}
*/
@media (max-width: 1199px) {
    /*
    .dropdown-toggle::after {
        display: none;
    }
    */
    #section-hero .display-2 {
        font-size: 70px;
    }
    /*
    .nav-minimal .nav-item:not(:first-child) {
        margin-top: 1rem;
    }*/
}

footer .form-control {
    border:1px solid #fff !important;
}
.inverted [class*="border"], .inverted[class*="border"] {
    border-color: #fff !important;
}
/*
@media (min-width: 1349px) {
    .navbar-brand img {
        max-height: 4.5rem;
    }
}
@media (max-width: 1348px) {
    .navbar-brand img { 
        max-height: 3.7rem;
    }
}
*/
@media (max-width: 1440px) {
    .navbar-brand img { 
        max-height: 2.8rem;
    }
}
@media (max-width: 1200px) {
    .navbar-brand img {
        max-height: 2.1rem;
    }
}
@media (max-width: 768px) {
    .navbar-brand img { 
        max-height: 1.9rem; 
    }
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .min-vh-100 {
        min-height: 500px !important;
    }
    .min-md-600px {
        min-height: 600px !important;
    }
    #section-hero .display-2, .display-2 {
        font-size: 50px;
    }
    h2, .h2 {
        font-size: 30px;
    }
    h3, .h3, .eyebrow {
        font-size: 22px;
    }
    .btn {
        padding: 0.85rem 1.5rem 0.75rem 1.5rem;
        font-size: 1.1rem;
    }
    .card .background {
        min-height: 300px;
        margin-top: 1.5rem;
        position: relative;
    }
    .section-repeat:nth-child(odd) .container .row .col-md-7 {
        order:1;
    }
    .accordion-button { 
        font-size: 25px;
    }
    .accordion .accordion-button::after {
        font-size: 32px;
        line-height: 32px;
    }
    .accordion-minimal .accordion-button {
        padding: 1rem 0 1rem 3rem !important;
        font-size: 1rem;
    }
    .lead, label{
        font-size:100%;
    }
    .image-height img {
        height:300px;
    }
    .logos img {
        height: auto;
        max-width: 100px;
    }
}
/* HERO BANNER overlay */
#section-hero-banner .background[class*="-overlay"]::after {
    opacity: 0.65;
}
/* Scalable font */
.hero-title { 
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: clamp(1.6rem, 6vw, 6rem); /* scales with screen width */
}
.hero-description {
    font-size: clamp(1.4rem, 3vw, 2.15rem);
    font-weight: 700;
}
.hero-banner-title {
    font-size: 80px;
    font-family: 'Gilroy-ExtraBold';
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .hero-banner-title {
        font-size: 70px;
    }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-banner-title {
        font-size: 55px;
    }
}
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-banner-title {
        font-size: 55px;
    }
}
@media (max-width: 767.98px) {
    .hero-banner-title {
        font-size: 45px;
    }
}
/* Show dropdowns on hover (for desktop only) */
@media (min-width: 992px) { 
    .navbar .dropdown:hover > .dropdown-menu {
        display: block;
        top: 100%;
        width: max-content;
    }
    /* Optional: keep dropdown visible when hovering inside it */
    .navbar .dropdown-menu:hover {
        display: block;
        top: 100%;
    }
}
.navbar-toggler {
  border: none;
}

/**/
.min-vh-wk {
    min-height: 65vh !important;
}

/* Accordion button */
.accordion-button:not(.collapsed)::after {
    background-image: unset;
    /*transform: unset;*/
}
/* Accordion */
#faq .accordion-header {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
#faq .accordion-header *, #faq button  {
    font-size: 1.25rem;
    font-weight: 700;
}

.accordion .accordion-button:after {
    color: #002B2B;
    font-size: 1.25rem;
    line-height: 1;
}

/* MOBILE: dropdown overlays and does NOT push menu (Bootstrap-style) */
@media (max-width: 991.98px) {

  #mainNav li.dropdown {
    position: relative;
  }

  #mainNav .navbar-nav .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%);
    width: max-content;
    max-width: 90vw;
    z-index: 2000;
    margin-top: .75rem;
  }

  #mainNav .navbar-collapse {
    overflow: visible !important;
  }
}



/* ============================================================
   Accessibility foundation - v1.1
   ============================================================ */

/* Keep anchored content clear of the sticky navigation. */
html {
    scroll-padding-top: 7rem;
}

#main-content {
    scroll-margin-top: 7rem;
}

/* Skip navigation link: hidden visually until reached by keyboard. */
.skip-link {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 100000;
    padding: 0.75rem 1rem;
    background: #fff;
    color: #002B2B;
    border: 2px solid #002B2B;
    font-weight: 700;
    text-decoration: none;
    transform: translateY(-200%);
}

.skip-link:focus,
.skip-link:focus-visible {
    transform: translateY(0);
    outline: 3px solid #002B2B !important;
    outline-offset: 3px;
}

/* Restore a visible keyboard focus indicator where bundled theme CSS removes it. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
    outline: 3px solid #002B2B !important;
    outline-offset: 3px;
}

/* Use a light focus indicator on dark/inverted sections. */
.inverted a:focus-visible,
.inverted button:focus-visible,
.inverted input:focus-visible,
.inverted select:focus-visible,
.inverted textarea:focus-visible,
.bg-dark-2 a:focus-visible,
.bg-dark-2 button:focus-visible,
.bg-dark-2 input:focus-visible,
.bg-dark-2 select:focus-visible,
.bg-dark-2 textarea:focus-visible {
    outline-color: #fff !important;
}

/* Parent menu items configured as placeholders are rendered as text, not fake links. */
#mainNav .nav-link:not(a) {
    color: #002B2B;
    font-size: 1rem;
    display: block;
    padding: 0 0.75rem;
    font-family: 'Open Sans';
    font-weight: 700;
}

@media (min-width: 1200px) and (max-width: 1400px) {
    #mainNav .nav-link:not(a) {
        font-size: 0.9rem;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    #mainNav .nav-link:not(a) {
        font-size: 0.84rem;
    }
}


/* ============================================================
   Accessibility media & content improvements - v1.2
   ============================================================ */

/* User control for decorative autoplaying hero/background video. */
.background-video-toggle {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    z-index: 10;
    padding: 0.55rem 0.9rem;
    border: 2px solid #002B2B;
    border-radius: 999px;
    background: #fff;
    color: #002B2B;
    font-family: 'Gilroy-Bold';
    font-size: 1rem;
    line-height: 1.2;
    cursor: pointer;
}

.background-video-toggle:hover {
    background: #E6E6FF;
    color: #002B2B;
}

.background-video-toggle:focus-visible {
    outline-color: #fff !important;
}

/* Respect the operating system's reduced-motion preference. */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto !important;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    [data-aos],
    [data-top-top],
    [data-top-bottom] {
        transform: none !important;
        transition: none !important;
    }
}


/* ============================================================
   Interaction, forms & reflow improvements - v1.3
   ============================================================ */

/* Prevent media from forcing horizontal scrolling when text is enlarged. */
img,
video,
iframe,
svg {
    max-width: 100%;
}

video {
    height: auto;
}

/* Long URLs and user-entered content may wrap instead of being clipped. */
#main-content,
#main-content p,
#main-content li,
#main-content a {
    overflow-wrap: anywhere;
}

/* Keep small submenu controls comfortably keyboard/touch operable. */
#mainNav button.dropdown-toggle {
    min-width: 2rem;
    min-height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Ensure the background-video control has a comfortable pointer target. */
.background-video-toggle {
    min-height: 2.75rem;
}

/* Contact Form 7: visible, non-colour-only validation and status feedback. */
.wpcf7 .wpcf7-form-control-wrap {
    display: block;
}

.wpcf7 .wpcf7-not-valid {
    border-bottom-width: 3px !important;
    border-bottom-style: solid !important;
    border-bottom-color: #8a0014 !important;
}

.wpcf7 .wpcf7-not-valid-tip {
    display: block;
    margin-top: 0.35rem;
    color: #8a0014;
    font-weight: 700;
}

.wpcf7 form .wpcf7-response-output {
    padding: 0.75rem 1rem;
    border-width: 2px;
}

.wpcf7 input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.wpcf7 select,
.wpcf7 textarea {
    min-height: 2.75rem;
}

.wpcf7 textarea {
    min-height: 8rem;
}

.wpcf7 input[type="checkbox"],
.wpcf7 input[type="radio"] {
    min-width: 1.5rem;
    min-height: 1.5rem;
}

/* At narrow/reflow widths, do not force hero controls/text onto one line. */
@media (max-width: 767.98px) {
    .hero-title,
    .hero-banner-title,
    .hero-description {
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .background-video-toggle {
        max-width: calc(100% - 2rem);
        white-space: normal;
    }
}

/* Inline content links must not rely on colour alone to look interactive. */
#main-content a:not(.btn):not(.button):not(.background-video-toggle) {
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.15em;
}

.wpcf7 form .wpcf7-response-output:focus {
    outline: 3px solid #002B2B !important;
    outline-offset: 3px;
}
/* Required note */
.wpcf7 .required-note {
    color: #9C1C1C;
    font-style: italic;
    font-size: 0.8rem;
}

/* ============================================================
   Final accessibility & reflow cleanup - v1.4
   ============================================================ */

/* Do not clip horizontally overflowing content. At high zoom/reflow widths,
   users must still be able to reach content that cannot wrap. */
html,
body {
    max-width: 100%;
}

/* Keep all in-page targets clear of the sticky header, not only <main>. */
:target {
    scroll-margin-top: 7rem;
}

/* Users who enlarge text must be able to resize multi-line fields. */
textarea,
textarea.form-control,
.wpcf7 textarea {
    resize: vertical;
}

/* Allow button/link text to wrap at narrow widths and keep common controls
   at a comfortable target size. */
.btn,
.button,
.navbar-toggler,
#mainNav button.dropdown-toggle {
    min-height: 2.75rem;
}

.btn,
.button {
    white-space: normal;
    max-width: 100%;
}

.navbar-toggler {
    min-width: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* At high zoom, long dropdowns remain reachable instead of extending beyond
   the viewport. */
#mainNav .dropdown-menu {
    max-height: calc(100vh - 7rem);
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* Maintain a strong focus indicator even if later component rules remove
   borders/box-shadows. :focus is a fallback; :focus-visible is preferred. */
.skip-link:focus,
#mainNav a:focus-visible,
#mainNav button:focus-visible,
#main-content a:focus-visible,
#main-content button:focus-visible,
#main-content input:focus-visible,
#main-content select:focus-visible,
#main-content textarea:focus-visible,
footer a:focus-visible,
footer button:focus-visible {
    outline-width: 3px !important;
    outline-style: solid !important;
    outline-offset: 3px !important;
}

/* Narrow reflow view (roughly desktop at 400% zoom): avoid fixed image
   cropping and oversized horizontal padding. */
@media (max-width: 400px) {
    .container,
    .nav-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .image-height {
        overflow: visible;
    }

    .image-height img {
        width: 100%;
        height: auto;
        max-height: none;
    }

    .hero-banner-title {
        font-size: clamp(2rem, 12vw, 2.8rem);
        line-height: 1.1;
    }

    #mainNav .navbar-nav .dropdown-menu {
        width: min(90vw, 24rem);
        max-width: 90vw;
    }
}

