﻿@charset "UTF-8";
html {
    scroll-behavior: smooth;
}

img {
  max-width: 100%;
}

a {
  color: #f94c3b;
  transition: all 0.2s ease-in-out;
}
a:hover {
  color: rgb(247.4851485149, 30.8069306931, 9.5148514851);
}

blockquote {
  color: #999;
  font-size: 1.5rem;
  font-weight: 300;
  margin: 3rem auto;
  width: 80%;
}

.navbar-brand small {
  font-size: 75%;
  font-weight: 400;
  margin-left: 0.5rem;
}

.lead {
  font-size: 1.2rem;
}

.card .card-img, .card .card-img-top {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.brand {
  line-height: normal;
  width: 90px;
  white-space: normal;
  margin-left: 10px;
}

.navbar-nav > .nav-item {
    position: relative;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

@media(min-width:990px) {
    .navbar-nav > .nav-item:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
        height: 1.2rem;
        border-right: 2px solid var(--bs-success);
    }
}

/* --- Base Font Families --- */

body, p {
    font-family: 'Inter', sans-serif !important;
    margin: 0;
}

main p, main ul, main h2, main h3, main card {
    max-width: 750px;
    margin-bottom: 1.3rem;
}

.card p {
    margin-bottom: 0;
}

/* Bootstrap Heading Overrides */
h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6,
.navbar-brand, .navbar-nav .nav-link {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.navbar {
    font-family: var(--bs-font-sans-serif);
}


.navbar-nav > .nav-item.active {
    color: var(--bs-primary);
}

    .navbar-nav > .nav-item.active > a {
        font-weight: bold;
    }

.dropdown-menu .dropdown-item{
    color: var(--bs-dark);
    transition: ease-in 0.1s;
}
.dropdown-menu .dropdown-item:hover {
    background-color: var(--bs-secondary);
    color: var(--bs-light);
}

header.header-animate {
    background-size: 110% 110%;
    background-position: center;
    animation: header-panzoom 20s cubic-bezier(0.4,0,0.2,1) forwards;
}

@keyframes header-panzoom {
    from {
        background-size: 100% 100%;
        background-position: center;
    }

    to {
        background-size: 120% 120%;
        background-position: 70% 40%;
    }
}

.block {
  padding: 0 0 1.5rem;
}

.block img {
  border-radius: 0.25rem;
}
.block.column-block .col-md:not(:last-child) {
  margin-bottom: 1.5rem;
}
.block.column-block img {
  height: 100%;
  object-fit: cover;
}
.block.image-gallery-block .carousel {
  border-radius: 0.25rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .block.column-block .col-md:not(:last-child) {
    margin-bottom: 0;
  }
}

.post-meta {
    font-size: 0.875rem;
}
.post-meta span:not(:last-child)::after {
  content: "◆";
  display: inline-block;
  padding: 0 0.25rem;
}

.archive article {
  padding-bottom: 1rem;
}

.comments .alert {
  background: #f4f4f4;
  padding: 2rem 2.5rem;
}

.page-link {
  color: var(--bs-primary);
  min-width: 2.5rem;
  text-align: center;
}
.page-link:hover {
  color: var(--bs-dark);
}

.page-item.active .page-link {
  background: var(--bs-primary);
  color: var(--bs-white);
  border-color: var(--bs-tertiary);
}

/* For heading sections where needed */

.page-header {
    font-size: 2.5rem;
    padding: 0;
    margin: 0;
}

.has-image .page-header-container {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 1rem 2rem;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.logo-header {
    position: relative;
    padding-left: 3rem; /* Adjust to match logo width + spacing */
}

    .logo-header::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        background-image: url('../images/Invest Falkirk - Copy.svg');
        background-size: contain;
        background-repeat: no-repeat;
        width: 2rem; /* Set size of the logo */
        height: 2rem;
    }
/* Unordered list with random colored square icons */
.generated ul {
    list-style: none;
    padding-left: 1rem;
}

.generated p, .generated li {
    font-size: 1.1rem;
    line-height: 1.7rem;
}


.block .html-block,
.html-block .generated {
    margin: 1.8rem 2.5rem; /* Default for larger screens */
}

/* Override for mobile screens */
@media (max-width: 768px) {
    .block .html-block,
    .html-block .generated {
        margin: 0.5rem 0.8rem;
    }
}


.image-block{
    margin: 2rem 0;
}

.generated ul li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.5rem;
}

.generated ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 0.4em;
    height: 0.4em;
    border-radius: 0.1em;
    display: inline-block;
    /* Default color, will be overridden by nth-child */
    background-color: #0d6efd;
}

    .generated ul li:nth-child(6n+1)::before {
        background-color: #f7941d;
    } 
    .generated ul li:nth-child(6n+2)::before {
        background-color: #ffd100;
    } 
    .generated ul li:nth-child(6n+3)::before {
        background-color: #b5ca34;
    } 
    .generated ul li:nth-child(6n+4)::before {
        background-color: #15afdb;
    } 
    .generated ul li:nth-child(6n + 5)::before {
        background-color: #f05664;
    }
    .generated ul li:nth-child(6n)::before {
        background-color: #4f8295;
    }

/* Horizontal rule with 6 colored squares lined up horizontally */
.separator-block hr {
    display: block;
    position: relative;
    height: 1em;
    margin: 2rem 0;
    border: none;
    background: none;
    text-align: center;
}

    .separator-block hr::before {
        content: "";
        display: inline-block;
        width: 4.8em; /* 6 squares * 0.8em spacing */
        height: 1em;
        background-repeat: no-repeat;
        background-size: contain;
        background-position: center;
        /* Inline SVG with 6 smaller colored squares, spaced out */
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='10'><rect x='0' y='2' width='4' height='4' rx='1' fill='%23f7941d'/><rect x='8' y='2' width='4' height='4' rx='1' fill='%23ffd100'/><rect x='16' y='2' width='4' height='4' rx='1' fill='%23b5ca34'/><rect x='24' y='2' width='4' height='4' rx='1' fill='%2315afdb'/><rect x='32' y='2' width='4' height='4' rx='1' fill='%23f05664'/><rect x='40' y='2' width='4' height='4' rx='1' fill='%234f8295'/></svg>");
    }

.animated-square {
    animation: expandFromCenter 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    transform-origin: center;
}

@keyframes expandFromCenter {
    0% {
        transform: translate(38.2px, 38.2px) scale(0.1);
        opacity: 0;
    }

    60% {
        transform: translate(0, 0) scale(1.05);
        opacity: 1;
    }

    100% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
}

/* Stagger each square's animation */
.square-1 {
    animation-delay: 0s;
}

.square-2 {
    animation-delay: 0.1s;
}

.square-3 {
    animation-delay: 0.2s;
}

.square-4 {
    animation-delay: 0.15s;
}

.square-5 {
    animation-delay: 0.25s;
}

.square-6 {
    animation-delay: 0.35s;
}

.square-7 {
    animation-delay: 0.3s;
}

.square-8 {
    animation-delay: 0.4s;
}

.square-9 {
    animation-delay: 0.5s;
}

/* Replay animation on hover */
.logo-container:hover .animated-square {
    animation: expandFromCenter 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Paragraph lead */
p.lead {
    font-size: 1.4rem;
    color: #333; /* Neutral text color */
    font-weight: 400;
    padding: 0.75rem 1.25rem;
    margin: 1.5rem 0;
    border-radius: 0.4rem;
    letter-spacing: 0.01em;
    transition: box-shadow 0.2s;
}

article.card {
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s;
}

.card-img-top {
    /* Ensure stretched-link does not interfere with hover */
    position: relative;
    z-index: 2;
}

article.card:hover {
    transform: scale(1.03) translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}


/* Parallax Images */
.parallax {
    position: relative;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 300px;
}

.parallax-hero {
    height: 100vh;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.homepage-hero {
    background-image: url("../../uploads/406b56f3-79a1-4bf5-a923-722cd43354ab/21850145878_9098eafd72_k.jpg");
    margin-top: -80px;
    background-size: cover; /* Ensures the image covers the container */
    background-position: center; /* Keeps the focal point centered */
    background-repeat: no-repeat; /* Prevents tiling */
}

    .homepage-hero::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.6); /* 60% transparent black */
        z-index: 1;
    }

    .homepage-hero .content {
        position: relative;
        z-index: 2;
    }

.content {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    color: white;
}

    .content h1 {
        font-size: 4rem;
        font-weight: bold;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }

    .content p {
        font-size: 1.5rem;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    }
