/* ============================================================
   SILVER OAKS — Components
   ============================================================
   File:        assets/css/components.css
   Contains:    Reusable UI pieces — header/nav, footer,
                buttons, cards, dividers, forms, ornate frame.
   ============================================================ */


/* ------------------------------------------------------------
   1. PAGE LOADER
   ------------------------------------------------------------
   This appears immediately when the page opens. Edit the logo,
   brand text, or loader colors here without touching JavaScript.
   JavaScript adds .is-hidden when the hero/banner images are ready.
   ------------------------------------------------------------ */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(174, 184, 191, 0.22), transparent 48%),
    linear-gradient(180deg, var(--color-bg-light), var(--color-bg));
  opacity: 1;
  visibility: visible;
  transition: opacity .5s ease, visibility .5s ease, background .5s ease;
}
.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.page-loader.is-navigating {
  pointer-events: auto;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(31, 77, 58, 0.10), transparent 48%),
    linear-gradient(180deg, rgba(248, 250, 251, 0.96), rgba(238, 241, 242, 0.92));
}
.page-loader-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px;
  transform: translateY(0);
  transition: transform .5s cubic-bezier(.22, .61, .36, 1), opacity .5s ease;
}
.page-loader.is-hidden .page-loader-lockup {
  opacity: 0;
  transform: translateY(10px);
}
.page-loader.is-navigating .page-loader-lockup {
  opacity: 1;
  transform: translateY(0);
}
.page-loader-lockup img {
  width: 92px;
  height: auto;
  opacity: 1;
}
.page-loader-name {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 40px);
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  color: var(--color-brand-green);
  font-weight: 600;
}
.page-loader-name .brand-tm {
  position: relative;
  top: -0.78em;
  margin-left: 0.16em;
  font-size: 0.34em;
  letter-spacing: 0.08em;
  text-indent: 0;
  color: var(--color-brand-green);
}
.page-loader-tag {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-brand-green);
}
.loader-cert-note {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 1px 14px 1px 2px;

    border: 1px solid rgba(31, 77, 58, 0.70);
    border-radius: 999px;

    background: var(--color-brand-green);
    color: var(--color-bg-light);

    font-family: var(--font-body);
    font-size: 9px;
    font-style: normal;
    font-weight: 500;
    letter-spacing: 0.03em;

    line-height: 1;
    white-space: nowrap;

    box-shadow:
        0 18px 36px -30px rgba(23, 35, 41, 0.50);

    opacity: 0.82;
}

/* icon capsule */
.loader-cert-note .cert-mini-mark {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 22px;

    margin: 0;

    overflow: hidden;
    border-radius: 999px;

    background: rgba(255,255,255,0.98);

    box-shadow:
        0 0 0 2px rgba(255,255,255,0.18);
}

/* image */
.loader-cert-note .cert-mini-mark img {
    width: 25px;
    height: auto;
    display: block;
}

/* text alignment */
.loader-cert-note > span:last-child {
    display: flex;
    align-items: center;
    height: 22px;
}

/* FORCE WHITE TEXT */
.page-loader-tag.hero-certified-tagline {
    color: var(--color-bg-light) !important;
}

.page-loader-tag.hero-certified-tagline .certified-line {
    color: var(--color-bg-light) !important;
}

.cert-mini-mark {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 23px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--color-bg-light);
  box-shadow: 0 0 0 1px rgba(31, 77, 58, 0.14);
}
.cert-mini-mark img {
  width: 27px;
  height: auto;
  max-width: none;
}
.page-loader-line {
  width: 180px;
  height: 1px;
  margin-top: 28px;
  overflow: hidden;
  background: rgba(142, 154, 163, 0.28);
}
.page-loader-line::after {
  content: "";
  display: block;
  width: 42%;
  height: 100%;
  background: var(--color-accent);
  animation: loaderLine 1.15s ease-in-out infinite;
}
@keyframes loaderLine {
  0%   { transform: translateX(-110%); }
  100% { transform: translateX(250%); }
}

.page-loader-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(230px, 76vw);
  margin-top: 28px;
}
.page-loader-divider-line {
  position: relative;
  flex: 1 1 84px;
  height: 1px;
  overflow: hidden;
  background: linear-gradient(90deg, transparent, rgba(31, 77, 58, 0.30), rgba(174, 184, 191, 0.58));
  box-shadow: 0 0 9px rgba(248, 250, 251, 0.54);
}
.page-loader-divider-line:last-child {
  background: linear-gradient(90deg, rgba(174, 184, 191, 0.58), rgba(31, 77, 58, 0.30), transparent);
}
.page-loader-divider-line::after {
  content: "";
  position: absolute;
  top: 0;
  width: 54%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--color-brand-green), rgba(248, 250, 251, 0.92), transparent);
  filter: drop-shadow(0 0 5px rgba(248, 250, 251, 0.78));
}
.page-loader-divider-line:first-child::after {
  left: 0;
  animation: loaderDividerLeft 1.25s ease-in-out infinite;
}
.page-loader-divider-line:last-child::after {
  right: 0;
  animation: loaderDividerRight 1.25s ease-in-out infinite;
}
.page-loader-divider-diamond {
  position: relative;
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  transform: rotate(45deg);
  border: 1px solid rgba(248, 250, 251, 0.95);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0 20%, rgba(216, 222, 226, 0.96) 20% 42%, rgba(31, 77, 58, 0.98) 42% 70%, rgba(174, 184, 191, 0.96) 70% 100%);
  box-shadow:
    0 0 0 2px rgba(31, 77, 58, 0.12),
    0 0 14px rgba(248, 250, 251, 0.92),
    0 3px 10px rgba(23, 35, 41, 0.24);
  animation: loaderDiamondPulse 1.25s ease-in-out infinite;
}
.page-loader-divider-diamond::after {
  content: "";
  position: absolute;
  inset: -10px;
  transform: rotate(-45deg);
  background:
    linear-gradient(90deg, transparent 0 42%, rgba(255,255,255,0.96) 48% 52%, transparent 58% 100%),
    linear-gradient(0deg, transparent 0 42%, rgba(255,255,255,0.72) 48% 52%, transparent 58% 100%);
  filter: drop-shadow(0 0 5px rgba(255,255,255,0.8));
  opacity: 0;
  animation: loaderDiamondGlint 1.25s ease-in-out infinite;
}
@keyframes loaderDividerLeft {
  0%   { transform: translateX(-125%); opacity: 0; }
  18%  { opacity: 1; }
  78%  { opacity: 1; }
  100% { transform: translateX(190%); opacity: 0; }
}
@keyframes loaderDividerRight {
  0%   { transform: translateX(125%); opacity: 0; }
  18%  { opacity: 1; }
  78%  { opacity: 1; }
  100% { transform: translateX(-190%); opacity: 0; }
}
@keyframes loaderDiamondPulse {
  0%, 100% {
    filter: brightness(1);
    box-shadow:
      0 0 0 2px rgba(31, 77, 58, 0.12),
      0 0 10px rgba(248, 250, 251, 0.76),
      0 3px 10px rgba(23, 35, 41, 0.20);
  }
  50% {
    filter: brightness(1.16);
    box-shadow:
      0 0 0 2px rgba(31, 77, 58, 0.16),
      0 0 18px rgba(248, 250, 251, 0.98),
      0 3px 12px rgba(23, 35, 41, 0.24);
  }
}
@keyframes loaderDiamondGlint {
  0%, 28%, 100% { opacity: 0; transform: rotate(-45deg) scale(0.78); }
  44% { opacity: 0.86; transform: rotate(-45deg) scale(1.08); }
  60% { opacity: 0; transform: rotate(-45deg) scale(1.24); }
}


/* ------------------------------------------------------------
   2. HEADER / NAVIGATION
   ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(238, 241, 242, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.site-header .nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px 36px;
  gap: 24px;
}
.nav-links            { display: flex; gap: 28px; list-style: none; padding: 0; margin: 0; }
.nav-links.right      { justify-content: flex-end; }
.nav-links .mobile-only { display: none; }
.nav-link {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  padding: 8px 2px;
  position: relative;
  font-weight: 500;
  transition: color .2s;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-link:hover         { color: var(--color-primary); }
.nav-link.active        { color: var(--color-primary); }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 8px;
  height: 8px;
  transform: translateX(-50%) rotate(45deg);
  border: 1px solid rgba(248, 250, 251, 0.92);
  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,0.95) 0 18%,
      rgba(216,222,226,0.96) 18% 38%,
      var(--color-accent) 38% 68%,
      rgba(174,184,191,0.96) 68% 100%
    );
  box-shadow:
    0 0 0 2px rgba(31,77,58,0.14),
    0 0 13px rgba(248,250,251,0.75),
    0 3px 10px rgba(23,35,41,0.28);
  animation: diamondSparkle 2.05s ease-in-out infinite;
}
.nav-link.active::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 10px;
  height: 10px;
  transform: translateX(-50%) rotate(-45deg) scale(0.72);
  background:
    linear-gradient(90deg, transparent 0 42%, rgba(255,255,255,0.96) 48% 52%, transparent 58% 100%),
    linear-gradient(0deg, transparent 0 42%, rgba(255,255,255,0.78) 48% 52%, transparent 58% 100%);
  filter: drop-shadow(0 0 5px rgba(255,255,255,0.85));
  opacity: 0;
  pointer-events: none;
  animation: navDiamondGlint 2.05s ease-in-out infinite;
  animation-delay: 0.28s;
}

/* Brand lockup inside header */
.nav-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
}
.nav-brand .brand-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.nav-brand .top {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 15px;
  color: var(--color-text-soft);
  width: 100%;
  text-align: center;
  margin-bottom: 5px;
}
.nav-brand img         { width: clamp(32px, 4.3vw, 55px); height: auto; }
.nav-brand .wordmark {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.32em;
  color: var(--color-brand-green);
  font-weight: 600;
  line-height: 1;
}

.nav-brand .wordmark .tm {
    display: inline-block;
    font-size: 10px;
    vertical-align: top;
    margin-left: 0px;
    transform: translateY(-5px);
    opacity: 0.78;
    letter-spacing: 0;
    font-weight: 500;
}
.nav-brand .sub {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  max-width: none;
  margin-top: 0;
  padding: 4px 10px 4px 5px;
  border: 1px solid rgba(31, 77, 58, 0.12);
  border-radius: 999px;
  background: rgba(248, 250, 251, 0.58);
  color: var(--color-brand-green);
  font-family: var(--font-display);
  font-size: 8.6px;
  font-style: normal;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  word-spacing: normal;
  box-shadow: 0 10px 24px -22px rgba(23, 35, 41, 0.42);
}

.sub.nav-cert-note {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    align-self: center;
    width: fit-content;
    max-width: 100%;

    padding: 1px 10px 1px 2px;

    border: 1px solid rgba(31, 77, 58, 0.70);
    border-radius: 999px;

    background: var(--color-brand-green) !important;
    color: var(--color-bg-light) !important;

    font-family: var(--font-body);
    font-size: 9px;
    font-style: normal;
    font-weight: 500;
    letter-spacing: 0.03em;

    line-height: 1;
    white-space: nowrap;

    box-shadow: 0 18px 36px -30px rgba(23, 35, 41, 0.50);
	opacity: 0.75;
}

/* icon */
.sub.nav-cert-note .cert-mini-mark {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 22px;

    margin: 0;

    overflow: hidden;
    border-radius: 999px;

    background: rgba(255,255,255,0.98);

    box-shadow:
        0 0 0 2px rgba(255,255,255,0.18);
}

/* image */
.sub.nav-cert-note .cert-mini-mark img {
    width: 25px;
    height: auto;
    display: block;
}

/* text */
.sub.nav-cert-note > span:last-child {
    display: block;
    min-width: 0;
    height: auto;
    line-height: 1.25;
    white-space: nowrap;
}

.nav-brand .sub:not(.nav-cert-note) .cert-mini-mark {
  width: 25px;
  height: 18px;
}
.nav-brand .sub:not(.nav-cert-note) .cert-mini-mark img {
  width: 21px;
}
.nav-brand .stack      { display: flex; flex-direction: column; align-items: center; line-height: 1; }

/* Mobile menu toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--color-primary);
  position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top:  6px; }


/* ------------------------------------------------------------
   2. FOOTER
   ------------------------------------------------------------ */
.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(31, 77, 58, 0.18);
  background:
    linear-gradient(135deg, rgba(248, 250, 251, 0.98), rgba(226, 235, 231, 0.94) 58%, rgba(216, 222, 226, 0.96));
  padding: 62px 36px 30px;
  margin-top: 80px;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(31, 77, 58, 0.055) 0 1px, transparent 1px 82px),
    radial-gradient(circle at 13% 22%, rgba(255, 255, 255, 0.64), transparent 26%),
    radial-gradient(circle at 90% 82%, rgba(31, 77, 58, 0.08), transparent 30%);
  pointer-events: none;
}
.footer-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 1.55fr) minmax(130px, 0.75fr) minmax(190px, 0.95fr) minmax(210px, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.footer-brand-panel {
  max-width: 430px;
}
.site-footer .lockup.small {
  align-items: flex-start;
  text-align: left;
  gap: 5px;
}
.site-footer .lockup.small img {
  width: 52px;
}
.site-footer .lockup.small .name {
  color: var(--color-brand-green);
}
.site-footer .brand-tm {
  position: relative;
  top: -0.72em;
  margin-left: 0.18em;
  font-family: var(--font-display);
  font-size: 0.34em;
  letter-spacing: 0.08em;
  color: var(--color-brand-green);
}
.footer-intro {
  max-width: 380px;
  margin: 18px 0 0;
  color: var(--color-text-soft);
  font-family: var(--font-heading);
  font-size: 15.5px;
  font-style: italic;
  line-height: 1.66;
}
.footer-certification {
  margin-top: 20px;
}
.footer-certified-tagline {
  max-width: 100%;
  padding: 0.54em 1.15em 0.54em 0.58em;
  gap: 0.56em;
  background: var(--color-brand-green);
  border-color: rgba(31, 77, 58, 0.7);
  color: var(--color-bg-light);
  font-family: var(--font-body);
  font-size: clamp(8.6px, 0.76vw, 10px);
  line-height: 1.2;
  letter-spacing: 0.025em;
  text-align: left;
  box-shadow: 0 18px 36px -30px rgba(23, 35, 41, 0.5);
}
.footer-certified-tagline .certified-copy {
  display: block;
  width: max-content;
  max-width: 100%;
  min-width: 0;
}
.footer-certified-tagline .certified-line {
  display: block;
  white-space: nowrap;
}
.footer-certified-tagline .certified-line:first-child {
  letter-spacing: 0.095em;
  text-align: justify;
  text-align-last: justify;
}
.footer-certified-mark {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 28px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--color-bg-light);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.22);
}
.footer-certified-mark img {
  width: 33px;
  height: auto;
  max-width: none;
}
.site-footer h4 {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--color-brand-green);
  margin: 0 0 18px;
  font-weight: 600;
  text-transform: uppercase;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li {
  font-size: 15px;
  color: var(--color-text-soft);
  padding: 4px 0;
  font-style: italic;
  line-height: 1.55;
}
.site-footer a {
  transition: color .2s ease, transform .2s ease;
}
.site-footer a:hover    { color: var(--color-brand-green); }
.footer-social-item {
  padding-top: 10px !important;
}
.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-style: normal;
  color: var(--color-primary-dark);
}
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-right: 0;
  border-radius: 50%;
  background: var(--color-brand-green);
  color: var(--color-bg-light);
  font-size: 0.95rem;
  line-height: 1;
  box-shadow: 0 14px 28px -20px rgba(23, 35, 41, 0.62);
  transition: transform .2s ease, background .2s ease;
}
.footer-social-link:hover .social-icon {
  transform: translateY(-1px);
  background: var(--color-primary-dark);
}
.footer-bottom {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 44px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(31, 77, 58, 0.16);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10.5px;
  color: var(--color-text-faint);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: var(--font-display);
  flex-wrap: wrap;
  gap: 14px;
}
.footer-trust-note {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 4px 14px 4px 4px;

    border: 1px solid rgba(31, 77, 58, 0.70);
    border-radius: 999px;

    background: var(--color-brand-green);
    color: var(--color-bg-light);

    font-family: var(--font-body);
    font-size: 9px;
    font-style: normal;
    font-weight: 500;
    letter-spacing: 0.03em;

    line-height: 1;
    white-space: nowrap;

    box-shadow: 0 18px 36px -30px rgba(23, 35, 41, 0.50);
	opacity: 0.80;
}

/* icon capsule */
.footer-trust-note .footer-bottom-mark {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 22px;

    margin: 0;

    overflow: hidden;
    border-radius: 999px;

    background: rgba(255,255,255,0.98);

    box-shadow:
        0 0 0 2px rgba(255,255,255,0.18);
}

/* image */
.footer-trust-note .footer-bottom-mark img {
    width: 25px;
    height: auto;
    display: block;
}

/* text alignment */
.footer-trust-note > span:last-child {
    display: flex;
    align-items: center;
    height: 22px;
}
.footer-bottom-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 22px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--color-bg-light);
  box-shadow:
    0 0 0 1px rgba(31, 77, 58, 0.16),
    0 10px 22px -18px rgba(23, 35, 41, 0.52);
}
.footer-bottom-mark img {
  width: 26px;
  height: auto;
  max-width: none;
}


/* ------------------------------------------------------------
   3. LOCKUP (footer/about brand mark)
   ------------------------------------------------------------ */
.lockup           { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.lockup .pre {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 18px;
  color: var(--color-text-soft);
}
.lockup img       { width: 96px; height: auto; }
.lockup .name {
  font-family: var(--font-display);
  font-size: 38px;
  letter-spacing: 0.36em;
  color: var(--color-brand-green);
  font-weight: 600;
  text-indent: 0.36em;
}
.lockup .tag {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 16px;
  color: var(--color-accent-dark);
  letter-spacing: 0.04em;
}
.lockup.small img { width: 48px; }
.lockup.small .name { font-size: 22px; letter-spacing: 0.34em; }
.lockup.small .pre  { font-size: 12px; }
.lockup.small .tag  {
  max-width: 300px;
  font-family: var(--font-body);
  font-size: 10px;
  font-style: normal;
  line-height: 1.45;
  text-transform: uppercase;
}

.certification-mark {
  width: 118px;
  margin-top: 18px;
  padding: 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  background: rgba(248, 250, 251, 0.74);
}
.certification-mark img {
  width: 100%;
  height: auto;
}


/* ------------------------------------------------------------
   4. BUTTONS
   ------------------------------------------------------------ */
.btn {
  margin-right: 1.10em;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 32px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  border: 1px solid var(--color-primary);
  background: transparent;
  color: var(--color-primary);
  transition: all .25s;
  font-weight: 500;
  position: relative;
  border-radius: var(--border-radius-sm);
}

/* ============================================================
   BRAND BUTTON THEMES
   ============================================================ */

/* ME'ORA — royal violet diamond luxury */
.brand-meora {
    background:
        linear-gradient(135deg, #2a083b, #5f1f83 58%, #8a42b8);
    border-color: #cda8ff;
    color: #f7efff;
    box-shadow:
        0 14px 34px -18px rgba(111, 44, 145, 0.72);
}

.brand-meora:hover {
    background:
        linear-gradient(135deg, #3a0d52, #7a2bb0 58%, #a25de0);
    color: #ffffff;
}

/* ISHWARA — temple gold */
.brand-ishwara {
    background:
        linear-gradient(135deg, #7b4d00, #c88a12 52%, #f4cf58);
    border-color: #f7df8c;
    color: #fff8e7;
    box-shadow:
        0 14px 34px -18px rgba(179, 118, 0, 0.72);
}

.brand-ishwara:hover {
    background:
        linear-gradient(135deg, #926000, #e1a41d 52%, #ffe07a);
    color: #ffffff;
}

/* SILVORA — ivory luxury silverware */
.brand-silvora {
    background:
        linear-gradient(135deg, #f4f1ea, #e7ddca 52%, #d7c28b);
    border-color: #d8bb66;
    color: #34250f;
    box-shadow:
        0 14px 34px -18px rgba(173, 145, 78, 0.40);
}

.brand-silvora:hover {
    background:
        linear-gradient(135deg, #ffffff, #efe4cf 52%, #e6c975);
    color: #1f1a14;
}

/* STAR JEWELS — metallic black steel */
.brand-star {
    background:
        linear-gradient(135deg, #111111, #2d2d2d 52%, #555555);
    border-color: #d7d7d7;
    color: #f5f5f5;
    box-shadow:
        0 14px 34px -18px rgba(0, 0, 0, 0.72);
}

.brand-star:hover {
    background:
        linear-gradient(135deg, #1b1b1b, #3b3b3b 52%, #767676);
    color: #ffffff;
}

/* WORLD OF SILVER — gifting bronze luxury */
.brand-world {
    background:
        linear-gradient(135deg, #2a1e18, #6e4b36 52%, #b08968);
    border-color: #d8b89b;
    color: #fff7ef;
    box-shadow:
        0 14px 34px -18px rgba(97, 64, 42, 0.72);
}

.brand-world:hover {
    background:
        linear-gradient(135deg, #38271f, #87604a 52%, #c89f7c);
    color: #ffffff;
}

/* diamond sparkle color sync */
.brand-meora::before,
.brand-meora::after {
    background: #e2c2ff;
}

.brand-ishwara::before,
.brand-ishwara::after {
    background: #ffe27a;
}

.brand-silvora::before,
.brand-silvora::after {
    background: #d8bb66;
}

.brand-star::before,
.brand-star::after {
    background: #ffffff;
}

.brand-world::before,
.brand-world::after {
    background: #e6c29f;
}

.btn::before, .btn::after {
  content: "";
  position: absolute;
  width: 8px; height: 8px;
  background: var(--color-accent);
  transform: rotate(45deg);
  transition: background .25s;
}
.btn::before { left: -5px;  top: 50%; margin-top: -4px; }
.btn::after  { right: -5px; top: 50%; margin-top: -4px; }

.btn:hover           { background: var(--color-primary); color: var(--color-bg-light); }
.btn-primary         { background: #1f4d3a; color: var(--color-bg-light); }
.btn-primary:hover   { background: var(--color-primary-dark); }
.btn-gold {
  border-color: var(--color-accent-dark);
  color: var(--color-accent-dark);
}
.btn-gold:hover      { background: var(--color-accent-dark); color: var(--color-bg-light); }


/* ------------------------------------------------------------
   5. DIVIDER (faceted silver diamonds + lines)
   ------------------------------------------------------------ */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(260px, 100%);
  margin: 28px auto;
  color: var(--color-accent);
}
.divider-line {
  flex: 1 1 72px;
  max-width: 92px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(31, 77, 58, 0.62), rgba(216, 222, 226, 0.92));
  background-size: 220% 100%;
  box-shadow: 0 0 8px rgba(248, 250, 251, 0.45);
  animation: dividerLineSparkle 2.6s ease-in-out infinite;
}
.divider-line:last-child {
  background: linear-gradient(90deg, rgba(216, 222, 226, 0.92), rgba(31, 77, 58, 0.62), transparent);
}
.divider-diamond {
  position: relative;
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  overflow: visible;
  border: 1px solid rgba(248, 250, 251, 0.92);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0 18%, rgba(216, 222, 226, 0.96) 18% 38%, rgba(31, 77, 58, 0.98) 38% 68%, rgba(174, 184, 191, 0.96) 68% 100%);
  box-shadow:
    0 0 0 2px rgba(31, 77, 58, 0.14),
    0 0 13px rgba(248, 250, 251, 0.85),
    0 3px 10px rgba(23, 35, 41, 0.28);
  animation: diamondSparkle 2.05s ease-in-out infinite;
}
.divider-diamond::before {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  top: -3px;
  left: -3px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.98) 0 22%, rgba(255, 255, 255, 0.52) 23% 45%, transparent 70%);
  opacity: 0.82;
}
.divider-diamond::after {
  content: "";
  position: absolute;
  inset: -11px;
  transform: rotate(-45deg);
  background:
    linear-gradient(90deg, transparent 0 42%, rgba(255, 255, 255, 0.96) 48% 52%, transparent 58% 100%),
    linear-gradient(0deg, transparent 0 42%, rgba(255, 255, 255, 0.78) 48% 52%, transparent 58% 100%);
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.85));
  opacity: 0;
  pointer-events: none;
  animation: diamondGlint 2.05s ease-in-out infinite;
  animation-delay: 0.28s;
}
.divider-diamond + .divider-diamond {
  animation-delay: 0.45s;
}
.divider-diamond + .divider-diamond::after {
  animation-delay: 0.74s;
}

/* COMMON DIAMOND SPARKLE EFFECT */
.diamond-sparkle-box {
    position: relative;
    overflow: visible;
}

/* left + right diamonds */
.diamond-sparkle-box::before,
.diamond-sparkle-box::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    top: 50%;
    margin-top: -5px;
    transform: rotate(45deg);
    border: 1px solid rgba(248, 250, 251, 0.92);
    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,0.95) 0 18%,
            rgba(216,222,226,0.96) 18% 38%,
            var(--color-accent) 38% 68%,
            rgba(174,184,191,0.96) 68% 100%
        );
    box-shadow:
        0 0 0 2px rgba(31,77,58,0.14),
        0 0 13px rgba(248,250,251,0.75),
        0 3px 10px rgba(23,35,41,0.28);
    animation: diamondSparkle 2.05s ease-in-out infinite;
    pointer-events: none;
}

/* left diamond */
.diamond-sparkle-box::before {
    left: -5px;
}

/* right diamond */
.diamond-sparkle-box::after {
    right: -5px;
    animation-delay: 0.45s;
}

/* sparkle animation */
@keyframes diamondSparkle {
    0%, 100% {
        filter: brightness(1);
        box-shadow:
            0 0 0 2px rgba(31,77,58,0.14),
            0 0 13px rgba(248,250,251,0.72),
            0 3px 10px rgba(23,35,41,0.28);
    }

    38% {
        filter: brightness(1.38) saturate(1.08);
        box-shadow:
            0 0 0 3px rgba(31,77,58,0.22),
            0 0 22px rgba(255,255,255,1),
            0 0 34px rgba(174,184,191,0.72),
            0 3px 12px rgba(23,35,41,0.32);
    }

    58% {
        filter: brightness(1.16);
    }
}

@keyframes navDiamondGlint {
    0%, 24%, 100% {
        opacity: 0;
        transform: translateX(-50%) rotate(-45deg) scale(0.72);
    }

    34% {
        opacity: 0.92;
        transform: translateX(-50%) rotate(-45deg) scale(1.08);
    }

    46% {
        opacity: 0;
        transform: translateX(-50%) rotate(-45deg) scale(1.28);
    }
}

/* reduced motion safe */
@media (prefers-reduced-motion: reduce) {
    .diamond-sparkle-box::before,
    .diamond-sparkle-box::after,
    .nav-link.active::before,
    .nav-link.active::after {
        animation: none;
    }
}

/* ------------------------------------------------------------
   6. HOUSE / BRAND-TEASER CARD (homepage)
   ------------------------------------------------------------ */
.house-card {
  position: relative;
  min-height: 320px;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(142, 154, 163, 0.26);
  background: var(--house-panel, var(--color-bg-light));
  border-radius: var(--border-radius);
  text-align: left;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  text-decoration: none;
  display: flex;
  align-items: flex-end;
  scroll-snap-align: center;
  color: var(--color-bg-light);
}
.house-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(23, 35, 41, 0.03) 0%, rgba(23, 35, 41, 0.22) 42%, rgba(23, 35, 41, 0.88) 100%),
    radial-gradient(circle at 50% 20%, var(--house-accent-soft, rgba(174, 184, 191, 0.22)), transparent 42%);
}
.house-card::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(248, 250, 251, 0.28);
  pointer-events: none;
  opacity: 0.68;
}
.house-card-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--house-image-position, center);
  transform: scale(1.02);
  transition: transform .6s cubic-bezier(.22, .61, .36, 1), filter .25s ease;
}
.house-card-copy {
  width: 100%;
  min-width: 0;
  padding: 0 18px 22px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.48);
}
.house-theme-silvora.house-card {
  color: var(--color-primary-dark);
}
.house-theme-silvora.house-card::before {
  background:
    linear-gradient(180deg, rgba(248, 250, 251, 0.08) 0%, rgba(248, 250, 251, 0.30) 44%, rgba(248, 250, 251, 0.96) 100%),
    radial-gradient(circle at 50% 18%, rgba(197, 162, 74, 0.22), transparent 44%);
}
.house-theme-silvora .house-card-copy {
  text-shadow: 0 2px 14px rgba(255, 255, 255, 0.42);
}
.house-card:hover {
  transform: translateY(-3px);
  border-color: var(--house-accent, var(--color-accent));
  border-color: color-mix(in srgb, var(--house-accent, var(--color-accent)) 64%, transparent);
  box-shadow: 0 24px 46px -30px rgba(23, 35, 41, 0.58);
}
.house-card:hover .house-card-img,
.house-card:focus-visible .house-card-img {
  transform: scale(1.08);
  filter: saturate(1.06) brightness(1.03);
}
.house-card:focus-visible {
  outline: 2px solid var(--house-accent, var(--color-brand-green));
  outline-offset: 3px;
}
.house-card .h-name {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: clamp(0.08em, 0.6vw, 0.18em);
  color: currentColor;
  font-weight: 600;
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.house-card .h-city {
  display: block;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 14px;
  color: currentColor;
  color: color-mix(in srgb, currentColor 76%, var(--house-accent, var(--color-accent)) 24%);
  margin: 4px 0 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.house-card .h-rule {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, var(--house-accent, var(--color-accent)), transparent);
  margin: 10px 0;
}
.house-card .h-tag {
  display: block;
  font-size: 13px;
  color: currentColor;
  color: color-mix(in srgb, currentColor 82%, transparent);
  font-style: italic;
  line-height: 1.35;
}
.house-theme-world .h-name,
.house-theme-star .h-name {
  letter-spacing: 0.08em;
}


/* ------------------------------------------------------------
   7. PRODUCT CARDS (services page)
   ------------------------------------------------------------ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1320px;
  margin: 0 auto;
}
.product-card {
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(248, 250, 251, 0.96));
  border: 1px solid rgba(31, 77, 58, 0.12);
  border-radius: var(--border-radius);
  position: relative;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 24px 58px -48px rgba(23, 35, 41, 0.34);
}
.product-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--brand-accent, var(--color-brand-green)), transparent);
  opacity: 0.56;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--brand-accent, var(--color-brand-green)) 35%, transparent);
  box-shadow: 0 30px 68px -42px rgba(23, 35, 41, 0.42);
}
.product-card:focus-visible {
  outline: 2px solid var(--brand-accent, var(--color-accent));
  outline-offset: 4px;
}

/* Image placeholder — drop a real image into assets/images/gallery/
   and reference it as <img> inside .product-img */
.product-img {
  aspect-ratio: 4 / 3;
  position: relative;
  background:
    radial-gradient(circle at 74% 16%, rgba(255, 255, 255, 0.72), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), var(--brand-soft, rgba(216, 222, 226, 0.44)));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-img::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(31, 77, 58, 0.10);
  pointer-events: none;
}
.product-img img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 16px;
  object-fit: contain;
  filter: saturate(0.96) contrast(1.02);
  transition: transform .42s ease, filter .25s ease;
}
.product-card:hover .product-img img {
  transform: scale(1.025);
  filter: saturate(1.02) contrast(1.04);
}
.product-img .placeholder-label {
  position: relative;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  background: rgba(248, 250, 251, 0.88);
  padding: 6px 12px;
  border: 1px solid var(--color-border);
}
.product-meta {
  flex: 1;
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.product-meta .ref {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--brand-accent, var(--color-brand-green)) 64%, var(--color-text-faint) 36%);
}
.product-meta .name {
  font-family: var(--font-heading);
  font-size: clamp(20px, 1.8vw, 23px);
  font-style: italic;
  color: var(--color-brand-green);
  line-height: 1.15;
}
.product-meta .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px dotted var(--color-border);
}
.product-meta .price {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--color-accent-dark);
  letter-spacing: 0.12em;
}
.product-meta .badge {
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-accent, var(--color-brand-green));
  border: 1px solid color-mix(in srgb, var(--brand-accent, var(--color-brand-green)) 36%, transparent);
  border-radius: 999px;
  padding: 4px 8px;
  white-space: nowrap;
  background: rgba(248, 250, 251, 0.72);
}


/* ------------------------------------------------------------
   8. PRODUCT QUICK VIEW MODAL (services page)
   ------------------------------------------------------------ */
.product-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 4vw, 48px);
  background: rgba(23, 35, 41, 0.48);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.product-modal.is-open { display: flex; }
body.modal-open { overflow: hidden; }

.product-modal-dialog {
  position: relative;
  width: min(1080px, 100%);
  /* Fixed viewport-aware height lets the right panel scroll instead of clipping. */
  height: min(760px, calc(100vh - 36px));
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(360px, 1.08fr);
  align-items: stretch;
  background:
    linear-gradient(180deg, rgba(248, 250, 251, 0.98), rgba(238, 241, 242, 0.98));
  border: 1px solid rgba(142, 154, 163, 0.46);
  border-radius: var(--border-radius);
  box-shadow: 0 34px 90px -30px rgba(8, 16, 20, 0.64);
  overflow: hidden;
}
.product-modal-media {
  position: relative;
  min-height: 0;
  background:
    repeating-linear-gradient(135deg, rgba(142, 154, 163, 0.08) 0 2px, transparent 2px 16px),
    linear-gradient(180deg, #f7f9fa, #dfe5e8);
  border-right: 1px solid var(--color-border);
  display: grid;
  place-items: center;
  padding: 28px;
}
.product-modal-media.is-loading::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 30%, rgba(248, 250, 251, 0.86), transparent 36%),
    repeating-linear-gradient(135deg, rgba(142, 154, 163, 0.06) 0 1px, transparent 1px 14px),
    linear-gradient(135deg, rgba(248, 250, 251, 0.96), rgba(216, 222, 226, 0.58));
}
.product-modal-media.is-loading::after {
  content: "";
  position: absolute;
  inset: 22px;
  z-index: 0;
  border-radius: 8px;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 32%, rgba(248, 250, 251, 0.92) 48%, transparent 64% 100%) top / 220% 1px no-repeat,
    linear-gradient(180deg, transparent 0 32%, rgba(31, 77, 58, 0.28) 48%, transparent 64% 100%) right / 1px 220% no-repeat,
    linear-gradient(270deg, transparent 0 32%, rgba(248, 250, 251, 0.78) 48%, transparent 64% 100%) bottom / 220% 1px no-repeat,
    linear-gradient(0deg, transparent 0 32%, rgba(31, 77, 58, 0.20) 48%, transparent 64% 100%) left / 1px 220% no-repeat;
  animation: productModalWave 3.8s linear infinite;
  opacity: 0.72;
}
.product-modal-loader {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(220px, 72%);
  transition: opacity .22s ease, visibility .22s ease;
}
.product-modal-media:not(.is-loading) .product-modal-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.product-modal-loader-line {
  position: relative;
  flex: 1 1 76px;
  height: 1px;
  overflow: hidden;
  background: linear-gradient(90deg, transparent, rgba(31, 77, 58, 0.32), rgba(174, 184, 191, 0.62));
}
.product-modal-loader-line:last-child {
  background: linear-gradient(90deg, rgba(174, 184, 191, 0.62), rgba(31, 77, 58, 0.32), transparent);
}
.product-modal-loader-line::after {
  content: "";
  position: absolute;
  top: 0;
  width: 58%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--color-brand-green), rgba(248, 250, 251, 0.96), transparent);
  filter: drop-shadow(0 0 5px rgba(248, 250, 251, 0.72));
}
.product-modal-loader-line:first-child::after {
  left: 0;
  animation: productModalLineLeft 1.2s ease-in-out infinite;
}
.product-modal-loader-line:last-child::after {
  right: 0;
  animation: productModalLineRight 1.2s ease-in-out infinite;
}
.product-modal-loader-diamond {
  position: relative;
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  transform: rotate(45deg);
  border: 1px solid rgba(248, 250, 251, 0.96);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0 20%, rgba(216, 222, 226, 0.98) 20% 42%, rgba(31, 77, 58, 0.98) 42% 70%, rgba(174, 184, 191, 0.96) 70% 100%);
  box-shadow:
    0 0 0 2px rgba(31, 77, 58, 0.12),
    0 0 14px rgba(248, 250, 251, 0.92),
    0 3px 10px rgba(23, 35, 41, 0.22);
  animation: productModalDiamondPulse 1.2s ease-in-out infinite;
}
.product-modal-media img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* width: min(calc(100% - 56px), 560px); */
  height: auto;
  max-height: min(calc(100% - 56px), 620px, calc(100vh - 120px));
  object-fit: contain;
  opacity: 0;
  transition: opacity .32s ease;
}
.product-modal-media img.is-loaded {
  opacity: 1;
}
.product-modal-media.is-zoomable img.is-loaded {
  cursor: zoom-in;
}
.product-modal-media.is-loading img {
  opacity: 0;
}
.product-modal-zoom {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(31, 77, 58, 0.26);
  border-radius: 999px;
  background: rgba(248, 250, 251, 0.86);
  box-shadow: 0 14px 36px -18px rgba(8, 16, 20, 0.42);
  cursor: pointer;
  transition: transform .24s ease, background .24s ease, border-color .24s ease;
}
.product-modal-zoom[hidden] {
  display: none;
}
.product-modal-zoom span,
.product-modal-zoom span::before,
.product-modal-zoom span::after {
  position: absolute;
  display: block;
  content: "";
}
.product-modal-zoom span {
  top: 12px;
  left: 12px;
  width: 13px;
  height: 13px;
  border: 1.6px solid var(--color-brand-green);
  border-radius: 50%;
}
.product-modal-zoom span::before {
  left: 50%;
  top: 3px;
  width: 1.4px;
  height: 6px;
  background: var(--color-brand-green);
  transform: translateX(-50%);
}
.product-modal-zoom span::after {
  left: 10px;
  top: 12px;
  width: 10px;
  height: 1.6px;
  background: var(--color-brand-green);
  border-radius: 999px;
  transform: rotate(45deg);
  transform-origin: left center;
}
.product-modal-zoom:hover,
.product-modal-zoom:focus-visible {
  transform: translateY(-2px) scale(1.04);
  background: rgba(248, 250, 251, 0.96);
  border-color: rgba(31, 77, 58, 0.46);
}
.product-modal-placeholder {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  border: 1px solid var(--color-border);
  background: rgba(248, 250, 251, 0.88);
  padding: 12px 18px;
}
@keyframes productModalWave {
  0% { background-position: 220% 0, 100% 220%, -120% 100%, 0 -120%; }
  100% { background-position: -120% 0, 100% -120%, 220% 100%, 0 220%; }
}
@keyframes productModalLineLeft {
  0%   { transform: translateX(-130%); opacity: 0; }
  18%, 78% { opacity: 1; }
  100% { transform: translateX(190%); opacity: 0; }
}
@keyframes productModalLineRight {
  0%   { transform: translateX(130%); opacity: 0; }
  18%, 78% { opacity: 1; }
  100% { transform: translateX(-190%); opacity: 0; }
}
@keyframes productModalDiamondPulse {
  0%, 100% {
    filter: brightness(1);
    transform: rotate(45deg) scale(1);
  }
  50% {
    filter: brightness(1.16);
    transform: rotate(45deg) scale(1.08);
  }
}
.product-image-zoom {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 56px);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 18%, rgba(248, 250, 251, 0.16), transparent 38%),
    rgba(8, 16, 20, 0.74);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .34s ease, visibility .34s ease;
}
.product-image-zoom.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.product-image-zoom-img {
  max-width: min(94vw, 1220px);
  max-height: 88vh;
  object-fit: contain;
  background:
    linear-gradient(180deg, rgba(248, 250, 251, 0.96), rgba(232, 237, 239, 0.96));
  border: 1px solid rgba(248, 250, 251, 0.42);
  border-radius: 6px;
  box-shadow:
    0 34px 100px -28px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(31, 77, 58, 0.18);
  opacity: 0;
  transform: scale(0.92) translateY(12px);
  transition: opacity .42s ease, transform .42s cubic-bezier(.22, .61, .36, 1);
}
.product-image-zoom.is-open .product-image-zoom-img.is-loaded {
  opacity: 1;
  transform: scale(1) translateY(0);
}
.product-image-zoom-close {
  position: fixed;
  top: clamp(14px, 3vw, 28px);
  right: clamp(14px, 3vw, 28px);
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(248, 250, 251, 0.38);
  border-radius: 999px;
  background: rgba(248, 250, 251, 0.9);
  color: var(--color-brand-green);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 16px 40px -20px rgba(0, 0, 0, 0.62);
  transition: transform .24s ease, background .24s ease;
}
.product-image-zoom-close:hover,
.product-image-zoom-close:focus-visible {
  transform: translateY(-2px) scale(1.04);
  background: #fff;
}
.product-modal-content {
  padding: clamp(30px, 4vw, 52px);
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: rgba(248, 250, 251, 0.94);
  color: var(--color-primary);
  font-size: 28px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s, transform .2s;
}
.product-modal-close:hover {
  background: var(--color-primary);
  color: var(--color-bg-light);
  transform: rotate(90deg);
}
.product-modal-brand {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin-bottom: 10px;
}
.product-modal-title {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(34px, 4vw, 48px);
  color: var(--color-brand-green);
  margin: 0;
  line-height: 1.08;
}
.product-modal-sku {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}
.product-detail-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  margin: 30px 0 0;
  border-top: 1px solid var(--color-border);
  padding-right: 10px;
}
.product-detail-row {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 22px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(142, 154, 163, 0.24);
}
.product-detail-label {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
}
.product-detail-value {
  color: var(--color-text-soft);
  line-height: 1.65;
}
.product-modal-actions {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  padding-bottom: 2px;
  border-top: 1px solid var(--color-border);
}


/* ------------------------------------------------------------
   9. ORNATE FRAME (silver filigree corners + edges)
   ------------------------------------------------------------ */
.ornate-frame {
  position: relative;
  background: linear-gradient(180deg, var(--color-bg-light), var(--color-bg));
  padding: 80px clamp(40px, 6vw, 96px);
  box-shadow:
    inset 0 0 0 1px var(--color-border),
    0 30px 80px -40px rgba(23, 35, 41, 0.36);
  border-radius: var(--border-radius);
  max-width: 1100px;
  margin: 0 auto;
}
.ornate-frame .corner {
  position: absolute;
  width: 140px;
  height: 140px;
  pointer-events: none;
}
.corner-tl { top: 16px;    left: 16px; }
.corner-tr { top: 16px;    right: 16px; transform: scaleX(-1); }
.corner-bl { bottom: 16px; left: 16px;  transform: scaleY(-1); }
.corner-br { bottom: 16px; right: 16px; transform: scale(-1, -1); }


/* ------------------------------------------------------------
   9. FORMS (contact page)
   ------------------------------------------------------------ */
.contact-form {
  background: var(--color-bg-light);
  padding: 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  box-shadow: inset 0 0 0 1px rgba(142, 154, 163, 0.14);
}
.form-intro             { margin-bottom: 28px; }
.form-intro h3 {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  font-size: 32px;
  color: var(--color-primary);
  margin: 8px 0 0;
}
.field                  { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.field label {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}
.field input,
.field textarea,
.field select {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border);
  padding: 10px 0;
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--color-text);
  outline: none;
  font-style: italic;
  border-radius: 0;
}
.field textarea         { min-height: 100px; resize: vertical; font-style: normal; }
.field input:focus,
.field textarea:focus,
.field select:focus     { border-bottom-color: var(--color-primary); }
.field-row              { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

/* Form feedback */
.field.error input,
.field.error textarea,
.field.error select     { border-bottom-color: #b04040; }
.field .error-msg {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 12px;
  color: #b04040;
  display: none;
}
.field.error .error-msg { display: block; }
.captcha-field {
  margin: 4px 0 20px;
  min-height: 65px;
  display: flex;
  justify-content: center;
}
.form-success {
  position: fixed;
  inset: 0;
  z-index: 1300;
  width: auto;
  margin: 0;
  padding: 24px;
  background: rgba(23, 35, 41, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--color-primary);
  text-align: center;
  font-style: italic;
  display: none;
  align-items: center;
  justify-content: center;
}
.form-success-dialog {
  position: relative;
  width: min(460px, 100%);
  padding: 34px 34px 30px;
  background: rgba(248, 250, 251, 0.98);
  border: 1px solid var(--color-primary);
  border-radius: var(--border-radius);
  box-shadow: 0 34px 90px -30px rgba(8, 16, 20, 0.72);
  transform: scale(0.96) translateY(8px);
  animation: formSuccessPop .22s ease forwards;
}
.form-success-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: rgba(248, 250, 251, 0.94);
  color: var(--color-primary);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.form-success-close:hover {
  background: var(--color-primary);
  color: var(--color-bg-light);
}
.form-success-message {
  font-family: var(--font-heading);
  font-size: 22px;
  line-height: 1.45;
}
.form-success.is-error .form-success-dialog {
  border-color: #b04040;
}
.form-success.is-error .form-success-message {
  color: #b04040;
  font-size: 17px;
}
.form-success.show      { display: flex; }
@keyframes formSuccessPop {
  to { transform: scale(1) translateY(0); }
}


/* ------------------------------------------------------------
   10. BREADCRUMB / BRAND-FILTER CHIPS (services page)
   ------------------------------------------------------------ */
.brand-filter {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}
.chip {
  border: 1px solid var(--color-border);
  padding: 10px 18px;
  background: transparent;
  color: var(--color-text-soft);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  border-radius: var(--border-radius-sm);
  transition: all .2s;
  text-decoration: none;
}
.chip:hover           { color: var(--color-primary); }
.chip.active {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-bg-light);
}



/* ------------------------------------------------------------
   10. WHATSAPP FLOATING BUTTON
   ------------------------------------------------------------
   Injected on every page by assets/js/main.js.
   To change the destination number, edit WA_NUMBER in main.js
   (digits only, with country code, no '+' or spaces).
   ------------------------------------------------------------ */
.wa-fab {
  position: fixed;
  right: clamp(18px, 2.6vw, 32px);
  bottom: clamp(18px, 2.6vw, 32px);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #1faa55;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  z-index: 1000;
  box-shadow:
    0 16px 36px -10px rgba(31, 170, 85, 0.55),
    0 5px 14px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.wa-fab:hover {
  transform: translateY(-2px) scale(1.04);
  background: #178a45;
  box-shadow:
    0 18px 36px -10px rgba(31, 170, 85, 0.65),
    0 6px 14px rgba(0, 0, 0, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}
.wa-fab:active { transform: translateY(0) scale(0.98); }

.wa-fab svg { width: 36px; height: 36px; display: block; }

/* Gentle pulse ring */
.wa-fab::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(31, 170, 85, 0.55);
  animation: waPulse 2.4s cubic-bezier(.2,.7,.3,1) infinite;
  pointer-events: none;
}
@keyframes waPulse {
  0%   { transform: scale(1);    opacity: 0.85; }
  70%  { transform: scale(1.35); opacity: 0;    }
  100% { transform: scale(1.35); opacity: 0;    }
}

/* Small tooltip label that appears on hover (desktop only) */
.wa-fab::after {
  content: "Chat with us";
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: var(--color-primary, #172329);
  color: #fff;
  font-family: var(--font-display, "Cinzel"), serif;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.wa-fab:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
@media (max-width: 640px) {
  .wa-fab        { width: 64px; height: 64px; }
  .wa-fab svg    { width: 32px; height: 32px; }
  .wa-fab::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .divider-line,
  .divider-diamond,
  .divider-diamond::after,
  .page-loader-divider-line::after,
  .page-loader-divider-diamond,
  .page-loader-divider-diamond::after,
  .product-modal-media.is-loading::before,
  .product-modal-media.is-loading::after,
  .product-modal-loader-line::after,
  .product-modal-loader-diamond,
  .wa-fab::before { animation: none; }
}
