/* -------------------------------------------------------------------------- */
/* styles.css : rebalanced tokens, responsive clamps, and HSV color notations */
/* -------------------------------------------------------------------------- */

/* Hide blog everywhere 
.navbar-nav { display: none; } */
/* Show navbar ONLY on the home page 
body.home .navbar-nav 
/* hide blog */
.navbar-nav .dropdown { 
  display: none; 
} 


:root {
  /* Brand palette (hex/rgb fallback) */
  --primary: #1a8089; /* rgb(26,128,137)          - TEAL */
  --primary-strong: #1d8c96; /* rgb(29,140,150) - TEAL a11y */
  --secondary: #146771; /* rgb(20,103,113)       - FATHOM */
  --secondary-dark: #0a3438; /* rgb(10,52,56)    - FATHOM DARK */
  --secondary-darkest: #062023; /* rgb(6,32,35)  - FATHOM DARKEST */
  --brand-dark-1:  #2a8f98; /* rgb(42,143,152) */
  --brand-dark-2:  #24818a; /* rgb(36,129,138) */
  --brand-dark-3:  #1c7078; /* rgb(28,112,120) */
  --brand-dark-4: #155f66; /* rgb(21,95,102) */
  --accent-contrast: #ffffff; /* rgb(255,255,255) */
  --highlight:  #f4b617; /* rgb(244,182,23)        - GOLD */
  --highlight-pale: rgba(255,195,41,0.5); /* #ffc329 */
  --highlight-soft: #ff6200; /* rgb(255,98,0) */
  --sand:  #df7f68; /* rgb(223,127,104)            - SANSDTONE*/
  --stone: #adad9d; /* rgb(173,173,157)            - STONE */
  --stone-pale: #e6e6e4; /* rgb(230,230,228)       - PALE STONE */
  --neutral-100:  #f8fafc; /* rgb(248,250,252) */
  --neutral-200:  #f8f9fa; /* rgb(248,249,250) */
  --neutral-300:  #dee2e6; /* rgb(222,226,230) */
  --neutral-400:  #e5e7eb; /* rgb(229,231,235) */
  --neutral-500:  #ced4da; /* rgb(206,212,218) */
  --neutral-600:  #d1d5db; /* rgb(209,213,219) */
  --neutral-700:  #6b7280; /* rgb(107,114,128) */
  --neutral-750:  #6c757d; /* rgb(108,117,125) */
  --neutral-800:  #404040; /* rgb(64,64,64) */
  --neutral-900:  #333333; /* rgb(51,51,51) */
  --neutral-1000: #212121; /* rgb(33,33,33) */
  --danger: #e72b43; /* rgb(231,43,67) */
  --danger-soft: #f7d4d7; /* rgb(247,212,215) */
  --success: #189251; /* rgb(24,146,81) */
  --info: #006eff; /* rgb(0,110,255) */

  /* Typography scale */
  --font-xs: clamp(0.7rem, 0.7rem + 0.2vw, 0.8rem);
  --font-sm: clamp(0.8rem, 0.75rem + 0.2vw, 0.9rem);
  --font-base: clamp(0.925rem, 0.85rem + 0.2vw, 1rem);
  --font-lg: clamp(1.125rem, 0.9rem + 0.7vw, 1.5rem);
  --font-xl: clamp(1.5rem, 1.1rem + 1.2vw, 1.75rem);
  --font-2xl: clamp(2rem, 1.15rem + 2vw, 2rem);
  --font-3xl: clamp(2.5rem, 1.5rem + 3vw, 3.5rem);

  /* Spacing scale */
  --space-xs: clamp(0.35rem, 0.3rem + 0.2vw, 0.5rem);
  --space-sm: clamp(0.65rem, 0.6rem + 0.2vw, 0.9rem);
  --space-md: clamp(1rem, 0.8rem + 0.7vw, 1.5rem);
  --space-lg: clamp(1.5rem, 1rem + 1vw, 2.5rem);
  --space-xl: clamp(2.5rem, 1.5rem + 3vw, 4.75rem);
  --space-2xl: clamp(3.5rem, 2rem + 4vw, 6rem);

  /* Radii & shadows */
  --radius-pill: 999px;
  --radius-card: 0.75rem;
 --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-strong: 0 18px 40px rgba(0, 0, 0, 0.2);

  scroll-behavior: smooth;
}
/* Modern browser overrides */
@supports (color: oklch(50% 0.1 200)) {
:root {
    --primary: oklch(54.932% 0.0874 204.4deg); /* #1a8089 */
    --primary-strong: oklch(58.602% 0.0936 204.5deg); /* #1d8c96 */
    --secondary: oklch(47.312% 0.0753 206.4deg); /* #146771 */
    --secondary-dark: oklch(29.841% 0.0448 205.9deg); /* #0a3438 */
    --secondary-darkest: oklch(22.450% 0.0317 205.3deg); /* #062023 */
    --brand-dark-1: oklch(59.753% 0.0902 204.0deg); /* #2a8f98  */
    --brand-dark-2: oklch(55.547% 0.0845 204.0deg); /* #24818a */
    --brand-dark-3: oklch(50.127% 0.0770 204.1deg); /* #1c7078 */
    --brand-dark-4: oklch(44.521% 0.0691 204.2deg); /* #155f66 */
    --accent-contrast: oklch(100.000% 0.0000 0.0deg); /* #ffffff */
    --highlight: oklch(80.230% 0.1545 84.9deg); /* #f4b617  */
    --highlight-pale: oklch(83.480% 0.1670 84.9deg / 0.500); /* #ffc329 */
    --highlight-soft: oklch(73.025% 0.1943 52.8deg); /* rgb(255,98,0) */
    --sand: oklch(69.207% 0.1150 34.8deg); /* #df7f68 */
    --stone: oklch(75.069% 0.0151 112.8deg); /* #adad9d */
    --stone-pale: oklch(90.186% 0.0030 86.3deg); /* #e6e6e4  */
    --neutral-100: oklch(98.574% 0.0035 247.9deg); /* #f8fafc */
    --neutral-200: oklch(98.646% 0.0012 247.9deg); /* #f8f9fa */
    --neutral-300: oklch(91.240% 0.0068 247.9deg); /* #dee2e6 */
    --neutral-400: oklch(93.145% 0.0046 264.1deg); /* #e5e7eb */
    --neutral-500: oklch(88.285% 0.0065 247.9deg); /* #ced4da  */
    --neutral-600: oklch(88.419% 0.0050 264.1deg); /* #d1d5db  */
    --neutral-700: oklch(56.442% 0.0303 264.1deg); /* #6b7280  */
    --neutral-750: oklch(58.416% 0.0197 247.9deg); /* #6c757d */
    --neutral-800: oklch(43.420% 0.0000 0.0deg); /* #404040  */
    --neutral-900: oklch(36.959% 0.0000 0.0deg); /* #333333 */
    --neutral-1000: oklch(26.965% 0.0000 0.0deg); /* #212121 */
    --danger: oklch(61.297% 0.2072 21.3deg); /* #e72b43 */
    --danger-soft: oklch(91.869% 0.0377 11.7deg); /* #f7d4d7 */
    --success: oklch(58.136% 0.1578 152.6deg); /* #189251 */
    --info: oklch(62.520% 0.2702 261.2deg); /* #006eff */
  }
}

/* -------------------------------------------------------------------------- */
/* Base + Typography                                                           */
/* -------------------------------------------------------------------------- */

* {
  box-sizing: border-box;
}

html {
  font-size: clamp(15px, 14px + 0.4vw, 16px);
  scroll-behavior: inherit;
  scroll-padding-top: 150px;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Poppins, "Helvetica Neue", Arial;
  font-size: var(--font-base);
  line-height: 1.4;
  background: var(--neutral-100);
  color: var(--neutral-900);
  margin: 0;
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: Poppins, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  color: var(--neutral-1000);
  line-height: 1.15;
  margin-bottom: var(--space-sm);
}

h1 { font-size: clamp(1.72rem, 1.5rem + 1vw, 2.5rem); }
h2 { font-size: clamp(1.75rem, 1.65rem + 0.5vw, 2rem); }
h3 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem); }
h4 { font-size: clamp(1.3rem, 1rem + 0.8vw, 1.8rem); }
h5 { font-size: clamp(1.1rem, 0.95rem + 0.4vw, 1.35rem); }
h6 { font-size: clamp(0.9rem, 0.85rem + 0.2vw, 1rem); letter-spacing: 0rem; text-transform: uppercase; }


.small, small {
    font-size: .875rem;
}

.card-body h2 { font-size: clamp(1.5rem, 1.4rem + 0.5vw, 1.75rem); } 

.display-6 { font-weight: 200; }

strong, b, .fw-bold {
   font-weight: 600;
}
footer ul li {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline-start: 0.5em;
  font-weight: 300;
  line-height: 1.25rem;
}
footer ul li a {
  padding: 0.25rem;
  flex: 1 1 auto;
}

p {
  margin-bottom: var(--space-sm);
}

.lead {
  font-family: Poppins, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.05rem, 0.85rem + 0.5vw, 1.125rem);
  line-height: 1.4;
  color: var(--neutral-800);
  font-weight: 200;
}

blockquote {
  margin: var(--space-lg) 0;
  padding: var(--space-md) var(--space-lg);
  border-left: 4px solid var(--highlight);
  background: color-mix(in srgb, var(--highlight) 6%, var(--accent-contrast));
}

blockquote p {
  font-family: Poppins, "Helvetica Neue", Arial;
  font-size: var(--font-lg);
  color: var(--neutral-900);
}

/* -------------------------------------------------------------------------- */
/* Link + Text helpers                                                         */
/* -------------------------------------------------------------------------- */

a {
  color: var(--primary);
  text-decoration: none;
  position: relative;
}

a::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background-color: var(--accent-contrast);
  opacity: 0.5;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
/* Hover underline content, footer, some menu links */
a:hover::before,
a:focus-visible::before {
  transform: scaleX(1);
}
/* No hover line on logo, dropdon, mobile menu, buttons: simplify D.O. */
section .button:hover::before,
section .button:focus-visible::before, 
.navbar-nav a::before,
.navbar-nav a:focus-visible::before, 
.dropdown a::before,
.dropdown a:focus-visible::before,
.noline:hover::before,
.noline:focus-visible::before,
.menu-soc > a:hover::before {
    background-color: transparent;
}


.link-light a {
  color: var(--accent-contrast);
}

.bg-stone a {color: var(--neutral-800); }

.text-sand { color: var(--sand) !important; }
.text-darker { color: var(--neutral-1000) !important; }
.text-highlight { color: var(--highlight) !important; }
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-white { color: var(--accent-contrast) !important; }
.text-light { color: #FEFEFE !important; }

.text-white h1,
.text-white h2,
.text-white h3,
.text-white h4,
.text-white h5,
.text-white h6,
.text-white .lead,
.text-light h1,
.text-light h2,
.text-light h3,
.text-light h4,
.text-light h5,
.text-light h6,
.text-light .lead {
  color: inherit;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: calc(var(--space-xs) * 0.8) var(--space-sm);
  border-radius: var(--radius-pill);
  font-size: var(--font-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  background: color-mix(in srgb, var(--accent-contrast) 12%, transparent);
}



/* =========================
   Shared: Top menus + socials
========================= */

#top-menu,
#top-menu-mob {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system,
                 "Segoe UI", Poppins, "Helvetica Neue", Arial, sans-serif;
}

/* Desktop top menu sets the theme color */
#top-menu {
    color: var(--secondary);
}

/* List item layout + transition */
#top-menu li,
#top-menu-mob li,
.header-social-icons li {
    font-size: 15px;
    transition: font-size 0.2s ease-in-out;
    display: flex;
    align-items: center;
}
/* Links inherit color and remove underline */
#top-menu a,
#top-menu-mob a,
.header-social-icons a {
    color: inherit;
    text-decoration: none;
}
/* Bootstrap Icons */
#top-menu .icon,
#top-menu-mob .icon,
.header-social-icons .icon {
    font-size: 20px;
    line-height: 1;
    vertical-align: middle;
}
/* Hover */
#top-menu li:hover,
.header-social-icons li:hover {
    opacity: 0.8;
}
#top-menu-mob li:hover {
    opacity: 0.85;
}


.dropdown-item:focus, .dropdown-item:hover { 
  color: var(--highlight); 
  background: var(--secondary-darkest)
}
.dropdown-item.active, .dropdown-item:active {
  background: var(--secondary-dark);
  text-decoration: none;
}




/* -------------------------------------------------------------------------- */
/* Layout utilities                                                            */
/* -------------------------------------------------------------------------- */

.section {
  padding: var(--space-xl) var(--space-lg);
}

.section-alt {
  background: var(--neutral-100);
}

section {
  scroll-margin-top: clamp(5rem, 4rem + 2vw, 7rem);
}

.scroll-section:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 3px var(--highlight);
  border-radius: 0;
}

.grain {
  position: relative;
  overflow: hidden;
}

.grain::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.45;
  mix-blend-mode: multiply;
}

.main-content .section img {
  max-height: 320px;
}

.img-fluid {
  border-radius: 0;
  width: 100%;
  height: auto;
}

.img-credits {
  font-size: var(--font-xs);
  color: var(--neutral-700);
}

.img-credits a {
  color: var(--neutral-1000);
}

.img-hatch {
  position: relative;
  display: inline-block;
}

.img-hatch::after {
  display: none;
}

.img-left::after {
  right: calc(100% - 10px);
}

.img-hatch-int::after {
  right: 10px;
}


/* -------------------------------------------------------------------------- */
/* Color utility classes                                                       */
/* -------------------------------------------------------------------------- */

.bg-primary { background-color: var(--primary) !important; }
.bg-secondary { background-color: var(--secondary) !important; }
.bg-secondary-mute { background-color: hsla(186, 25%, 55%, 1) !important; /* #6FA2A8 */ }
.bg-secondary-fade { background-color: hsla(187, 29%, 88%, 1) !important; /* #D7E7E9 */ }
.bg-secondary-mute { background-color: oklch(68.189% 0.0553 204.7deg) !important; }
.bg-secondary-fade { background-color: oklch(91.747% 0.0170 206.3deg) !important; }
.bg-secondary-dark { background-color: var(--secondary-dark) !important; }
.bg-secondary-darkest { background-color: var(--secondary-darkest) !important; }
.bg-stone { background-color: var(--stone) !important; }
.bg-stone-pale { background-color: var(--stone-pale) !important; }
.bg-sand { background-color: var(--sand) !important; }
.bg-highlight { background-color: var(--highlight) !important; }
.bg-opacity { background-color: rgba(0,0,0,0.5) !important; }

.section-alt .list-group-item,
.bg-secondary .list-group-item,
.bg-primary .list-group-item,
.bg-sand .list-group-item,
.bg-stone .list-group-item {
  background: none;
}

.bg-primary .list-group-item,
.bg-secondary .list-group-item,
.bg-sand .list-group-item {
  color: var(--accent-contrast);
}

/* -------------------------------------------------------------------------- */
/* Navigation + header                                                         */
/* -------------------------------------------------------------------------- */

.navbar-brand {
  font-weight: 700;
  letter-spacing: 0.2px;
  font-size: clamp(1.15rem, 1rem + 0.4vw, 1.5rem);
}

.logo-7d img {
  height: clamp(50px, 6vw, 72px);
  max-height: clamp(60px, 7vw, 80px);
}

.strap-spc {
  font-weight: 600;
  font-size: var(--font-xs);
  letter-spacing: 0.1px;
  line-height: 1.25;
}

.spc-text {
  letter-spacing: 0.4px;
}

#main-nav {
  scroll-margin-top: clamp(6rem, 4rem + 3vw, 8rem);
}

.img-banner .bg-opacity {
  backdrop-filter: blur(3px) brightness(90%) saturate(140%);
  overflow: hidden;
}
.img-banner .bg-opacity:hover,
.img-banner .bg-opacity:focus {
  backdrop-filter: blur(5px);
}

.navbar-nav {
  padding: 0.5rem 0 0;
  background: var(--secondary);
  border-radius: 2rem;
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.96);
  font-size: var(--font-sm) var(--font-md);
  padding: var(--space-xs) var(--space-sm);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus-visible {
  color: var(--highlight);
}


.dropdown-toggle {text-decoration: none;}

.dropdown-menu { 
	background: var(--secondary-dark); 
	font-size: 0.875rem;
  border-color: var(--secondary-dark);
  color: var(--neutral-100); 
}
.dropdown-item { color: var(--neutral-100); }



#article-nav {
  position: relative;
  z-index: 1;
}

.nav-pills .nav-item {
  font-size: var(--font-sm);
  margin-left: 0;
  padding: 0;
  margin: 0 var(--space-sm) 0 0;
}

.nav-pills .nav-link {
  text-decoration: none;
  color: inherit;
  position: relative;
  background: rgba(255,255,255,0.2);
  filter: blur(0.1);
  transition: transform 0.2s ease, box-shadow 0.25s ease, background-image 0.25s ease;
  border-radius: var(--radius-card);
  padding: 0.66rem var(--space-xs);
}

.nav-pills .nav-link:hover,
.nav-pills .nav-link:focus-visible {
  color: inherit;
  text-decoration: none;
  transform: none;
  box-shadow: 0 6px 18px rgba(192, 188, 180, 0.25);
  background: rgba(255,255,255,0.3);
  filter: blur(0.3);
  background: color-mix(in srgb, var(--primary) 50%, transparent);
  /* background-image: linear-gradient(135deg, hsla(43, 91%, 52%, 0.15), hsla(216, 98%, 52%, 0)); */
}

.nav-pills .nav-link::before {
  display: none;
}
.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
  color: var(--neutral-100);
  background: color-mix(in srgb, var(--primary) 75%, transparent);
}

article > header .nav-item {
  background-color: transparent;
}

article > header .nav-item a {
  background-color: var(--primary) !important;
  color: var(--accent-contrast);
  border-radius: var(--radius-pill);
  padding: var(--space-xs) var(--space-sm);
}

article >  header .nav-item a:hover,
article > header .nav-item a:focus-visible {
  background-color: var(--secondary) !important;
}

.menu-soc ul,
.header-content-wrapper ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.header-content-wrapper ul li {
  margin: 0 var(--space-xs);
}

.menu-soc a,
footer a {
  position: relative;
}

.menu-soc a:hover::before,
footer a:hover::before {
  transform: scaleX(1);
}

footer a.noline:hover::before {
  transform: scaleX(0);
}

.logo-spc img {
  max-height: clamp(45px, 5vw, 54px);
}


footer > .container-fluid {
  background: radial-gradient(1200px 800px at 82% 12%, rgba(26,128,137,.30), transparent 58%),
            radial-gradient(900px 700px at 14% 82%, rgba(244,182,23,.12), transparent 55%),
            radial-gradient(1200px 900px at 40% 40%, rgba(175,175,158,.10), transparent 62%),
            var(--secondary-darkest) !important;
}
/* -------------------------------------------------------------------------- */
/* Buttons + icons                                                             */
/* -------------------------------------------------------------------------- */


btn,
button {
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.btn::before,
button::before {
  display: none;
}

.btn:hover,
.btn:focus-visible,
button:hover,
button:focus-visible {
  box-shadow: 0 10px 26px rgba(29, 140, 150, 0.25);
}


.btn-primary {
  background-color: var(--primary) !important;
  color: var(--neutral-100) !important;
  border: none;
  padding: var(--space-sm) var(--space-md);
  font-size: var(--font-md);
  border-radius: var(--radius-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-weight: 500;
}
.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: var(--shadow-soft);
}

.btn-secondary {
  background-color: var(--secondary) !important;
  color: var(--neutral-100) !important;
  border: none;
  padding: var(--space-sm) var(--space-md);
  font-size: var(--font-md);
  border-radius: var(--radius-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-weight: 500;
}
.btn-secondary:hover,
.btn-secondary:focus-visible {
  box-shadow: var(--shadow-soft);
}

.btn-highlight {
  background-color: var(--highlight) !important;
  color: #333333 !important; 
  border: none;
  padding: var(--space-sm) var(--space-md);
  font-size: var(--font-md);
  border-radius: var(--radius-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-weight: 500;
}

.btn-highlight:hover,
.btn-highlight:focus-visible {
  box-shadow: var(--shadow-soft);
}

.btn-outline-dark {
  padding: var(--space-sm) var(--space-md);
  font-size: var(--font-md);
  border-radius: var(--radius-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-weight: 500;
}


.btn-expand:hover,
.btn-expand:focus-visible {
  background: rgba(255, 255, 255, 0.25);
}

.collapse {
  transition: height 0.45s ease;
}

button[aria-expanded="true"] .collapse-icon {
  transform: rotate(180deg);
}

.collapse-icon {
  transition: transform 0.3s ease;
}

.bi {
  width: clamp(1.5rem, 1rem + 1vw, 1.75rem);
  height: clamp(1.5rem, 1rem + 1vw, 1.75rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

section .list-icons .bi {
   padding: 0.35em;
   vertical-align: -0.125em;
   flex-shrink: 0;
   font-size: clamp(0.925rem, 0.85rem + 0.2vw, 1rem);
   line-height: 1;
     border-radius: 0.35em;
}

.bg-white .bi,
.bg-light .bi {
  background-color: #c6f0f0 !important;  /* D.O */
  border-radius: 0.35em;
}
.bg-primary .bi,
.bg-secondary .bi,
.bg-sand .bi,
.bg-stone .bi,
.bg-stone-pale .bi {
  background-color: color-mix(in srgb, var(--neutral-100) 20%, transparent);
  border-radius: 0.35em;
}
.bg-stone-pale .bi {
  background-color: color-mix(in srgb, var(--neutral-1000) 10%, transparent);
  border-radius: 0.35em;
}

button .bi,
.btn .bi {
  width: 1.5em;
  height: 1.5em;
  vertical-align: -0.125em;
  padding: 0.35em;
  margin: 0 0.25em;
}


  /* Bottom bar */
  .mobile-cta {
    background: var(--secondary) !important;
    border-color: color-mix(in srgb, var(--secondary-dark) 45%, white) !important;
  }
  .btn-cta {
    background: color-mix(in srgb, var(--secondary-dark) 25%, var(--secondary)) !important;
    color: #fff !important;
    border: 1px solid color-mix(in srgb, var(--secondary-dark) 55%, white) !important;
    font-size: 0.75rem;
  }
  .btn-cta:hover,
  .btn-cta:focus {
    background: var(--secondary-dark) !important;
    border-color: var(--secondary-dark) !important;
    box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--highlight) 55%, transparent) !important;
  }
  .btn-cta:active {
    transform: translateY(1px);
  }
  .btn-cta[href*="tel:08003213841"] {
    border-color: color-mix(in srgb, var(--highlight) 70%, white) !important;
  }
  .fixed-bottom {
    padding-bottom: calc(.75rem + env(safe-area-inset-bottom)) !important;
  }


/* --------------------  Lists  -----------------------    */

 li {margin-inline-start: 1.125em;}
 
/* Standard style for text lists */

.list-group li {
  
  padding-left: 2.25rem;
  position: relative;
}

.list-unstyled .list-group-item,
.list-unstyled li {
  border-bottom: none;
  background: none;
}

/* Themed bullet lists */
.list-dot .list-group-item {
  padding-left: clamp(2.5rem, 1rem + 3vw, 3rem);
}

.list-dot li::before,
.list-highlight li::before {
  content: "";
  position: absolute;
  left: 1em;
  top: 50%;
  width: 1em;
  height: 1em;
  transform: translateY(-50%);
  background-color: var(--primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='black' d='M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm104.686 175.373l-132.99 133a12 12 0 0 1-17 0l-57.373-57.376a12 12 0 0 1 17-17l48.868 48.87 124.486-124.491a12 12 0 0 1 17 17z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='black' d='M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm104.686 175.373l-132.99 133a12 12 0 0 1-17 0l-57.373-57.376a12 12 0 0 1 17-17l48.868 48.87 124.486-124.491a12 12 0 0 1 17 17z'/%3E%3C/svg%3E") center/contain no-repeat;
}


/* Standard style for Icon lists */
.list-group.icon-list li {
  padding: 0.25rem var(--space-xs) 0.25rem 0;  /* <-- key */
  position: static;    /* <-- key */
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.list-group.icon-list li > i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 1.25rem;   /* fixed icon column */
  flex-shrink: 0;
  line-height: 1;    /*  baseline */
  margin-top: 0.15rem; /* tweak */
  padding: 0.25rem 0.5rem;
  width: 2rem;
  height: 2rem;
}


.list-section .bi {
  width: clamp(1.25rem, 1.33rem + 0.8vw, 1.5rem);
  padding: 0 0.25rem;
}
.list-group-item .bi {
  font-size: clamp(1.15rem, 0.9rem + 0.8vw, 1.35rem);
}


.card-body .horiz .bi {
  margin-right: var(--space-sm);
  display: inline;
}

/* Smaller lists */
.list-squash li {
  padding: calc(var(--space-xs) * 0.8) 0;
}

/* Custom list items */
.list-highlight li::before {
  background-color: var(--highlight);
}
.list-icons-red i {
  color: var(--sand);
}


.section-cta .btn:hover,
.section-cta .btn:focus-visible,
.section-cta button:hover,
.section-cta button:focus-visible {
  box-shadow: 0 12px 30px rgba(244, 181, 21, 0.4), 0 0 18px rgba(244, 181, 21, 0.35);
}
.cta-btn {
  font-size: clamp(1.25rem, 1.05rem + 0.4vw, 1.33rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.5;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background-image: linear-gradient(90deg, var(--highlight), color-mix(in srgb, var(--highlight) 65%, var(--accent-contrast)));
  border-bottom: none;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background-image 0.1s ease;
}

.cta-btn:hover,
.cta-btn:focus-visible {
  border-bottom: none;
  text-decoration: none;
  background-image: linear-gradient(-90deg, var(--highlight), color-mix(in srgb, var(--highlight) 80%, var(--accent-contrast)));
  box-shadow: 0 4px 8px rgba(244, 181, 21, 0.35);
}

.cta-btn-subtext {
  font-size: var(--font-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}


.timeline-nav .btn-outline-light {
   color: var(--text-light);
}
.timeline-nav .btn:hover {
  background: rgba(255,255,255,0.05);
}

/* -------------------------------------------------------------------------- */
/* Hero + carousel                                                             */
/* -------------------------------------------------------------------------- */

.hero-carousel .carousel-item {
  min-height: clamp(320px, 50vh, 540px);
  background-size: cover;
  background-position: center;
  position: relative;
}

.carousel-item::before,
.parallax-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.33);
  z-index: 1;
}
.parallax-section::before {
  background: rgba(0, 0, 0, 0)
}


.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0, 0, 0, 0.05), rgba(0,0,0,0.15), rgba(0,0,0,0.5), rgba(0, 0, 0, 0.65));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--accent-contrast);
  text-align: right;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-height: clamp(320px, 50vh, 540px);
  color: var(--neutral-100);
}
.hero-content h1, .hero-content h2, .hero-content p, .hero-content .lead  {
  color: var(--neutral-100);
}

.hero-caption {
  max-width: min(80%, 960px);
  margin: 0;
}

.hero-caption h1 {
  font-size: var(--font-3xl);
  color: var(--accent-contrast);
}

.carousel .carousel-control-prev,
.carousel .carousel-control-next {
  top: calc(50% - 60px);
  width: 10%;
  z-index: 5;
}

.carousel-control-next-icon,
.carousel-control-prev-icon {
  background-color: rgba(24, 195, 155, 0.5); /* #18c39b */
  border-radius: 30px;
}

.carousel-pause-btn {
  background: rgba(0,0,0,0.45);
  color: var(--accent-contrast);
  border: 1px solid rgba(255, 255, 255, 0.7);
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--font-sm);
  border-radius: 0.4rem;
  transition: all 0.25s ease;
  backdrop-filter: blur(3px);
  z-index: 10;
}

.carousel-pause-btn:hover,
.carousel-pause-btn:focus-visible {
  background: var(--primary-strong);
  border-color: var(--highlight);
}

.carousel-pause-btn.animate__animated {
  --animate-duration: 0.7s;
}


/* -------------------------------------------------------------------------- */
/* Home Blog styles                                                         */
/* -------------------------------------------------------------------------- */
.blog-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 1.5rem 1.75rem -1.25rem rgba(13, 27, 42, 0.45);
}
.blog-card:hover,
.blog-card:focus {
 background: var(--neutral-100);
  box-shadow: 0 0.5rem 1rem -0.75rem rgba(13, 27, 42, 0.55);
}
.ratio-5x2 {
  aspect-ratio: 5 / 2;
}
.blog-card img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  border-radius: 0;
}
.blog-card .badge {
  letter-spacing: 0.04em;
  border-radius: 0;
  font-weight: 100;
}
.blog-card .stretched-link {
  text-decoration: none;
}

.blog-card .cats span:nth-of-type(odd) {
  background: var(--stone);
  color: var(--neutral-1000);
}
.blog-card .cats span:nth-of-type(even) {
  background: var(--secondary);
  color: var(--neutral-100);
}
.post-meta span { color: var(--secondary);}
.post-meta span i { 
  color: var(--neutral-800); 
  width: 1.25rem;
}


/* -------------------------------------------------------------------------- */
/* Tables + data grids                                                         */
/* -------------------------------------------------------------------------- */

.grid-table {
  display: grid;
  grid-template-columns: 1.2fr 2fr 1fr 1.3fr 1.5fr;
  width: 100%;
  border-radius: 0;
  overflow: hidden;
}

.table-drain-2 {
  grid-template-columns: 1.2fr 1.2fr 1.5fr 1.2fr 1.2fr;
}

.header-row,
.data-row {
  display: contents;
}

.grid-table > div > div {
  font-size: var(--font-sm);
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--neutral-300);
  background: var(--accent-contrast);
}

.grid-table .header-row > div {
  background: linear-gradient(90deg, var(--highlight), var(--highlight-pale));
  font-weight: 600;
}

.data-row:nth-child(even) > div {
  background: var(--neutral-200);
}

.data-row:hover > div {
  background: color-mix(in srgb, var(--highlight) 8%, var(--accent-contrast));
}

.data-row:focus-within > div {
  box-shadow: inset 0 0 0 2px var(--highlight);
}

/* -------------------------------------------------------------------------- */
/* Card styles - global and page-specific                                                      */
/* -------------------------------------------------------------------------- */

.card-plain {
  border: none;
  background: transparent;
}

.card-img-top {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.card-body .bi {
  border-radius: 3rem;
 /*  width: clamp(4rem, 3rem + 3vw, 5rem); */
  width: auto;
  display: block;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}


/* About page */
.bg-philosophy-1 { background-color: var(--brand-dark-1); }
.bg-philosophy-2 { background-color: var(--brand-dark-2); }
.bg-philosophy-3 { background-color: var(--brand-dark-3); }
.bg-philosophy-4 { background-color: var(--brand-dark-4); }


.card .bg-primary {
  background-image: linear-gradient(
    90deg, var(--primary), 
    color-mix(in srgb, 
    var(--primary) 70%, 
    var(--accent-contrast)));
}
.card .bg-secondary {
  background-image: linear-gradient(
    90deg, var(--secondary), 
    color-mix(in srgb, 
    var(--secondary) 70%, 
    var(--accent-contrast)));
}


/* Services page */
.services .card { 
  overflow: hidden; 
  border-radius: var(--radius-card); 
}
.services .card-body {
  overflow: visible;
  position: relative;
}
.services .card-body .service-card-icon {
  color: var(--highlight);
  background: var(--primary-strong);
  width: clamp(6rem, 4rem + 5vw, 9rem);
  border-bottom-left-radius: clamp(4rem, 3rem + 3vw, 5rem);
  font-size: clamp(4rem, 3rem + 4vw, 6rem);
  text-align: center;
  position: absolute;
  top: -1.5rem;
  right: -1.5rem;
  opacity: 0.5;
  z-index: 0;
  padding-left: 1rem;
}


/* Article/blog cards and images */
	.blog .col-md-5 {
	    filter: drop-shadow(3px 12px 15px rgba(0,0,0,0.4));
		-webkit-filter: drop-shadow(3px 5px 8px rgba(0,0,0,0.4));
	}
	.blog .card-skewed { 
	   clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%); 
	 }
	.bg-secondary .card-skewed .bg-light { 
    box-shadow: inset 10px 25px 60px color-mix(in srgb, var(--secondary) 33%, white); 
  }
	.card-skewed .bg-sand { 
    box-shadow: inset 10px 25px 60px color-mix(in srgb, var(--sand) 80%, black); 
  }

	
	/* Pencil-mark style for image borders */
	.bg-primary .img-hatch::after,
	.bg-secondary .img-hatch::after  {
	 right: -25px;
     background: repeating-linear-gradient( 
      45deg, 
      color-mix(in srgb, var(--neutral-100) 70%, white), 
      color-mix(in srgb, var(--neutral-100) 70%, white) 1px, 
      transparent 1px, 
      transparent 6px );
  }




/* -------------------------------------------------------------------------- */
/* Forms                                                      */
/* -------------------------------------------------------------------------- */
.form-contact label {
  color: var(--text-light);
}
.form-contact input, .form-contact textarea, .form-contact button {
  margin: 0.5rem;
}
/* -------------------------------------------------------------------------- */
/* Switch timeline                                                        */
/* -------------------------------------------------------------------------- */

.timeline-grid {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
/*
.timeline-grid::before {
  content: "";
  position: absolute;
  left: 50%;
  top: clamp(1rem, 2vw, 2.5rem);
  bottom: clamp(1rem, 2vw, 2.5rem);
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.45));
  pointer-events: none;
  transform: translateX(-50%);
}
/*
.timeline-grid::after {
  display: none;
  content: "";
  position: absolute;
  left: calc(50% - 14px);
  top: clamp(1rem, 2vw, 2.5rem);
  bottom: clamp(1rem, 2vw, 2.5rem);
  width: 28px;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(255,255,255,0) 0 80px,
      rgba(255,255,255,0.08) 80px 140px,
      rgba(255,255,255,0) 140px 160px
    ),
    linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
  mask-image:
    repeating-linear-gradient(
      180deg,
      transparent 0 70px,
      linear-gradient(135deg, transparent 45%, rgba(255,255,255,1) 48%, transparent 51%) 70px 120px
    );
  opacity: 0.7;
  pointer-events: none;
}
*/
.timeline-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}
.timeline-row.row-reverse {
  direction: rtl;
}
.timeline-row.row-reverse > article {
  direction: ltr;
}
.timeline-card {
  height: 100%;
  border: 0;
  border-radius: 1.25rem;
  overflow: hidden;
  background: var(--timeline-bg, #03303e);
  box-shadow: 0 22px 45px rgba(2, 25, 33, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: var(--neutral-100);
}
.timeline-card:hover {
  box-shadow: 0 26px 55px rgba(2, 25, 33, 0.45);
}
.timeline-card__body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.timeline-card__body p {
  color: rgba(255,255,255,0.85);
}
.timeline-card__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.timeline-card__icon {
  font-size: 2rem;
  color: var(--highlight);
  background: linear-gradient(145deg, rgba(255,255,255,0.15), rgba(255,255,255,0));
  border: 2px solid rgba(255,255,255,0.4);
  padding: 0.65rem;
  border-radius: 1rem;
  box-shadow: inset 0 0 12px rgba(255,255,255,0.25);
  text-align: center;
  margin-left: auto;
  width: 4rem;
}

.timeline-card__indicator {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.85);
}
.timeline-card.shade-1 { --timeline-bg: linear-gradient(150deg, rgba(0,123,149,0.92), rgba(1,106,130,0.98)); }
.timeline-card.shade-2 { --timeline-bg: linear-gradient(150deg, rgba(0,109,135,0.95), rgba(0,94,118,1)); }
.timeline-card.shade-3 { --timeline-bg: linear-gradient(150deg, rgba(0,95,121,0.96), rgba(0,80,105,1)); }
.timeline-card.shade-4 { --timeline-bg: linear-gradient(150deg, rgba(0,82,108,1), rgba(0,65,88,1)); }
.timeline-card.shade-5 { --timeline-bg: linear-gradient(150deg, rgba(0,65,88,1), rgba(0,55,75,1)); }
.timeline-card.shade-6 { --timeline-bg: linear-gradient(150deg, rgba(0,55,75,1), rgba(32,42,59,1)); }
.timeline-nav {
  background: none;
  border-color: rgba(255,255,255,0.6);
  color: #ffffff;
}
.timeline-nav:hover {
  background: rgba(255,255,255,0.32);
  color: #02131a;
}
.timeline-cta {
  background: #ffef72;
  color: #031d28;
  border: none;
  box-shadow: 0 12px 30px rgba(255,239,114,0.25);
}
.timeline-cta:hover {
  background: #ffe440;
  color: #021419;
}
@media (min-width: 992px) {
  .timeline-nav {
    display: none !important;
  }
}
@media (max-width: 991.98px) {
  .timeline-row {
    grid-template-columns: 1fr;
  }
  .timeline-row.row-reverse {
    direction: ltr;
  }
  .timeline-grid::before,
  .timeline-grid::after {
    display: none;
  }
}


/* -------------------------------------------------------------------------- */
/* Tabs + report panes                                                         */
/* -------------------------------------------------------------------------- */

#propeco-report .tab-pane {
  min-height: clamp(32rem, 24rem + 8vw, 44rem);
}

.tab-card {
  background-color: var(--neutral-200);
  transition: background-color 0.2s ease, border-color 0.2s ease;
  border-radius: var(--radius-card);
  border: 1px solid transparent;
}

.tab-card.active,
.tab-card[aria-selected="true"] {
  background-color: var(--stone);
  border-color: var(--neutral-500);
}

.tab-pane {
  position: relative;
  min-height: clamp(20rem, 18rem + 4vw, 24rem);
  background-color: var(--neutral-200);
  padding: var(--space-lg);
  border-radius: 0.375rem;
  overflow: hidden;
}

#epc {
  border: 1px solid var(--success);
}

#epc-audit {
  border: 1px solid var(--danger);
}

#flood {
  border: 1px solid var(--info);
}

.pane-watermark {
  position: absolute;
  top: 50%;
  right: 10%;
  transform: translateY(-50%) rotate(-12deg);
  font-size: clamp(4rem, 3rem + 6vw, 6rem);
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}

.tab-pane > * {
  position: relative;
  z-index: 1;
}

.propeco-loading,
.propeco-error {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(12rem, 10rem + 5vw, 16rem);
  font-size: clamp(0.95rem, 0.85rem + 0.3vw, 1.05rem);
  border-radius: 0.375rem;
}

.propeco-loading {
  color: var(--neutral-750);
  background: color-mix(in srgb, var(--accent-contrast) 90%, var(--neutral-600));
}

.propeco-error {
  color: var(--danger);
  background-color: var(--danger-soft);
}

/* -------------------------------------------------------------------------- */
/* Footer                                                                      */
/* -------------------------------------------------------------------------- */

.footer-columns {
  padding: var(--space-xl) var(--space-lg);
}

.footer-columns .col {
  margin-bottom: var(--space-md);
}

.footer-sub {
  color: var(--neutral-600);
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--font-sm);
}
.footer-sub span  {
  font-weight: 600;
}

footer h6 {
  margin-left: var(--space-sm);
}

footer hr {
  border-style: dashed;
} 
footer .col-md-3,
footer .col-md-4 {
  border-bottom: 1px solid rgba(255, 255, 255, 0.13)
}

.logo-eco img {
  height: clamp(56px, 6vw, 70px);
}

/* -------------------------------------------------------------------------- */
/* Scroll to top                                                               */
/* -------------------------------------------------------------------------- */

#scrollTopBtn {
  position: fixed;
  right: var(--space-md);
  bottom: var(--space-lg);
  width: clamp(42px, 6vw, 52px);
  height: clamp(42px, 6vw, 52px);
  border-radius: 50%;
  font-size: clamp(1.25rem, 1rem + 0.8vw, 1.5rem);
  line-height: 1.05;
  display: none;
  z-index: 1100;
  box-shadow: var(--shadow-soft);
  background: var(--primary);
  color: var(--accent-contrast);
  border: none;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#scrollTopBtn i {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
}
#scrollTopBtn span {
  font-size: 0.7rem;
  font-weight: 100;
}

/* -------------------------------------------------------------------------- */
/* Media + embeds                                                              */
/* -------------------------------------------------------------------------- */

#iframe {
  overflow: hidden !important;
  padding-top: 56.25% !important;
  position: relative !important;
}

#iframe iframe {
  border: 0 !important;
  height: 100% !important;
  left: 0 !important;
  position: absolute !important;
  top: 0 !important;
  min-width: clamp(280px, 60vw, 640px);
  width: 100%;
}

/* -------------------------------------------------------------------------- */
/* Parallax CTA + banners                                                      */
/* -------------------------------------------------------------------------- */

.parallax-section {
  background-image: url(../imgs/banner/7days-property-glasgow-tenements_KJ74RW.jpg);
  min-height: clamp(320px, 40vh, 430px);
  background-attachment: fixed;
  background-position: center 50px;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  z-index: 1;
}

.parallax-section .container {
  height: 100%;
}

.section-cta-a {
  background-image: url(../imgs/banner/7days-property-glasgow-tenements_KJ74RW.jpg);
  background-position: center -150px;
  min-height: clamp(280px, 45vh, 430px);
}

.section-cta-b {
  background-image: url(../imgs/banner/7days-property-glasgow-tenements_2E250GA);
  background-position: center -150px;
  min-height: clamp(280px, 45vh, 430px);
}

.section-cta .container-inner {
  margin: calc(215px - 20%) 20% 0;
  min-height: clamp(140px, 120px + 4vw, 200px);
  padding: var(--space-lg);
  position: relative;
  z-index: 5;
}

.section-cta .container-inner * {
  text-align: center;
}

.section-cta-c {
  background-image: url(../imgs/banner/7days-property-edinburgh-tenements_2R929D9.jpg);
}
.cta-editorial {  /* editorial so img use ok */
  background-image: url(../imgs/bg/edinburgh-cta.jpg);
    background-position: center 100px;
   min-height: clamp(280px, 45vh, 430px);
   background-size: 120%;
}

.scroll-section:focus {
  outline: none;
  position: relative;
}

.scroll-section:focus::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--highlight);
  border-radius: 2px;
  opacity: 0.5;
}

#call .container-inner {
  margin: clamp(2rem, 1rem + 4vw, 4rem) auto 0 0;
  width: min(90%, 640px);
}

#contact {
  background-image: url(../imgs/banner/insurance.jpg);
  min-height: clamp(140px, 100px + 4vw, 200px);
  background-position: right center;
  background-repeat: no-repeat;
  background-size: 30% 100%;
  position: relative;
  z-index: 1;
}

/* -------------------------------------------------------------------------- */
/* Timeline + how-to                                                           */
/* -------------------------------------------------------------------------- */

#how-to-switch-factor::before,
.timeline::before {
  content: "";
  position: absolute;
  width: 2px;
  background: var(--neutral-300);
}
/*
#how-to-switch-factor::before {
  left: 50%;
  top: clamp(6rem, 4rem + 4vw, 8rem);
  bottom: clamp(4rem, 2rem + 4vw, 6rem);
} */

.timeline {
  position: relative;
}

.timeline::before {
  left: 50%;
  top: 0;
  bottom: 0;
}

.timeline-step {
  position: relative;
  margin-bottom: var(--space-2xl);
}

.timeline-step.left .card,
.timeline-step.right .card {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: clamp(320px, 70vw, 480px);
}

.step-indicator {
  display: block;
  font-size: var(--font-sm);
  color: var(--neutral-750);
  margin-bottom: var(--space-xs);
}

.step-icon {
  font-size: clamp(1.5rem, 1rem + 1vw, 2rem);
  color: var(--info);
  margin-bottom: var(--space-sm);
}

#how-to-switch-factor li:focus-visible {
  outline: 3px solid var(--info);
  outline-offset: 6px;
}

.timeline-step:focus-visible .step-icon {
  animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.85; }
  100% { transform: scale(1); opacity: 1; }
}

/* -------------------------------------------------------------------------- */
/* Misc utilities                                                              */
/* -------------------------------------------------------------------------- */

.bg-opacity {
  background-color: rgba(0, 0, 0, 0.5) !important;
}





/* -------------------------------------------------------------------------- */
/* Media Queries                                                               */
/* -------------------------------------------------------------------------- */

@media (max-width: 768px) {
  .grid-table { grid-template-columns: 1fr; }
  .header-row { display: none; }
  .data-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
    padding: var(--space-sm);
    border-bottom: 1px solid var(--neutral-300);
  }
  .data-row > div {
    display: grid;
    grid-template-columns: minmax(130px, 35%) 1fr;
    gap: var(--space-sm);
    background: var(--accent-contrast);
  }
  .data-row > div::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--neutral-750);
  }
}



@media (min-width: 576px) {
  .menu-soc { display: none; }
  #top-menu { display: block; }

  .navbar-nav a::before,
  .navbar-nav a:focus-visible::before {
    background-color:  var(--accent-contrast);
  }
  .dropdown-menu a::before,
    .dropdown-menu a:focus-visible::before {
    background-color: transparent;
  }

  .section-cta .container-inner { margin: 100px 0 0 50%; }

   .section-cta-c .container-inner { margin: 100px 0 0 6.25%; }

  .strap { width: 60%; }
  .hero-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.35));
  }
  .ltr-shade { background: linear-gradient(90deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.1)); }
  .rtl-shade { background: linear-gradient(90deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.75)); }
  .ltr-shade,
  .rtl-shade {
    min-height: clamp(300px, 45vh, 430px);
  }
  #call .container-inner { width: 66%; }

  .img-hatch::after {
    display: block;
    content: "";
    position: absolute;
    top: 6px;
    right: -50px;
    width: 40px;
    height: calc(100% + 5px);
    border-top-right-radius: 30px !important;
    border-bottom-left-radius: 30px !important;
    background: repeating-linear-gradient(
      45deg,
      color-mix(in srgb, var(--primary) 70%, black),
      color-mix(in srgb, var(--primary) 70%, black) 1px,
      transparent 1px,
      transparent 6px
    );
    opacity: 0.85;
    filter: blur(0.35px);
    border-radius: 1px;
  }

  .bg-secondary .img-hatch::after {
    background: repeating-linear-gradient( 
      45deg, 
      color-mix(in srgb, var(--primary) 70%, white), 
      color-mix(in srgb, var(--primary) 70%, white) 1px, 
      transparent 1px, 
      transparent 6px );
  }
  
  footer .col-lg-3,
  footer .col-lg-4 {
    border-right: 1px solid rgba(255,255,255,0.125);
    border-bottom: none;
  }
}



@media (min-width: 1024px) {
  .timeline-nav {
    display: none;
  }

  .edinburgh .section .container  {max-width: 1100px;}

}



@media (max-width: 991px) {
  .timeline::before {
    left: 0;
  }
  .timeline-step.left .card,
  .timeline-step.right .card {
    margin: 0 auto;
  }
}

@media (max-width: 576px) {
  .img-banner {
    background-size: auto 380px !important;
    background-position: center !important;
  }
  
  .section-cta {
  background-position: -200px 80px;
    background-size: 350%;
}

  .section-cta .container-inner {
    margin: calc(215px - 10%) 10% 0;
    min-height: clamp(140px, 120px + 4vw, 200px);
    padding: var(--space-lg);
  }
 
  .ltr-shade { background: linear-gradient(0deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.2)); }

  .rtl-shade { background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.566), rgba(0, 0, 0, 0.8)); }

  footer .col-lg-3,
  footer .col-lg-4 {
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  }
  footer hr {opacity: 0;}
  #scrollTopBtn {
  position: fixed;
  bottom: 246px;
  }
}

@media (max-width: 420px) {
  .logo-7d img {
    max-height: clamp(40px, 10vw, 50px);
  }
}

@media only screen
  and (min-device-width: 834px)
  and (max-device-width: 1200px)
  and (-webkit-min-device-pixel-ratio: 2) {

  .section-cta {
    background-position: center;
  }
.first-foot {
  max-width: 96vw;
}
  .small, small {
    font-size: .875rem;
  }
  #scrollTopBtn {
    position: fixed;
    bottom: 86px;
  }
}



/* Tablets (including iPad) in portrait */
@media (min-width: 600px) and (max-width: 1024px) and (orientation: portrait) {
  .hero-carousel .carousel-item,
  .hero-content {
    min-height: clamp(320px, 40vh, 450px);
  }
  .hero-overlay {
    background: linear-gradient(120deg,
            rgba(0, 0, 0, 0.0) 0,
            rgba(0, 0, 0, 0.1) 50%, 
            rgba(0, 0, 0, 0.25) 75%, 
            rgba(0, 0, 0, 0.4) 100%);
  }
  .hero-content {
    text-align: end;
  }
  .hero-caption {
    max-width: min(66%, 960px);
  }
}




@media only screen
  and (min-device-width: 834px)
  and (max-device-width: 834px)
  and (orientation: portrait)
  and (-webkit-min-device-pixel-ratio: 2) {
  .section-cta {
    background-image: url(../imgs/banner/7days-property-glasgow-tenements_KJ74RW.jpg);
    background-position: -150px 130px;
    min-height: clamp(320px, 45vh, 430px);
  }
  .cta-editorial {  /* editorial so img use ok */
    background-image: url(imgs/bg/edinburgh-cta.jpg);
    background-position: -150px 130px;
    min-height: clamp(320px, 45vh, 430px);
  }
}


