/* ===== CANDYSIGN REFRESH 2025 ===== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@font-face {
  font-family: 'Noto Sans';
  src: url('../fonts/NotoSansCJKtc-Light.otf');
  font-weight: normal;
  font-style: normal;
}

:root {
  --c-bg:        #2e3842;
  --c-bg-deep:   #1e2a34;
  --c-bg-card:   #3a4651;
  --c-bg-mid:    #263038;
  --c-teal:      #21b2a6;
  --c-teal-dim:  rgba(33, 178, 166, 0.12);
  --c-teal-glow: rgba(33, 178, 166, 0.28);
  --c-white:     #ffffff;
  --c-off-white: rgba(255, 255, 255, 0.87);
  --c-muted:     rgba(255, 255, 255, 0.52);
  --c-border:    rgba(255, 255, 255, 0.09);
  --radius:      10px;
  --radius-sm:   6px;
  --nav-h:       64px;
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ─────────────────────────────────── */

html, body, div, span, h1, h2, h3, h4, h5, h6, p, a, img,
ol, ul, li, form, label, table, article, aside, footer,
header, nav, section, figure {
  margin: 0; padding: 0; border: 0;
  font-size: 100%; font: inherit; vertical-align: baseline;
}
article, aside, footer, header, nav, section { display: block; }
ol, ul { list-style: none; }
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', 'Noto Sans', Helvetica, sans-serif;
  background: var(--c-bg);
  color: #fff;
  line-height: 1.65;
  -webkit-text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── JS-state hooks (driven by main.js) ───────────── */

/* disable all animations while page is loading */
body.is-loading *, body.is-loading *::before, body.is-loading *::after {
  animation: none !important;
  transition: none !important;
}

/* page dims when mobile menu opens */
#page-wrapper {
  padding-top: 0;
  opacity: 1;
  transition: opacity 0.5s ease;
}
body.is-menu-visible #page-wrapper {
  opacity: 0.35;
  pointer-events: none;
}

/* menu slides in */
body.is-menu-visible #menu {
  transform: translateX(0) !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
  line-height: 1.15;
  color: var(--c-white);
}

a {
  border-bottom: none !important;
  transition: color 0.2s var(--ease), opacity 0.2s var(--ease);
}
a:hover { border-bottom: none !important; }

p { line-height: 1.85; font-size: 1rem; }

/* ── Scroll animations ────────────────────────────── */

.anim {
  opacity: 0;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.anim.visible { opacity: 1 !important; transform: none !important; }

/* directional variants */
.anim-from-below  { transform: translateY(36px); }
.anim-from-left   { transform: translateX(-40px); }
.anim-from-right  { transform: translateX(40px); }
.anim-scale       { transform: scale(0.92); }

/* stagger delays */
.anim-d1 { transition-delay: 0.1s; }
.anim-d2 { transition-delay: 0.2s; }
.anim-d3 { transition-delay: 0.3s; }
.anim-d4 { transition-delay: 0.4s; }
.anim-d5 { transition-delay: 0.5s; }

/* ── Header / Nav ─────────────────────────────────── */

body.is-loading #banner h2 {
 -moz-transform: scale(0.95);
 -webkit-transform: scale(0.95);
 -ms-transform: scale(0.95);
 transform: scale(0.95);
 opacity: 0;
}
body.is-loading #banner h2:before, body.is-loading #banner h2:after {
 width: 0;
}
body.is-loading #banner .more {
 -moz-transform: translateY(8.5em);
 -webkit-transform: translateY(8.5em);
 -ms-transform: translateY(8.5em);
 transform: translateY(8.5em);
 opacity: 0;
}
body.is-loading #banner:after {
 opacity: 1;
}
body.is-loading *, body.is-loading *:before, body.is-loading *:after {
 -moz-animation: none !important;
 -webkit-animation: none !important;
 -ms-animation: none !important;
 animation: none !important;
 -moz-transition: none !important;
 -webkit-transition: none !important;
 -ms-transition: none !important;
 transition: none !important;
}

#header {
  /* structural — position fixed over all content */
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 999;
  /* visual */
  background: rgba(46, 56, 66, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-border);
  height: var(--nav-h);
  display: flex !important;
  align-items: center;
  padding: 0 2.5rem;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
}

#header.alt {
  background: transparent !important;
  border-bottom-color: transparent !important;
}

#header h1 {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0;
  font-weight: 700;
  line-height: var(--nav-h);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
/* hidden while banner is visible; slides in when header becomes solid */
#header.alt h1 {
  opacity: 0;
  transform: translateY(-10px);
}

#header h1 a {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  gap: 0.65rem;
  color: var(--c-white);
  text-decoration: none;
  line-height: 1;
}

/* logo img in nav — block + explicit vertical centering */
#header h1 a .logo {
  display: block;
  height: 28px;
  width: auto;
  flex-shrink: 0;
  position: relative;
  top: 0;
}

#nav {
  margin-left: auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
}

#nav > ul {
  display: flex;
  align-items: center;
  height: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

/* each nav li needs to be a flex item for vertical alignment */
#nav > ul > li {
  display: flex;
  align-items: center;
  height: 100%;
}

#nav > ul > li.nav-link > a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 1rem;
  color: var(--c-muted);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 2px solid transparent !important;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
#nav > ul > li.nav-link > a:hover {
  color: var(--c-white);
  border-bottom-color: var(--c-teal) !important;
}

/* hamburger li — flex centered */
#nav > ul > li.special {
  display: flex;
  align-items: center;
  height: 100%;
  margin-left: 1rem;
}

.menuToggle {
  display: flex !important;
  align-items: center;
  height: 100%;
  color: var(--c-muted) !important;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0 0.25rem;
  border-bottom: none !important;
}
.menuToggle:hover { color: var(--c-white) !important; }

@media (max-width: 768px) {
  #nav > ul > li.nav-link { display: none; }
}

/* hamburger icon — bars.svg from assets/css/images/ */
.menuToggle::after {
  background-image: url('images/bars.svg');
  background-position: right center;
  background-repeat: no-repeat;
  background-size: contain;
  content: '';
  display: inline-block;
  height: 2em;
  width: 1.5em;
  vertical-align: middle;
  margin-left: 0.3rem;
  opacity: 0.6;
}
.menuToggle:hover::after { opacity: 1; }
.menuToggle span { display: none; }

/* ── Mobile slide-out menu panel ─────────────────── */

#menu {
  /* structural — fixed panel sliding in from the right */
  position: fixed;
  right: 0; top: 0;
  height: 100%;
  width: 20em; max-width: 80%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 10002;
  transform: translateX(20em);
  transition: transform 0.5s ease;
  /* visual */
  background: rgba(25, 33, 42, 0.97) !important;
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--c-border) !important;
}
#menu > ul { padding: 1.5rem 0; }

#menu ul > li {
  margin: 0;
  padding: 0;
}
#menu > ul > li > a {
  color: var(--c-off-white) !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  padding: 0.9rem 2rem !important;
  display: block;
  border-bottom: none !important;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
#menu > ul > li > a:hover {
  color: var(--c-teal) !important;
  background: var(--c-teal-dim) !important;
}

/* ── Banner / Hero ────────────────────────────────── */
#banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: calc(var(--nav-h) + 3rem) 2rem 5rem;
  position: relative;
  background-attachment: fixed;
  overflow: hidden;
}

#banner h2:before, #banner h2:after {
 -moz-transition: width 0.85s ease;
 -webkit-transition: width 0.85s ease;
 -ms-transition: width 0.85s ease;
 transition: width 0.85s ease;
 -moz-transition-delay: 0.25s;
 -webkit-transition-delay: 0.25s;
 -ms-transition-delay: 0.25s;
 transition-delay: 0.25s;
 background: #fff;
 content: '';
 display: block;
 height: 2px;
 position: absolute;
 width: 100%;
}
#banner h2:before {
 top: 0;
 left: 0;
}
#banner h2:after {
 bottom: 0;
 right: 0;
}

/* ── Hero keyframes ───────────────────────────────── */

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: none; }
}

/* gentle float on the arrow */
@keyframes arrowFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(7px); }
}

#banner h2 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 1.75rem;
  position: relative;
      -moz-transform: scale(1);
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
    -moz-transition: -moz-transform 0.5s ease, opacity 0.5s ease;
    -webkit-transition: -webkit-transform 0.5s ease, opacity 0.5s ease;
    -ms-transition: -ms-transform 0.5s ease, opacity 0.5s ease;
    transition: transform 0.5s ease, opacity 0.5s ease;
    display: inline-block;
    font-size: 1.75em;
    opacity: 1;
    padding: 0.35em 1em;
    position: relative;
    z-index: 1;
}

#banner h2 .logo {
  height: clamp(64px, 10vw, 110px);
  width: auto;
  display: inline-block;
  position: relative;
  margin: 15px 0;
  z-index: 1; /* sits behind the bars overlay */
  max-width: 400px;
}

/* subtext: teal */
#banner p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  letter-spacing: 0.06em;
  line-height: 2.1;
  margin: 0;
}

.about .spotlight:nth-child(1) .content {
    padding-right: 2em;
}
.about .spotlight:nth-child(2) .content {
    padding-left: 2em;
}

/* scroll-down CTA — anchored to bottom of banner, centered */
#banner > a.more {
  position: absolute;
  bottom: 5rem;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--c-white) !important;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: none !important;
  transition: color 0.2s var(--ease);
}
/* arrow SVG from the existing asset */
#banner > a.more::after {
  content: '';
  display: block;
  width: 1.75rem;
  height: 1.75rem;
  background: url('images/arrow.svg') center / contain no-repeat;
  opacity: 0.7;
  animation: arrowFloat 1.8s 1.2s ease-in-out infinite;
  transition: opacity 0.2s var(--ease);
  margin-left: -13px;
}
#banner > a.more:hover { color: var(--c-teal) !important; }
#banner > a.more:hover::after { opacity: 1; }

/* ── About / Section One ──────────────────────────── */

#one {
  background: rgb(84, 117, 132) !important;
  padding: 8rem 2rem;
}
#one .inner { max-width: 1100px; margin: 0 auto; }

#one header.major > h2:first-child {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--c-border);
  letter-spacing: -0.02em;
  text-transform: none;
}

section.about { display: flex; flex-direction: column; gap: 2rem; }

section.spotlight {
  display: grid !important;
  grid-template-columns: 360px 1fr;
  gap: 0;
  align-items: stretch;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 0;
  float: none !important;
  transition: border-color 0.25s var(--ease);
}
section.spotlight:hover { border-color: rgba(33,178,166,0.35); }

section.spotlight:nth-child(even) { grid-template-columns: 1fr 360px; }
section.spotlight:nth-child(even) > .image { order: 2; }
section.spotlight:nth-child(even) > .content { order: 1; }

section.spotlight > .image {
  min-height: 300px;
  overflow: hidden;
  display: block !important;
  width: 100% !important;
  padding: 0 !important;
}
section.spotlight > .image img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.6s ease;
}
section.spotlight:hover > .image img { transform: scale(1.04); }

/* content: even padding, text fills full width, vertically centered */
section.spotlight > .content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
  width: 100%;
}
section.spotlight > .content p {
  color: var(--c-off-white);
  font-size: 0.97rem;
  line-height: 1.9;
  margin: 0;
  width: 100%;
}

#one header.major > h2:last-of-type {
  font-size: 1.02rem !important;
  font-weight: 400 !important;
  color: var(--c-off-white) !important;
  letter-spacing: 0.03em !important;
  line-height: 1.9 !important;
  text-transform: none !important;
  margin-top: 2.5rem;
  padding: 1.75rem 2rem;
  border-left: 3px solid var(--c-teal);
  background: var(--c-teal-dim);
  border-radius: 0 var(--radius) var(--radius) 0;
}

@media (max-width: 900px) {
  section.spotlight,
  section.spotlight:nth-child(even) { grid-template-columns: 1fr; }
  section.spotlight:nth-child(even) > .image { order: 0; }
  section.spotlight:nth-child(even) > .content { order: 0; }
  section.spotlight > .image { min-height: 240px; }
}

/* ── Works / Gallery — full-width marquee ─────────── */

#works {
  background: var(--c-bg-mid) !important;
  padding: 8rem 0;
}

#works .inner {
  /* max-width: 1100px; */
  /* margin: 0 auto 4rem; */
  /* padding: 0 2rem; */
  text-align: center;
}

#works .inner h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
  margin: 0;
}
#works .inner h2::after {
  content: '';
  display: block;
  width: 3rem; height: 3px;
  background: var(--c-teal);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* marquee outer — clips overflow */
.gallery.style2 {
  padding-left: 0;
}

/* inner track — animated */
.gallery-inner {
  display: flex;
  flex-shrink: 0;
  /* gap: 1.35rem; */
  /* padding: 0 0.675rem; */
  will-change: transform;
  animation: marqueeScroll 100s linear infinite;
}

.gallery.style2:hover .gallery-inner {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* individual cards inside marquee */
.gallery-inner article {
  width: 260px;
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: white;
  border: 1px solid var(--c-border);
  /* display: flex !important; */
  flex-direction: column;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
  float: none !important;
}
.gallery-inner article:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(0,0,0,0.38);
  border-color: rgba(33,178,166,0.5);
}

.gallery-inner article > a.image {
  display: flex;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: white;
  border-bottom: none !important;
}
.gallery-inner article > a.image img {
  /* width: 90%; */
  padding: 1.1rem;
  transition: transform 0.5s ease, filter 0.3s ease;
  margin: auto;
  padding: 0;
  height: 100%;
  margin-top: 15px;
}
.gallery-inner article:hover > a.image img {
  transform: scale(1.07);
  filter: grayscale(0%) brightness(1.05);
}

.gallery-inner article .caption {
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--c-border);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.gallery-inner article .caption h3 {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--c-white);
}
.gallery-inner article .caption p {
  font-size: 0.78rem;
  color: var(--c-muted);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: 0;
}
.gallery-inner article .caption .actions {
  margin-top: 0.5rem;
  padding: 0; list-style: none;
}
.gallery-inner article .caption .actions li { padding: 0; }
.gallery-inner article .caption .button.small {
  font-size: 0.68rem;
  padding: 0.35em 0.9em;
  background: transparent;
  border: 1px solid rgba(33,178,166,0.5);
  color: var(--c-teal);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  display: inline-block;
}
.gallery-inner article .caption .button.small:hover {
  background: var(--c-teal);
  color: var(--c-white);
  border-color: var(--c-teal);
}

/* ── Services / Features ──────────────────────────── */

#features {
  background: var(--c-bg) !important;
  padding: 8rem 2rem;
  position: relative;
  overflow: hidden;
}

#features::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(33, 178, 166, 0.13) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

#features .inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

#features header.major { text-align: center; margin-bottom: 0; }
#features header.major h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.02em;
  text-transform: none;
  margin: 0;
}
#features header.major h2::after {
  content: '';
  display: block;
  width: 3rem; height: 3px;
  background: var(--c-teal);
  margin: 1rem auto 0;
  border-radius: 2px;
}

ul.features {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
  list-style: none !important;
  padding: 0 !important;
  margin: 3.5rem 0 0 !important;
  float: none !important;
  width: auto !important;
}

ul.features li {
  background: rgba(46,56,66,0.85);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 2.25rem 2rem !important;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
  display: flex;
  flex-direction: column;
  float: none !important;
  width: auto !important;
  backdrop-filter: blur(4px);
}
ul.features li::before { display: none !important; }
ul.features li:hover {
  border-color: rgba(33, 178, 166, 0.5);
  background: rgba(33, 178, 166, 0.07);
  transform: translateY(-4px);
}

.feature-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.35rem;
}
.feature-head svg {
  width: 2.4rem; height: 2.4rem;
  color: var(--c-teal);
  flex-shrink: 0;
  overflow: visible;
  transition: transform 0.25s var(--ease);
}
ul.features li:hover .feature-head svg { transform: scale(1.18) rotate(-5deg); }

.feature-head h3 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  text-transform: none;
  color: var(--c-white);
}

ul.features li p {
  font-size: 0.9rem;
  color: var(--c-muted);
  line-height: 1.75;
  margin: 0 0 0.4rem;
  letter-spacing: 0;
}
ul.features li p:last-child { margin: 0; }
ul.features li p span { color: rgba(255,255,255,0.3); font-size: 0.82rem; }

@media (max-width: 960px) { ul.features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { ul.features { grid-template-columns: 1fr; } }

/* ── Contact ──────────────────────────────────────── */

#contact {
  padding: 8rem 2rem;
  position: relative;
  background:
    linear-gradient(160deg, rgba(20,28,38,0.94) 0%, rgba(30,42,52,0.92) 100%),
    url('/images/banner.webp') center 60% / cover no-repeat !important;
  background-attachment: fixed !important;
}
#contact .inner { max-width: 1100px; margin: 0 auto; }

#contact header.major { text-align: center; margin-bottom: 0; }
#contact header.major h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
  margin: 0;
  border-bottom: 0;
}
#contact header.major h2::after {
  content: '';
  display: block;
  width: 3rem; height: 3px;
  background: var(--c-teal);
  margin: 1rem auto 3rem;
  border-radius: 2px;
}

/* grid: info left, map right — both stretch to same height */
#contact .contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch; /* both columns same height */
}

/* info list — fills full height of grid row */
#contact .contact-wrap > ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  background: transparent;
}

/* reset any border/padding from styles.css on the li */
.contact-wrap > ul > li {
  padding: 0 !important;
  border: none !important;
  background: none !important;
  margin: 0 !important;
}
.contact-wrap > ul > li::before { display: none !important; }

/* card */
.contact-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.25rem 1.4rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--c-border);
  border-radius: var(--radius) 0 0 var(--radius);
  overflow: hidden; /* clip children to border-radius */
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}
.contact-card:hover {
  border-color: rgba(33,178,166,0.4);
  background: var(--c-teal-dim);
  transform: translateX(4px);
}

/* icon circle — no overflow:hidden so SVG stroke isn't clipped */
.contact-card-icon {
  width: 2.75rem;
  height: 2.75rem;
  min-width: 2.75rem;
  background: var(--c-teal-dim);
  border: 1px solid rgba(33,178,166,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.contact-card:hover .contact-card-icon {
  background: rgba(33,178,166,0.22);
  border-color: var(--c-teal);
}
.contact-card-icon svg {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--c-teal);
  flex-shrink: 0;
  overflow: visible; /* prevent stroke from being clipped */
}

/* text block */
.contact-card-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.contact-card-text h4 {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--c-teal);
  margin: 0;
  line-height: 1;
}
.contact-card-text p {
  font-size: 0.93rem;
  color: var(--c-off-white);
  margin: 0;
  line-height: 1.45;
}
.contact-card-text p a {
  color: var(--c-off-white);
  text-decoration: none;
  border-bottom: none !important;
  transition: color 0.2s var(--ease);
}
.contact-card-text p a:hover { color: var(--c-teal); }

/* map wrapper — stretch to match info column height */
.contact-wrap > .map-wrap {
  border-radius: 0 var(--radius) var(--radius) 0;
  overflow: hidden;
  border: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  align-self: stretch; /* fill grid row height */
  transition: border-color 0.3s var(--ease);
}
.contact-wrap > .map-wrap:hover { border-color: rgba(33,178,166,0.35); }
.contact-wrap > .map-wrap iframe {
  flex: 1;             /* fill remaining height of the flex column */
  width: 100% !important;
  height: 100% !important;
  min-height: 320px;
  display: block;
  border: none !important;
  filter: grayscale(25%) brightness(0.88) contrast(1.05) saturate(0.9);
  transition: filter 0.3s var(--ease);
}
.contact-wrap > .map-wrap:hover iframe {
  filter: grayscale(5%) brightness(0.96) contrast(1.02);
}

@media (max-width: 860px) {
  .contact-wrap { grid-template-columns: 1fr; }
  .contact-wrap > .map-wrap { min-height: 300px; }
}

.gallery.style2 article {
  border-top: 0;
  margin-top: 10px;
}

/* ── Footer ───────────────────────────────────────── */

#footer {
  padding: 2.25rem 2rem !important;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
}
#footer .copyright {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  list-style: none;
  padding: 0; margin: 0;
}
#footer .copyright li { padding: 0; }
#footer .copyright li::before { display: none; }
#footer .copyright li a { display: inline-block; border-bottom: none !important; }
#footer .copyright li img.logo {
  height: 50px; width: auto;
  opacity: 0.75;
  transition: opacity 0.2s var(--ease);
}
#footer .copyright li img.logo:hover { opacity: 1; }

/* ── Section wrappers ─────────────────────────────── */
.wrapper.style1 { background: var(--c-bg) !important; }
.wrapper.style2 { background: var(--c-bg-mid) !important; }
.wrapper.style3 { background: var(--c-bg) !important; }
.wrapper.style4 { background: var(--c-bg-deep) !important; }

@media screen and (max-width: 736px) {
  .about .spotlight .content {
    padding: 1em 0 0 !important;
  }
  .anim.visible {
    border-radius: var(--radius);
  }
  #contact .contact-wrap {
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
  }
  #contact ul, #contact iframe {
    margin-bottom: 0;
  }
  .features li {
    background: rgba(46, 56, 66, 0.85);
  }
}

/* iOS Safari ignores background-attachment:fixed and stretches the image instead */
@media (pointer: coarse) {
  #banner  { background-attachment: scroll !important; }
  #contact { background-attachment: scroll !important; }
  #footer  { background-attachment: scroll !important; }
}