/* --------------------------------------------
   GLOBAL STYLES
-------------------------------------------- */
html {
    overflow-x: hidden;
    scroll-padding-top: 100px; /* sticky header offset */
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #009DDC;
    color: #fff;
    background-image: url("data:image/svg+xml,<svg id='patternId' width='100%' height='100%' xmlns='http://www.w3.org/2000/svg'><defs><pattern id='a' patternUnits='userSpaceOnUse' width='83.302' height='83.302' patternTransform='scale(4) rotate(0)'><rect x='0' y='0' width='100%' height='100%' fill='%23009ddcff'/><path d='m10.753 1.553 5.511 11.99 1.982-.912-5.51-11.99zm14.983 60.91L13.948 33.037l-2.732 1.094 11.788 29.428zM58.332 44.52l1.148 15.535 2.054-.152-1.148-15.535zm17.4 26.823-17.686 8.13 1.046 2.275 17.686-8.13zM54.36 37.604l9.285-14.67-2.117-1.339-9.284 14.67z'  stroke-width='1' stroke='none' fill='%23ee3124ff'/><path d='m62.722 7.119 16.424 6.588.91-2.27-16.423-6.59zm12.063 49.746 18.952 14.142L95.235 69 76.283 54.858ZM52.537 63.14 35.341 50.307l-1.159 1.554 17.196 12.832zM23.062 31.376l4.79-22.08 2.088.452-4.79 22.08zM-8.516 56.865l18.952 14.142L11.934 69-7.018 54.858z'  stroke-width='1' stroke='none' fill='%23ffffffff'/><path d='m42.041-4.076 5.738 19.565 2.403-.705L44.445-4.78zm29.085 46.214L96 22.484l-1.825-2.31-24.873 19.654zm-39.842-6.035 12.27-4.328.612 1.736-12.269 4.328zm18.898 61.983L44.445 78.52l-2.404.705 5.738 19.566zM10.873 20.175-14 39.828l1.825 2.31 24.873-19.654zM26.21 81.95l8.863-15.35 2.264 1.307-8.862 15.35z'  stroke-width='1' stroke='none' fill='%23ee3124ff'/></pattern></defs><rect width='800%' height='800%' transform='translate(0,0)' fill='url(%23a)'/></svg>")

}

@media (max-width: 768px) {
    body {
        background-image: url("data:image/svg+xml,<svg id='patternId' width='100%' height='100%' xmlns='http://www.w3.org/2000/svg'><defs><pattern id='a' patternUnits='userSpaceOnUse' width='83.302' height='83.302' patternTransform='scale(2) rotate(0)'><rect x='0' y='0' width='100%' height='100%' fill='%23009ddcff'/><path d='m10.753 1.553 5.511 11.99 1.982-.912-5.51-11.99zm14.983 60.91L13.948 33.037l-2.732 1.094 11.788 29.428zM58.332 44.52l1.148 15.535 2.054-.152-1.148-15.535zm17.4 26.823-17.686 8.13 1.046 2.275 17.686-8.13zM54.36 37.604l9.285-14.67-2.117-1.339-9.284 14.67z'  stroke-width='1' stroke='none' fill='%23ee3124ff'/><path d='m62.722 7.119 16.424 6.588.91-2.27-16.423-6.59zm12.063 49.746 18.952 14.142L95.235 69 76.283 54.858ZM52.537 63.14 35.341 50.307l-1.159 1.554 17.196 12.832zM23.062 31.376l4.79-22.08 2.088.452-4.79 22.08zM-8.516 56.865l18.952 14.142L11.934 69-7.018 54.858z'  stroke-width='1' stroke='none' fill='%23ffffffff'/><path d='m42.041-4.076 5.738 19.565 2.403-.705L44.445-4.78zm29.085 46.214L96 22.484l-1.825-2.31-24.873 19.654zm-39.842-6.035 12.27-4.328.612 1.736-12.269 4.328zm18.898 61.983L44.445 78.52l-2.404.705 5.738 19.566zM10.873 20.175-14 39.828l1.825 2.31 24.873-19.654zM26.21 81.95l8.863-15.35 2.264 1.307-8.862 15.35z'  stroke-width='1' stroke='none' fill='%23ee3124ff'/></pattern></defs><rect width='800%' height='800%' transform='translate(0,0)' fill='url(%23a)'/></svg>")
    }
}

/* Full screen overlay */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #EE3124;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000; /* above all content */
    transition: opacity 0.5s ease;
}

/* Hide preloader when done */
#preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

p {
    line-height: 1.6;
}

/* Remove ugly blue tap highlight on mobile */
* {
  -webkit-tap-highlight-color: transparent;
}

/* --------------------------------------------
   FONTS
-------------------------------------------- */
@font-face {
    font-family: 'BDRMonoLight';
    src: url('/css/fonts/bdrmono_light-webfont.woff2') format('woff2'),
         url('/css/fonts/bdrmono_light-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'BDRMonoRegular';
    src: url('/css/fonts/bdrmono-webfont.woff2') format('woff2'),
         url('/css/fonts/bdrmono-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'BDRMonoBold';
    src: url('/css/fonts/bdrmono_bold-webfont.woff2') format('woff2'),
         url('/css/fonts/bdrmono_bold-webfont.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* --------------------------------------------
   HEADINGS
-------------------------------------------- */
h1, h2, h3, h4 {
    font-family: 'BDRMonoLight', monospace;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: #fff;
}

h1 {
    font-family: 'BDRMonoLight', monospace;
    text-align: center;
    width: 100%;
    font-size: clamp(2rem, 6vw, 4rem);
    color: #fff;
    background-color: #EE3124;
    padding-bottom: 5px;      /* optional spacing around text */
    display: inline-block;   /* so padding wraps tightly */
    letter-spacing: 1px; /* add spacing */

}

@media (max-width: 768px) {
    h1 {
        font-family: 'BDRMonoRegular', monospace;
        font-size: clamp(1.5rem, 6vw, 4rem);
        letter-spacing: 1px; /* add spacing */
        padding: 15px 0px;
    }
}


#about h2 {
    font-size: clamp(20px, 4vw, 36px);
    line-height: 1.2;
}

#about a {
    text-decoration: underline;
    color: #fff;
}

@media (max-width: 768px) {
    #about h2 {
        font-size: clamp(18px, 5vw, 32px);
    }
}

/* --------------------------------------------
   HEADER & NAV
-------------------------------------------- */
header {
    background-color: #EE3124;
    color: #fff;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding-left: 30px;
}

header img {
    height: 80px;
    cursor: pointer; /* will be used for scroll-to-top */
}

header img:hover {
     /* Start the shake animation and make the animation last for 0.5 seconds */
  animation: shake 0.5s;

  /* When the animation is finished, start again */
  animation-iteration-count: 1;
}

@keyframes shake {
  0% { transform: translate(5px, 5px) rotate(0deg); }
  20% { transform: translate(-3px, 0px) rotate(1deg); }
  40% { transform: translate(1px, -1px) rotate(1deg); }
  60% { transform: translate(-3px, 1px) rotate(0deg); }
  80% { transform: translate(-0.5px, -0.5px) rotate(1deg); }
  100% { transform: translate(0.5px, 0px) rotate(0deg); }
}

nav {
    display: flex;
    gap: 15px;
}

nav a {
    font-size: 1.3rem; /* increase text size */
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    text-transform: uppercase;
    font-family: 'BDRMonoRegular', monospace;
    letter-spacing: 1px; /* add spacing */
    padding-top: 15px; /* reserve space for underline */
    padding-bottom: 5px;
    border-bottom: 10px solid transparent; /* reserve space without showing */
    transition: border-color 0.1s ease; /* smooth hover */
}

@media (min-width: 768px) {
    nav a:hover {
            border-bottom-color: #fff; /* thick underline on hover */
            font-style: italic;
            transform: translateX(-2px);
    }
}

/* Hide the checkbox */
.menu-checkbox {
  display: none;
}

/* Burger button (hidden on desktop) */
.menu-toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 30px;
  cursor: pointer;
  z-index: 1100;
}

.menu-toggle::before,
.menu-toggle::after,
.menu-toggle span {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: white;
  transition: transform 0.3s ease, opacity 0.1s ease;
}

.menu-toggle::before {
  top: 0;
}
.menu-toggle span {
  top: 13px;
}
.menu-toggle::after {
  bottom: 0;
}

/* Mobile layout */
@media (max-width: 768px) {
  /* show burger */
  .menu-toggle {
    display: block;
  }

  /* show nav when checked */
  .menu-checkbox:checked ~ nav {
    display: flex;
  }

  /* animate burger → X */
  .menu-checkbox:checked + .menu-toggle::before {
    transform: translateY(13px) rotate(45deg);
  }
  .menu-checkbox:checked + .menu-toggle::after {
    transform: translateY(-13px) rotate(-45deg);
  }
  .menu-checkbox:checked + .menu-toggle span {
    opacity: 0;
  }
}

/* Close the menu when navigating to an anchor */
:target ~ header .menu-checkbox {
  display: none;
}

/* Mobile nav drawer */
@media (max-width: 768px) {
    header {
        padding-left: 20px;
    }
    nav {
        display: none;
        flex-direction: column;
        background-color: #EE3124;
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        z-index: 999;
        text-align: center;
        padding-bottom: 10px;
    }
    nav.active {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }
    header img {
        padding-left: 0px;
    }
}

/* --------------------------------------------
   MAIN & SECTIONS
-------------------------------------------- */
main {
    padding: 20px;
    max-width: 1200px;
    margin: auto;
}

section {
    margin-bottom: 10px;
}

/* --------------------------------------------
   ABOUT SECTION
-------------------------------------------- */
#about {
    max-width: 1200px;
    padding: 40px 0px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    z-index: 999; /* below header */
}

/* Headings */
#about h2 {
    font-size: clamp(20px, 4vw, 40px);
    margin-top: 0;
    padding-bottom: 20px;
}

@media (max-width: 768px) {
    #about {
        padding-top: 10px;
    }

    #about h2 {
        font-size: clamp(22px, 5vw, 32px);
    }
}

/* About item container */
.about-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    position: relative;
    align-items: start; /* image won't stretch to match text height */
}


/* Images */
.about-img {
    display: block;
    width: 100%;             /* fill container width */
    height: auto;            /* maintain aspect ratio */
    border: 10px solid #fff; /* fixed frame */
    box-sizing: border-box;
    object-fit: unset;       /* remove contain/cover */
}


/* Optional: scale up tiny images */
.about-img-container {
    width: 100%;
    overflow: hidden;
}



/* Collapsible text blocks */
.about-text {
    overflow: hidden;
    cursor: pointer;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border: 10px solid #fff;
    position: relative;
    background-color: #009DDC;

}
/* Only apply hover for non-touch devices */
@media (hover: hover) and (pointer: fine) {
    .about-text:hover {
        background-color: #fff;
        color: #009DDC;
        border-color: #EE3124;
    }
    .about-text:hover h2{
        color: #009DDC;
        font-style: italic;
        transform: translateX(-3px);
    }
    .about-text.expanded:hover h2{
        font-style: normal;
        color: #fff;
        border-color: #fff;
        transform: translateX(0px);
    }

}

/* Default collapsed: only show h2 */
.about-text p {
  display: none;
}

.about-text p {
  white-space: normal;      /* allow text to wrap naturally */
  overflow-wrap: break-word; /* break long words if needed */
  word-wrap: break-word;     /* older fallback */
  hyphens: auto;             /* optional: insert hyphens when breaking words */
}


/* Expanded: show p again */
.about-text.expanded p {
  display: block;
  padding-bottom: 20px;
}

/* Arrow indicator */
.about-text::after {
    content: '▼';
    position: absolute;
    bottom: 5px;
    right: 10px;
    font-size: 50px;
  /*  color: rgba(255,255,255,1); */
    transition: transform 0.3s ease;
}

/* Expanded state */
.about-text.expanded {
    max-height: none; /* keeps full content visible */
    background-color: #EE3124; /* red background when expanded */
    color: #fff; /* ensure text remains visible */
    border-color: #fff;
}

.about-text.expanded::after {
    transform: rotate(180deg);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .about-item {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-img {
        width: 100%;
        height: auto;
        object-fit: contain;
        border: 7px solid #fff; /* fixed frame */
    }

    .about-text {
        padding: 15px;
        border: 7px solid #fff; /* fixed frame */
    }

    .about-text::after {
        font-size: 30px;
    }

}

    .about-text.expanded {
        max-height: none;
    }
}

/* Default: normal grid layout for all about-items */
.about-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

/* Mobile: stack items vertically */
@media (max-width: 768px) {
    .about-item {
        display: flex;
        flex-direction: column;
        gap: 30px;              /* match desktop-like spacing */
        width: 100%;
        box-sizing: border-box;
    }


    .about-item .about-img-container,
    .about-item .about-text {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Optional: maintain padding inside text blocks */
    .about-item .about-text {
        padding: 15px;
    }
}





/* --------------------------------------------
   TENANTS
-------------------------------------------- */
#tenants {
    max-width: 1200px;
    margin: auto;
    padding: 20px 0px;
    display: flex;
    flex-direction: column;
    z-index: 999; /* below header */
}

#tenants h3 {
    font-family: 'BDRMonoBold', monospace; /* bold BDRMono */
    color: #009DDC;       /* blue text */
    background-color: #fff; /* white background */
    padding: 5px 30px;      /* optional spacing around text */
    display: inline-block;   /* so padding wraps tightly */
    margin-bottom: 20px;
    letter-spacing: 1px; /* add spacing */
}

.card h4 {
    font-family: 'BDRMonoRegular', monospace; /* bold BDRMono */
    color: #fff;
    background-color: #EE3124;
    padding: 10px 10px;      /* optional spacing around text */
    display: inline-block;   /* so padding wraps tightly */
    letter-spacing: 1px; /* add spacing */
    margin-top: 20px;       /* fixed top margin */
    line-height: 1.2;       /* stable text box height */
}

#tenants p {
    padding-left: 9px;      /* optional spacing around text */
    padding-right: 10px;      /* optional spacing around text */
    padding-bottom: 10px;      /* optional spacing around text */
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    padding-left: 15px;
    padding-right: 15px;
    border: 7px solid #fff;
    transition: transform 0.2s, background-color 0s;
    display: block;
    text-decoration: none;
    color: inherit;
    background-color: #009DDC;
}

.card.has-link {
    position: relative; /* for the pseudo-element */
}

.card.has-link::after {
    content: '▼'; /* original downward triangle */
    position: absolute;
    bottom: 10px;   /* distance from bottom */
    right: 10px;    /* distance from right */
    transform: rotate(270deg); /* rotate to point right */
    font-size: 20px;
    /*color: #fff;    /* arrow color */
}


/* Only apply hover for non-touch devices */
@media (hover: hover) and (pointer: fine) {
    .card.has-link:hover {
    background-color: #fff;
    color: #009DDC;
    border-color: #EE3124;
    cursor: pointer;
    }

    .card:hover {
    background-color: #fff;
    color: #009DDC;
    border-color: #EE3124;
    cursor: default;
    }

    .card:hover h4{
    background-color: #009DDC;
    font-style: italic;
    transform: translateX(-1px);
    }

}


/* Tenant toggle header */
.tenant-toggle {
    display: flex;                     /* text left, arrow right */
    align-items: center;               /* vertically center */
    justify-content: space-between;    /* separate text and arrow */
    width: 100%;                       /* full width for background */
    position: relative;
    box-sizing: border-box;            /* ensure padding included */
    padding-right: 10px;               /* space for arrow from edge */
}

/* Arrow */
.tenant-toggle::after {
    content: '▼';
    font-size: 28px;
    color: #009DDC;
    transition: transform 0.3s ease;
    display: none;                      /* hide by default */
    position: absolute;
    bottom: 3px;
    right: 15px;
}

/* Rotate arrow when expanded */
.tenant-level.expanded .tenant-toggle::after {
    transform: rotate(180deg);
    bottom: -6px; /* move the arrow slightly down */

}

/* Mobile behavior */
@media (max-width: 768px) {
    .tenant-level .grid {
        display: none;                 /* hide cards initially */
    }
    .tenant-level.expanded .grid {
        display: grid;                 /* show cards when expanded */
    }
    .tenant-toggle::after {
        display: inline-block;          /* show arrow on mobile */
    }
}




/* --------------------------------------------
   CONTACT & FOOTER
-------------------------------------------- */
#contact {
    max-width: 1200px;
    margin: auto;
    padding: 20px 0px;
    display: flex;
    flex-direction: column;
    z-index: 999; /* below header */
}

#contact img {
    margin-top: 20px;
}

.contact-img {
    width: calc(100% - 20px);
    max-height: 500px;
    object-fit: cover;
    object-position: center 30%; /* slightly lower than center top */
    border: 10px solid #fff;
    margin-bottom: 30px;
    cursor: zoom-in;
    transition: max-height 0.5s ease, object-position 0.5s ease;

}

.contact-img.expanded {
    max-height: none;         /* removes limit */
    cursor: zoom-out;
}

@media (max-width: 768px) {
    .contact-img {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        height: auto;
    }
}


#contact h4 {
    font-family: 'BDRMonoRegular', monospace; /* bold BDRMono */
    color: #fff;
    background-color: #EE3124;
    padding: 5px 10px;      /* optional spacing around text */
    display: inline-block;   /* so padding wraps tightly */
    letter-spacing: 1px; /* add spacing */
}

#contact p {
    margin-left: 10px;
}

#contact .card {
    background-color: #009DDC;
}

/* Only apply hover for non-touch devices */
@media (hover: hover) and (pointer: fine) {
    #contact .card.has-link:hover {
    background-color: #fff;
    color: #009DDC;
    }
    #contact .card.has-link:hover h4{
    background-color: #009DDC;
    }
}

footer {
    font-family: 'BDRMonoRegular', monospace; /* bold BDRMono */
    background-color: #EE3124;
    color: #fff;
    text-align: center;
    padding: 15px;
    text-transform: uppercase;
}

footer a {
    font-family: 'BDRMonoRegular', monospace; /* bold BDRMono */
    color: #fff;
    text-transform: uppercase;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}
