/* ============================================
   SANTORINI — Joias & Metais Preciosos
   Estilo: Clean, Minimalista, Institucional
   Referência: Aurate New York
   ============================================ */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --white: #ffffff;
  --off-white: #fafafa;
  --light-gray: #f2f0ed;
  --mid-gray: #b5b0a9;
  --dark-gray: #6b6560;
  --charcoal: #1a1a1a;
  --black: #0a0a0a;

  --font-serif: 'Cormorant Garamond', 'Georgia', serif;
  --font-sans: 'Inter', 'Helvetica Neue', sans-serif;

  --nav-height: 120px;
  --container: 1200px;
  --container-narrow: 800px;

  --transition: 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-slow: 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--charcoal);
  background-color: var(--off-white);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  color: var(--charcoal);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

h4 {
  font-size: 1.25rem;
}

p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--dark-gray);
  text-align: left;
  text-wrap: pretty;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
}

h1, h2, h3, h4 {
  text-wrap: balance;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-bottom: 1rem;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: 8rem 0;
}

.section--dark {
  background-color: var(--charcoal);
  color: var(--off-white);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--off-white);
}

.section--dark p {
  color: var(--mid-gray);
}

.section--dark .eyebrow {
  color: var(--mid-gray);
}

.section--light {
  background-color: var(--light-gray);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background-color var(--transition), box-shadow var(--transition);
}

.nav--scrolled {
  background-color: rgba(250, 250, 250, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav--hero .nav__logo,
.nav--hero .nav__link {
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.nav--hero .nav__logo-img {
  filter: brightness(0) invert(1);
  transition: filter var(--transition);
}

.nav--hero .nav__toggle span {
  background-color: #fff;
}

.nav--hero.nav--scrolled .nav__logo,
.nav--hero.nav--scrolled .nav__link {
  color: var(--charcoal);
  text-shadow: none;
}

.nav--hero.nav--scrolled .nav__logo-img {
  filter: none;
}

.nav--hero.nav--scrolled .nav__toggle span {
  background-color: var(--charcoal);
}

.nav__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

.nav__logo {
  grid-column: 2;
  justify-self: center;
  transition: opacity var(--transition);
}

.nav__logo:hover {
  opacity: 0.7;
}

.nav__logo-img {
  height: 110px;
  width: auto;
  display: block;
  transition: filter var(--transition);
}

.footer__logo-img {
  height: 90px;
  width: auto;
  display: block;
  margin-bottom: 1rem;
}

.nav__links {
  display: flex;
  gap: 2.5rem;
}

.nav__links--left {
  grid-column: 1;
  justify-self: start;
}

.nav__links--right {
  grid-column: 3;
  justify-self: end;
}

.nav__link {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal);
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--transition);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--charcoal);
  transition: width var(--transition);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__link:hover {
  color: var(--dark-gray);
}

/* Mobile Menu Toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  height: 18px;
  cursor: pointer;
  grid-column: 3;
  justify-self: end;
}

.nav__toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: var(--charcoal);
  transition: transform var(--transition), opacity var(--transition);
}

.nav__toggle.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img,
.hero__bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.45) 0%,
    rgba(10, 10, 10, 0.25) 40%,
    rgba(10, 10, 10, 0.4) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 0 2rem;
}

.hero__content h1 {
  color: var(--white);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 300;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.hero__content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.hero--minimal {
  height: 60vh;
  min-height: 400px;
  max-height: 700px;
  background-color: var(--light-gray);
}

.hero--minimal .hero__content h1 {
  color: var(--charcoal);
}

.hero--minimal .hero__content p {
  color: var(--dark-gray);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  border: 1px solid transparent;
  transition: all var(--transition);
  cursor: pointer;
}

.btn--primary {
  background-color: var(--charcoal);
  color: var(--white);
  border-color: var(--charcoal);
}

.btn--primary:hover {
  background-color: var(--black);
  border-color: var(--black);
}

.btn--outline {
  background-color: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}

.btn--outline:hover {
  background-color: var(--charcoal);
  color: var(--white);
}

.btn--white {
  background-color: var(--white);
  color: var(--charcoal);
  border-color: var(--white);
}

.btn--white:hover {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
}

/* --- Grid Layouts --- */
.grid {
  display: grid;
  gap: 2rem;
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--2-1 {
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

/* --- Image Block --- */
.img-block {
  position: relative;
  overflow: hidden;
  background-color: var(--light-gray);
}

.img-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.img-block:hover img {
  transform: scale(1.03);
}

.img-block--tall {
  aspect-ratio: 3 / 4;
}

.img-block--wide {
  aspect-ratio: 16 / 9;
}

.img-block--square {
  aspect-ratio: 1 / 1;
}

/* --- Text Content Blocks --- */
.text-block {
  max-width: 560px;
}

.text-block h2 {
  margin-bottom: 1.5rem;
}

.text-block p {
  margin-bottom: 1rem;
}

.text-block p:last-of-type {
  margin-bottom: 2rem;
}

/* --- Card Components --- */
.card {
  padding: 3rem 2.5rem;
  background-color: var(--white);
  transition: transform var(--transition);
}

.card:hover {
  transform: translateY(-4px);
}

.card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card__icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--charcoal);
  stroke-width: 1.5;
  fill: none;
}

.card h4 {
  margin-bottom: 1rem;
}

.card p {
  font-size: 0.95rem;
}

/* --- Services List (Serviços page) --- */
.service-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 6rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.service-item:first-child {
  padding-top: 0;
}

.service-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.service-item:nth-child(even) .service-item__image {
  order: -1;
}

.service-item__content .eyebrow {
  margin-bottom: 0.75rem;
}

.service-item__content h3 {
  margin-bottom: 1.5rem;
}

.service-item__content p {
  margin-bottom: 0;
}

.service-item__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--light-gray);
}

.service-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Stats Row --- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
  padding: 4rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.stat__number {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 300;
  color: var(--charcoal);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat__label {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid-gray);
}

/* --- Contact Form --- */
.form {
  max-width: 600px;
}

.form__group {
  margin-bottom: 2rem;
}

.form__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

.form__input,
.form__textarea {
  width: 100%;
  padding: 0.875rem 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--charcoal);
  background: none;
  border: none;
  border-bottom: 1px solid var(--mid-gray);
  outline: none;
  transition: border-color var(--transition);
}

.form__input:focus,
.form__textarea:focus {
  border-color: var(--charcoal);
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--mid-gray);
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

/* --- Contact Info --- */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-info__item h4 {
  margin-bottom: 0.5rem;
}

.contact-info__item p {
  font-size: 0.95rem;
}

.contact-info__item a {
  transition: color var(--transition);
}

.contact-info__item a:hover {
  color: var(--charcoal);
}

.contact-info__addresses {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 0.25rem;
}

.contact-info__address-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-bottom: 0.25rem;
}

.contact-info__address p {
  margin: 0;
}

/* --- Footer --- */
.footer {
  background-color: var(--charcoal);
  color: var(--off-white);
  padding: 4rem 0 2rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand {
  max-width: 300px;
}

.footer__logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--off-white);
  margin-bottom: 1rem;
  display: block;
}

.footer__brand p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
}

.footer__heading {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1.25rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--white);
}

.footer__address {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
}

.footer__copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}

/* --- Scroll Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Page Header (subpages) --- */
.page-header {
  padding: 10rem 0 4rem;
  text-align: center;
}

.page-header h1 {
  margin-bottom: 1rem;
}

.page-header p {
  max-width: 500px;
  margin: 0 auto;
}

/* --- Divider --- */
.divider {
  width: 60px;
  height: 1px;
  background-color: var(--mid-gray);
  margin: 2rem 0;
}

.divider--center {
  margin: 2rem auto;
}

/* --- Utilities --- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .grid--2, .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--2-1 {
    gap: 3rem;
  }

  .service-item {
    gap: 3rem;
    padding: 4rem 0;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 80px;
  }

  .section {
    padding: 5rem 0;
  }

  .nav__inner {
    display: flex;
    justify-content: space-between;
  }

  .nav__logo-img {
    height: 65px;
  }

  .nav__links {
    position: fixed;
    right: -100%;
    width: 100%;
    height: 50vh;
    background-color: var(--off-white);
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    transition: right var(--transition);
  }

  /* As duas listas se combinam em um único menu de tela cheia
     com todos os itens (Início, Sobre, Serviços, Contato). */
  .nav__links--left {
    top: 0;
    justify-content: flex-end;
    padding-bottom: 1rem;
  }

  .nav__links--right {
    top: 50vh;
    justify-content: flex-start;
    padding-top: 1rem;
  }

  .nav__links--open {
    right: 0;
  }

  .nav__links .nav__link {
    font-size: 1.1rem;
  }

  .nav--hero .nav__links--open .nav__link {
    color: var(--charcoal);
    text-shadow: none;
  }

  .nav--hero .nav__toggle.active span {
    background-color: var(--charcoal);
  }

  .nav__toggle {
    display: flex;
    z-index: 1001;
  }

  .grid--2,
  .grid--3 {
    grid-template-columns: 1fr;
  }

  .grid--2-1 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Centraliza botões dentro de blocos de texto no mobile
     (ex.: "Conheça Nossa História"). */
  .text-block .btn {
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }

  .service-item {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 0;
  }

  .service-item:nth-child(even) .service-item__image {
    order: 0;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .hero {
    min-height: 500px;
  }

  .hero__content h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .page-header {
    padding: 8rem 0 3rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }

  .btn {
    padding: 0.875rem 2rem;
    font-size: 0.75rem;
  }

  .card {
    padding: 2rem 1.5rem;
  }
}
