/* –––––––––– COLOURS –––––––––––––––––––––––––––––––––––––––––––––– */

:root {
    --white: #ffffff; /* Background */
    --light-blue: #f0f6f8;  /* Bubbles */
    --deep-teal: #0A3A40;/* Headers */
    --charcoal: #1A1A1A; /* Main Text Sections */
    --gold-accent: #D4A017; /* Lines and Small Sub-Text */  
    --link-blue: #0707ff; /* Links */ 
    --link-dark-blue: #020288; /* Links Hover */  
}

/* –––––––––– CORE –––––––––––––––––––––––––––––––––––––––––––––– */

:root {
    --container-padding: clamp(1rem, 4vw, 3rem);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Muli', sans-serif;
    background: var(--white);
    color: var(--deep-teal);
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

.gold-text {
  color: var(--gold-accent);
}

.external-container {
    max-width: 1175px;
    margin: 0 auto;
}

.container {
    max-width: 1075px;
    margin: 0 auto;
    padding: 0 2rem 5rem 2rem;
}

/* –––––––––– HEADINGS –––––––––––––––––––––––––––––––––––––––––––––– */

html {
    font-size: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Muli", sans-serif;
    margin: 0;
    color: var(--deep-teal);
}

h1 { font-size: 2.5rem; line-height: 1.1; }
h2 { font-size: 2rem; line-height: 1.15; }
h3 { font-size: 1.75rem; line-height: 1.2; }

p {
    font-size: 1.0625rem;
    margin: 0 0 1.25rem;
    line-height: 1.6;
}

h1 a {
    text-decoration: none;
}

/* –––––––––– HEADER –––––––––––––––––––––––––––––––––––––––––––––– */

.site-header {
    background: var(--deep-teal);
    padding: 1rem 1.5rem;
    position: relative;
    z-index: 50;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.brand-logo {
    height: 64px;
    width: auto;
    object-fit: contain;
}

.brand-title {
    font-size: 2.2rem;
    color: var(--white);
}

.brand-tagline {
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    color: var(--gold-accent);
}

.main-nav {
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.8rem;
    text-decoration: none;
    color: var(--white);
    position: relative;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0; bottom: -3px;
    width: 0; height: 2px;
    background: var(--gold-accent);
    transition: width 0.2s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 0.3rem;
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 32px;
    height: 3px;
    background: var(--white);
}

.mobile-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 58, 64, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 15; 
}

.site-header.nav-open + .mobile-backdrop {
    opacity: 1;
    pointer-events: auto;
}

.pages-header-image {
    position: relative;
}

.header-image-background {
    margin: -30% 0 0 0;
    width: 50%;
    float: left;
    font-size: 36px;
    font-weight: 300;
    line-height: 1.3;
    background: rgba(9, 32, 42, 0.40);
}

.header-image-text {
    margin: 1% 1% 1% 1%;
    width: 98%;
    float: left;
    font-size: 36px;
    font-weight: 300;
    line-height: 1.3;
    color: #ffffff;
    padding-bottom: 3%;
}

.header-image-background,
.header-image-text {
    position: relative;
    z-index: 5;
}

/* –––––––––– FOOTER –––––––––––––––––––––––––––––––––––––––––––––– */

.footer {
    background: var(--deep-teal);
    color: var(--white);
    padding: 0 1.5rem 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    padding-top: 3rem;
    margin-bottom: 3rem;
}

.footer-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--gold-accent);
}

#footer-column-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.support-button-gold {
    display: inline-block;
    background-color: var(--gold-accent);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin-top: 10px;
}

.support-button-gold .pill-button {
    font-size: 1.15rem;
    font-family: 'Muli', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
}

.support-button-gold:hover {
    background-color: #b08d4a;
    transform: translateY(-2px); 
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.footer-social {
    display: flex;
    gap: 18px;
    margin-top: 12px;
}

.footer-social .social-icon svg {
    width: 46px;
    height: 46px;
    transition: color 0.3s ease, transform 0.3s ease;
    color: #ffffff;
}

.footer-social .social-icon:hover svg {
    color: #d4af37;
    transform: scale(1.06);
}

.footer-contact a{ 
    color: var(--white);
    text-decoration: none;
}

.footer-bottom {
    max-width: 1175px;
    margin: 0 auto;;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    font-size: 0.95rem;
    color: var(--white);
}

/* –––––––––– INDEX MAIN –––––––––––––––––––––––––––––––––––––––––––––– */

.main {
    background-color: var(--light-blue);
}

.home-feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background-color: #e5e5e5; 
    border: 1px solid #e5e5e5;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    background-color: #ffffff;
    padding: 70px 60px;
    display: flex;
    flex-direction: column;
    text-decoration: none; 
    transition: all 0.4s ease;
    cursor: default;
}

.feature-card:nth-child(even) {
    text-align: right;
    align-items: flex-end;
}

.feature-card:nth-child(1), .feature-card:nth-child(4) {
    background-color: #fafaf9;
}

.feature-card:hover {
    background-color: #f4f1ea !important;
    z-index: 1;
}

.feature-card:hover .section-kicker {
    color: #b08d4a;
    letter-spacing: 1.75px;
}

.section-kicker {
    display: block;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gold-accent);
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.feature-heading {
    font-size: 1.75rem;
    margin-bottom: 15px;
    color: var(--charcoal);
    font-weight: 600;
    font-family: 'Muli', sans-serif;
}

.feature-description {
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 300;
    color: var(--charcoal);
    margin-bottom: 30px;
    max-width: 380px; 
    font-family: 'Muli', sans-serif;
}

.feature-description a {
    color: var(--link-blue);
    text-decoration: none; 
}

.feature-description a:hover {
    color: var(--gold-accent);
}

.feature-description p:hover {
    transform: translateY(-1px);
    font-size: 95%;
}


/* –––––––––– BUTTONS –––––––––––––––––––––––––––––––––––––––––––––– */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: 6px;
    border: 1px solid transparent;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, transform 0.08s ease;
}

.btn-primary {
    background: var(--gold-accent);
    border-color: var(--gold-accent);
    color: var(--charcoal);
}

.btn-primary:hover {
    background: #b88a12;
    border-color: #b88a12;
    transform: translateY(-2px);
}

/* –––––––––– PAGES HEADING TEMPLATES –––––––––––––––––––––––––––––––––––––––––––––– */

.pages-heading {
    padding: 2rem 0 3rem 0;
}

.pages-heading h1 {
    font-size: 1.75rem;
    color: var(--deep-teal);
    margin: 0;
    text-align: left;
}

.pages-heading h2 {
    margin-top: 1rem;
    font-size: 1.1rem;
    color: var(--charcoal);
    font-weight: 300;
    line-height: 1.5;
}

/* –––––––––– RESEARCH MAIN –––––––––––––––––––––––––––––––––––––––––––––– */

.main-research {
    background-color: var(--white);
}

.explore-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.explore-card {
    background: #f4f7f8;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.explore-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.16);
}

.explore-card img {
    width: 100%;
    height: 175px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.explore-card:hover img {
    transform: scale(1.06);
}

.explore-card-content {
    background: var(--light-blue);
    padding: 0.5rem;
    text-align: center;
}

.explore-card-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--deep-teal);
    margin-bottom: 0.35rem;
    position: relative;
    display: inline-block;
    padding: 0.35rem 0 0.2rem 0;
}

.explore-card { 
    text-decoration: none; 
}

.explore-card-content h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background: var(--gold-accent);
    transition: width 0.25s ease;
}

.explore-card:hover .explore-card-content h3::after {
    width: 100%;
}

.research-note {
    padding-top: 3rem;
}



/*----------------RESEARCH AND GRAPHS PAGES--------------------*/

.reset {
    display: block;
    width: 100%;
    float: right;
    margin-bottom: -2.5%;
}

.reset p {
    text-align: right;
    font-size: 90%;
    font-weight: bold;  
}

.reset a {
    color: var(--link-blue);
    text-decoration: none;     
}

.reset a:hover {
    color: var(--gold-accent);
}

.reset p:hover {
    transform: translateY(-1px);
    font-size: 95%;
}


#textleft p {
    text-align: left;
}

iframe {
    width: 100%;
    height: 600px;
    margin: 1% 0 1% 0;
}

.research-box-name {
    display: block;
    width: 98%;
    float:left;
    padding: 3% 1% 3% 1%;
    font-size: 17px;
    color: #222222;
    text-align: center;
    border-top: 1px solid #ffffff;
}

.graphs-box-name {
    display: block;
    width: 98%;
    float:left;
    padding: 3% 1% 3% 1%;
    font-size: 17px;
    color: #222222;
    text-align: center;
    border-top: 1px solid #ffffff;
}

.tools ul {
    line-height: 2.5em;
}

.additional-notes {
    display: block;
    width: 94%;
    background: #eeeeee;
    padding: 0 3% 1% 3%;
    margin-top: -1.5%;
}














/* –––––––––– SITEMAP PAGE –––––––––––––––––––––––––––––––––––––––––––––– */

.sitemap h2 {
    font-size: 1.2rem;
    color: var(--deep-teal);
    margin-top: 2.5rem;
    margin-bottom: 0.5rem;
}

#sitemap-first-h2 {
    margin-top: 0;
}

.sitemap-list li {
  list-style: none;
  position: relative;
  padding-left: 1.2rem;
  margin: 0.3rem 0;
}

#sitemap-list-bespoke li {
  margin: 1rem 0;
}

.sitemap-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #c9a24b;
  font-size: 1.1rem;
  line-height: 1;
}

.sitemap ul {
    list-style: none;
    padding-left: 1.5rem;
    margin: 0;
    font-size: 1.0625rem;
}

.sitemap li {
    margin-bottom: 0.6rem;
}

.sitemap a {
    color: var(--charcoal);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 1.0625rem;
    line-height: 1.6;
}

.sitemap a:hover {
    color: var(--gold-accent);
}



/* –––––––––– RESPONSIVE –––––––––– */

@media (max-width: 1200px) {
    .pages-header-image img {
        height: 350px;
        object-fit: cover;
    }
}


@media (max-width: 1050px) {
    .main-nav {
        display: none;
        flex-direction: column;
        background: rgba(10, 58, 64, 0.95); 
        padding: 1.5rem;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        text-align: center;
        gap: 1.25rem;
        z-index: 20;
    }
    
    .site-header.nav-open .main-nav, .menu-toggle {
        display: flex;
    }

    .main-nav a {
        padding: 0.5rem 0;
        font-size: 1rem;
    }
}

@media (max-width: 900px) {
    .explore-card img {
        height: 250px;
    }

    .footer-grid { 
        grid-template-columns: 1fr; 
        text-align: center; 
        gap: 3rem;
    }  
    
    .footer-social, #footer-column-right { 
        justify-content: center; 
    } 
     
   .footer-social, #footer-column-right {
        align-items: center;
        text-align: center; 
    }

    .footer-bottom { 
        flex-direction: column; 
        gap: 1rem; 
    }
    
    .explore-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (max-width: 850px) {
    .home-feature-grid {
        grid-template-columns: 1fr;
    }
    .feature-card, .feature-card:nth-child(even) {
        text-align: left;
        align-items: flex-start;
        padding: 50px 30px;
    }
}

@media (max-width: 768px) {
    header .header-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
        text-align: center;
    }

    .brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0rem;
    }

    .brand img {
        margin: 0 auto;
    }

    .menu-toggle {
        order: 2;
        margin: 0 auto;
    }
    
    header {
        padding: 120px 0;
    }
}

@media (max-width: 700px) {
    .brand-logo {
        height: 56px;
    }
}

@media (max-width: 640px) {
    .explore-grid {
        grid-template-columns: 1fr;
    }
}