/* Shared header, footer and theme rules for every CARTA PACK page except the home page. */
@font-face { font-family: "Carta Sans"; src: url("fonts/3564ed0b5363.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Carta Sans"; src: url("fonts/c1691e8168b2.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Carta Sans"; src: url("fonts/97d0bd44f173.ttf") format("truetype"); font-weight: 800; font-display: swap; }

/* Header geometry mirrors the home page canvas (index.html) so logo, pledge and menu never move between pages. */
/* Reserve scrollbar space so short (home) and long pages have the same width and the header does not shift. */
html { scrollbar-gutter: stable; }
.site-header { background: #fcfcfc; font-family: "Carta Sans", Arial, sans-serif; color: #111; }
.site-header__inner { width: min(100%, 1536px); margin: 0 auto; container-type: inline-size; }
.site-header__bar { position: relative; height: 5.6cqw; }
.site-logo { position: absolute; left: 6.25cqw; top: 1.17cqw; width: 14.91cqw; }
.site-logo img, .site-pledge, .site-lang img { display: block; width: 100%; height: auto; }
.site-pledge { position: absolute; left: 30.92cqw; top: 2.02cqw; width: 15.3cqw; }
.site-nav { position: absolute; top: 1.15cqw; left: 55.79cqw; right: 5.86cqw; display: flex; justify-content: space-between; white-space: nowrap; font-size: 1.30cqw; letter-spacing: -.04cqw; }
.site-nav a { color: inherit; text-decoration: none; }
.site-nav a:hover { color: #ff4814; }
.site-nav a[aria-current] { text-decoration: underline .22cqw #ff4814; text-underline-offset: .55cqw; }
.site-lang { position: absolute; left: 95.76cqw; top: 1.5cqw; width: 1.89cqw; line-height: 0; }
.flag-it { display: block; width: 100%; aspect-ratio: 29 / 20; box-shadow: 0 0 0 1px #ddd; background: linear-gradient(90deg, #009246 33.33%, #fff 33.33% 66.66%, #ce2b37 66.66%); }
.site-header a:focus-visible, .site-footer a:focus-visible { outline: 2px solid #ff4814; outline-offset: 3px; }
@media (max-width: 700px) {
  .site-header { background: #fff; }
  .site-header__inner { container-type: normal; padding: 0 20px; }
  .site-header__bar { height: auto; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 16px 0; }
  .site-logo, .site-pledge, .site-nav { position: static; width: auto; }
  .site-logo { width: 180px; }
  .site-pledge { width: 155px; justify-self: end; }
  .site-nav { grid-column: 1 / -1; flex-wrap: wrap; justify-content: flex-start; gap: 10px 17px; font-size: 14px; white-space: normal; padding-right: 40px; }
  .site-nav a { white-space: nowrap; }
  .site-nav a[aria-current] { text-decoration-thickness: 2px; text-underline-offset: 5px; }
  .site-lang { left: auto; top: auto; right: 0; bottom: 0; width: 27px; }
}

.site-footer { font-family: "Carta Sans", Arial, sans-serif; color: #551063; }
.site-footer__inner { max-width: 1536px; margin: 0 auto; padding: 0 clamp(20px, 6.25vw, 96px) 36px; }
.site-footer__line { border-top: 1px solid #ff4814; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px 30px; }
.site-footer__tag { margin: 0; font-size: clamp(18px, 1.9vw, 28px); letter-spacing: -.03em; }
.site-footer__contact { margin: 0; font-size: 15px; color: #3b2a3f; }
.site-footer__contact a { color: #e7440e; text-decoration: none; }


/* Natural Stone sub-pages built on the generic template: match the stone landing page. */
.stone-sub { background: #faf7f4; }
.stone-sub main { font-family: Georgia, "Times New Roman", serif; color: #101010; }
.stone-sub main h1 { color: #101010; font-weight: 400; }
.stone-sub main .eyebrow { color: #9b501f; font-family: Arial, sans-serif; }
.stone-sub main .eyebrow::before { content: ""; display: block; width: 66px; height: 6px; background: #c68a4d; margin-bottom: 10px; }
.stone-sub main .action { background: #a8642d; color: #fff; font-weight: 400; }
.theme-stone .site-footer { color: #6b3a17; }
.theme-stone .site-footer__line { border-top-color: #b98a66; }

/* Natural Stone section menu (formats, cut to size). */
.stone-subnav{display:flex;justify-content:center;flex-wrap:wrap;background:#fbf5ee;border-top:1px solid #eee4d7;border-bottom:1px solid #eee4d7;padding:12px clamp(16px,6vw,92px)}
.stone-subnav a{color:#4c2919;text-decoration:none;padding:0 22px;border-right:1px solid #b68965;font:15px Georgia,serif}
.stone-subnav a:last-child{border:0}
.stone-subnav a:hover{color:#9b501f}
.stone-subnav a[aria-current]{font-weight:bold;text-decoration:underline;text-decoration-color:#f4511e;text-decoration-thickness:2px;text-underline-offset:8px}
@media (max-width:700px){.stone-subnav{justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;white-space:nowrap;padding:10px 20px;scrollbar-width:none}.stone-subnav a{padding:0 12px;font-size:14px}.stone-subnav a:first-child{padding-left:0}}
