/* --- Global --- */
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f7f7f7;	/* soft pearl grey */
    color: #222;		/* dark charcoal text */
}

/* --- TEMPORARY HEADER TEXT COLOUR (RED) --- */
/* ---.irgf-header-text h1,--- */
/* ---.irgf-header-text p,--- */
/* ---.irgf-logo-title,--- */
/* ---.irgf-logo-subtitle {--- */
/* ---    color: #cc3333 !important; --- */  /* deep red */
/* ---}				--- */

/* --- Header Banner --- */
.irgf-header {
    position: relative;
    min-height: 100px;					/* allow room for larger logo changed from 160 to 180 */
    height: auto;					/* allows expansion */
    background-image: url("../img/mmel-banner1.png");
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;				/* ??? check this ??? */
    justify-content: flex-end;				/* aligns tagline at bottom */
    padding: 8px 8px 8px 8px;
}

.irgf-header-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

/* new section added for mobile responsiveness */
@media (max-width: 600px) {
    .irgf-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 16px;
    }

    .irgf-logo-block {
        margin-bottom: auto;				/* changed from 12px to 'auto' to remove position conflict */
    }

    .irgf-header-text h1 {
        font-size: 18px;
    }

    .irgf-header-text p {
        font-size: 14px;
    }
}

@media (max-width: 520px) {
    .irgf-logo-title {
        opacity: 0;
        transition: opacity 0.25s ease;
        pointer-events: none;
    }
}


/* --- Logo Block --- */
.irgf-logo-block {

    top: 0px;
    left: 0px;
    display: flex;
    flex-direction: row;				/* stack vertically */
    align-items: centre;				/* left-align text under logo */
    align-text: left;
    gap: 12px;						/* smaller gap for vertical layout reduced from 12px */
    position: relative;
    z-index: 2;
    margin-bottom: auto;				/* pushes logo to top */
}

.irgf-logo-img {
    height: clamp(72px, 10vw, 110px);   		/* responsive + bigger */
}

.irgf-logo-title {
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 1px;
}

.irgf-logo-subtitle {
    font-size: 12px;
    opacity: 0.8;
}

/* --- Header Text --- */
.irgf-header-text {
    position: relative;
    margin-top: 12px;		/* was 24px */
    z-index: 2;
}

.irgf-header-text h1 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

.irgf-header-text p {
    margin: 4px 0 0;
    font-size: 14px;
    opacity: 0.85;
}

.irgf-nav a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 15px;
    opacity: 0.85;
    display: inline-block;
    padding: 4px 0;
}

@media (max-width: 700px) {				/* stack logo + title only at small width */
    .irgf-logo-block {
        flex-direction: column;				/* stack vertically */
        align-items: flex-start;			/* left-align */
        align-text: left;				/* left-align text */
        gap: 2px;					/* tighter spacing */
    }

     .irgf-header-text {
        margin-top: 28px;   /* larger separation from Marmel block */
    }
}

/* Hero adjustments for main page */

/* L3 – Greyscale blurred background */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 280px;
    padding: 4px 20px 40px 20px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    color: #fff;

}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;

    /* Background image goes HERE */
    background-image: url("../img/irgf-banner.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* Greyscale + blur only on background */
    filter: grayscale(25%) blur(2px) brightness(2.3);
    opacity: 0.75;

    z-index: 0; /* IMPORTANT: behind everything */
}


/* L2 – Grey washout (background only) */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.18);
    z-index: 1; /* stays behind foreground */
    filter: none;
}

/* L1 – Full-colour main image */
.hero-image {
    position: relative;
    width: 80%;						/* scales with screen */					
    max-width: 1400px;					/* prevents it getting absurdly wide */
    height: 350px;					/* was 280px.  changed to auto to keep aspect ratio */
    margin: 20px auto 0 auto;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 2;
    filter: none; 					/* cancels any inherited filters */
    transition: opacity 2s ease-in-out;   		/* 2 seconds fade */
    opacity: 1;
}

/* L1 – Title/subtitle */
.hero-content {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    z-index: 2;
}

/* L0 – Credit text */
.hero-credit {
    position: absolute;
    bottom: -4px;
    right: 16px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.85);
    z-index: 3;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
    pointer-events: none;
}


@keyframes fadeIn {
    to { opacity: 1; }
}


/* Global hyperlink colour for dark theme */
a {
    color: #0056b3;        /* accessible blue */
    text-decoration: none;
}

a:hover {
    color: #003f7f;
    text-decoration: underline;
}


.irgf-twisty a {
    color: #5bb0ff;
}

.irgf-twisty a:hover {
    color: #9cd0ff;
}


/* --- Form Labels (Look & Feel) --- */
.irgf-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.irgf-form label {
font-weight: 600;
}

.irgf-form input[type="text"],
.irgf-form input[type="email"],
.irgf-form input[type="tel"],
.irgf-form select,
.irgf-form textarea {
  padding: 8px 10px;
  border-radius: 4px;
  border: 1px solid #ccc;
  background: #ffffff;
  color: #222;
}

.irgf-form textarea {
  resize: vertical;
}




/* --- Navigation Spacing Fix --- */
.irgf-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #6A3F1F;        		/* or #222 or sandstone variant */
    border-bottom: 2px solid #B8743A;		/* copper accent */
    padding: 8px 0;				/* optional polish */
    margin-bottom: 0;
}

.irgf-nav ul {
    list-style: none;
    display: flex;
    gap: 24px;        /* main spacing between items */
    margin: 0;
    padding: 0;
}

.irgf-nav ul ul {
    	display: block !important;	/* not a flex item */
	position: absolute !important;	/* remove from flex flow */
	flex: none !important;		/* prevent flex inheritance */
}

/* Force spacing between menu items */
.irgf-nav ul > li {
    margin: 0 14px;
}


/* Ensure links align neatly */
.irgf-nav a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 15px;
    opacity: 0.85;
    display: inline-block;
    padding: 4px 0;
}



/* --- Dropdown Button --- */
.dropbtn {
    cursor: pointer;
}

/* --- Dropdown Container --- */
.dropdown {
    position: relative;
    display: inline-block;   /* prevents parent <li> from expanding */
}

/* --- Dropdown Menu (hidden until hover) --- */
.dropdown-content {
    
    display: none;            /* hidden by default */
    position: absolute;       /* removes from horizontal flow */
    top: 100%;                /* places submenu BELOW Instruments */
    left: 0;                  /* aligns left edge */
    margin-top: 6px;          /* prevents hover overlap */
    background: #2c2c2c;
    min-width: 180px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    padding: 10px 0;
    z-index: 10;
    flex-direction: column;   /* vertical list */
    width: auto;              /* prevents horizontal stretching */
}


.dropdown-content li {
    list-style: none;
}

/* --- Main Content --- */
.irgf-main {
    padding: 40px 20px;
}

.irgf-section {
    margin-bottom: 40px;
}

.irgf-section-subtitle {
    opacity: 0.7;
    margin-bottom: 20px;
}

.irgf-card-link {
    text-decoration: none;
    color: inherit;
}

/* Standardised buttons and variants */
.irgf-button {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 32px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    letter-spacing: 0.3px;
}

.irgf-button-primary {
    background: #B8743A;
    color: #fff;
}

.irgf-button-primary:hover {
    background: #C98245;
    box-shadow: 0 4px 10px rgba(184,116,58,0.35);
}

/* secondary button for neutral actions - ie download, view */
.irgf-button-secondary {
    background: #333;
    color: #e0e0e0;
}

.irgf-button-secondary:hover {
    background: #444;
    box-shadow: 0 4px 10px rgba(0,0,0,0.35);
}

/* Ghost button variant 3 - subtle actions or tertiary links */
.irgf-button-ghost {
    background: transparent;
    border: 2px solid #c47a3a;
    color: #c47a3a;
}

.irgf-card {
    border: 2px solid rgba(184, 116, 58, 0.35);
    border-radius: 12px;
    transition: all 0.25s ease;
}

.irgf-card:hover {
    border-color: rgba(184, 116, 58, 0.65);
    box-shadow: 0 0 12px rgba(184, 116, 58, 0.35);
    transform: translateY(-2px);
}

.irgf-button-ghost:hover {
    background: #c47a3a;
    color: #fff;
    box-shadow: 0 4px 10px rgba(196,122,58,0.35);
}

/* full width buttons - Request form */
.irgf-button-full {
    width: 100%;
    display: block;
}
.irgf-button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;              /* spacing between buttons */
    margin: 20px 0;         /* spacing above/below the row */
}

.irgf-button-row .irgf-button {
    flex: 1 1 240px;        /* minimum width before wrapping */
    text-align: center;
}

.irgf-divider {
    width: 100%;
    height: 1px;
    background: #ddd;          /* not sandstone - changed for lighter coloured website*/         
    margin: 24px 0;            /* spacing above/below */
    border: none;
}


/* Standardised card container */
.instrument-card {
    width: 340px;              /* consistent card width */
    min-height: 480px;         /* ensures equal height */
    padding: 20px;
    border-radius: 12px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.instrument-card {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Image container */
.instrument-image {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

/* Standardised instrument images */
.instrument-image img {
    width: 90%;                /* scales your 900px images proportionally */
    max-width: 300px;          /* prevents overflow */
    height: auto;              /* maintains aspect ratio */
    object-fit: contain;       /* prevents distortion */
}

.shared-card-img {
    width: 100%;
    height: 180px;              /* consistent height */
    object-fit: contain;          /* crops to fit nicely */
    border-radius: 8px 8px 0 0; /* optional */
    display: block;
}


/* --- Pill --- */
.irgf-pill {
    display: inline-block;
    padding: 8px 16px;
    background: #333;
    border-radius: 20px;
    font-size: 14px;
    opacity: 0.9;
}

/* --- Grid --- */
.irgf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.irgf-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    color: #222;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}


.irgf-card-label {
    font-size: 14px;
    font-weight: bold;
    color: #c47a3a;
}

.irgf-card-title {
    font-size: 18px;
    margin-top: 6px;
}

.irgf-card-desc {
    margin-top: 10px;
    opacity: 0.8;
}

/* --- IRGF Twisties --- */
.irgf-twisty {
    background: #ffffff;		/* added for light background */
    border: 1px solid #ddd;		/* added for light background */
    color: #222;			/* added for light background */
    border-left: 0;
    border-radius: 8px;
    margin-bottom: 20px;
}

.irgf-twisty-icon {
    width: 32px;
    height: 32px;
    background-image: url("../img/Alert-warning.png");
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
    margin-right: 12px;
    vertical-align: middle;
}
/* Prevent transform inheritance from summary */
summary {
    transform: none !important;
}

/* --- Neutral Question Icon (for twisties) --- */
.irgf-icon-question {
    width: 20px;
    height: 20px;
    display: inline-block;
    background-image: url('../img/icon-question.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

    /* Neutral metallic tone */
    opacity: 0.85;

    /* Align with twisty text */
    margin-right: 8px;
    flex-shrink: 0;
}

.irgf-twisty-icon-positive {
    width: 32px;
    height: 32px;
    background-image: url("../img/Ok-tick.png"); /* adjust filename */
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
    margin-right: 12px;
    vertical-align: middle;
}
/* Prevent transform inheritance from summary */
summary {
    transform: none !important;
}

/* Only affect twisty summaries */
.irgf-twisty summary {
    cursor: pointer;
    padding: 14px 18px;
    font-size: 18px;
    font-weight: 600;
    color: #222;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.irgf-twisty summary::-webkit-details-marker {
    display: none;
}

.irgf-twisty summary::after {
    content: "▸";
    margin-left: auto;
    transition: transform 0.2s ease;
    color: #c47a3a;
}

.irgf-twisty[open] summary::after {
    transform: rotate(90deg);
}

.irgf-twisty > *:not(summary) {
    padding: 12px 24px 20px 28px;
    font-size: 16px;
    opacity: 0.85;
}

/* Alert stripe */
.irgf-twisty-alert {
    border-left: 4px solid #c47a3a; /* thicker sandstone stripe */
}

/* Positive stripe */
.irgf-twisty-positive {
    border-left: 4px solid #4caf50;
}

.irgf-twisty:first-of-type {
    margin-top: 20px;     /* add breathing room below header */
    border-left: 3px solid #c47a3a;
}

.irgf-twisty:first-of-type > *:not(summary) {
    padding-left: 48px;   /* pushes content right */
}

.irgf-twisty summary::-webkit-details-marker {
    display: none; /* hide default arrow */
}

/* Normalise all content inside twisties */
.irgf-twisty p,
.irgf-twisty ul,
.irgf-twisty li {
    margin: 0 0 6px 0;     /* consistent spacing */
    padding: 0;             /* remove browser defaults */
}

.irgf-twisty[open] summary::after {
    transform: rotate(90deg);
}
.irgf-twisty[open] {
    padding-top: 6px;   /* prevents margin collapse */
}

.irgf-twisty > *:not(summary) {
    padding: 8px 18px 12px 18px; /* more breathing room */
    font-size: 16px;
    opacity: 0.85;
}

.irgf-twisty ul {
    padding-left: 28px;   /* matches your inner padding */
    margin-left: 0;       /* prevents double indentation */
}

/* --- IRGF Twisty Types --- */



details.irgf-twisty-positive {
    border-left: 4px solid #4caf50 !important;
}

details.irgf-twisty-alert {
    border-left: 4px solid #B8743A;
}

details.irgf-twisty:not(.irgf-twisty-alert):not(.irgf-twisty-positive) {
    border-left: 0;
}

.pcg-card p {
    color: #222;
    opacity: 1;
}

.twisty.positive .twisty-content {
    display: none;
}

.twisty.positive.open .twisty-content {
    display: block;
}




/* --- Marmel PCG Block for 'about Marmel' page. --- */
.marmel-pcg-block {
  margin: 2.5rem 0;
}

.marmel-pcg-block h2 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.marmel-pcg-block p {
  max-width: 48rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.marmel-pcg-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

.marmel-pcg-image img {
  max-width: 360px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.marmel-pcg-actions {
  flex: 1 1 200px;
}

.marmel-pcg-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background-color: #0066aa; /* adjust to match your palette */
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}

.marmel-pcg-button:hover,
.marmel-pcg-button:focus {
  background-color: #004f82;
}

.pcg-card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
}

.pcg-card {
    flex: 1 1 280px;
    padding: 1rem;

    /* unified background */
    background: #fff;

    /* unified border + radius */
    border: 2px solid rgba(184, 116, 58, 0.35);
    border-radius: 12px;

    /* unified shadow */
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);

    /* interaction */
    transition: all 0.25s ease;
    position: relative;
    z-index: 0;
}

.pcg-card:hover, .pcg-card:hover .twisty {
    border-color: rgba(184, 116, 58, 0.65);
    box-shadow: 0 0 12px rgba(184, 116, 58, 0.35);
    background: rgba(255, 255, 255, 0.95); !important
    transform: translateY(-2px);
    z-index: 1;
}



.pcg-card img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.pcg-card h3 {
  	color: #222;
	opacity: 0.95;
	margin: 0.5rem 0;
}

.pcg-button {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  background: #0066aa;
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
}

/* Container */
.irgf-cycle {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
  align-items: flex-start;
}

/* Items */
.irgf-cycle-item {
  text-align: center;
  transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
  position: relative;
  text-decoration: none;
  color: inherit;
}

/* Images */
.irgf-cycle-item img {
  width: 180px;
  height: auto;
  display: block;
  margin: 0 auto 0.5rem auto;
}

/* Primary instrument */
.irgf-cycle-item.primary {
  opacity: 1;
  filter: none;
  transform: scale(1.05);
  pointer-events: none; /* prevents accidental clicks */
}

/* Outer wrapper (tooltip anchor) */
.irgf-cycle-wrap {
  position: relative;
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Tooltip */
.irgf-cycle-wrap[data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: -2.2rem;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  font-size: 0.85rem;
  white-space: nowrap;
  z-index: 50;
  opacity: 1;          /* full strength */
  filter: none;        /* no masking */
}

/* Inner item (masked or primary) */
.irgf-cycle-item {
  text-align: center;
  transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}

/* Primary instrument */
.irgf-cycle-item.primary {
  opacity: 1;
  filter: none;
  transform: scale(1.05);
  pointer-events: none;
}

/* Faded instruments */
.irgf-cycle-item.faded {
  opacity: 0.35;
  filter: grayscale(60%) blur(1px);
}

/* Mobile behaviour */
@media (max-width: 768px) {
  .irgf-cycle {
    display: block;
  }

  .irgf-cycle-item {
    margin-bottom: 2rem;
  }

  .irgf-cycle-item img {
    width: 100%;
    max-width: 260px;
  }

  .irgf-cycle-item.primary {
    transform: none;
  }
}

/* Hamburger icon (hidden on desktop) */
.irgf-hamburger {
    display: none;
    font-size: 28px;
    cursor: pointer;
    padding: 12px 20px;
    background: #6A3F1F; /* your copper tone */
    color: #fff;
}

/* Mobile breakpoint */
@media (max-width: 820px) {

    /* Show hamburger */
    .irgf-hamburger {
        display: block;
    }

    /* Hide nav by default */
    .irgf-nav {
        display: none;
        flex-direction: column;
        background: #6A3F1F; /* copper */
        padding: 10px 0;
    }

    /* Show nav when toggled */
    .irgf-nav.open {
        display: flex;
    }

    /* Make dropdowns behave vertically */
    .irgf-nav ul {
        flex-direction: column;
        gap: 12px;
    }

    .irgf-nav ul ul {
        position: static !important;
        background: #8C5A2F; /* slightly lighter copper */
        padding: 10px;
        border-radius: 6px;
    }
}




/* --- Footer Bar --- */
.irgf-footer {
    background: #1a1a1a; /* charcoal, matches nav bar */
    border-top: 2px solid #6A3F1F; /* deep copper accent */
    padding: 20px 0;
    text-align: center;
    color: #ffffff;
    font-size: 14px;
}

/* Remove excess spacing between footer lines */
.irgf-footer p {
    margin: 4px 0; /* reduced from browser default ~16px */
}

/* Copyright line styling */
.irgf-footer-copy {
    color: #FFFFFF; /* deep copper */
    font-weight: 600; /* subtle emphasis */
    letter-spacing: 0.5px; /* slight refinement */
}

/* Footer links */
.irgf-footer a {
    color: #6A3F1F; /* slightly lighter copper */
    text-decoration: none;
    padding: 0 6px;
}

.irgf-footer a:hover {
    color: #F4D38A; /* gold highlight */
}

/* Fix visited link colour */
.irgf-footer a:visited {
    color: #CFA24F; /* same as normal link */
}

.marmel-logo-img {
    height: clamp(100px, 22vh, 240px);   /* larger, responsive, fills more banner height */
    object-fit: contain;
    display: block;
}

/* --- Optional: adjust logo text below --- */
.marmel-logo-title {
    font-size: clamp(20px, 1.8vw, 32px);
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* --- Header container alignment --- */
.marmel-logo-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 2vh;
    padding-bottom: 2vh;
}



.dropdown .dropdown-content {
    display: none !important;
}


