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

/* Hide navbar everywhere */
.navbar-nav {
  display: none;
}

/* Show navbar ONLY on the home page */
body.home .navbar-nav {
  display: flex;
}

:root {
  /* Brand palette (hex fallback) */
  --primary: hsla(185, 68%, 32%, 1); /* #1A8089 */
  --primary-strong: hsla(185, 68%, 35%, 1); /* #1D8D98 */
  --secondary: hsla(186, 70%, 26%, 1); /* #146872 */
  --secondary-dark: hsla(186, 70%, 13%, 1); /* #0A3439 */
  --secondary-darkest: hsla(186, 70%, 8%, 1); /* #061F22 */
  --brand-dark-1: hsla(185, 57%, 38%, 1); /* #2A8F99 */
  --brand-dark-2: hsla(185, 59%, 34%, 1); /* #237F88 */
  --brand-dark-3: hsla(185, 62%, 29%, 1); /* #1C6F77 */
  --brand-dark-4: hsla(185, 66%, 24%, 1); /* #155F66 */
  --accent-contrast: hsla(0, 0%, 100%, 1); /* #FFFFFF */
  --highlight: hsla(43, 91%, 52%, 1); /* #F4B617 */
  --highlight-pale: hsl(43, 100%, 58%, 0.5); /* #FFC229 */
  --highlight-soft: hsla(23, 100%, 50%, 1); /* #FFD978 */
  --sand: hsla(9, 58%, 63%, 1); /* #D77A69 */
  --stone: hsla(60, 10%, 65%, 1); /* #AFAF9E */
  --stone-pale: hsla(60, 4%, 90%, 1); /* #d8d8d6 */
  --neutral-100: hsla(210, 40%, 98%, 1); /* #F8FAFC */
  --neutral-200: hsla(210, 17%, 98%, 1); /* #F8F9FA */
  --neutral-300: hsla(210, 14%, 89%, 1); /* #DEE2E6 */
  --neutral-400: hsla(220, 13%, 91%, 1); /* #E5E7EB */
  --neutral-500: hsla(210, 14%, 83%, 1); /* #CED4DA */
  --neutral-600: hsla(216, 12%, 84%, 1); /* #D1D5DB */
  --neutral-700: hsla(220, 9%, 46%, 1); /* #6B7280 */
  --neutral-750: hsla(208, 7%, 46%, 1); /* #6C757D */
  --neutral-800: hsla(0, 0%, 25%, 1); /* #404040 */
  --neutral-900: hsla(0, 0%, 20%, 1); /* #333333 */
  --neutral-1000: hsla(0, 0%, 13%, 1); /* #202020 */
  --danger: hsla(354, 70%, 54%, 1); /* #DC3545 */
  --danger-soft: hsla(355, 70%, 91%, 1); /* #F8D7DA */
  --success: hsla(152, 69%, 31%, 1); /* #198754 */
  --info: hsla(216, 98%, 52%, 1); /* #0D6EFD */

  /* 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 hsla(0, 0%, 0%, 0.12);
  --shadow-strong: 0 18px 40px hsla(0, 0%, 0%, 0.2);

  scroll-behavior: smooth;
}

@supports (color: hsla(0, 0%, 50%, 1)) {
  :root {
    --primary: hsla(185, 68%, 32%, 1); /* #1A8089 */
    --primary-strong: hsla(185, 68%, 35%, 1); /* #1D8D98 */
    --secondary: hsla(186, 70%, 26%, 1); /* #146872 */
    --secondary-dark: hsla(186, 70%, 13%, 1); /* #0A3439 */
    --secondary-darkest: hsla(186, 70%, 8%, 1); /* #061F22 */
    --brand-dark-1: hsla(185, 57%, 38%, 1); /* #2A8F99 */
    --brand-dark-2: hsla(185, 59%, 34%, 1); /* #237F88 */
    --brand-dark-3: hsla(185, 62%, 29%, 1); /* #1C6F77 */
    --brand-dark-4: hsla(185, 66%, 24%, 1); /* #155F66 */
    --accent-contrast: hsla(0, 0%, 100%, 1); /* #FFFFFF */
    --highlight: hsla(43, 91%, 52%, 1); /* #F4B617 */
    --highlight-pale: hsla(43, 100%, 58%, 0.5); /* #FFC229 */
    --highlight-soft: hsla(23, 100%, 50%, 1); /* #FFD978 */
    --sand: hsla(9, 58%, 63%, 1); /* #D77A69 */
    --stone: hsla(60, 10%, 65%, 1); /* #AFAF9E */
    --stone-pale: hsla(60, 4%, 90%, 1); /* #d8d8d6 */
    --neutral-100: hsla(210, 40%, 98%, 1); /* #F8FAFC */
    --neutral-200: hsla(210, 17%, 98%, 1); /* #F8F9FA */
    --neutral-300: hsla(210, 14%, 89%, 1); /* #DEE2E6 */
    --neutral-400: hsla(220, 13%, 91%, 1); /* #E5E7EB */
    --neutral-500: hsla(210, 14%, 83%, 1); /* #CED4DA */
    --neutral-600: hsla(216, 12%, 84%, 1); /* #D1D5DB */
    --neutral-700: hsla(220, 9%, 46%, 1); /* #6B7280 */
    --neutral-750: hsla(208, 7%, 46%, 1); /* #6C757D */
    --neutral-800: hsla(0, 0%, 25%, 1); /* #404040 */
    --neutral-900: hsla(0, 0%, 20%, 1); /* #333333 */
    --neutral-1000: hsla(0, 0%, 13%, 1); /* #202020 */
    --danger: hsla(354, 70%, 54%, 1); /* #DC3545 */
    --danger-soft: hsla(355, 70%, 91%, 1); /* #F8D7DA */
    --success: hsla(152, 69%, 31%, 1); /* #198754 */
    --info: hsla(216, 98%, 52%, 1); /* #0D6EFD */
  }
}

/* -------------------------------------------------------------------------- */
/* 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; }

.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 .small {
  font-weight: 300;
  line-height: 1.4rem;
}
footer .small a {
  padding-bottom: 0.25rem;
}

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;
}

a:hover::before,
a:focus-visible::before {
  transform: scaleX(1);
}
.noline:hover::before,
.noline:focus-visible::before {
    transform: scaleX(0);
}
.menu-soc > a:hover::before {
  transform: scaleX(0);
}

.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: hsla(0, 0%, 100%, 0.9) !important; /* #FFFFFF */ }

.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);
}

/* -------------------------------------------------------------------------- */
/* 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.75rem;
}

.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-fate { background-color: hsla(187, 29%, 88%, 1) !important; /* #D7E7E9 */ }
.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: hsla(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, 8vw, 80px);
  max-height: clamp(60px, 7vw, 90px);
}

.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);
}

.navbar-nav .nav-link {
  color: hsla(0, 0%, 100%, 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);
}

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

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

.nav-pills .nav-link {
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background-image 0.25s ease;
  border-radius: var(--radius-card);
}

.nav-pills .nav-link:hover,
.nav-pills .nav-link:focus-visible {
  color: inherit;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px hsla(40, 9%, 73%, 0.25);
  background-image: linear-gradient(135deg, hsla(43, 91%, 52%, 0.15), hsla(216, 98%, 52%, 0));
}

.nav-pills .nav-link::before {
  display: none;
}

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, 6vw, 60px);
}

/* -------------------------------------------------------------------------- */
/* 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 hsla(185, 68%, 35%, 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: hsla(0, 0%, 20%, 1) !important; /* #333333 */
  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: hsla(0, 0%, 100%, 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;
  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;
}

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


.list-group li {
  padding-left: 2.25rem;
  position: relative;
  }
.list-group .bi {
  position: absolute;
  left: 0;
  top: 0;
}

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

.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;
}

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

.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;
}

.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 hsla(43, 91%, 52%, 0.4), 0 0 18px hsla(43, 91%, 52%, 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 hsla(43, 91%, 52%, 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: hsla(0, 0%, 0%, 0.33);
  z-index: 1;
}
.parallax-section::before {
  background: hsla(0, 0%, 0%, 0);
}


.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, hsla(0, 0%, 0%, 0.05), hsla(0, 0%, 0%, 0.4), hsla(0, 0%, 0%, 0.85));
  z-index: 1;
}

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

.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: hsla(166, 78%, 43%, 0.5); /* #18C19A */
  border-radius: 30px;
}

.carousel-pause-btn {
  background: hsla(0, 0%, 0%, 0.45);
  color: var(--accent-contrast);
  border: 1px solid hsla(0, 0%, 100%, 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;
}


/* -------------------------------------------------------------------------- */
/* 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);
}

/* -------------------------------------------------------------------------- */
/* Cards + services                                                            */
/* -------------------------------------------------------------------------- */

.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;
}



.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) 70%, white); }
.card-skewed .bg-sand { box-shadow: inset 10px 25px 60px color-mix(in srgb, var(--sand) 85%, white); }




.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 .card { 
  overflow: hidden; 
  border-radius: var(--radius-card); 
}

.services .card-body {
  overflow: visible;
  color: var(--accent-contrast);
  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;
}


/* Service modals */
.bg-stone-pale { background: hsla(60, 4%, 90%); } /* #d8d8d6 */
/* Hide the toggle checkbox but keep it accessible */
.modal-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
/* Modal overlay (NOT clickable — allows backdrop to receive outside clicks) */
.css-modal {
  position: fixed;
  opacity: 0;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none; /* KEY: don't steal clicks */
  transition: opacity .2s ease;
  z-index: 2010;
}
/* Backdrop (clickable to close) */
.css-modal > .modal-backdrop-blur {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 0;
}

/* Modal panel above backdrop */
.css-modal .css-modal-panel {
  position: relative;
  z-index: 1;
}

/* OPEN: show + make backdrop clickable */
.modal-toggle:checked ~ .css-modal > .modal-backdrop-blur {
  opacity: 1;
  pointer-events: auto;
}


/* Modal panel (clickable) */
.css-modal .css-modal-panel {
  position: relative;
  z-index: 1;
  pointer-events: auto; /* KEY: panel stays interactive */
  width: min(720px, 100%);
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  border: 1px solid rgba(0,0,0,.08);
  overflow: hidden;
}

/* Structure */
.css-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  padding: 1rem 1.25rem .75rem 1.25rem;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.css-modal-title {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.25;
}

.css-modal-body {
  padding: 1rem 1.25rem 1.25rem 1.25rem;
}

/* Modal media layout */
.css-modal-body .modal-media {
  display: grid;
  gap: 1rem;
  align-items: start;
}

@media (min-width: 768px) {
  .css-modal-body .modal-media {
    grid-template-columns: 1.1fr 0.9fr; /* text + image */
  }
}

/* Image card */
.css-modal-body .modal-figure {
  margin: 0;
  border-radius: .75rem;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.6);
}

.css-modal-body .modal-figure img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Optional caption */
.css-modal-body .modal-caption {
  padding: .5rem .75rem;
  font-size: .9rem;
  opacity: .85;
  border-top: 1px solid rgba(0,0,0,.08);
}
/* Close button (label) */
.css-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: .75rem;
  cursor: pointer;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.55);
}
.css-modal-close:hover { background: rgba(255,255,255,.8); }


/* Open state */
.modal-toggle:checked ~ .css-modal { opacity: 1; pointer-events: auto !important;}
.modal-toggle:checked ~ .css-modal > .modal-backdrop-blur {
  opacity: 1;
  pointer-events: auto; /* backdrop becomes clickable */
}
.modal-toggle:checked ~ .css-modal {
  opacity: 1;
  /* keep pointer-events: none here on purpose */
}

/* Reduced motion (fix selector typo) */
@media (prefers-reduced-motion: reduce) {
  .css-modal,
  .modal-backdrop-blur {
    transition: none;
  }
}


/* open state: when checkbox is checked, open matching modal */
#svc-factoring-full:checked ~ .modal-portal #svc-factoring-full-dialog,
#svc-savings:checked ~ .modal-portal #svc-savings-dialog,
#svc-retrofit:checked ~ .modal-portal #svc-sretrofit-dialog {
  opacity: 1;
  pointer-events: auto;
}
#svc-factoring-full:checked ~ .modal-portal #svc-factoring-full-dialog > .modal-backdrop-blur,
#svc-savings:checked ~ .modal-portal #svc-savings-dialog > .modal-backdrop-blur,
  #svc-retrofit:checked ~ .modal-portal #svc-retrofitdialog > .modal-backdrop-blur {
  opacity: 1;
  pointer-events: auto;
}



/* =========================
   Icon reset (safe, no all:unset)
   ========================= */
.services > .css-modal :where(.bi, i, svg) {
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
}

/* Modal icons: ensure they behave normally and don't inherit the card corner icon styling */
.services .css-modal :where(.bi, i, svg) {
  position: static !important;
  inset: auto !important;
  width: 1em !important;
  height: 1em !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  opacity: 1 !important;
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
}

.services .css-modal .bi {
  font-family: "bootstrap-icons" !important;
  font-style: normal;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.services .css-modal svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
  stroke: currentColor;
}

/* Close icon sizing */
.services .css-modal-close :where(.bi, i, svg) {
  font-size: 1.25rem;
  width: 1.25rem;
  height: 1.25rem;
  pointer-events: none;
}





/* -------------------------------------------------------------------------- */
/* 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: #fdfdfd;
}
.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 hsla(0, 0%, 100%, 0.125);
}

.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;
}
#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 {
  background-image: url(../imgs/banner/7days-property-glasgow-tenements_KJ74RW.jpg);
  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-alt {
  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: -10px;
  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: hsla(0, 0%, 0%, 0.5) !important;
}

#top-menu a {
  color: var(--secondary);
  text-decoration: underline;
}

#top-menu a::before,
.menu-soc a::before {
  display: none;
}

#top-menu a:hover,
#top-menu a:focus-visible,
.menu-soc a:hover,
.menu-soc a:focus-visible {
  text-decoration: underline;
}

/* -------------------------------------------------------------------------- */
/* 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; }
  .section-cta .container-inner { margin: 100px 0 0 50%; }
  .strap { width: 60%; }
  .hero-overlay {
    background: linear-gradient(180deg, hsla(0, 0%, 0%, 0.25), hsla(0, 0%, 0%, 0.25), hsla(0, 0%, 0%, 0.35));
  }
  .ltr-shade { background: linear-gradient(90deg, hsla(0, 0%, 0%, 0.75), hsla(0, 0%, 0%, 0.5), hsla(0, 0%, 0%, 0.1)); }
  .rtl-shade { background: linear-gradient(90deg, hsla(0, 0%, 0%, 0.1), hsla(0, 0%, 0%, 0.5), hsla(0, 0%, 0%, 0.75)); }
  .ltr-shade,
  .rtl-shade {
    min-height: clamp(300px, 45vh, 430px);
  }
  #call .container-inner { width: 50%; }

  .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 hsla(0, 0%, 100%, 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 200px;
    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(180deg, hsla(0, 0%, 0%, 0.75), hsla(0, 0%, 0%, 0.5), hsla(0, 0%, 0%, 0.1)); }
  .rtl-shade { background: linear-gradient(180deg, hsla(0, 0%, 0%, 0.1), hsla(0, 0%, 0%, 0.5), hsla(0, 0%, 0%, 0.75)); }

  footer .col-lg-3,
  footer .col-lg-4 {
    border-bottom: 1px solid hsla(0, 0%, 100%, 0.125);
  }
  footer hr {opacity: 0;}
  #scrollTopBtn {
  position: fixed;
  bottom: 170px;
  }
}

@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) {
.first-foot {
  max-width: 96vw;
}
  .small, small {
    font-size: .8em;
  }
}

@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);
  }
}


