/* =========================================================
   SAVARI MASTER ALLOYS — main stylesheet
   Change the colors and fonts here. All pages use this file.
   ========================================================= */

:root {
  --gold: #E6A520;        /* buttons, footer, links */
  --gold-dark: #AC7214;   /* hover */
  --slate: #6C7C84;       /* logo color, headings */
  --ink: #161616;         /* body text */
  --muted: #5f6360;       /* secondary text */
  --line: #BFBFBF;        /* form lines */
  --white: #FFFFFF;
  --black: #000000;

  --font-head: "Jost", "Futura", "Trebuchet MS", sans-serif;
  --font-body: "Nunito Sans", "Avenir", "Helvetica Neue", Arial, sans-serif;

  --max: 1100px;          /* content width */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
a:hover { color: var(--gold-dark); }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--slate);
  line-height: 1.3;
  margin: 0 0 .6em;
}
h1, h2 { font-size: 40px; }
h3 { font-size: 22px; }
.label { font-weight: 700; color: var(--ink); margin: 1.6em 0 .3em; }
.label:first-child { margin-top: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header { background: var(--white); position: sticky; top: 0; z-index: 10; }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 140px; gap: 24px;
}
.site-header .logo img { width: 320px; height: auto; }
.nav { display: flex; gap: 36px; }
.nav a {
  color: var(--ink); text-decoration: none; font-size: 18px; letter-spacing: .02em;
}
.nav a:hover, .nav a.active { color: var(--gold); }
.nav-toggle { display: none; }

/* ---------- Hero (home): videos behind the hand ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--black) url("../img/video-poster.jpg") center / cover no-repeat;
  height: min(85vh, 820px);
  min-height: 380px;
}
.hero-videos, .hero-videos video, .hero-shade {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.hero-videos video {
  object-fit: cover; opacity: 0; transition: opacity 1.4s ease;
}
.hero-videos video.on { opacity: 1; }
.hero-shade {   /* darkens the videos so the hand stands out */
  background: radial-gradient(ellipse at 50% 40%, rgba(0,0,0,.25) 0%, rgba(0,0,0,.7) 75%);
}
.hero-hand {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  height: 94%; width: auto; max-width: none;
  animation: rise 1.6s ease-out both;
}
@keyframes rise {
  from { opacity: 0; transform: translate(-50%, 40px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(50px); transition: opacity 1s ease, transform 1s ease; }
.reveal.from-left  { transform: translateX(-80px); }
.reveal.from-right { transform: translateX(80px); }
.reveal.visible { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: .2s; }
.reveal.delay-2 { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-hand { animation: none; }
}

/* ---------- Products ---------- */
.products-intro { text-align: center; max-width: 700px; margin: 0 auto 30px; }
.eyebrow {
  font-family: var(--font-head); letter-spacing: .25em; text-transform: uppercase;
  font-size: 13px; color: var(--gold); margin-bottom: .4em;
}
.product {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 70px; align-items: center;
  padding: 70px 0;
}
.product.flip .product-img { order: 2; }
.product-img { position: relative; }
.product-img img { position: relative; z-index: 1; width: 100%; background: #fff; }
.product-img::before {   /* offset gold frame, inspired by line frames */
  content: ""; position: absolute; z-index: 0;
  top: 28px; left: -28px; right: 28px; bottom: -28px;
  border: 1px solid var(--gold);
}
.product.flip .product-img::before { left: 28px; right: -28px; }
.product-code {
  font-family: var(--font-head); font-size: 54px; font-weight: 500;
  color: var(--slate); line-height: 1; margin: 0 0 .2em;
}
.product-name { font-size: 20px; font-weight: 400; margin: 0 0 1em; }
.product-specs { list-style: none; padding: 0; margin: 0 0 1.8em; border-top: 1px solid #e5e5e5; }
.product-specs li {
  display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #e5e5e5;
}
.product-specs span:first-child { color: var(--muted); }
.btn-dark {
  display: inline-block; width: auto; background: #222; color: #fff; text-decoration: none;
  padding: 14px 34px; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; font-weight: 600;
}
.btn-dark:hover { background: var(--gold); color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.text-narrow { max-width: 760px; }
.band-metal {
  height: 400px;
  background: #999 url("../img/metal-band.jpg") center / cover no-repeat;
}
.band-badge {
  background: #111 url("../img/metal-dark.jpg") center / cover no-repeat;
  padding: 70px 0;
  text-align: center;
}
.band-badge img { width: 300px; margin: 0 auto; }

/* Two columns: text + form, or text + image */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.split-image { display: grid; grid-template-columns: 1fr 1fr; min-height: 640px; }
.split-image .text { padding: 70px 60px 70px max(24px, calc((100vw - var(--max)) / 2 + 24px)); }
.split-image .photo { background-size: cover; background-position: center; min-height: 420px; }
.crown-img { width: 340px; max-width: 100%; margin: 50px auto 0; }

.address { margin-top: 2em; }
.address strong { font-weight: 700; display: block; }

/* ---------- Forms ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: 15px; color: var(--ink); }
.form input, .form select, .form textarea {
  width: 100%;
  font: inherit; font-size: 16px;
  border: 0; border-bottom: 1px solid var(--line);
  padding: 8px 2px; background: transparent; color: var(--ink);
}
.form select { border: 1px solid var(--ink); padding: 10px 8px; }
.form textarea { min-height: 110px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-bottom-color: var(--gold);
}
.btn {
  display: inline-block; width: 100%;
  background: var(--gold); color: var(--white);
  border: 0; border-radius: 3px; padding: 12px 20px;
  font: inherit; font-weight: 600; cursor: pointer; text-align: center;
}
.btn:hover { background: var(--gold-dark); }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.hidden { display: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--gold); color: var(--white);
  text-align: center; font-size: 15px; padding: 24px 0;
}
.site-footer .wrap { display: flex; align-items: center; justify-content: center; gap: 12px; }
.site-footer img { width: 28px; filter: brightness(0) invert(1); }

/* ---------- Mobile ---------- */
@media (max-width: 800px) {
  h1, h2 { font-size: 30px; }
  .site-header .wrap { min-height: 90px; }
  .site-header .logo img { width: 210px; }
  .nav-toggle {
    display: block; background: none; border: 0; font-size: 28px; cursor: pointer; color: var(--slate);
  }
  .nav {
    display: none; position: absolute; top: 90px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--white);
    border-top: 1px solid #eee; box-shadow: 0 8px 16px rgba(0,0,0,.08);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 24px; border-bottom: 1px solid #eee; }
  .hero { height: 62vh; }
  .hero { height: auto; aspect-ratio: 4 / 5; min-height: 0; }
  .hero-hand { height: auto; width: 115%; }
  .product, .product.flip { grid-template-columns: 1fr; gap: 50px; padding: 40px 0; }
  .product.flip .product-img { order: 0; }
  .product-img::before { top: 16px; left: -12px; right: 12px; bottom: -16px; }
  .product.flip .product-img::before { left: 12px; right: -12px; }
  .product-code { font-size: 40px; }
  .section { padding: 56px 0; }
  .split, .split-image, .form { grid-template-columns: 1fr; }
  .split-image .text { padding: 50px 24px; }
  .band-metal { height: 200px; }
}

#products { scroll-margin-top: 140px; }
@media (max-width: 800px) { body { font-size: 16px; } #products { scroll-margin-top: 90px; } }

/* ---------- One-page layout ---------- */
section[id] { scroll-margin-top: 140px; }
@media (max-width: 800px) { section[id] { scroll-margin-top: 90px; } }
.more-link { font-weight: 600; text-decoration: none; }

/* ---------- Full About Us (centered, moving image) ---------- */
.about-full { padding: 0 0 100px; background: #fafafa; }
.about-photo {
  height: min(70vh, 620px); overflow: hidden; position: relative;
}
.about-photo-inner {
  position: absolute; left: 0; right: 0; top: -12%; bottom: -12%;
  background-size: cover; background-position: center;
  will-change: transform;
}
/* image starts larger and slightly faded, then settles when it enters the screen */
.zoom-in { opacity: 0; transform: scale(1.12); transition: opacity 1.4s ease, transform 2.4s cubic-bezier(.2,.7,.2,1); }
.zoom-in.visible { opacity: 1; transform: scale(1); }
.about-text {
  max-width: 820px; text-align: center;
  margin-top: -90px; position: relative; z-index: 2;
  background: #fff; padding: 60px 60px 50px;
  box-shadow: 0 20px 60px rgba(0,0,0,.08);
}
.about-text h3 { margin-top: 2em; }
.about-text .crown-img { margin: 40px auto 0; }

/* Order photo fades in */
.reveal-fade { opacity: 0; transition: opacity 1.6s ease; }
.reveal-fade.visible { opacity: 1; }

@media (max-width: 800px) {
  .about-photo { height: 45vh; }
  .about-text { margin-top: -50px; padding: 40px 22px; width: calc(100% - 24px); }
}
@media (prefers-reduced-motion: reduce) {
  .zoom-in, .reveal-fade { opacity: 1; transform: none; transition: none; }
}

/* ---------- Product focus: HG135 (one continuous block) ---------- */
.focus { position: relative; background: #f7f5f0; padding: 90px 0 90px; overflow: hidden; }
.focus-bg {   /* soft video at the top, fades into the background */
  position: absolute; top: 0; left: 0; width: 100%; height: 620px;
  object-fit: cover; object-position: center 35%;
  opacity: .30; filter: blur(1px) saturate(.7);
  -webkit-mask-image: linear-gradient(180deg, #000 35%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 35%, transparent 100%);
}
.focus-inner { position: relative; z-index: 1; }
.focus-head { text-align: center; margin-bottom: 70px; }
.focus-head .product-code { font-size: 76px; }
.focus-sub { font-size: 20px; font-weight: 400; margin: 0; letter-spacing: .03em; }

.focus-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.ratio { display: flex; align-items: center; gap: 26px; margin: 26px 0; }
.ratio .num {
  display: block; font-family: var(--font-head); font-size: 58px; font-weight: 500;
  line-height: 1; color: var(--gold-dark);
}
.ratio .unit { display: block; text-transform: uppercase; letter-spacing: .2em; font-size: 13px; margin-top: 8px; color: var(--muted); }
.ratio .plus { font-family: var(--font-head); font-size: 40px; color: var(--slate); }

.focus-compare { margin: 0; }
.compare-photo { position: relative; box-shadow: 0 20px 50px rgba(0,0,0,.12); }
.compare-photo img { width: 100%; }
.compare-labels { position: absolute; left: 0; right: 0; bottom: 0; display: flex; }
.compare-labels span {
  flex: 0 0 61%; text-align: center; padding: 9px 6px;
  font-family: var(--font-head); font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  background: rgba(34,34,34,.78); color: #fff;
}
.compare-labels .is-hg { flex-basis: 39%; background: var(--gold); color: #161616; font-weight: 600; }
.focus-compare figcaption { font-size: 14px; color: var(--muted); font-style: italic; margin-top: 14px; text-align: center; }

.focus-mosaic { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 80px; }
.focus-mosaic figure { margin: 0; height: 270px; overflow: hidden; background: #fff; }
.focus-mosaic img, .focus-mosaic video { width: 100%; height: 100%; object-fit: cover; display: block; }
.focus-mosaic img.contain { object-fit: contain; }
.focus-caption { text-align: center; color: var(--muted); font-style: italic; margin: 22px 0 0; }

@media (max-width: 800px) {
  .focus { padding: 60px 0; }
  .focus-bg { height: 420px; }
  .focus-head { margin-bottom: 40px; }
  .focus-head .product-code { font-size: 54px; }
  .focus-grid { grid-template-columns: 1fr; gap: 40px; }
  .ratio .num { font-size: 44px; }
  .focus-mosaic { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 50px; }
  .focus-mosaic figure { height: 190px; }
}

/* ---------- Language switch (flags, top right of the header) ---------- */
/* Grey flags by default. Gold while the mouse is over any flag, including the current language. */
.lang { position: absolute; top: 14px; right: 24px; display: flex; gap: 10px; align-items: center; z-index: 11; }
.lang a { display: block; line-height: 0; border-radius: 2px; }
.lang a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.lang .flag { display: block; height: 24px; width: auto; }
.lang .flag-hover { display: none; }
.lang a:hover .flag-normal { display: none; }
.lang a:hover .flag-hover { display: block; }
@media (max-width: 800px) { .lang { top: 6px; right: 14px; gap: 8px; } .lang .flag { height: 18px; } }
